Enable streaming replication check by default.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Wed, 13 Oct 2021 02:26:43 +0000 (11:26 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Wed, 13 Oct 2021 02:26:43 +0000 (11:26 +0900)
Change the compile time default value of sr_check_period from 0 to
10. This means if operating in streaming replication mode, now
streaming replication check is enabled by default. The parameter is
already set to 10 in pgpool.conf.sample-stream. So the only difference
is, when sr_check_period is commented out.

Discussion: https://www.pgpool.net/pipermail/pgpool-hackers/2021-October/004042.html

doc.ja/src/sgml/stream-check.sgml
doc/src/sgml/stream-check.sgml
src/config/pool_config_variables.c

index 665e36fd8c3ddc1bf123eb7763ac14d148df7912..9386010972efe8479fe1c45d4c34580618fb9986 100644 (file)
@@ -47,7 +47,7 @@
      Default is 0, which means the check is disabled.
      -->
      ストリーミングレプリケーションの遅延チェックの間隔を秒単位で指定します。
-     デフォルト値は0で、これはチェックを行わないことを意味します
+     デフォルト値は10です。
     </para>
 
     <para>
index c54035d061812ffa0c53157f440e8e43c7ce0373..dde3911c6a2dbfb9edb6dcda22d2403e49c9d4d8 100644 (file)
@@ -29,7 +29,7 @@
     <para>
      Specifies the time interval in seconds to check the streaming
      replication delay.
-     Default is 0, which means the check is disabled.
+     The default is 10.
     </para>
 
     <para>
index 5d9b639288cd8836a76f3e822640c67b8cf6458e..aaf685f44ceca0256abbdf8086bb301b21dc2f0b 100644 (file)
@@ -1924,7 +1924,7 @@ static struct config_int ConfigureNamesInt[] =
                        CONFIG_VAR_TYPE_INT, false, GUC_UNIT_S
                },
                &g_pool_config.sr_check_period,
-               0,
+               10,
                0, INT_MAX,
                NULL, NULL, NULL
        },