-
Notifications
You must be signed in to change notification settings - Fork 71
Fix multi dc provisioning #653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Fix multi dc provisioning #653
Conversation
f41aca7 to
9d937dc
Compare
|
@fruch , there are two debatable changes:
|
8cfdb90 to
9dbf6d7
Compare
ccmlib/common.py
Outdated
| DOWNLOAD_IN_PROGRESS_FILE = "download_in_progress" | ||
|
|
||
| DEFAULT_DATACENTER = 'datacenter1' | ||
| DEFAULT_RACK = 'rack1' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is breaking checks for dtest....
you would need to run all test, and prove there's no dependency
this is a breaking change... to do it, one would need to prove it's not break any user of CCM (i.e. dtest, all drivers)
I don't mind changing the default to GossipingPropertyFileSnitch, but it should be synced with Core, i.e. they might want to make it default as well ? |
fc480c1 to
64bca9f
Compare
host-id requires API to be up and running, which is not always the case right away. Ignoring it there will help to reduce chance of having host-id reading error while node is starting
Add API to get `CCMCluster` Add API for populate command Add options to add API Add API to read cluster.conf Add API to read node `cassandra-rackdc.properties`
Clearly define DEFAULT_DC and DEFAULT_RACK and fix them to match default scylla values. Fix dc and rack naming accordingly. Store single dc flag in cluster.conf and use it to prevent provisioning a node with different snitch.
Cassandra 3.0 and Scylla older than 6.x does not support parallel node initialization. Tune CCM to start nodes one by one for it.
64bca9f to
3bf76a7
Compare
3bf76a7 to
7ba8088
Compare
|
@dkropachev is this one still relevant or needed ? |
Multi DC/rack provisioning is broken in multiple cases:
Fixes: Adding node without dc leads to broken
cassandra-rackdc.properties#650Changes:
is_single_dc_clusterflag is introduced to track cluster snitchnode.confdatacenter{id}to match default dc naming of scylla and cassandra.