From: John Spray Date: Wed, 1 Nov 2017 10:34:36 +0000 (-0400) Subject: doc: describe using `mgr module ...` commands X-Git-Tag: v13.0.1~332^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d220e1adc337daeac418563dee125f161e85afdf;p=ceph.git doc: describe using `mgr module ...` commands ...including the new "mgr services" command. Signed-off-by: John Spray --- diff --git a/doc/mgr/administrator.rst b/doc/mgr/administrator.rst index 1e8d189da3f1..11daf3e42a04 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 -----------------------