doc: add clarifications to "Standby disconnection on failover"

This commit is contained in:
Ian Barwick
2019-09-05 18:00:56 +09:00
parent 19190153a0
commit bce039f336

View File

@@ -268,11 +268,12 @@
<para> <para>
If <option>standby_disconnect_on_failover</option> is set to <literal>true</literal> in If <option>standby_disconnect_on_failover</option> is set to <literal>true</literal> in
<filename>repmgr.conf</filename>, in a failover situation &repmgrd; will forcibly disconnect <filename>repmgr.conf</filename>, in a failover situation &repmgrd; will forcibly disconnect
the local node's WAL receiver before making a failover decision. the local node's WAL receiver, and wait for the WAL receiver on all sibling nodes to be
disconnected, before making a failover decision.
</para> </para>
<note> <note>
<para> <para>
<option>standby_disconnect_on_failover</option> is available from PostgreSQL 9.5 and later. <option>standby_disconnect_on_failover</option> is available with PostgreSQL 9.5 and later.
Additionally this requires that the <literal>repmgr</literal> database user is a superuser. Additionally this requires that the <literal>repmgr</literal> database user is a superuser.
</para> </para>
</note> </note>
@@ -291,6 +292,12 @@
plus however many seconds it takes to confirm the WAL receiver is disconnected before plus however many seconds it takes to confirm the WAL receiver is disconnected before
&repmgrd; proceeds with the failover decision. &repmgrd; proceeds with the failover decision.
</para> </para>
<para>
&repmgrd; will wait up to <option>sibling_nodes_disconnect_timeout</option> seconds (default:
<literal>30</literal>) to confirm that the WAL receiver on all sibling nodes hase been
disconnected before proceding with the failover operation. If the timeout is reached, the
failover operation will go ahead anyway.
</para>
<para> <para>
Following the failover operation, no matter what the outcome, each node will reconnect its WAL receiver. Following the failover operation, no matter what the outcome, each node will reconnect its WAL receiver.
</para> </para>