]> git.proxmox.com Git - mirror_corosync-qdevice.git/commit
qnet: Add support for keep active partition vote
authorJan Friesse <jfriesse@redhat.com>
Tue, 27 Oct 2020 15:55:23 +0000 (16:55 +0100)
committerJan Friesse <jfriesse@redhat.com>
Tue, 27 Oct 2020 16:22:46 +0000 (17:22 +0100)
commitfbc34f3b05ebecef59b26ac8ee6e1e0dc7c779e9
tree0ff6e4d01295d833ff99478dc3a1a6e491c2085b
parent09c6f788640cd3bcfe074511dd32dd5883d0fe66
qnet: Add support for keep active partition vote

This patch adds qdevice-net part of keep active partition tie breaker
functionality. It's enabled by default.

When tie happens prefer partition with members of
previously active (quorate) partition. This is hard-coded
behavior of LMS algorithm so this setting affects only
FFSplit algorithm. By default it is disabled for backwards
compatibility.

This solves problem with FFSplit when node A (with lowest id) is killed,
node B gets vote and then node A starts up and creates single node
membership and gets vote.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
20 files changed:
man/corosync-qdevice-tool.8
man/corosync-qdevice.8
man/corosync-qnetd-tool.8
qdevices/msg.c
qdevices/msg.h
qdevices/qdevice-net-heuristics.c
qdevices/qdevice-net-instance.c
qdevices/qdevice-net-instance.h
qdevices/qdevice-net-ipc-cmd.c
qdevices/qdevice-net-msg-received.c
qdevices/qdevice-net-send.c
qdevices/qdevice-net-send.h
qdevices/qnet-config.h
qdevices/qnetd-advanced-settings.c
qdevices/qnetd-advanced-settings.h
qdevices/qnetd-client-msg-received.c
qdevices/qnetd-client.h
qdevices/qnetd-ipc-cmd.c
qdevices/tlv.c
qdevices/tlv.h