mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 16:46:28 +00:00
doc: update examples in quickstart guide
This commit is contained in:
@@ -254,7 +254,7 @@
|
|||||||
</para>
|
</para>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
node_id=1
|
node_id=1
|
||||||
node_name=node1
|
node_name='node1'
|
||||||
conninfo='host=node1 user=repmgr dbname=repmgr connect_timeout=2'
|
conninfo='host=node1 user=repmgr dbname=repmgr connect_timeout=2'
|
||||||
data_directory='/var/lib/postgresql/data'
|
data_directory='/var/lib/postgresql/data'
|
||||||
</programlisting>
|
</programlisting>
|
||||||
@@ -265,7 +265,6 @@
|
|||||||
server. See sections <xref linkend="configuration"/> and <xref linkend="configuration-file"/>
|
server. See sections <xref linkend="configuration"/> and <xref linkend="configuration-file"/>
|
||||||
for further details about <filename>repmgr.conf</filename>.
|
for further details about <filename>repmgr.conf</filename>.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<note>
|
<note>
|
||||||
<para>
|
<para>
|
||||||
&repmgr; only uses <option>pg_bindir</option> when it executes
|
&repmgr; only uses <option>pg_bindir</option> when it executes
|
||||||
@@ -368,7 +367,7 @@
|
|||||||
</para>
|
</para>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
node_id=2
|
node_id=2
|
||||||
node_name=node2
|
node_name='node2'
|
||||||
conninfo='host=node2 user=repmgr dbname=repmgr connect_timeout=2'
|
conninfo='host=node2 user=repmgr dbname=repmgr connect_timeout=2'
|
||||||
data_directory='/var/lib/postgresql/data'</programlisting>
|
data_directory='/var/lib/postgresql/data'</programlisting>
|
||||||
<para>
|
<para>
|
||||||
@@ -478,6 +477,8 @@
|
|||||||
latest_end_lsn | 0/7000538
|
latest_end_lsn | 0/7000538
|
||||||
latest_end_time | 2017-08-28 15:20:56.418735+09
|
latest_end_time | 2017-08-28 15:20:56.418735+09
|
||||||
slot_name |
|
slot_name |
|
||||||
|
sender_host | node1
|
||||||
|
sender_port | 5432
|
||||||
conninfo | user=repmgr dbname=replication host=node1 application_name=node2
|
conninfo | user=repmgr dbname=replication host=node1 application_name=node2
|
||||||
</programlisting>
|
</programlisting>
|
||||||
Note that the <varname>conninfo</varname> value is that generated in <filename>recovery.conf</filename>
|
Note that the <varname>conninfo</varname> value is that generated in <filename>recovery.conf</filename>
|
||||||
@@ -497,11 +498,12 @@
|
|||||||
<para>
|
<para>
|
||||||
Check the node is registered by executing <command>repmgr cluster show</command> on the standby:
|
Check the node is registered by executing <command>repmgr cluster show</command> on the standby:
|
||||||
<programlisting>
|
<programlisting>
|
||||||
$ repmgr -f /etc/repmgr.conf cluster show
|
$ repmgr -f /etc/repmgr.conf cluster show
|
||||||
ID | Name | Role | Status | Upstream | Location | Connection string
|
|
||||||
----+-------+---------+-----------+----------+----------+--------------------------------------
|
ID | Name | Role | Status | Upstream | Location | Priority | Timeline | 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</programlisting>
|
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</programlisting>
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
Both nodes are now registered with &repmgr; and the records have been copied to the standby server.
|
Both nodes are now registered with &repmgr; and the records have been copied to the standby server.
|
||||||
|
|||||||
Reference in New Issue
Block a user