vip-manager
vip-manager copied to clipboard
vip on a sync standby
Hi,
In some cases, we need a vip on a sync standby. If we use only 2 patroni nodes, everything is ok with the trigger-key "/service/
- Server A :
trigger-value: "{\"leader\":\"server_b\",\"sync_standby\":\"server_a\"}"
- Server B :
trigger-value: "{\"leader\":\"server_a\",\"sync_standby\":\"server_b\"}"
But when we use 4 nodes (1 leader, 1 sync_standby and 2 async_standby), we can't set a correct trigger-value because that trigger-key returns the leader and the sync_standby in json and we can't predict which node is leader.
It's possible to parse the json value to get only the sync_standby ?
📅 This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs. ♻️ If you think there is new information allowing us to address the issue, please reopen it and provide us with updated details. 🤝 Thank you for your contributions.