From d362cb5dcabce24e13572aa8a67f1dfa9c2b6b60 Mon Sep 17 00:00:00 2001 From: Tatsuo Ishii Date: Tue, 28 Jul 2020 11:36:11 +0900 Subject: [PATCH] Doc: clarify what the command actual does. Discussion: https://www.pgpool.net/pipermail/pgpool-hackers/2020-July/003744.html Reviewed-by: Bo Peng --- doc.ja/src/sgml/ref/pcp_promote_node.sgml | 36 +++++++++++++++++--- doc/src/sgml/ref/pcp_promote_node.sgml | 41 +++++++++++++++++++++++ 2 files changed, 72 insertions(+), 5 deletions(-) diff --git a/doc.ja/src/sgml/ref/pcp_promote_node.sgml b/doc.ja/src/sgml/ref/pcp_promote_node.sgml index 80445149f..519a4efee 100644 --- a/doc.ja/src/sgml/ref/pcp_promote_node.sgml +++ b/doc.ja/src/sgml/ref/pcp_promote_node.sgml @@ -39,14 +39,40 @@ Pgpool-II documentation 説明 pcp_promote_node - は Pgpool-II のノードをマスターに昇格させます。 これは、マスタースレーブモードで ストリーミングレプリケーション構成の場合のみ使用できます。 このコマンドは実際に PostgreSQL のスタンバイサーバを昇格するわけではないことに注意してください。 - 単に Pgpool-II の内部ステータスを変更し、フェイルオーバするだけです。 - ですので、ユーザはこのコマンドを使う際には自分で PostgreSQL のスタンバイを昇格させるようにしてください。 + 単に Pgpool-II の内部ステータスを変更するだけです。 + ですから、ユーザはこのコマンドを使う際には自分で PostgreSQL のスタンバイを昇格させるようにしてください。 + + + pcp_promote_nodeは、起動された後以下を行います。 + が設定されている場合はそれも起動されるので、十分な注意が必要です。 + 通常はを無効にしてからこのコマンドを実行することをお勧めします。 + + + + + + 指定されたスタンバイPostgreSQLのステータスをstandbyからprimaryに変更します。 + これはPgpool-II の内部ステータスを変更するだけで、実際にPostgreSQL のスタンバイサーバを昇格するわけではありません。 + + + + + + 引数で指定された以外のPostgreSQLノードのステータスをdownに変更します。 + これはPgpool-II の内部ステータスを変更するだけで、実際にPostgreSQLのスタンバイサーバをダウンさせるわけではありません。 + + + + + + が設定されている場合は、2でダウンさせたPostgreSQLノードに対してを実行します。 + + + + diff --git a/doc/src/sgml/ref/pcp_promote_node.sgml b/doc/src/sgml/ref/pcp_promote_node.sgml index 1f6d423d0..537f18aac 100644 --- a/doc/src/sgml/ref/pcp_promote_node.sgml +++ b/doc/src/sgml/ref/pcp_promote_node.sgml @@ -35,6 +35,47 @@ Pgpool-II documentation pcp_promote_node promotes the given node as new master to Pgpool-II. In master/slave streaming replication only. Please note that this command does not actually promote standby PostgreSQL backend: it just changes the internal status of Pgpool-II and trigger failover and users have to promote standby PostgreSQL outside Pgpool-II. + + + pcp_promote_node executes followings. Please be + warned that if is set, + the command will be executed. It is a standard advice that you + disable before executing + this command. + + + + + + Change the status of standby + PostgreSQL from standby to + primary. It just changes the internal status of Pgpool-II and it + does not actually promote PostgreSQL + standby server. + + + + + + Change the status of PostgreSQL node + which is not specified by this command's argument to down. It + just changes the internal status of Pgpool-II and it does not + actually make PostgreSQL standby + server down. + + + + + + If is set, execute + against + PostgreSQL. + + + + + + -- 2.39.5