Chapter 12. Automatic failover with repmgrd

Table of Contents

12.1. Using a witness server
12.1.1. Creating a witness server
12.2. Handling network splits with repmgrd
12.3. Primary visibility consensus
12.4. Standby disconnection on failover
12.5. Failover validation
12.6. repmgrd and cascading replication
12.7. Monitoring standby disconnections on the primary node
12.7.1. Standby disconnections monitoring process and criteria
12.7.2. Standby disconnections monitoring process example
12.7.3. Standby disconnections monitoring caveats
12.7.4. Standby disconnections monitoring process configuration
12.7.5. Standby disconnections monitoring process event notifications

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.