From d9f25b868dc32d748f714c77ea3771ff361958ad Mon Sep 17 00:00:00 2001 From: Tatsuo Ishii Date: Sat, 20 Feb 2021 09:45:16 +0900 Subject: [PATCH] Doc: enhance pcp_detach_node manual. Add more detailed description when the command is executed. --- doc.ja/src/sgml/ref/pcp_detach_node.sgml | 16 +++++++++++----- doc/src/sgml/ref/pcp_detach_node.sgml | 24 +++++++++++++++++++++--- 2 files changed, 32 insertions(+), 8 deletions(-) diff --git a/doc.ja/src/sgml/ref/pcp_detach_node.sgml b/doc.ja/src/sgml/ref/pcp_detach_node.sgml index 89b5a0844..c066cbf60 100644 --- a/doc.ja/src/sgml/ref/pcp_detach_node.sgml +++ b/doc.ja/src/sgml/ref/pcp_detach_node.sgml @@ -38,11 +38,17 @@ Pgpool-II documentation --> 説明 - pcp_detach_node - - は Pgpool-II のノードを切り離します。すでに Pgpool-II に接続しているセッションは強制的に切断されます。 + pcp_detach_node は Pgpool-II のノードを切り離します。 + あるいは が指定されていれば、それらも実行されます。 + すでに Pgpool-II に接続しているセッションは強制的に切断されます。 + + + pcp_detach_nodeは単にノードを切り離すだけで、そのノードで背後で稼働しているバックエンドには触りません。 + このコマンドは、管理者がPostgreSQLノードを保守する際に有用です。 + 管理者は好きなだけそのバックエンドを停止したり起動できます。 + + + 切り離したノードは、バックエンドを停止した上でで復帰させるのが安全ですが、レプリケーション遅延がない(もしくは後でレプリケーション遅延を回復できる)ことが確実で、ノードの役割(プライマリ/スタンバイ)の変更を伴わないことが確実なら、で復帰させることもできます。 diff --git a/doc/src/sgml/ref/pcp_detach_node.sgml b/doc/src/sgml/ref/pcp_detach_node.sgml index cf269db6f..29661b52f 100644 --- a/doc/src/sgml/ref/pcp_detach_node.sgml +++ b/doc/src/sgml/ref/pcp_detach_node.sgml @@ -17,7 +17,7 @@ Pgpool-II documentation pcp_detach_node - detaches the given node from Pgpool-II. Existing connections to Pgpool-II are forced to be disconnected. + detaches the given node from Pgpool-II. Exisiting connections to Pgpool-II are forced to be disconnected. @@ -32,8 +32,26 @@ Pgpool-II documentation Description - pcp_detach_node - detaches the given node from Pgpool-II. Existing connections to Pgpool-II are forced to be disconnected. + pcp_detach_node detaches the given node from + Pgpool-II. If and/or are specified, they are + executed too. Existing connections to + Pgpool-II are forced to be disconnected. + + + pcp_detach_node just detaches the node, and does + not touch running backend behind the node. This command is useful + when admin needs to maintain the + PostgreSQL node. He/she can shutdown or + stop the backend as many times as he/she wants. + + + The safest way to re-attach the detached node is, stopping the + backend and apply . However if + you are sure that there's no replication delay (or the delay will + be recovered later on) and the role of the node (primary/standby) + will not be changed, you can use . -- 2.39.5