Doc: add explanation for wd_priority.
authorChen Ningwei <chen@sraoss.co.jp>
Tue, 25 Apr 2023 01:34:26 +0000 (10:34 +0900)
committerChen Ningwei <chen@sraoss.co.jp>
Tue, 25 Apr 2023 01:34:26 +0000 (10:34 +0900)
doc.ja/src/sgml/watchdog.sgml
doc/src/sgml/watchdog.sgml

index d116d51f964abbfef90262aa56ddde43c44c42d4..02e9eff6e3bc018dbd102342e80e6afef3e97e77 100644 (file)
       value is selected as a leader node.
       So we should start watchdog nodes in order of <varname>wd_priority</varname> priority to prevent 
       unintended nodes from being selected as leader.
+      If <varname>wd_priority</varname> of each nodes has the same value,
+      leader node will be decided on base of starting time of watchdog.
       -->
       このパラメータによってローカルのwatchdogノードがリーダーに選ばれる優先度を上げることができます。
       古いリーダーノードが故障した状況でクラスタがリーダーノードの選択を行う際に、<varname>wd_priority</varname>が高いノードがリーダーwatchdogノードに選ばれます。
       <varname>wd_priority</varname>はクラスタの初期起動時にも有効なので、
       複数のwatchdogノードを同時に起動した場合、<varname>wd_priority</varname>が高いノードがリーダーwatchdogノードに選ばれます。
       このため、watchdogノードは意図しないノードがリーダーに選ばれることが無いように<varname>wd_priority</varname>の優先順位が高い順に起動するべきです。
+      もし<varname>wd_priority</varname>が同じなら、早いもの勝ちでリーダーになります。
      </para>
      <para>
       <!--
index fdd23224dcdd604fb5aa64017ffb807a97780bc4..8135e3402b51edf7530be992b6b1acc8e75c59c6 100644 (file)
@@ -1039,6 +1039,8 @@ pgpool_port2 = 9999
       value is selected as a leader node.
       So we should start watchdog nodes in order of <varname>wd_priority</varname> priority to prevent
       unintended nodes from being selected as leader.
+      If <varname>wd_priority</varname> of each nodes has the same value,
+      leader node will be decided on base of starting time of watchdog.
      </para>
      <para>
       <varname>wd_priority</varname> is not available in versions prior to