Another efficient way to change the runtime configuration for the Ceph daemon without the overhead of logging in to that node is to use the ceph tell
command.
The ceph tell
command saves you the effort of logging into the node where the daemon is running. This command goes through the monitor node, so you can execute it from any node in the cluster:
- The syntax for the
ceph tell
command is as follows:
# ceph tell {daemon-type}.{id or *} injectargs
--{config_setting_name} {value}
- To change the
osd_recovery_threads
setting fromosd.0
, execute the following:
# ceph tell osd.0 injectargs '--osd_recovery_threads=2'
- To change the same setting for all the OSDs across the cluster, execute the following:
# ceph tell osd.* injectargs '--osd_recovery_threads=2'
- You can also change multiple settings as a one liner:
# ceph tell osd.* injectargs '--osd_recovery_max_active=1
--osd_recovery_max_single_start=1 --osd_recovery_op_priority...