repmgrd
automatic failover
Automatic failover with repmgrd
repmgrd is a management and monitoring daemon which runs
on each node in a replication cluster. It can automate actions such as
failover and updating standbys to follow the new primary, as well as
providing monitoring information about the state of each standby.