mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 17:06:29 +00:00
Formatting fixes
This commit is contained in:
@@ -123,6 +123,7 @@ For the purposes of this guide, we'll assume the database user will be
|
|||||||
``repmgr_usr`` and the database will be ``repmgr_db``, and that the following
|
``repmgr_usr`` and the database will be ``repmgr_db``, and that the following
|
||||||
environment variables are set on each node:
|
environment variables are set on each node:
|
||||||
|
|
||||||
|
|
||||||
- $HOME: the PostgreSQL system user's home directory
|
- $HOME: the PostgreSQL system user's home directory
|
||||||
- $PGDATA: the PostgreSQL data directory
|
- $PGDATA: the PostgreSQL data directory
|
||||||
|
|
||||||
@@ -134,15 +135,15 @@ Master setup
|
|||||||
|
|
||||||
- create user and database::
|
- create user and database::
|
||||||
|
|
||||||
CREATE ROLE repmgr_usr LOGIN SUPERUSER;
|
CREATE ROLE repmgr_usr LOGIN SUPERUSER;
|
||||||
CREATE DATABASE repmgr_db OWNER repmgr_usr;
|
CREATE DATABASE repmgr_db OWNER repmgr_usr;
|
||||||
|
|
||||||
- configure postgresql.conf for replication (see above)
|
- configure postgresql.conf for replication (see above)
|
||||||
|
|
||||||
- update pg_hba.conf::
|
- update pg_hba.conf::
|
||||||
|
|
||||||
host repmgr_usr repmgr_db 192.168.1.0/24 trust
|
host repmgr_usr repmgr_db 192.168.1.0/24 trust
|
||||||
host replication all 192.168.1.0/24 trust
|
host replication all 192.168.1.0/24 trust
|
||||||
|
|
||||||
Restart the PostgreSQL server after making these changes.
|
Restart the PostgreSQL server after making these changes.
|
||||||
|
|
||||||
@@ -260,7 +261,7 @@ Other standby servers need to be told to follow the new master with::
|
|||||||
|
|
||||||
repmgr -f $HOME/repmgr/repmgr.conf --verbose standby follow
|
repmgr -f $HOME/repmgr/repmgr.conf --verbose standby follow
|
||||||
|
|
||||||
See file ``autofailover_quick_setup.rst`` for information on how to set up
|
See file ``autofailover_quick_setup.rst`` for details on setting up
|
||||||
automated failover.
|
automated failover.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user