This is a five node (one master, two standby, one monitor and one application) demo of pg_auto_failover .pg_auto_failover is an extension for PostgreSQL that monitors and manages failover for a postgres clusters. It is optimized for simplicity and correctness.