Jun 3, 2021, 7:08:04 AM6/3/21
I just wanted to find out what the best approach is to run an lxd
cluster across multiple nodes in
Stretched layer 2 across to another location:
Now, I've joined them all to the same cluster, if I shut down vms
gracefully in each
location(Shut down vm1,vm2,vm3,vm4) the lxd cluster is happy when I
power off all the
vms in Location A at the same time(vm1,vm2,v3,vm4) the cluster becomes
unusable, lxc list
hangs and I can not recover it. When I start vm1,vm2,vm3,vm4 again the
cluster happily returns
and everything is honkey dorey.
I did the following:
lxc config set cluster.max_voters 7
lxc config set cluster.max_standby 5
Played with different variations but no luck, the cluster becomes really
unhappy when I perform
the above. The idea is that Location A will have all of our containers
running, and Location B
will be our DC, so when A has a big issue/outage we can fire up
containers in Location B.
Will the only option be to do "lxd cluster recover-from-quorum-loss" in
the 4 vms in Location B?
We just do not want an unusable cluster in Location B if Location A
Any advice/suggestions really would be appreciated.
Thank you in advance.