]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: enable running modules in standby mode
authorJohn Spray <john.spray@redhat.com>
Wed, 16 Aug 2017 14:23:59 +0000 (10:23 -0400)
committerJohn Spray <john.spray@redhat.com>
Wed, 1 Nov 2017 12:20:21 +0000 (08:20 -0400)
Modules can implement a second, separate class
that has access to very little state about the
system and can't implement commands.

They have just enough information to redirect
or forward incoming requests/traffic to the
active instance of the module on the active mgr.

This enables module authors to create modules
that end users can access via any (running) mgr node
at any time, rather than having to first work out
which mgr node is active.

Signed-off-by: John Spray <john.spray@redhat.com>
src/CMakeLists.txt

index c6e5876841688e6abe4a1f1fb85e43924deafdda..997137111d05295e9757b7332df7380b4f2d0bab 100644 (file)
@@ -713,10 +713,12 @@ if (WITH_MGR)
       mgr/DaemonServer.cc
       mgr/ClusterState.cc
       mgr/ActivePyModules.cc
+      mgr/StandbyPyModules.cc
       mgr/PyModuleRegistry.cc
       mgr/PyFormatter.cc
       mgr/PyOSDMap.cc
       mgr/BaseMgrModule.cc
+      mgr/BaseMgrStandbyModule.cc
       mgr/ActivePyModule.cc
       mgr/MgrStandby.cc
       mgr/Mgr.cc