From d8d288776a72be49badbbea111edba0223d597c0 Mon Sep 17 00:00:00 2001 From: Tatsuo Ishii Date: Mon, 21 Aug 2023 16:05:40 +0900 Subject: [PATCH] Doc: enhance follow primary command manual. Mention that it is necessary to run pcp_attach_node if pcp_recovery_node is not used. --- doc.ja/src/sgml/failover.sgml | 3 +++ doc/src/sgml/failover.sgml | 16 +++++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/doc.ja/src/sgml/failover.sgml b/doc.ja/src/sgml/failover.sgml index 5a7022ae8..4e25902a8 100644 --- a/doc.ja/src/sgml/failover.sgml +++ b/doc.ja/src/sgml/failover.sgml @@ -659,6 +659,9 @@ if (we need to executed follow primary command) たとえば、そのノードはハードウェア障害で停止しているかも知れませんし、管理者が保守のために停止しているのかも知れません。 ノードが停止している場合は、そのノードをスキップしてください。 ノードが動いている場合は、まずそのノードを停止してからリカバリしてください。 + コマンドを呼ばずに、直接pg_basebackupなどを呼び出してリカバリすることも可能ですが、その場合は、リカバリ後にを呼び出して、スタンバイサーバが利用可能になったことをPgpool-IIに通知してください。 + そうでないとそのスタンバイサーバはダウン状態のままになってしまいます。 + (コマンドは内部でを呼び出しているので、リカバリ後にスクリプトの中でを呼び出す必要はありません。) follow_primary_commandの完全な例は、にあります。 diff --git a/doc/src/sgml/failover.sgml b/doc/src/sgml/failover.sgml index 747a088b4..c92588125 100644 --- a/doc/src/sgml/failover.sgml +++ b/doc/src/sgml/failover.sgml @@ -498,9 +498,19 @@ if (we need to executed follow primary command) reason to be stopped: for example, it's broken by hardware problems or administrator is maintaining the node. If the node is stopped, skip the node. If the node is running, stop - the node first and recovery it. A - complete follow_primary_command example - can be found in . + the node first and recovery it. + Although it is possible to recover by directly + executing pg_basebackup or other commands + instead of , you need to + execute to + notice Pgpool-II that the standby + server is ready to use. Otherwise the standby server remains in + down status. (Since + internally executes , you don't + need to execute after + recovering. + A complete follow_primary_command example can + be found in . This parameter can be changed by reloading the Pgpool-II configurations. -- 2.39.5