{"id":17862561,"url":"https://github.com/krdlab/docker-rabbitmq-clustering","last_synced_at":"2025-04-02T21:14:57.364Z","repository":{"id":141882969,"uuid":"228971161","full_name":"krdlab/docker-rabbitmq-clustering","owner":"krdlab","description":null,"archived":false,"fork":false,"pushed_at":"2020-12-11T10:17:20.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T11:34:26.907Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/krdlab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-19T03:56:55.000Z","updated_at":"2020-12-11T10:17:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"e940f844-3d4d-4aca-a1e3-72ed519e8dd0","html_url":"https://github.com/krdlab/docker-rabbitmq-clustering","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krdlab%2Fdocker-rabbitmq-clustering","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krdlab%2Fdocker-rabbitmq-clustering/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krdlab%2Fdocker-rabbitmq-clustering/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krdlab%2Fdocker-rabbitmq-clustering/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krdlab","download_url":"https://codeload.github.com/krdlab/docker-rabbitmq-clustering/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246892848,"owners_count":20850850,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-28T08:53:15.006Z","updated_at":"2025-04-02T21:14:57.339Z","avatar_url":"https://github.com/krdlab.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-rabbitmq-clustering\n\n## network partition を発生させる例\n\n```sh\npumba netem --tc-image gaiadocker/iproute2 --duration 120s loss --percent 100 docker-rabbitmq-clustering_rabbit2_1 docker-rabbitmq-clustering_rabbit3_1\n```\n\nしばらくすると log に\n\n```\nrabbit1_1  | 2019-12-19 06:47:13.118 [error] \u003c0.1176.0\u003e ** Node rabbit@rabbit2 not responding **\nrabbit1_1  | ** Removing (timedout) connection **\nrabbit1_1  | 2019-12-19 06:47:13.118 [info] \u003c0.524.0\u003e rabbit on node rabbit@rabbit2 down\nrabbit1_1  | 2019-12-19 06:47:13.121 [error] \u003c0.16287.0\u003e ** Node rabbit@rabbit3 not responding **\nrabbit1_1  | ** Removing (timedout) connection **\nrabbit1_1  | 2019-12-19 06:47:13.121 [warning] \u003c0.777.0\u003e Management delegate query returned errors:\nrabbit1_1  | [{\u003c43379.549.0\u003e,{exit,{nodedown,rabbit@rabbit2},[]}},{\u003c43381.547.0\u003e,{exit,{nodedown,rabbit@rabbit3},[]}}]\nrabbit1_1  | 2019-12-19 06:47:13.137 [info] \u003c0.524.0\u003e Node rabbit@rabbit2 is down, deleting its listeners\nrabbit1_1  | 2019-12-19 06:47:13.139 [info] \u003c0.524.0\u003e node rabbit@rabbit2 down: net_tick_timeout\nrabbit1_1  | 2019-12-19 06:47:13.139 [info] \u003c0.524.0\u003e rabbit on node rabbit@rabbit3 down\nrabbit1_1  | 2019-12-19 06:47:13.146 [info] \u003c0.524.0\u003e Node rabbit@rabbit3 is down, deleting its listeners\nrabbit1_1  | 2019-12-19 06:47:13.148 [info] \u003c0.524.0\u003e node rabbit@rabbit3 down: net_tick_timeout\nrabbit1_1  | 2019-12-19 06:47:19.341 [warning] \u003c0.778.0\u003e Management delegate query returned errors:\nrabbit1_1  | [{\u003c43379.549.0\u003e,{exit,{nodedown,rabbit@rabbit2},[]}},{\u003c43381.547.0\u003e,{exit,{nodedown,rabbit@rabbit3},[]}}]\n```\n\nダウン判定が出力される，このときメッセージを適当に rabbit1 へ publish する．\n\n```\nrabbit1_1  | 2019-12-19 06:47:57.390 [info] \u003c0.524.0\u003e node rabbit@rabbit2 up\nrabbit1_1  | 2019-12-19 06:47:57.395 [error] \u003c0.310.0\u003e Mnesia(rabbit@rabbit1): ** ERROR ** mnesia_event got {inconsistent_database, running_partitioned_network, rabbit@rabbit2}\nrabbit1_1  | 2019-12-19 06:47:57.801 [info] \u003c0.524.0\u003e node rabbit@rabbit3 up\nrabbit1_1  | 2019-12-19 06:47:57.804 [error] \u003c0.310.0\u003e Mnesia(rabbit@rabbit1): ** ERROR ** mnesia_event got {inconsistent_database, running_partitioned_network, rabbit@rabbit3}\n```\n\n120s が経過して loss がなくなると，inconsistent になる．\n\n## PerfTest\n\n`docker-compose up -d` で作成された network に対して PerfTest を実行する．\n\n```sh\ndocker run -it --rm --network docker-rabbitmq-clustering_default \\\n    pivotalrabbitmq/perf-test:latest \\\n    --uris amqp://rabbit1,amqp://rabbit2,amqp://rabbit3\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrdlab%2Fdocker-rabbitmq-clustering","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrdlab%2Fdocker-rabbitmq-clustering","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrdlab%2Fdocker-rabbitmq-clustering/lists"}