Hey everyone! I'm currently a DevOps intern tasked with setting up high availability for PostgreSQL using Patroni. I've successfully managed to get replication and HAProxy working, but I'm hitting a wall with the Patroni configuration. Specifically, I need help ensuring that when the primary database node goes down, the system fails over correctly and maintains service continuity. Any guidance would be incredibly appreciated! Thanks!
2 Answers
Sounds like you're doing great so far! For the Patroni setup, make sure your configuration files are properly set and that you've defined the correct DCS (distributed configuration store) settings. If your primary node fails, Patroni should automatically trigger a failover. Also, double-check your Docker networking settings to ensure all nodes can communicate without issues. You might need to look into the logs for any errors that could give you clues about what's going wrong.
Have you verified that your Patroni is correctly monitoring the database's health? You might want to check the Patroni status commands to see if it's recognizing the primary node's failure. It could also help to review your docker-compose file to ensure that all dependencies are launching in the right order.

Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures