mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-25 16:16:29 +00:00
Various documentation updates
This commit is contained in:
@@ -996,6 +996,13 @@ both passwordless SSH access and the path of `repmgr.conf` on that server.
|
|||||||
> careful preparation and with adequate attention. In particular you should
|
> careful preparation and with adequate attention. In particular you should
|
||||||
> be confident that your network environment is stable and reliable.
|
> be confident that your network environment is stable and reliable.
|
||||||
>
|
>
|
||||||
|
> Additionally you should be sure that the current master can be shut down
|
||||||
|
> quickly and cleanly. In particular, access from applications should be
|
||||||
|
> minimalized or preferably blocked completely. Also check that there is
|
||||||
|
> no backlog of files waiting to be archived, as PostgreSQL will not shut
|
||||||
|
> down until archiving completes, and that any standbys attached to the
|
||||||
|
> current primary don't have a significant amount of replication lag.
|
||||||
|
>
|
||||||
> We recommend running `repmgr standby switchover` at the most verbose
|
> We recommend running `repmgr standby switchover` at the most verbose
|
||||||
> logging level (`--log-level DEBUG --verbose`) and capturing all output
|
> logging level (`--log-level DEBUG --verbose`) and capturing all output
|
||||||
> to assist troubleshooting any problems.
|
> to assist troubleshooting any problems.
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ The actual script is as follows; adjust the configurable items as appropriate:
|
|||||||
|
|
||||||
psql -d $REPMGR_DB -U $REPMGR_USER -t -A \
|
psql -d $REPMGR_DB -U $REPMGR_USER -t -A \
|
||||||
-c "SELECT '${PGBOUNCER_DATABASE}-ro= ' || conninfo || ' application_name=pgbouncer_${HOST}' \
|
-c "SELECT '${PGBOUNCER_DATABASE}-ro= ' || conninfo || ' application_name=pgbouncer_${HOST}' \
|
||||||
FROM $REPMGR_SCHEMA.repl_nodes \
|
FROM ${REPMGR_SCHEMA}.repl_nodes \
|
||||||
WHERE node_name='${HOST}'" >> $PGBOUNCER_DATABASE_INI_NEW
|
WHERE node_name='${HOST}'" >> $PGBOUNCER_DATABASE_INI_NEW
|
||||||
|
|
||||||
rsync $PGBOUNCER_DATABASE_INI_NEW $HOST:$PGBOUNCER_DATABASE_INI
|
rsync $PGBOUNCER_DATABASE_INI_NEW $HOST:$PGBOUNCER_DATABASE_INI
|
||||||
|
|||||||
Reference in New Issue
Block a user