Doc: update the example output of pcp_watchdog_info.
authorBo Peng <pengbo@sraoss.co.jp>
Thu, 28 Apr 2022 09:03:10 +0000 (18:03 +0900)
committerBo Peng <pengbo@sraoss.co.jp>
Thu, 28 Apr 2022 09:03:10 +0000 (18:03 +0900)
doc.ja/src/sgml/ref/pcp_watchdog_info.sgml
doc/src/sgml/ref/pcp_watchdog_info.sgml

index 9431f2430b97c9c3b3f4d286f4c783d2a03cd171..28cb706f6c59a7ad21b4aaec1e6d70f94c069422 100644 (file)
@@ -129,13 +129,13 @@ Pgpool-II documentation
    -->
    ここでは,出力例を示します。
    <programlisting>
-    $ pcp_watchdog_info -h localhost -U postgres
+$ pcp_watchdog_info -h localhost -p 9898 -U postgres 
+Password:
+3 3 YES server1:9999 Linux server1.localdomain server1
 
-    3 NO Linux_host1.localdomain_9991 host1
-
-    Linux_host1.localdomain_9991 host1 9991 9001 7 STANDBY
-    Linux_host2.localdomain_9992 host2 9992 9002 4 LEADER
-    Linux_host3.localdomain_9993 host3 9993 9003 7 STANDBY
+server1:9999 Linux server1.localdomain server1 9999 9000 4 LEADER
+server2:9999 Linux server2.localdomain server2 9999 9000 7 STANDBY
+server3:9999 Linux server3.localdomain server3 9999 9000 7 STANDBY
    </programlisting>
   </para>
   <para>
@@ -188,44 +188,44 @@ Pgpool-II documentation
    <option>verbose</option> モードは結果の詳細を表示できます。例えば:
   </para>
   <programlisting>
-   $ pcp_watchdog_info -h localhost -v -U postgres
-
-   Watchdog Cluster Information
-   Total Nodes          : 3
-   Remote Nodes         : 2
-   Quorum state         : QUORUM EXIST
-   Alive Remote Nodes   : 2
-   VIP up on local node : NO
-   Leader Node Name     : Linux_host2.localdomain_9992
-   Leader Host Name     : localhost
-
-   Watchdog Node Information
-   Node Name      : Linux_host1.localdomain_9991
-   Host Name      : host1
-   Delegate IP    : 192.168.1.10
-   Pgpool port    : 9991
-   Watchdog port  : 9001
-   Node priority  : 1
-   Status         : 7
-   Status Name    : STANDBY
-
-   Node Name      : Linux_host2.localdomain_9992
-   Host Name      : host2
-   Delegate IP    : 192.168.1.10
-   Pgpool port    : 9992
-   Watchdog port  : 9002
-   Node priority  : 1
-   Status         : 4
-   Status Name    : LEADER
-
-   Node Name      : Linux_host3.localdomain_9993
-   Host Name      : host3
-   Delegate IP    : 192.168.1.10
-   Pgpool port    : 9993
-   Watchdog port  : 9003
-   Node priority  : 1
-   Status         : 7
-   Status Name    : STANDBY
+$ pcp_watchdog_info -h localhost -p 9898 -U pgpool -v
+Password:
+Watchdog Cluster Information 
+Total Nodes          : 3
+Remote Nodes         : 2
+Quorum state         : QUORUM EXIST
+Alive Remote Nodes   : 2
+Local node escalation: YES
+Leader Node Name     : server1:9999 Linux server1.localdomain
+Leader Host Name     : server1
+
+Watchdog Node Information 
+Node Name      : server1:9999 Linux server1.localdomain
+Host Name      : server1
+Delegate IP    : 192.168.56.150
+Pgpool port    : 9999
+Watchdog port  : 9000
+Node priority  : 1
+Status         : 4
+Status Name    : LEADER
+
+Node Name      : server2:9999 Linux server2.localdomain
+Host Name      : server2
+Delegate IP    : 192.168.56.150
+Pgpool port    : 9999
+Watchdog port  : 9000
+Node priority  : 1
+Status         : 7
+Status Name    : STANDBY
+
+Node Name      : server3:9999 Linux server3.localdomain
+Host Name      : server3
+Delegate IP    : 192.168.56.150
+Pgpool port    : 9999
+Watchdog port  : 9000
+Node priority  : 1
+Status         : 7
+Status Name    : STANDBY
   </programlisting>
  </refsect1>
 
