diff --git a/doc/cloning-standbys.sgml b/doc/cloning-standbys.sgml index fd7b0619..a202686a 100644 --- a/doc/cloning-standbys.sgml +++ b/doc/cloning-standbys.sgml @@ -356,7 +356,7 @@ By default, pg_basebackup performs a checkpoint before beginning the backup process. However, a normal checkpoint may take some time to complete; a fast checkpoint can be forced with the -c/--fast-checkpoint option. - However this may impact performance of the server being cloned from (typically the primary) + Note that this may impact performance of the server being cloned from (typically the primary) so should be used with care. @@ -384,11 +384,16 @@ Managing passwords + + cloning + using passwords + + If replication connections to a standby's upstream server are password-protected, - the standby must be able to provide the password so it can begin streaming - replication. + the standby must be able to provide the password so it can begin streaming replication. + The recommended way to do this is to store the password in the postgres system user's ~/.pgpass file. It's also possible to store the password in the @@ -396,6 +401,17 @@ security reasons. For more details see the PostgreSQL password file documentation. + + + + If using a pgpass file, an entry for the replication user (by default the + user who connects to the repmgr database) must + be provided, with database name set to replication, e.g.: + + node1:5432:replication:repmgr:12345 + + + If, for whatever reason, you wish to include the password in recovery.conf, set use_primary_conninfo_password to true in @@ -407,8 +423,7 @@ It is of course also possible to include the password value in the conninfo - string for each node, but this is obviously a security risk and should be - avoided. + string for each node, but this is obviously a security risk and should be avoided. From PostgreSQL 9.6, libpq supports the passfile diff --git a/doc/repmgr-standby-clone.sgml b/doc/repmgr-standby-clone.sgml index 9ac9daab..96da6ce4 100644 --- a/doc/repmgr-standby-clone.sgml +++ b/doc/repmgr-standby-clone.sgml @@ -25,9 +25,11 @@ repmgr standby clone does not start the standby, and after cloning - repmgr standby register must be executed to notify &repmgr; of its presence. + a standby, the command repmgr standby register must be executed to + notify &repmgr; of its existence. + @@ -321,5 +323,11 @@ + + See also + + See for details about various aspects of cloning. + +