-
Notifications
You must be signed in to change notification settings - Fork 805
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
Add compose file for multi-cluster setup #4032
Conversation
environment: | ||
- "CASSANDRA_SEEDS=cassandra" | ||
- "STATSD_ENDPOINT=statsd:8125" | ||
- "DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development.yaml" |
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.
The replication has to be config from the yaml file. Take a look at the development_active.yaml and development_standby.yaml
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.
Yes, it uses config_template.yaml to generate config file. This environment variable is set to get dynamic config.
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.
Oh, I see. This is a dynamic config yaml. Then it looks good to me.
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.
Please do not use active/standby to name clusters. This will confuse users.
- "7943:7933" | ||
- "7944:7934" | ||
- "7945:7935" | ||
- "7949:7939" |
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.
nit: Can we make the port number consistent with those in development_standby.yaml
? Makes it a bit easier when switching back and forth between different setup.
bootstrapHosts: [ "127.0.0.1:8933", "127.0.0.1:8934", "127.0.0.1:8935", "127.0.0.1:8940" ]
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.
Nit: could you also make change to config/ that:
development_active.yaml -> development_primary.yaml
development_standby.yaml -> development_secondary.yaml
And change the related README.md
Or create a ticket and do it separately :D
What changed?
Add compose file for multi-cluster setup
Why?
It makes it easier for us to run cadence with 2 clusters on laptop.
How did you test it?
Potential risks