-
Notifications
You must be signed in to change notification settings - Fork 90
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
should not designate one node as master #116
Comments
@maxadamo Thanks! I'm aware of this issue. From a historical standpoint I guess this feature exists in this module to make it possible to bootstrap a new cluster. I take your report as an opportunity to think about how this feature could be improved for existing clusters. If you're able to help with this, do not hesitate to suggest code changes by submitted a pull request. |
I can understand.... TBH, I was investigating your modules, since it's not easy to find a proper solution. but I'm using a puppet exec, with my wrapper with the following command:
which means: try to bootstrap or try to join. |
There is a possibility to use PuppetDB. I have seen it in some other module. But while it's possible to store some information information on there it's still not easy to combine together all the moving parts. |
Maybe this approach could be extended to support also this type of scenario: #118 (comment) |
I was considering using So I've decided to abandon this idea for now. In my experience the current mode of operation has not caused any issues in ~5 years. If someone wants to play it extra safe it would always be possible to set I'm going to close this issue now. If someone has a solution to the formentioned problem or has a better idea, please let me know (or better: submit a pull request :)). |
Hi Frank.
there is no concept of "master" that can be pre-assigned, and that can always be used to bootstrap the cluster.
There is one node in the cluster which can be considered safe to bootstrap. This node is the last node that was alive in the cluster and it can be determined by grepping as following:
If it's
1
you can bootstrap from that node.Of course you can bootstrap for whatever node, but the risk of loosing data is considerably high, depending how long the last node was alive, while the other nodes were down!!
For you reference: Galera Safe To Bootstrap
Hope it helps!
The text was updated successfully, but these errors were encountered: