Replies: 2 comments
-
@udit47 Yes, you are right, if pgbouncer fail, they Patroni and haproxy will not switch the node So far, pgbouncer health checks are only in the scheme with Consul feel free to create your PR |
Beta Was this translation helpful? Give feedback.
-
Thanks for quick reply.
Could you please refer me to some link for this. I can't seem to find any.
So this watchdog service will restart pgbouncer if it finds failed instance of pgbouncer? |
Beta Was this translation helpful? Give feedback.
-
First of all, awesome tool for pg ha deployment. Love how detailed it is. Kudos!
Coming to the point, I looked at the template config file of pgbouncer (pgbouncer.ini.j2) and found that its pointing to postgresql running on localhost. Now, If only pgbouncer on the master node fails, then HAproxy's httpchck will not be able to detect this because it is checking Patroni API which is based on etcd state where master is still same. This will lead to failed requests.
I know this is very specific scenario but one I can't seem to rule it out. Any thoughts?
Beta Was this translation helpful? Give feedback.
All reactions