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

Better Handling of First Master Replacement #49

Open
benyanke opened this issue Nov 6, 2018 · 0 comments
Open

Better Handling of First Master Replacement #49

benyanke opened this issue Nov 6, 2018 · 0 comments

Comments

@benyanke
Copy link

benyanke commented Nov 6, 2018

Given the list of hosts below, if mgr1 dies, or is removed from the swarm, the current behavior is the creation of a new swarm, despite a swarm quorum still existing with three workers and a quorum of two managers.

However, if mgr2 dies and is replaced with a fresh node, it is properly added to the existing cluster of manager1 and manager3, as expected.

Ideally, the tool should check to see if there is already a quorum among the existing masters before trying to create a new one.

$ cat inventory
[targets]
work[1:3].swarm.domain.com
mgr[1:3].swarm.domain.com


[docker_engine]
work[1:3].swarm.domain.com
mgr[1:3].swarm.domain.com

[docker_swarm_manager]
mgr[1:3].swarm.domain.com swarm_labels='["node_is_master"]'

[docker_swarm_worker]
work[1:3].swarm.domain.com swarm_labels='["node_is_worker"]'
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

No branches or pull requests

1 participant