"daemon status": display node priority

GitHub #541.
This commit is contained in:
Ian Barwick
2019-02-07 14:33:47 +09:00
parent 8aaf6571a0
commit 5d6037303b
2 changed files with 45 additions and 23 deletions

View File

@@ -49,31 +49,31 @@
<para>
<application>repmgrd</application> running normally on all nodes:
<programlisting>$ repmgr -f /etc/repmgr.conf daemon status
ID | Name | Role | Status | repmgrd | PID | Paused?
----+-------+---------+---------+---------+------+---------
1 | node1 | primary | running | running | 7851 | no
2 | node2 | standby | running | running | 7889 | no
3 | node3 | standby | running | running | 7918 | no</programlisting>
ID | Name | Role | Priority | Status | repmgrd | PID | Paused?
----+-------+---------+----------+---------+---------+------+---------
1 | node1 | primary | 100 | running | running | 5722 | no
2 | node2 | standby | 100 | running | running | 5731 | no
3 | node3 | standby | 100 | running | running | 5779 | no</programlisting>
</para>
<para>
<application>repmgrd</application> paused on all nodes (using <xref linkend="repmgr-daemon-pause">):
<programlisting>$ repmgr -f /etc/repmgr.conf daemon status
ID | Name | Role | Status | repmgrd | PID | Paused?
----+-------+---------+---------+---------+------+---------
1 | node1 | primary | running | running | 7851 | yes
2 | node2 | standby | running | running | 7889 | yes
3 | node3 | standby | running | running | 7918 | yes</programlisting>
ID | Name | Role | Priority | Status | repmgrd | PID | Paused?
----+-------+---------+----------+---------+---------+------+---------
1 | node1 | primary | 100 | running | running | 5722 | yes
2 | node2 | standby | 100 | running | running | 5731 | yes
3 | node3 | standby | 100 | running | running | 5779 | yes</programlisting>
</para>
<para>
<application>repmgrd</application> not running on one node:
<programlisting>$ repmgr -f /etc/repmgr.conf daemon status
ID | Name | Role | Status | repmgrd | PID | Paused?
----+-------+---------+---------+-------------+------+---------
1 | node1 | primary | running | running | 7851 | yes
2 | node2 | standby | running | not running | n/a | n/a
3 | node3 | standby | running | running | 7918 | yes</programlisting>
ID | Name | Role | Priority | Status | repmgrd | PID | Paused?
----+-------+---------+----------+---------+-------------+------+---------
1 | node1 | primary | 100 | running | running | 5722 | yes
2 | node2 | standby | 100 | running | not running | n/a | n/a
3 | node3 | standby | 100 | running | running | 5779 | yes</programlisting>
</para>
</refsect1>
@@ -92,9 +92,9 @@
parsing by scripts, e.g.:
<programlisting>
$ repmgr -f /etc/repmgr.conf daemon status --csv
1,node1,primary,1,1,10204,1
2,node2,standby,1,0,-1,1
3,node3,standby,1,1,10225,1</programlisting>
1,node1,primary,1,1,5722,1,100
2,node2,standby,1,0,-1,1,100
3,node3,standby,1,1,5779,1,100</programlisting>
</para>
<para>
The columns have following meanings:
@@ -141,6 +141,12 @@
</simpara>
</listitem>
<listitem>
<simpara>
<application>repmgrd</application> priority
</simpara>
</listitem>
</itemizedlist>
</para>
</listitem>