From c070c649f785b464609caf6208949bb2dfe89ff7 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Mon, 5 Feb 2018 14:01:37 +0900 Subject: [PATCH] doc: minor fixes to BDR docs Also remove duplicate file. --- doc/repmgr-bdr.sgml | 37 ------------------------------------- doc/repmgrd-bdr.sgml | 10 ++++++---- 2 files changed, 6 insertions(+), 41 deletions(-) delete mode 100644 doc/repmgr-bdr.sgml diff --git a/doc/repmgr-bdr.sgml b/doc/repmgr-bdr.sgml deleted file mode 100644 index 58685c6e..00000000 --- a/doc/repmgr-bdr.sgml +++ /dev/null @@ -1,37 +0,0 @@ - - - repmgrd - BDR - - - - BDR - - - BDR failover with repmgrd - - &repmgr; 4.x provides support for monitoring BDR nodes and taking action in - case one of the nodes fails. - - - - Due to the nature of BDR, it's only safe to use this solution for - a two-node scenario. Introducing additional nodes will create an inherent - risk of node desynchronisation if a node goes down without being cleanly - removed from the cluster. - - - - In contrast to streaming replication, there's no concept of "promoting" a new - primary node with BDR. Instead, "failover" involves monitoring both nodes - with `repmgrd` and redirecting queries from the failed node to the remaining - active node. This can be done by using an - event notification script - which is called by repmgrd to dynamically - reconfigure a proxy server/connection pooler such as PgBouncer. - - - - - - diff --git a/doc/repmgrd-bdr.sgml b/doc/repmgrd-bdr.sgml index aa3f97a8..45d1e36a 100644 --- a/doc/repmgrd-bdr.sgml +++ b/doc/repmgrd-bdr.sgml @@ -24,7 +24,7 @@ In contrast to streaming replication, there's no concept of "promoting" a new primary node with BDR. Instead, "failover" involves monitoring both nodes - with `repmgrd` and redirecting queries from the failed node to the remaining + with repmgrd and redirecting queries from the failed node to the remaining active node. This can be done by using an event notification script which is called by repmgrd to dynamically @@ -231,7 +231,7 @@ - conninfo string of the next available node (bdr_failover) + conninfo string of the next available node (bdr_failover and bdr_recovery) @@ -239,7 +239,7 @@ - name of the next available node (bdr_failover) + name of the next available node (bdr_failover and bdr_recovery) @@ -250,7 +250,9 @@ particular failover events, in this case bdr_failover. - The provided sample script (`scripts/bdr-pgbouncer.sh`) is configured as follows: + The provided sample script + (scripts/bdr-pgbouncer.sh) + is configured as follows: event_notification_command='/path/to/bdr-pgbouncer.sh %n %e %s "%c" "%a"'