vip-manager icon indicating copy to clipboard operation
vip-manager copied to clipboard

vip on a sync standby

Open OrioQuezac opened this issue 4 years ago • 1 comments

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//sync.

  • 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 ?

OrioQuezac avatar Dec 03 '20 13:12 OrioQuezac

📅 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.

github-actions[bot] avatar Aug 10 '22 11:08 github-actions[bot]