{"id":22734001,"url":"https://github.com/devdrops/redis-cluster-on-docker-compose","last_synced_at":"2026-02-23T13:18:19.319Z","repository":{"id":266687750,"uuid":"898707289","full_name":"devdrops/redis-cluster-on-docker-compose","owner":"devdrops","description":"Redis cluster, on Docker Compose","archived":false,"fork":false,"pushed_at":"2024-12-05T17:42:11.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-25T20:41:31.835Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Makefile","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/devdrops.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,"zenodo":null}},"created_at":"2024-12-04T22:08:26.000Z","updated_at":"2024-12-05T17:42:14.000Z","dependencies_parsed_at":"2025-06-11T00:34:46.791Z","dependency_job_id":"8c5d6a0f-6b7e-49e9-9cc8-33cc717406a7","html_url":"https://github.com/devdrops/redis-cluster-on-docker-compose","commit_stats":null,"previous_names":["devdrops/redis-cluster-on-docker-compose"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devdrops/redis-cluster-on-docker-compose","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devdrops%2Fredis-cluster-on-docker-compose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devdrops%2Fredis-cluster-on-docker-compose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devdrops%2Fredis-cluster-on-docker-compose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devdrops%2Fredis-cluster-on-docker-compose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devdrops","download_url":"https://codeload.github.com/devdrops/redis-cluster-on-docker-compose/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devdrops%2Fredis-cluster-on-docker-compose/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29743765,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T07:44:07.782Z","status":"ssl_error","status_checked_at":"2026-02-23T07:44:07.432Z","response_time":90,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-12-10T20:17:15.745Z","updated_at":"2026-02-23T13:18:19.291Z","avatar_url":"https://github.com/devdrops.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Redis cluster, on Docker Compose\n\nReferences:\n\n- https://medium.com/@jielim36/basic-docker-compose-and-build-a-redis-cluster-with-docker-compose-0313f063afb6\n\n## Steps\n\n1. `make create-conf`\n2. `make run-redis`\n3. `make create-cluster`\n4. Run the command below:\n\n```\nredis-cli --cluster create 172.38.0.10:6379 172.38.0.11:6379 172.38.0.12:6379 172.38.0.13:6379 172.38.0.14:6379 172.38.0.15:6379 --cluster-replicas 1\n```\n\nDesired output:\n\n```\n\u003e\u003e\u003e Performing hash slots allocation on 6 nodes...\nMaster[0] -\u003e Slots 0 - 5460\nMaster[1] -\u003e Slots 5461 - 10922\nMaster[2] -\u003e Slots 10923 - 16383\nAdding replica 172.38.0.14:6379 to 172.38.0.10:6379\nAdding replica 172.38.0.15:6379 to 172.38.0.11:6379\nAdding replica 172.38.0.13:6379 to 172.38.0.12:6379\nM: 8496210cc05393aba980c36301793f0a87db2206 172.38.0.10:6379\n   slots:[0-5460] (5461 slots) master\nM: d472e69068b49964bb737166fb9c3f3205a547a7 172.38.0.11:6379\n   slots:[5461-10922] (5462 slots) master\nM: 6b23414e8560264783398bf7012f589a89c39ccb 172.38.0.12:6379\n   slots:[10923-16383] (5461 slots) master\nS: 50e1b650fead35868f94354611397f713230c3e9 172.38.0.13:6379\n   replicates 6b23414e8560264783398bf7012f589a89c39ccb\nS: f2e74deb146f600af805591b36250ad2c26afcc9 172.38.0.14:6379\n   replicates 8496210cc05393aba980c36301793f0a87db2206\nS: 20ab38e7959a797226bd13d89e61278d10c54d29 172.38.0.15:6379\n   replicates d472e69068b49964bb737166fb9c3f3205a547a7\nCan I set the above configuration? (type 'yes' to accept): yes\n\u003e\u003e\u003e Nodes configuration updated\n\u003e\u003e\u003e Assign a different config epoch to each node\n\u003e\u003e\u003e Sending CLUSTER MEET messages to join the cluster\nWaiting for the cluster to join\n...\n\u003e\u003e\u003e Performing Cluster Check (using node 172.38.0.10:6379)\nM: 8496210cc05393aba980c36301793f0a87db2206 172.38.0.10:6379\n   slots:[0-5460] (5461 slots) master\n   1 additional replica(s)\nS: 20ab38e7959a797226bd13d89e61278d10c54d29 172.38.0.15:6379\n   slots: (0 slots) slave\n   replicates d472e69068b49964bb737166fb9c3f3205a547a7\nS: f2e74deb146f600af805591b36250ad2c26afcc9 172.38.0.14:6379\n   slots: (0 slots) slave\n   replicates 8496210cc05393aba980c36301793f0a87db2206\nS: 50e1b650fead35868f94354611397f713230c3e9 172.38.0.13:6379\n   slots: (0 slots) slave\n   replicates 6b23414e8560264783398bf7012f589a89c39ccb\nM: 6b23414e8560264783398bf7012f589a89c39ccb 172.38.0.12:6379\n   slots:[10923-16383] (5461 slots) master\n   1 additional replica(s)\nM: d472e69068b49964bb737166fb9c3f3205a547a7 172.38.0.11:6379\n   slots:[5461-10922] (5462 slots) master\n   1 additional replica(s)\n[OK] All nodes agree about slots configuration.\n\u003e\u003e\u003e Check for open slots...\n\u003e\u003e\u003e Check slots coverage...\n[OK] All 16384 slots covered.\n```\n\n5. Check status with the command below:\n\n```\nredis-cli -c\ncluster nodes\n```\n\nDesired output:\n\n```\n20ab38e7959a797226bd13d89e61278d10c54d29 172.38.0.15:6379@16379 slave d472e69068b49964bb737166fb9c3f3205a547a7 0 1733419999728 2 connected\n8496210cc05393aba980c36301793f0a87db2206 172.38.0.10:6379@16379 myself,master - 0 0 1 connected 0-5460\nf2e74deb146f600af805591b36250ad2c26afcc9 172.38.0.14:6379@16379 slave 8496210cc05393aba980c36301793f0a87db2206 0 1733419998717 1 connected\n50e1b650fead35868f94354611397f713230c3e9 172.38.0.13:6379@16379 slave 6b23414e8560264783398bf7012f589a89c39ccb 0 1733419999000 3 connected\n6b23414e8560264783398bf7012f589a89c39ccb 172.38.0.12:6379@16379 master - 0 1733419998000 3 connected 10923-16383\nd472e69068b49964bb737166fb9c3f3205a547a7 172.38.0.11:6379@16379 master - 0 1733419999526 2 connected 5461-10922\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevdrops%2Fredis-cluster-on-docker-compose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevdrops%2Fredis-cluster-on-docker-compose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevdrops%2Fredis-cluster-on-docker-compose/lists"}