The vip-manager on "replica" won't create the vip after "leader" reboot #238
Unanswered
oraclepeople
asked this question in
Q&A
Replies: 1 comment
-
Hello. vip-manager uses etcd as the source of truth. If etcd still holds the wrong leader (for whatever reason) vip-manager will do nothing. Can you confirm that etcd changes the leader value after the primary reboots? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've set up a PostgreSQL cluster with Patroni, an etcd server, and vip-manager. Everything works fine until recently.
The "leader" node reboots at 4:15 am every Monday for weekly updates. However, the vip-manager on the "replica" node doesn't bring up the desired VIP after this.
In the log below, the leader node is "tomato" and the replica is "green." The VIP address (10.70.253.129) is used for Postgres.
Initially, the status of 10.70.253.129 was correct (state is false, desired false) as "green" was a replica. After "tomato" rebooted, Patroni on "green" promoted it to leader. I expected vip-manager to assign the VIP 10.70.253.129 to "green."
However, this didn't happen. Its status remained incorrect (state is false, desired false) instead of the expected (state is true, desired true).
If I restart the vip-manager service ([email protected]) on the new leader "green," it correctly assigns the VIP 10.70.253.129 to "green."
Can anyone shed some light on this issue? Thanks!
Environment information
RHEL 9.4
etcd Version: 3.5.13
patroni version 3.3.0
vip-manager 2.5.0
vip-manager configuration
The etcd server configuration:
Beta Was this translation helpful? Give feedback.
All reactions