tobert / cassandra-docker

Cassandra in Docker
https://registry.hub.docker.com/u/tobert/cassandra/
Apache License 2.0
130 stars 56 forks source link

Add dc and rack flags #22

Closed pofallon closed 9 years ago

pofallon commented 9 years ago

It would be great to be able to pass in data center and/or rack flags and have those enable the GossipingPropertyFileSnitch and set the cassandra-rackdc.properties file accordingly.

tobert commented 9 years ago

Hmm. That will require a lot of flags. Can you mock up what the commands would look like to bring up a multi-dc cluster? Just here in the issue is fine. I'm curious what you have in mind.

pofallon commented 9 years ago

Are you referring to the command line flags? I was thinking -name "My Cluster" -dc "DC1" -rack "RAC1" etc.

These two flags, if present, would trigger two configuration file changes: (1) the two values would be substituted into the "dc" and "rack" values of cassandra-rackdc.properties and (2) the "endpoint_snitch" property in cassandra.yaml would be set to "GossipingPropertyFileSnitch".

pofallon commented 9 years ago

This was closed by merging pull request #24 -- thanks for accepting the pull request!