zalando / postgres-operator

Postgres operator creates and manages PostgreSQL clusters running in Kubernetes
https://postgres-operator.readthedocs.io/
MIT License
4.33k stars 979 forks source link

Log that operator is waiting for master to become healthy/available #119

Open Jan-M opened 7 years ago

Jan-M commented 7 years ago

Due to config the wrong label reflected that master pod is there but from logs it was hard to figure out that operator was waiting for another label to be present.

Log every 30 seconds or every 60 seconds what the worker is still waiting for pod with "spilo_role_label" label.

Jan-M commented 7 years ago

@ikitiki another quick win is probably setting a much lower timeout for the connection to establish.