From efe4bed88e8c4a0e03fd33a07372ea3521266146 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Thu, 23 Aug 2018 10:22:05 +0900 Subject: [PATCH] doc: improve event notification documentation - add undocumented events (per report from Daymel Bonne) - split up list into sections for better overview - where feasible, add cross-links --- doc/event-notifications.sgml | 91 ++++++++++++++++++++++-------- doc/repmgr-cluster-cleanup.sgml | 2 +- doc/repmgr-node-rejoin.sgml | 7 ++- doc/repmgr-primary-register.sgml | 12 +++- doc/repmgr-primary-unregister.sgml | 2 +- doc/repmgr-standby-clone.sgml | 2 +- doc/repmgr-standby-follow.sgml | 2 +- doc/repmgr-standby-promote.sgml | 2 +- doc/repmgr-standby-register.sgml | 2 +- doc/repmgr-standby-switchover.sgml | 2 +- doc/repmgr-standby-unregister.sgml | 2 +- doc/repmgr-witness-register.sgml | 2 +- doc/repmgr-witness-unregister.sgml | 2 +- 13 files changed, 90 insertions(+), 40 deletions(-) diff --git a/doc/event-notifications.sgml b/doc/event-notifications.sgml index d5318ca7..c2f8fc6d 100644 --- a/doc/event-notifications.sgml +++ b/doc/event-notifications.sgml @@ -147,61 +147,76 @@ By default, all notification types will be passed to the designated script; the notification types can be filtered to explicitly named ones using the - event_notifications parameter: + event_notifications parameter. + + + + Events generated by the &repmgr; command: - primary_register + cluster_created - primary_unregister + primary_register - standby_register + primary_unregister + + + + standby_clone - standby_register_sync + standby_register - standby_unregister + standby_register_sync - standby_clone + standby_unregister + + + + standby_promote - standby_promote + standby_follow - standby_follow + standby_switchover + + + + witness_register - standby_disconnect_manual + witness_unregister - standby_failure + node_rejoin - standby_recovery - - - witness_register - - - witness_unregister - - - node_rejoin - - - cluster_cleanup + cluster_cleanup + + + + + + Events generated by repmgrd (streaming replication mode): + + repmgrd_start repmgrd_shutdown + + repmgrd_reload + repmgrd_failover_promote @@ -211,15 +226,41 @@ repmgrd_failover_aborted + + repmgrd_standby_reconnect + + + repmgrd_promote_error + + + repmgrd_local_disconnect + + + repmgrd_local_reconnect + repmgrd_upstream_disconnect repmgrd_upstream_reconnect + - repmgrd_promote_error + standby_disconnect_manual + + standby_failure + + + standby_recovery + + + + + + + Events generated by repmgrd (BDR mode): + bdr_failover diff --git a/doc/repmgr-cluster-cleanup.sgml b/doc/repmgr-cluster-cleanup.sgml index 6c149f03..441470b9 100644 --- a/doc/repmgr-cluster-cleanup.sgml +++ b/doc/repmgr-cluster-cleanup.sgml @@ -44,7 +44,7 @@ - + Event notifications A cluster_cleanup event notification will be generated. diff --git a/doc/repmgr-node-rejoin.sgml b/doc/repmgr-node-rejoin.sgml index 9a09db2c..b9c6a326 100644 --- a/doc/repmgr-node-rejoin.sgml +++ b/doc/repmgr-node-rejoin.sgml @@ -119,7 +119,7 @@ - + Configuration file settings @@ -136,8 +136,9 @@ - - + + + Event notifications A node_rejoin event notification will be generated. diff --git a/doc/repmgr-primary-register.sgml b/doc/repmgr-primary-register.sgml index 553c61c3..8f2b0a87 100644 --- a/doc/repmgr-primary-register.sgml +++ b/doc/repmgr-primary-register.sgml @@ -75,10 +75,18 @@ - + Event notifications - A primary_register event notification will be generated. + Following event notifications will be generated: + + + cluster_created + + + primary_register + + diff --git a/doc/repmgr-primary-unregister.sgml b/doc/repmgr-primary-unregister.sgml index 7927a1ff..89f3f60b 100644 --- a/doc/repmgr-primary-unregister.sgml +++ b/doc/repmgr-primary-unregister.sgml @@ -64,7 +64,7 @@ - + Event notifications A primary_unregister event notification will be generated. diff --git a/doc/repmgr-standby-clone.sgml b/doc/repmgr-standby-clone.sgml index fa754834..66ea0dd9 100644 --- a/doc/repmgr-standby-clone.sgml +++ b/doc/repmgr-standby-clone.sgml @@ -350,7 +350,7 @@ - + Event notifications A standby_clone event notification will be generated. diff --git a/doc/repmgr-standby-follow.sgml b/doc/repmgr-standby-follow.sgml index 2245ecf5..8f5cb18d 100644 --- a/doc/repmgr-standby-follow.sgml +++ b/doc/repmgr-standby-follow.sgml @@ -94,7 +94,7 @@ - + Event notifications A standby_follow event notification will be generated. diff --git a/doc/repmgr-standby-promote.sgml b/doc/repmgr-standby-promote.sgml index 5868b00d..ac4d6404 100644 --- a/doc/repmgr-standby-promote.sgml +++ b/doc/repmgr-standby-promote.sgml @@ -50,7 +50,7 @@ - + Event notifications A standby_promote event notification will be generated. diff --git a/doc/repmgr-standby-register.sgml b/doc/repmgr-standby-register.sgml index 676670b1..41963eac 100644 --- a/doc/repmgr-standby-register.sgml +++ b/doc/repmgr-standby-register.sgml @@ -159,7 +159,7 @@ - + Event notifications A standby_register event notification diff --git a/doc/repmgr-standby-switchover.sgml b/doc/repmgr-standby-switchover.sgml index ebaa2d87..30c69a5b 100644 --- a/doc/repmgr-standby-switchover.sgml +++ b/doc/repmgr-standby-switchover.sgml @@ -196,7 +196,7 @@ - + Event notifications standby_switchover and standby_promote diff --git a/doc/repmgr-standby-unregister.sgml b/doc/repmgr-standby-unregister.sgml index 50c37ec5..8fb68346 100644 --- a/doc/repmgr-standby-unregister.sgml +++ b/doc/repmgr-standby-unregister.sgml @@ -59,7 +59,7 @@ - + Event notifications A standby_unregister event notification will be generated. diff --git a/doc/repmgr-witness-register.sgml b/doc/repmgr-witness-register.sgml index a189bbd6..84bde114 100644 --- a/doc/repmgr-witness-register.sgml +++ b/doc/repmgr-witness-register.sgml @@ -50,7 +50,7 @@ - + Event notifications A witness_register event notification will be generated. diff --git a/doc/repmgr-witness-unregister.sgml b/doc/repmgr-witness-unregister.sgml index cbe6ebdc..81a8eea9 100644 --- a/doc/repmgr-witness-unregister.sgml +++ b/doc/repmgr-witness-unregister.sgml @@ -92,7 +92,7 @@ - + Event notifications A witness_unregister event notification will be generated.