index 5c1ae216a5d5837b9f488074b83664e25252b8ef..4f0e7f720252468e09d5a29a397a2db9eb112eff 100644 (file)
@@ -74,13 +74,13 @@ Pgpool-II documentation
   <para>
    Here is an example output:
    <programlisting>
-    $ pcp_watchdog_info -h localhost -U postgres
+$ pcp_watchdog_info -h localhost -p 9898 -U postgres 
+Password:
+3 3 YES server1:9999 Linux server1.localdomain server1
 
-    3 NO Linux_host1.localdomain_9991 host1
-
-    Linux_host1.localdomain_9991 host1 9991 9001 7 STANDBY
-    Linux_host2.localdomain_9992 host2 9992 9002 4 LEADER
-    Linux_host3.localdomain_9993 host3 9993 9003 7 STANDBY
+server1:9999 Linux server1.localdomain server1 9999 9000 4 LEADER
+server2:9999 Linux server2.localdomain server2 9999 9000 7 STANDBY
+server3:9999 Linux server3.localdomain server3 9999 9000 7 STANDBY
    </programlisting>
   </para>
   <para>
@@ -108,44 +108,44 @@ Pgpool-II documentation
    The <option>--verbose</option> option can help understand the output. For example:
   </para>
   <programlisting>
-   $ pcp_watchdog_info -h localhost -v -U postgres
-
-   Watchdog Cluster Information
-   Total Nodes          : 3
-   Remote Nodes         : 2
-   Quorum state         : QUORUM EXIST
-   Alive Remote Nodes   : 2
-   Local node escalation: NO
-   Leader Node Name     : Linux_host2.localdomain_9992
-   Leader Host Name     : localhost
-
-   Watchdog Node Information
-   Node Name      : Linux_host1.localdomain_9991
-   Host Name      : host1
-   Delegate IP    : 192.168.1.10
-   Pgpool port    : 9991
-   Watchdog port  : 9001
-   Node priority  : 1
-   Status         : 7
-   Status Name    : STANDBY
-
-   Node Name      : Linux_host2.localdomain_9992
-   Host Name      : host2
-   Delegate IP    : 192.168.1.10
-   Pgpool port    : 9992
-   Watchdog port  : 9002
-   Node priority  : 1
-   Status         : 4
-   Status Name    : LEADER
-
-   Node Name      : Linux_host3.localdomain_9993
-   Host Name      : host3
-   Delegate IP    : 192.168.1.10
-   Pgpool port    : 9993
-   Watchdog port  : 9003
-   Node priority  : 1
-   Status         : 7
-   Status Name    : STANDBY
+$ pcp_watchdog_info -h localhost -p 9898 -U pgpool -v
+Password:
+Watchdog Cluster Information 
+Total Nodes          : 3
+Remote Nodes         : 2
+Quorum state         : QUORUM EXIST
+Alive Remote Nodes   : 2
+Local node escalation: YES
+Leader Node Name     : server1:9999 Linux server1.localdomain
+Leader Host Name     : server1
+
+Watchdog Node Information 
+Node Name      : server1:9999 Linux server1.localdomain
+Host Name      : server1
+Delegate IP    : 192.168.56.150
+Pgpool port    : 9999
+Watchdog port  : 9000
+Node priority  : 1
+Status         : 4
+Status Name    : LEADER
+
+Node Name      : server2:9999 Linux server2.localdomain
+Host Name      : server2
+Delegate IP    : 192.168.56.150
+Pgpool port    : 9999
+Watchdog port  : 9000
+Node priority  : 1
+Status         : 7
+Status Name    : STANDBY
+
+Node Name      : server3:9999 Linux server3.localdomain
+Host Name      : server3
+Delegate IP    : 192.168.56.150
+Pgpool port    : 9999
+Watchdog port  : 9000
+Node priority  : 1
+Status         : 7
+Status Name    : STANDBY
   </programlisting>
  </refsect1>