cybertec-postgresql / vip-manager

Manages a virtual IP based on state kept in etcd or Consul
BSD 2-Clause "Simplified" License
207 stars 41 forks source link

support callback when VIP switched(switch hook) #172

Closed zhiqiangwang08 closed 10 months ago

zhiqiangwang08 commented 1 year ago

when VIP switch to another host, run user's script(bash script or python script ...) through callback(hook).

something very similar to patroni's callbacks (on_role_change). Not sure if any plan to support such a feature.

Thanks

pashagolub commented 1 year ago

Hello.

Sounds like a good idea. Do you have a WIP patch maybe? Pull requests are more than welcome

Thanks

github-actions[bot] commented 11 months ago

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