From: John Spray Date: Wed, 16 Aug 2017 14:23:59 +0000 (-0400) Subject: mgr: enable running modules in standby mode X-Git-Tag: v13.0.1~332^2~19 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=25566d1edca638bd15b3ba3326ee7e4d3e573cbb;p=ceph.git mgr: enable running modules in standby mode 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 --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c6e587684168..997137111d05 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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