Skip to content
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

randomize the order of datacenters #296

Merged
merged 2 commits into from
Nov 21, 2019
Merged

randomize the order of datacenters #296

merged 2 commits into from
Nov 21, 2019

Conversation

drallgood
Copy link
Contributor

When adding new (worker) nodes, the nodes are always created in the same data centers based on the provided order (default [fsn1-dc8,nbg1-dc3,hel1-dc2,fsn1-dc14]).
And while that works fine upon initial cluster creation, evenly distributing nodes across data centers it does not work when creating nodes after the fact. They're always created in the same data center.

This PR fixes that by randomizing the provided data center list while still making sure the nodes are evenly distributed.

@xetys
Copy link
Owner

xetys commented Nov 21, 2019

LGTM, I will merge it if you fix the CC issue

@drallgood
Copy link
Contributor Author

Done @xetys

@xetys xetys merged commit bb96f50 into xetys:master Nov 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants