<para>
This parameter can only be set at server start.
</para>
- </listitem>
+ <note>
+ <para>
+ enabling <varname>failover_when_quorum_exists</varname> is not allowed in native replication mode.
+ </para>
+ </note>
+ </listitem>
</varlistentry>
<varlistentry id="guc-failover-require-consensus" xreflabel="failover_require_consensus">
</para>
</caution>
+ <note>
+ <para>
+ enabling <varname>failover_require_consensus</varname> is not allowed in native replication mode.
+ </para>
+ </note>
+
<para>
<varname>failover_require_consensus</varname> is not available prior to
<productname>Pgpool-II </productname><emphasis>V3.7</emphasis>. and it is only
}
}
+ /*
+ * Quarantine state in native replication mode is dangerous and it can
+ * potentially cause data inconsistency.
+ * So as per the discussions, we agreed on disallowing setting
+ * failover_when_quorum_exists in native replication mode
+ */
+
+ if (pool_config->failover_when_quorum_exists && pool_config->replication_mode)
+ {
+ pool_config->failover_when_quorum_exists = false;
+ ereport(elevel,
+ (errmsg("invalid configuration, failover_when_quorum_exists is not allowed in native replication mode")));
+ return false;
+ }
return true;
}
# - Watchdog consensus settings for failover -
-failover_when_quorum_exists = on
+failover_when_quorum_exists = off
# Only perform backend node failover
- # when the watchdog cluster holds the quorum
+ # when the watchdog cluster holds the quorum.
+ # not allowed in replication mode
# (change requires restart)
-failover_require_consensus = on
+failover_require_consensus = off
# Perform failover when majority of Pgpool-II nodes
- # aggrees on the backend node status change
+ # aggrees on the backend node status change.
+ # not allowed in replication mode
# (change requires restart)
allow_multiple_failover_requests_from_node = off