doc: update child node monitoring documentation

This commit is contained in:
Ian Barwick
2019-06-03 16:04:17 +09:00
parent 20d710e34c
commit e8731f8159
2 changed files with 77 additions and 1 deletions

View File

@@ -500,6 +500,20 @@ INFO: node 3 received notification to rerun promotion candidate election
is connected). Alternatively, if <varname>child_nodes_disconnect_min_count</varname> is connected). Alternatively, if <varname>child_nodes_disconnect_min_count</varname>
and more than that number of child nodes disconnects, the script will be triggered. and more than that number of child nodes disconnects, the script will be triggered.
</para> </para>
<note>
<para>
By default, a witness node, if in use, will <emphasis>not</emphasis> be counted as a
child node for the purposes of determining whether to execute
<varname>child_nodes_disconnect_command</varname>.
</para>
<para>
To enable the witness node to be counted as a child node, set
<varname>child_nodes_connected_include_witness</varname> in <filename>repmgr.conf</filename>
to <literal>true</literal>
(and <link linkend="repmgrd-reloading-configuration">reload the configuration</link> if &repmgrd;
is running).
</para>
</note>
</listitem> </listitem>
<listitem> <listitem>
@@ -729,7 +743,10 @@ INFO: node 3 received notification to rerun promotion candidate election
the <varname>child_nodes_disconnect_command</varname> script the <varname>child_nodes_disconnect_command</varname> script
will be executed when no child nodes are connected. will be executed when no child nodes are connected.
</para> </para>
<para>
A witness node, if in use, will not be counted as a child node unless
<varname>child_nodes_connected_include_witness</varname> is set to <literal>true</literal>.
</para>
</listitem> </listitem>
</varlistentry> </varlistentry>
@@ -765,9 +782,33 @@ INFO: node 3 received notification to rerun promotion candidate election
will be executed when no child nodes are connected. will be executed when no child nodes are connected.
</para> </para>
<para>
A witness node, if in use, will not be counted as a child node unless
<varname>child_nodes_connected_include_witness</varname> is set to <literal>true</literal>.
</para>
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry>
<term><varname>child_nodes_connected_include_witness</varname></term>
<listitem>
<indexterm>
<primary>child_nodes_connected_include_witness</primary>
<secondary>child node disconnection monitoring</secondary>
</indexterm>
<para>
Whether to count the witness node (if in use) as a child node when
determining whether to execute <varname>child_nodes_disconnect_command</varname>.
</para>
<para>
Default to <literal>false</literal>.
</para>
</listitem>
</varlistentry>
</variablelist> </variablelist>
</sect2> </sect2>

View File

@@ -602,6 +602,41 @@ repmgrd_service_stop_command='sudo systemctl repmgr11 stop'
</simpara> </simpara>
</listitem> </listitem>
<listitem>
<simpara>
<varname>child_nodes_check_interval</varname>
</simpara>
</listitem>
<listitem>
<simpara>
<varname>child_nodes_connected_include_witness</varname>
</simpara>
</listitem>
<listitem>
<simpara>
<varname>child_nodes_connected_min_count</varname>
</simpara>
</listitem>
<listitem>
<simpara>
<varname>child_nodes_disconnect_command</varname>
</simpara>
</listitem>
<listitem>
<simpara>
<varname>child_nodes_disconnect_min_count</varname>
</simpara>
</listitem>
<listitem>
<simpara>
<varname>child_nodes_disconnect_timeout</varname>
</simpara>
</listitem>
<listitem> <listitem>
<simpara> <simpara>