Allow comma separated list of values in the alpha's --zero option #4949
Labels
area/operations
Related to operational aspects of the DB, including signals, flags, env vars, etc.
kind/enhancement
Something could be better.
status/accepted
We accept to investigate/work on it.
Milestone
Experience Report
Note: Feature requests are judged based on user experience and modeled on Go Experience Reports. These reports should focus on the problems: they should not focus on and need not propose solutions.
What you wanted to do
When starting a cluster first the zero group has to be started
Let's suppose we have 3 zeros, zero1, zero2 and zero3, and that they are now up and running
We now begin to start the alphas, let's suppose we have 3 alphas, alpha1, alpha2 and alpha3
When starting an alpha we use the --zero option to pass the IP:port of an healthy zero instance, so this alpha can communicate with the zero group we started previously, and join the cluster
Let's suppose we pass zero1 to alpha1, alpha2 and alpha3
Now the cluster is up and running
Let's suppose we are using systemd
Now let's suppose zero1 goes down, and it stays down for some time
Let's suppose we try to restart an alpha ----> it will not start as zero1 is down
What you actually did
To have this alpha join the cluster again, we have to:
Why that wasn't great, with examples
We would like to avoid having to change the systemd configuration to handle this situation. An elegant solution here is to allow --zero to accept a comma separated list of zero:IP. This way, when alpha connects, it tries to connect to the first, it for any reason it is down, it will try to connect to the second, and so on, and no changes of systemd files will be needed in such case
Any external references to support your case
This is in line with what other HA systems allow/provide
Thanks,
The text was updated successfully, but these errors were encountered: