Patroni: Call on_start callback when patroni has started with the database already running

Created on 23 Mar 2016  路  3Comments  路  Source: zalando/patroni

Patroni tries to be non-invasive and do not try to start the database that is already running in the master/replica role if that role matches the one patroni designates for it (according to the locks in etcd or zookeeper). On the other hand, the on_start callback may change the connection pooler/load balancer configuration or assign the floating ip, and we still want Patroni to try doing this for the already running server (it may fail, but that's not a big deal).

Therefore, we should call the on_start callback even in the case when Patroni starts without starting the database.

enhancement help wanted

All 3 comments

@alexeyklyukin @CyberDem0n @feikesteenbergen Should we tag this as "enhancement" and/or "help wanted"?

yes to both.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

binooetomo picture binooetomo  路  3Comments

Tekchanddagar picture Tekchanddagar  路  4Comments

bappr picture bappr  路  8Comments

zetab picture zetab  路  3Comments

rootqa picture rootqa  路  9Comments