be moved) is below a threshold of (by default) 5%. The
``max_misplaced`` threshold can be adjusted with::
- ceph config-key set mgr/balancer/max_misplaced .07 # 7%
+ ceph config set mgr mgr/balancer/max_misplaced .07 # 7%
Modes
also be necessary to configure them separately. The hostname and port
can be changed via the configuration key facility::
- $ ceph config-key set mgr/dashboard/$name/server_addr $IP
- $ ceph config-key set mgr/dashboard/$name/server_port $PORT
+ $ ceph config set mgr mgr/dashboard/$name/server_addr $IP
+ $ ceph config set mgr mgr/dashboard/$name/server_port $PORT
where ``$name`` is the ID of the ceph-mgr who is hosting this
dashboard web app.
These settings can also be configured cluster-wide and not manager
specific. For example,::
- $ ceph config-key set mgr/dashboard/server_addr $IP
- $ ceph config-key set mgr/dashboard/server_port $PORT
+ $ ceph config set mgr mgr/dashboard/server_addr $IP
+ $ ceph config set mgr mgr/dashboard/server_port $PORT
If the port is not configured, the web app will bind to port ``7000``.
If the address it not configured, the web app will bind to ``::``,
::
- ceph config-key set mgr/dashboard/url_prefix $PREFIX
+ ceph config set mgr mgr/dashboard/url_prefix $PREFIX
so you can access the dashboard at ``http://$IP:$PORT/$PREFIX/``.
::
- ceph config-key set mgr/influx/<key> <value>
+ ceph config set mgr mgr/influx/<key> <value>
The most important settings are ``hostname``, ``username`` and ``password``.
::
- ceph config-key set mgr/influx/hostname influx.mydomain.com
- ceph config-key set mgr/influx/username admin123
- ceph config-key set mgr/influx/password p4ssw0rd
+ ceph config set mgr mgr/influx/hostname influx.mydomain.com
+ ceph config set mgr mgr/influx/username admin123
+ ceph config set mgr mgr/influx/password p4ssw0rd
Additional optional configuration settings are:
These options are set via the config-key interface. For example, to
change the replication level to 2x with only 64 PGs, ::
- ceph config-key set mgr/localpool/num_rep 2
- ceph config-key set mgr/localpool/pg_num 64
+ ceph config set mgr mgr/localpool/num_rep 2
+ ceph config set mgr mgr/localpool/pg_num 64
The ``restful.crt`` should then be signed by your organization's CA
(certificate authority). Once that is done, you can set it with::
- ceph config-key set mgr/restful/$name/crt -i restful.crt
- ceph config-key set mgr/restful/$name/key -i restful.key
+ ceph config set mgr mgr/restful/$name/crt -i restful.crt
+ ceph config set mgr mgr/restful/$name/key -i restful.key
where ``$name`` is the name of the ``ceph-mgr`` instance (usually the
hostname). If all manager instances are to share the same certificate,
you can leave off the ``$name`` portion::
- ceph config-key set mgr/restful/crt -i restful.crt
- ceph config-key set mgr/restful/key -i restful.key
+ ceph config set mgr mgr/restful/crt -i restful.crt
+ ceph config set mgr mgr/restful/key -i restful.key
Configuring IP and port
also be necessary to configure them separately. The IP and port
can be changed via the configuration key facility::
- ceph config-key set mgr/restful/$name/server_addr $IP
- ceph config-key set mgr/restful/$name/server_port $PORT
+ ceph config set mgr mgr/restful/$name/server_addr $IP
+ ceph config set mgr mgr/restful/$name/server_port $PORT
where ``$name`` is the ID of the ceph-mgr daemon (usually the hostname).
These settings can also be configured cluster-wide and not manager
specific. For example,::
- ceph config-key set mgr/restful/server_addr $IP
- ceph config-key set mgr/restful/server_port $PORT
+ ceph config set mgr mgr/restful/server_addr $IP
+ ceph config set mgr mgr/restful/server_port $PORT
If the port is not configured, *restful* will bind to port ``8003``.
If the address it not configured, the *restful* will bind to ``::``,