From fad998cb11628db970099cc192277c1824be884a Mon Sep 17 00:00:00 2001 From: John Spray Date: Wed, 1 Nov 2017 06:34:36 -0400 Subject: [PATCH] doc: describe using `mgr module ...` commands ...including the new "mgr services" command. Signed-off-by: John Spray (cherry picked from commit d220e1adc337daeac418563dee125f161e85afdf) --- doc/mgr/administrator.rst | 56 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/doc/mgr/administrator.rst b/doc/mgr/administrator.rst index 1e8d189da3f19..11daf3e42a046 100644 --- a/doc/mgr/administrator.rst +++ b/doc/mgr/administrator.rst @@ -53,6 +53,62 @@ by a standby. If you want to pre-empt failover, you can explicitly mark a ceph-mgr daemon as failed using ``ceph mgr fail ``. +Using modules +------------- + +Use the command ``ceph mgr module ls`` to see which modules are +available, and which are currently enabled. Enable or disable modules +using the commands ``ceph mgr module enable `` and +``ceph mgr module disable `` respectively. + +If a module is *enabled* then the active ceph-mgr daemon will load +and execute it. In the case of modules that provide a service, +such as an HTTP server, the module may publish its address when it +is loaded. To see the addresses of such modules, use the command +``ceph mgr services``. + +Some modules may also implement a special standby mode which runs on +standby ceph-mgr daemons as well as the active daemon. This enables +modules that provide services to redirect their clients to the active +daemon, if the client tries to connect to a standby. + +Consult the documentation pages for individual manager modules for more +information about what functionality each module provides. + +Here is an example of enabling the ``dashboard`` module: + +:: + + $ ceph mgr module ls + { + "enabled_modules": [ + "restful", + "status" + ], + "disabled_modules": [ + "dashboard" + ] + } + + $ ceph mgr module enable dashboard + $ ceph mgr module ls + { + "enabled_modules": [ + "restful", + "status", + "dashboard" + ], + "disabled_modules": [ + ] + } + + $ ceph mgr services + { + "dashboard": "http://myserver.com:7789/", + "restful": "https://myserver.com:8789/" + } + + Calling module commands ----------------------- -- 2.39.5