Document "replication_user" configuration file parameter.

This commit is contained in:
Ian Barwick
2017-08-31 17:29:09 +09:00
parent 04c9779561
commit 1517c06bb1
3 changed files with 19 additions and 4 deletions

View File

@@ -748,6 +748,16 @@ 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.
### Separate replication user
In some circumstances it might be desirable to create a dedicated replication-only
user (in addition to the user who manages the `repmgr` metadata. In this case,
the replication user should be set in `repmgr.conf` via the parameter
`replication_user`; `repmgr` will use this value when making replication connections
and generating `recovery.conf`. This value will also be stored in the `repmgr.nodes`
table for each node; it no longer needs to be explicitly specified when
cloning a node or executing `repmgr standby follow`.
Setting up cascading replication with repmgr
--------------------------------------------

View File

@@ -25,10 +25,10 @@ Changed command line options
### repmgr
- `--replication-user` is now passed when registering the master server (and
optionally when registering a standby), *not* during standby clone/follow.
The value (defaults to the user in the conninfo string) will be stored in
the repmgr metadata for use by standby clone/follow..
- `--replication-user` has been deprecated; it has been replaced by the
configuration file option `replication_user`. The value (which defaults
to the user in the `conninfo` string) will be stored in the repmgr metadata
for use by standby clone/follow..
- `--recovery-min-apply-delay` is now a configuration file parameter
`recovery_min_apply_delay, to ensure the setting does not get lost when

View File

@@ -40,6 +40,9 @@
# is not running and there's no other way of determining
# the data directory.
#replication_user # User to make replication connections with, if not set defaults
# to the user defined in "conninfo".
# =============================================================================
# Optional configuration items
@@ -65,6 +68,8 @@
#recovery_min_apply_delay= # Ff provided, "recovery_min_apply_delay" in recovery.conf
# will be set to this value.
#------------------------------------------------------------------------------
# Logging settings
#------------------------------------------------------------------------------