]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: update mgr module guide for have_mon_connection 18847/head
authorJohn Spray <john.spray@redhat.com>
Thu, 9 Nov 2017 14:14:44 +0000 (09:14 -0500)
committerJohn Spray <john.spray@redhat.com>
Thu, 9 Nov 2017 16:00:14 +0000 (16:00 +0000)
Signed-off-by: John Spray <john.spray@redhat.com>
doc/mgr/plugins.rst

index 809e589a74bb2bf1e667be8ea2aef67aab39af97..5069fa2a0780f73c6cb957b68152b790510d5152 100644 (file)
@@ -107,6 +107,22 @@ function. This will result in a circular locking exception.
 .. automethod:: MgrModule.get_metadata
 .. automethod:: MgrModule.get_counter
 
+What if the mons are down?
+--------------------------
+
+The manager daemon gets much of its state (such as the cluster maps)
+from the monitor.  If the monitor cluster is inaccessible, whichever
+manager was active will continue to run, with the latest state it saw
+still in memory.
+
+However, if you are creating a module that shows the cluster state
+to the user then you may well not want to mislead them by showing
+them that out of date state.
+
+To check if the manager daemon currently has a connection to
+the monitor cluster, use this function:
+
+.. automethod:: MgrModule.have_mon_connection
 
 Sending commands
 ----------------