mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 16:46:28 +00:00
doc: document new parameters for "failover_validation_command"
This commit is contained in:
4
HISTORY
4
HISTORY
@@ -1,7 +1,9 @@
|
|||||||
5.2.0 2020-??-??
|
5.2.0 2020-??-??
|
||||||
repmgr: improve database connection failure error checking on the
|
repmgr: improve database connection failure error checking on the
|
||||||
demotion candidate during "standby switchover" (Ian)
|
demotion candidate during "standby switchover" (Ian)
|
||||||
repmgr: add option --verify-backup to "standby clone"
|
repmgr: add option --verify-backup to "standby clone" (Ian)
|
||||||
|
repmgrd: add additional optional parameters to "failover_validation command"
|
||||||
|
(spaskalev; GitHub #651)
|
||||||
|
|
||||||
5.1.0 2020-04-13
|
5.1.0 2020-04-13
|
||||||
repmgr: remove BDR 2.x support
|
repmgr: remove BDR 2.x support
|
||||||
|
|||||||
@@ -45,6 +45,38 @@
|
|||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</para>
|
</para>
|
||||||
</sect2>
|
</sect2>
|
||||||
|
<sect2>
|
||||||
|
<title>repmgrd enhancements</title>
|
||||||
|
<para>
|
||||||
|
<itemizedlist>
|
||||||
|
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Following additional parameters can be provided to <varname>failover_validation_command</varname>:
|
||||||
|
<itemizedlist spacing="compact" mark="bullet">
|
||||||
|
<listitem>
|
||||||
|
<simpara><literal>%n</literal>: node ID</simpara>
|
||||||
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<simpara><literal>%a</literal>: node name</simpara>
|
||||||
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<simpara><literal>%v</literal>: number of visible nodes</simpara>
|
||||||
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<simpara><literal>%u</literal>: number of shared upstream nodes</simpara>
|
||||||
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<simpara><literal>%t</literal>: total number of nodes</simpara>
|
||||||
|
</listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
</para>
|
||||||
|
</sect2>
|
||||||
|
|
||||||
</sect1>
|
</sect1>
|
||||||
|
|
||||||
<sect1 id="release-5.1.0">
|
<sect1 id="release-5.1.0">
|
||||||
|
|||||||
@@ -331,11 +331,12 @@
|
|||||||
To use this, <option>failover_validation_command</option> in <filename>repmgr.conf</filename>
|
To use this, <option>failover_validation_command</option> in <filename>repmgr.conf</filename>
|
||||||
to a script executable by the <literal>postgres</literal> system user, e.g.:
|
to a script executable by the <literal>postgres</literal> system user, e.g.:
|
||||||
<programlisting>
|
<programlisting>
|
||||||
failover_validation_command=/path/to/script.sh %n %a</programlisting>
|
failover_validation_command=/path/to/script.sh %n</programlisting>
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
The <literal>%n</literal> parameter will be replaced with the node ID, and the
|
The <literal>%n</literal> parameter will be replaced with the node ID when the script is
|
||||||
<literal>%a</literal> parameter will be replaced by the node name when the script is executed.
|
executed. A number of other parameters are also available, see section
|
||||||
|
"<xref linkend="repmgrd-automatic-failover-configuration-optional"/>" for details.
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
This script must return an exit code of <literal>0</literal> to indicate the node should promote itself.
|
This script must return an exit code of <literal>0</literal> to indicate the node should promote itself.
|
||||||
|
|||||||
@@ -325,7 +325,7 @@
|
|||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
<sect2 id="repmgrd-automatic-failover-configuration-optional">
|
<sect2 id="repmgrd-automatic-failover-configuration-optional" xreflabel="Optional configuration for automatic failover">
|
||||||
<title>Optional configuration for automatic failover</title>
|
<title>Optional configuration for automatic failover</title>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
@@ -370,8 +370,8 @@
|
|||||||
</para>
|
</para>
|
||||||
</note>
|
</note>
|
||||||
<para>
|
<para>
|
||||||
One or both of the following parameter placeholders
|
One or more of the following parameter placeholders
|
||||||
should be provided, which will be replaced by repmgrd with the appropriate
|
may be provided, which will be replaced by repmgrd with the appropriate
|
||||||
value:
|
value:
|
||||||
<itemizedlist spacing="compact" mark="bullet">
|
<itemizedlist spacing="compact" mark="bullet">
|
||||||
<listitem>
|
<listitem>
|
||||||
@@ -380,6 +380,15 @@
|
|||||||
<listitem>
|
<listitem>
|
||||||
<simpara><literal>%a</literal>: node name</simpara>
|
<simpara><literal>%a</literal>: node name</simpara>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<simpara><literal>%v</literal>: number of visible nodes</simpara>
|
||||||
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<simpara><literal>%u</literal>: number of shared upstream nodes</simpara>
|
||||||
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<simpara><literal>%t</literal>: total number of nodes</simpara>
|
||||||
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
|
|||||||
Reference in New Issue
Block a user