From f3c3320a9ca80d74ab03531780fac0edf9e6acc4 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Mon, 7 Oct 2019 18:27:38 +0900 Subject: [PATCH] doc: update examples in quickstart guide --- doc/quickstart.xml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/doc/quickstart.xml b/doc/quickstart.xml index e89ffa50..15d736a1 100644 --- a/doc/quickstart.xml +++ b/doc/quickstart.xml @@ -254,7 +254,7 @@ node_id=1 - node_name=node1 + node_name='node1' conninfo='host=node1 user=repmgr dbname=repmgr connect_timeout=2' data_directory='/var/lib/postgresql/data' @@ -265,7 +265,6 @@ server. See sections and for further details about repmgr.conf. - &repmgr; only uses when it executes @@ -368,7 +367,7 @@ node_id=2 - node_name=node2 + node_name='node2' conninfo='host=node2 user=repmgr dbname=repmgr connect_timeout=2' data_directory='/var/lib/postgresql/data' @@ -478,6 +477,8 @@ latest_end_lsn | 0/7000538 latest_end_time | 2017-08-28 15:20:56.418735+09 slot_name | + sender_host | node1 + sender_port | 5432 conninfo | user=repmgr dbname=replication host=node1 application_name=node2 Note that the conninfo value is that generated in recovery.conf @@ -497,11 +498,12 @@ Check the node is registered by executing repmgr cluster show on the standby: - $ repmgr -f /etc/repmgr.conf cluster show - ID | Name | Role | Status | Upstream | Location | Connection string - ----+-------+---------+-----------+----------+----------+-------------------------------------- - 1 | node1 | primary | * running | | default | host=node1 dbname=repmgr user=repmgr - 2 | node2 | standby | running | node1 | default | host=node2 dbname=repmgr user=repmgr + $ repmgr -f /etc/repmgr.conf cluster show + + ID | Name | Role | Status | Upstream | Location | Priority | Timeline | Connection string + ----+-------+---------+-----------+----------+----------+----------+----------+-------------------------------------- + 1 | node1 | primary | * running | | default | 100 | 1 | host=node1 dbname=repmgr user=repmgr + 2 | node2 | standby | running | node1 | default | 100 | 1 | host=node2 dbname=repmgr user=repmgr Both nodes are now registered with &repmgr; and the records have been copied to the standby server.