{"id":20724686,"url":"https://github.com/arhea/docker-cassandra","last_synced_at":"2026-04-20T17:32:04.990Z","repository":{"id":141743378,"uuid":"80301792","full_name":"arhea/docker-cassandra","owner":"arhea","description":"High Availability Cassandra Container that uses ETCD to automatically join an existing cluster.","archived":false,"fork":false,"pushed_at":"2017-04-25T13:05:09.000Z","size":10,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-11T08:50:13.800Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/arhea/cassandra/","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/arhea.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":"2017-01-28T18:23:30.000Z","updated_at":"2019-03-31T03:17:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"a2e94d35-1bc1-456f-aa94-c76dfeae0242","html_url":"https://github.com/arhea/docker-cassandra","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/arhea/docker-cassandra","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arhea%2Fdocker-cassandra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arhea%2Fdocker-cassandra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arhea%2Fdocker-cassandra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arhea%2Fdocker-cassandra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arhea","download_url":"https://codeload.github.com/arhea/docker-cassandra/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arhea%2Fdocker-cassandra/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32057609,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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-11-17T04:15:59.136Z","updated_at":"2026-04-20T17:32:04.985Z","avatar_url":"https://github.com/arhea.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# High Availability Cassandra Container\nThis container is based off of the [official Cassandra image](https://hub.docker.com/_/cassandra/) and layers on high availability funtionality based on [ETCD](https://github.com/coreos/etcd). It uses ETCD to store the hostnames of all the Cassandra instances and then on boot of new instances it will automcatically populate the `CASSANDRA_SEEDS` environment variable with a list of the other nodes in the cluster.\n\nOn boot, the script will also prune unreachable / old hostnames from the ETCD key value store.\n\n*By default, this implementation doesn't come with authentication and authorization. It is recommended you implement authentication / authorization before launching this in production.*\n\n## Getting Started\nAn example `docker-compose.yml` file is included as an example implementation of this container. To get started:\n\n```bash\n# start the etcd cluster\ndocker-compose up -d etcd_replica_1 etcd_replica_2 etcd_replica_3\n\n# start the first cassandra node\ndocker-compose up -d cassandra\n\n# scale the cassandra cluster 1 at a time\ndocker-compose scale cassandra=2\ndocker-compose scale cassandra=3\n```\n\nNext, execute a bash session within one of the containers and run the following command:\n\n```bash\ndocker exec -it dockercassandra_cassandra_1 bash\n```\n\n```bash\nroot@51af579e902c:/# nodetool status\n\nDatacenter: datacenter1\n=======================\nStatus=Up/Down\n|/ State=Normal/Leaving/Joining/Moving\n--  Address     Load       Tokens       Owns (effective)  Host ID                               Rack\nUN  172.19.0.7  171.86 KiB  256          61.2%             5948196f-e57a-4af7-b47f-8ce3bdd615a1  rack1\nUN  172.19.0.6  103.23 KiB  256          72.5%             c192b2dc-6d0e-479c-8462-3adc7c5f6c75  rack1\nUN  172.19.0.5  108.5 KiB  256          66.4%             146ce486-7632-4060-a9e4-4d070ea4c278  rack1\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farhea%2Fdocker-cassandra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farhea%2Fdocker-cassandra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farhea%2Fdocker-cassandra/lists"}