The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/6969
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Signed-off-by: Free Ekanayaka <free.ekanay...@canonical.com>
From f82a632a3c77eef2594d9df93324824eb9d08c16 Mon Sep 17 00:00:00 2001 From: Free Ekanayaka <free.ekanay...@canonical.com> Date: Tue, 3 Mar 2020 09:52:23 +0100 Subject: [PATCH] Promote nodes if for whatever reason the n of voters drop below 3 Signed-off-by: Free Ekanayaka <free.ekanay...@canonical.com> --- lxd/cluster/membership.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lxd/cluster/membership.go b/lxd/cluster/membership.go index 63477ab581..57d8e910e8 100644 --- a/lxd/cluster/membership.go +++ b/lxd/cluster/membership.go @@ -573,7 +573,7 @@ func Rebalance(state *state.State, gateway *Gateway) (string, []db.RaftNode, err var role db.RaftRole - if len(voters) < int(maxVoters) && len(voters) > 1 { + if len(voters) < int(maxVoters) && len(currentRaftNodes) >= 3 { role = db.RaftVoter // Include stand-by nodes among the ones that can be promoted, // preferring them over spare ones.
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel