mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-25 16:16:29 +00:00
doc: document "failover_validation_command"
This commit is contained in:
@@ -198,6 +198,20 @@
|
|||||||
</para>
|
</para>
|
||||||
<variablelist>
|
<variablelist>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
|
||||||
|
<indexterm>
|
||||||
|
<primary>monitor_interval_secs</primary>
|
||||||
|
</indexterm>
|
||||||
|
<term><option>monitor_interval_secs</option></term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
The interval (in seconds, default: <literal>2</literal>) to check the availability of the upstream node.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
|
|
||||||
<indexterm>
|
<indexterm>
|
||||||
@@ -229,6 +243,38 @@
|
|||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<indexterm>
|
||||||
|
<primary>failover_validation_command</primary>
|
||||||
|
</indexterm>
|
||||||
|
<term><option>failover_validation_command</option></term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
User-defined script to execute for an external mechanism to validate the failover
|
||||||
|
decision made by <application>repmgrd</application>.
|
||||||
|
</para>
|
||||||
|
<note>
|
||||||
|
<para>
|
||||||
|
This optiom <emphasis>must</emphasis> be identically configurered
|
||||||
|
on all nodes.
|
||||||
|
</para>
|
||||||
|
</note>
|
||||||
|
<para>
|
||||||
|
One or both of the following parameter placeholders
|
||||||
|
should be provided, which will be replaced by repmgrd with the appropriate
|
||||||
|
value:
|
||||||
|
<itemizedlist spacing="compact" mark="bullet">
|
||||||
|
<listitem>
|
||||||
|
<simpara><literal>%n</literal>: node ID</simpara>
|
||||||
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<simpara><literal>%a</literal>: node name</simpara>
|
||||||
|
</listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
</variablelist>
|
</variablelist>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
@@ -310,10 +356,8 @@ repmgrd_service_stop_command='sudo systemctl repmgr11 stop'
|
|||||||
in <filename>repmgr.conf</filename>.
|
in <filename>repmgr.conf</filename>.
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
The default monitoring interval is 2 seconds; this value can be explicitly set using:
|
Monitoring data is written at the interval defined by
|
||||||
<programlisting>
|
the option <option>monitor_interval_secs</option> (see above).
|
||||||
monitor_interval_secs=<seconds></programlisting>
|
|
||||||
in <filename>repmgr.conf</filename>.
|
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
For more details on monitoring, see <xref linkend="repmgrd-monitoring">.
|
For more details on monitoring, see <xref linkend="repmgrd-monitoring">.
|
||||||
|
|||||||
Reference in New Issue
Block a user