repmgr is a replication management tool developed by 2ndQuadrant. Originally, it was mainly intended to simplify the management of streaming replicas but has since evolved into a full failover management suite.
Up until now, we've performed a great deal of preliminary work. We know the proper settings, we can create replicas in our sleep, and we have all the skills necessary to troubleshoot and fix a misbehaving server or two. Yet we're still missing at least one critical element to truly achieve high availability: automation.
Many of the recipes in previous chapters cover utilities that are almost automated. We learned how to manage access abstraction in Chapter 4, Proxy and Pooling Resources, for example. Chapter 7, PostgreSQL Replication, got us even further, giving us the necessary tools to maintain a veritable army of alternate servers...