Chapter 11. repmgrd overview
repmgrd ("replication manager daemon")
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.
repmgrd is designed to be straightforward to set up
and does not require additional external infrastructure.
Functionality provided by repmgrd includes:
- wide range of configuration options
- option to execute custom scripts ("event notifications
at different points in the failover sequence
- ability to pause repmgrd
operation on all nodes with a
single command
- optional witness server
- "location" configuration option to restrict
potential promotion candidates to a single location
(e.g. when nodes are spread over multiple data centres)
- choice of method to determine node availability
(PostgreSQL ping, query execution or new connection)
- retention of monitoring statistics (optional)