]> git.proxmox.com Git - ceph.git/blame - ceph/doc/mgr/administrator.rst
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / doc / mgr / administrator.rst
CommitLineData
7c673cae
FG
1
2ceph-mgr administrator's guide
3==============================
4
5Setup
6-----
7
8Create an authentication key for your daemon::
9
10 ceph auth get-or-create mgr.$name mon 'allow *'
11
12Place that key into ``mgr data`` path, which for a cluster "ceph"
13and mgr $name "foo" would be ``/var/lib/ceph/mgr/ceph-foo``.
14
15Start the ceph-mgr daemon::
16
17 ceph-mgr -i $name
18
19Check that the mgr has come up by looking at the output
20of ``ceph status``, which should now include a mgr status line::
21
22 mgr active: $name
23
24High availability
25-----------------
26
27In general, you should set up a ceph-mgr on each of the hosts
28running a ceph-mon daemon to achieve the same level of availability.
29
30By default, whichever ceph-mgr instance comes up first will be made
31active by the monitors, and the others will be standbys. There is
32no requirement for quorum among the ceph-mgr daemons.
33
34If the active daemon fails to send a beacon to the monitors for
35more than ``mon mgr beacon grace`` (default 30s), then it will be replaced
36by a standby.
37
38If you want to pre-empt failover, you can explicitly mark a ceph-mgr
39daemon as failed using ``ceph mgr fail <mgr name>``.
40
41Calling module commands
42-----------------------
43
44Where a module implements command line hooks, using the Ceph CLI's
45``tell`` command to call them like this::
46
47 ceph tell mgr <command | help>
48
49Note that it is not necessary to address a particular mgr instance,
50simply ``mgr`` will pick the current active daemon.
51
52Use the ``help`` command to get a list of available commands from all
53modules.
54
55Configuration
56-------------
57
58OPTION(mgr_module_path, OPT_STR, CEPH_PKGLIBDIR "/mgr") // where to load python modules from
59
60``mgr module path``
61
62:Description: Path to load modules from
63:Type: String
64:Default: ``"<library dir>/mgr"``
65
66``mgr modules``
67
68:Description: List of python modules to load
69:Type: String
70:Default: ``"rest"`` (Load the REST API module only)
71
72``mgr data``
73
74:Description: Path to load daemon data (such as keyring)
75:Type: String
76:Default: ``"/var/lib/ceph/mgr/$cluster-$id"``
77
78``mgr beacon period``
79
80:Description: How many seconds between mgr beacons to monitors
81:Type: Integer
82:Default: ``5``
83
84``mon mgr beacon grace``
85
86:Description: How long after last beacon should a mgr be considered failed
87:Type: Integer
88:Default: ``30``
89