adds on_rolechange to patroni helm chart https://patroni.readthedocs.io//downloads/en/master/pdf/ (page 37)
adds a (wip) script to run when a patroni pod changes roles, the script currently only echoes the args to see what is passed in.
The idea is that with the args passed to the script from on_role_change, we can kill a pod that has been demoted from leader to replica via the kubernetes api.
EDIT: The approach to this has changed. We are replacing the default callback_endpoint.py with a custom one that has extra functions to cover a patroni pod role change from leader to replica.
adds on_rolechange to patroni helm chart https://patroni.readthedocs.io//downloads/en/master/pdf/ (page 37) adds a (wip) script to run when a patroni pod changes roles, the script currently only echoes the args to see what is passed in.
The idea is that with the args passed to the script from on_role_change, we can kill a pod that has been demoted from leader to replica via the kubernetes api.
EDIT: The approach to this has changed. We are replacing the default callback_endpoint.py with a custom one that has extra functions to cover a patroni pod role change from leader to replica.