repmgr 3.0.2 released
What is repmgr?
repmgr is an open source package which greatly simplifies the process of setting up and managing replication using streaming replication within a cluster of PostgreSQL servers. Taking advantage of features introduced since PostgreSQL 9.3, repmgr builds on PostgreSQL's core functionality to provide a smooth, user-friendly way of working with the complexities of replication and failover management in high-availability environments.
repmgr consists of two core tools - the repmgr command line interface, which provides functionality for adminstering replication such as cloning standby servers, and repmgrd, a background daemon which monitors nodes in a replication cluster and provides automatic failover support.
The current repmgr major version, 3.0, introduces a number of new features which further simplify replication administration:
- Standby cloning with pg_basebackup
- Timeline following:
- a standby can be promoted to a master without requiring a restart
- other standbys can connect to the new master without being resynced
- Cascading standby support
- Standbys not directly connected to the master node are not affected during failover of the master to another standby mode
- Replication slot support (PostgreSQL 9.4 and later), simplifying WAL retention management
Additionally many usability improvements have been made based on user feedback, including
better error reporting, removing the requirement to set
pg_bindir if PostgreSQL
binaries are in the default path, and a command line option to examine a server's
configuration and report any changes required for setting up replication.
Note that repmgr 3.0.2 supports PostgreSQL 9.3 and later only.
Changes in release 3.0.2
See the repmgr 3.0 release notes for information about the main changes in the repmgr 3.0 series.
repmgr witness createno longer requires the
-l/--local-portoption to specify a non-default port; repmgr will extract the port information from the conninfo parameter in repmgr.conf
- Tablespace remapping in rsync mode supported in PostgreSQL 9.5 and later
repmgr witness create --forcewill overwrite the specified data directory
repmgr master registerhandling improved
-?/--helpoutput and handling of
- Better handling of a situation where the specified logfile can't be opened
- Always pass
-D/--pgdataoption to pg_basebackup
repmgr standby clone --forceempties pg_xlog
- Comments after values in repmgr.conf will be ignored
repmgr standby followcorrectly updates metadata
- Fix to tablespace mapping option when used with PostgreSQL 9.3
- Documentation and logging fixes
-D/--data-dir's long option (was historically
New or altered command line options (repmgr)
- New repmgr command
UNREGISTER STANDBYto remove a standby's metadata from the repmgr database
PRIMARYis now an alias for
repmgr primary register
-l/--local-portis deprecated (see above for details)
Community and development
repmgr is free and open source software and is licensed under the GPLv3.
Contributions to repmgr are welcome. See CONTRIBUTING.md for information about how to contribute.