repmgr configurationconfigurationprerequisitesconfigurationsshPrerequisites for configuration
Following software must be installed on both servers:
PostgreSQLrepmgr
At network level, connections between the PostgreSQL port (default: 5432)
must be possible between all nodes.
Passwordless SSH connectivity between all servers in the replication cluster
is not required, but is necessary in the following cases:
if you need &repmgr; to copy configuration files from outside the PostgreSQL
data directory (as is the case with e.g. Debian packages);
in this case rsync must also be installed on all servers.
to perform switchover operations
when executing repmgr cluster matrix
and repmgr cluster crosscheck
Consider setting ConnectTimeout to a low value in your SSH configuration.
This will make it faster to detect any SSH connection errors.
&configuration-file;
&configuration-file-required-settings;
&configuration-file-log-settings;
&configuration-file-service-commands;
configurationdatabase user permissionsrepmgr database user permissions
&repmgr; will create an extension database containing objects
for administering &repmgr; metadata. The user defined in the conninfo
setting must be able to access all objects. Additionally, superuser permissions
are required to install the &repmgr; extension. The easiest way to do this
is create the &repmgr; user as a superuser, however if this is not
desirable, the &repmgr; user can be created as a normal user and a
superuser specified with --superuser when registering a &repmgr; node.