Notice
This document is for a development version of Ceph.
Cephadm Configuration Options
The options on this page control the cephadm Manager module. They are
stored in the Ceph configuration database and are set with
ceph config set mgr mgr/cephadm/<option> <value>. For example, to see and
then change how long cephadm caches the device inventory of each host, run the
following commands:
ceph config get mgr mgr/cephadm/device_cache_timeout
ceph config set mgr mgr/cephadm/device_cache_timeout 900
To restore the default value of an option, remove the setting:
ceph config rm mgr mgr/cephadm/device_cache_timeout
Containers and Registries
These options set the Ceph container image name, how cephadm qualifies and pins image names, and how cephadm runs containers.
- container_image_base
Container image name, without the tag
- type:
str- runtime updatable:
true- default:
quay.io/ceph/ceph
- default_registry
Search-registry to which we should normalize unqualified image names. This is not the default registry
- type:
str- runtime updatable:
false- default:
quay.io
- use_repo_digest
Automatically convert image tags to image digest to ensure that all daemons use the same image
- type:
bool- runtime updatable:
false- default:
true
- registry_insecure
Registry is to be considered insecure (no TLS available). Only for development purposes.
- type:
bool- runtime updatable:
false- default:
false
- container_init
Run podman/docker with --init
- type:
bool- runtime updatable:
false- default:
true
- cgroups_split
Pass --cgroups=split when cephadm creates containers (currently Podman only)
- type:
bool- runtime updatable:
false- default:
true
- allow_ptrace
The SYS_PTRACE capability is needed to attach to a process with gdb or strace. Enabling this option can facilitate debugging daemons that encounter runtime problems.
- type:
bool- runtime updatable:
false- default:
false
Default Container Images
These options set the image of each service that does not run the Ceph container image. See Default Images.
- container_image_prometheus
Prometheus container image
- type:
str- runtime updatable:
false- default:
quay.io/prometheus/prometheus:v3.6.0
- container_image_loki
Loki container image
- type:
str- runtime updatable:
false- default:
docker.io/grafana/loki:3.0.0
- container_image_promtail
Promtail container image
- type:
str- runtime updatable:
false- default:
docker.io/grafana/promtail:3.0.0
- container_image_alloy
Alloy container image
- type:
str- runtime updatable:
false- default:
docker.io/grafana/alloy:latest
- container_image_node_exporter
Node exporter container image
- type:
str- runtime updatable:
false- default:
quay.io/prometheus/node-exporter:v1.9.1
- container_image_alertmanager
Alertmanager container image
- type:
str- runtime updatable:
false- default:
quay.io/prometheus/alertmanager:v0.28.1
- container_image_grafana
Grafana container image
- type:
str- runtime updatable:
false- default:
quay.io/ceph/grafana:12.3.1
- container_image_haproxy
Haproxy container image
- type:
str- runtime updatable:
false- default:
quay.io/ceph/haproxy:2.3
- container_image_keepalived
Keepalived container image
- type:
str- runtime updatable:
false- default:
quay.io/ceph/keepalived:2.2.4
- container_image_nvmeof
Nvmeof container image
- type:
str- runtime updatable:
false- default:
quay.io/ceph/nvmeof:2.0
- container_image_snmp_gateway
Snmp gateway container image
- type:
str- runtime updatable:
false- default:
docker.io/maxwo/snmp-notifier:v1.2.1
- container_image_elasticsearch
Elasticsearch container image
- type:
str- runtime updatable:
false- default:
quay.io/omrizeneva/elasticsearch:6.8.23
- container_image_jaeger_collector
Jaeger collector container image
- type:
str- runtime updatable:
false- default:
quay.io/jaegertracing/jaeger-collector:1.29
- container_image_jaeger_agent
Jaeger agent container image
- type:
str- runtime updatable:
false- default:
quay.io/jaegertracing/jaeger-agent:1.29
- container_image_jaeger_query
Jaeger query container image
- type:
str- runtime updatable:
false- default:
quay.io/jaegertracing/jaeger-query:1.29
- container_image_samba
Samba container image
- type:
str- runtime updatable:
false- default:
quay.io/samba.org/samba-server:devbuilds-centos-any
- container_image_samba_metrics
Samba metrics container image
- type:
str- runtime updatable:
false- default:
quay.io/samba.org/samba-metrics:devbuilds-centos-any
- container_image_nginx
Nginx container image
- type:
str- runtime updatable:
false- default:
quay.io/ceph/nginx:sclorg-nginx-126
- container_image_pushgateway
Pushgateway container image
- type:
str- runtime updatable:
false- default:
quay.io/prometheus/pushgateway:v1.11.3
- container_image_oauth2_proxy
Oauth2 proxy container image
- type:
str- runtime updatable:
false- default:
quay.io/oauth2-proxy/oauth2-proxy:v7.6.0
SSH and Remote Execution
These options control how cephadm connects to hosts over SSH and runs commands on them. See SSH Configuration and Sudo Hardening.
- ssh_config_file
Customized SSH config file to distribute to managed hosts
- type:
str- runtime updatable:
false
- mode
Mode for remote execution of cephadm
- type:
str- runtime updatable:
false- default:
root
- ssh_keepalive_interval
How often SSH connections are checked for liveness
- type:
int- runtime updatable:
false- default:
7
- ssh_keepalive_count_max
How many sequential SSH connection liveness check failures before the host is marked offline
- type:
int- runtime updatable:
false- default:
3
- default_cephadm_command_timeout
Default timeout applied to cephadm commands run directly on the host (in seconds)
- type:
int- runtime updatable:
false- default:
900
- sudo_hardening
Enable sudo hardening by routing all command execution through invoker.py. When enabled, cephadm and bash commands are validated and executed via the secure invoker wrapper.
- type:
bool- runtime updatable:
false- default:
false
Host Management
These options set how often cephadm refreshes what it knows about each host,
which routes it reports, where it manages ceph.conf, and how many daemons
of one service it places on a host. See Management of /etc/ceph/ceph.conf.
- host_check_interval
How frequently to perform a host check
- type:
secs- runtime updatable:
false- default:
600
- facts_cache_timeout
Seconds for which to cache host facts data
- type:
secs- runtime updatable:
false- default:
600
- daemon_cache_timeout
Seconds for which to cache service (daemon) inventory
- type:
secs- runtime updatable:
false- default:
600
- allow_lo_routes
If true, cephadm list-networks is run with --allow-lo-routes so loopback (lo) routes are included in host network facts; if false, they are omitted (default).
- type:
bool- runtime updatable:
false- default:
false
- allow_bgp_routes
If true, cephadm list-networks is run with --allow-bgp-routes so BGP routes from
ip route ls proto bgpandip -6 route ls proto bgpare merged into host network facts; if false (default), only the main IPv4 and IPv6 tables are used.- type:
bool- runtime updatable:
false- default:
false
- manage_etc_ceph_ceph_conf
Manage and own /etc/ceph/ceph.conf on hosts.
- type:
bool- runtime updatable:
false- default:
false
- manage_etc_ceph_ceph_conf_hosts
PlacementSpec describing on which hosts to manage /etc/ceph/ceph.conf
- type:
str- runtime updatable:
false- default:
*
- max_count_per_host
Max number of daemons per service per host: guard against mistakes and runaways
- type:
int- runtime updatable:
false- default:
10
OSDs and Devices
These options control the device inventory, OSD memory autotuning, and OSD removal. See Automatically Tuning OSD Memory and Remove an OSD.
- device_cache_timeout
Seconds for which to cache device inventory
- type:
secs- runtime updatable:
false- default:
1800
- device_enhanced_scan
Use libstoragemgmt during device scans
- type:
bool- runtime updatable:
false- default:
false
- inventory_list_all
Whether ceph-volume inventory should report more devices (mostly mappers (LVs / mpaths), partitions…)
- type:
bool- runtime updatable:
false- default:
false
- autotune_memory_target_ratio
Fraction of total system memory to divide among autotuned daemons. Converged systems hosting both Ceph and compute should set a lower value; systems with more than 10 GiB of memory per OSD may benefit from a slightly larger value so that the abundance of RAM can be fully utilized
- type:
float- runtime updatable:
false- default:
0.7
- autotune_interval
How frequently to autotune daemon memory
- type:
secs- runtime updatable:
false- default:
600
- max_osd_draining_count
Max number of OSDs that will be drained simultaneously when OSDs are removed
- type:
int- runtime updatable:
false- default:
10
Health Checks
These options control the health warnings that cephadm raises for stray hosts, stray daemons, and failed host checks, and the cluster configuration checks. See “Health Checks” in Cephadm Operations.
- stray_daemon_check_interval
How frequently cephadm should check for the presence of stray daemons
- type:
secs- runtime updatable:
false- default:
1800
- warn_on_stray_hosts
Raise a health warning if daemons are detected on a host that is not managed by cephadm
- type:
bool- runtime updatable:
false- default:
true
- warn_on_stray_daemons
Raise a health warning if daemons are detected that are not managed by cephadm
- type:
bool- runtime updatable:
false- default:
true
- warn_on_failed_host_check
Raise a health warning if the host check fails
- type:
bool- runtime updatable:
false- default:
true
- config_checks_enabled
Enable or disable cephadm configuration analysis
- type:
bool- runtime updatable:
false- default:
false
Upgrades
These options control the checks that cephadm runs before an upgrade and how many daemons it upgrades at a time. See Upgrading Ceph.
- upgrade_cpu_isa_check
Before upgrading, verify that host CPUs support the x86-64 microarchitecture level required by the target release; set to false to skip the check (e.g. when using custom-built images targeting an older CPU generation)
- type:
bool- runtime updatable:
false- default:
true
- max_parallel_osd_upgrades
Maximum number of OSD daemons upgraded in parallel.
- type:
int- runtime updatable:
false- default:
16
- max_gateway_upgrades_per_pass
Maximum number of gateway daemons (rgw, iscsi, nfs, nvmeof, smb) upgraded in a single upgrade pass. For rgw, iscsi, nvmeof and smb this is a per-daemon cap and a service larger than it is split across passes. nfs daemons are batched by whole services instead, because restarting one nfs daemon puts the rest of its service into a grace period, so a pass may exceed this value when a single nfs service is larger than it.
- type:
int- runtime updatable:
false- default:
16- min:
0
- pg_autoscale_during_upgrade
Opt-in to keep PG autoscaling enabled during OSD upgrades. When False (default), cephadm disables pool autoscaling (sets noautoscale) before OSD upgrades and restores it on completion/stop/failure. Set to true to keep autoscaling on during upgrade.
- type:
bool- runtime updatable:
false- default:
false
Monitoring and Dashboard
These options set the alert and dashboard files, the service discovery port, and TLS for the monitoring stack that cephadm deploys, and whether cephadm configures the Dashboard to use the services that it deploys. See Monitoring Services.
- prometheus_alerts_path
Location of alerts to include in Prometheus Alertmanager
- type:
str- runtime updatable:
false- default:
/etc/prometheus/ceph/ceph_default_alerts.yml
- grafana_dashboards_path
Location of dashboards to include in Grafana
- type:
str- runtime updatable:
false- default:
/etc/grafana/dashboards/ceph-dashboard/
- service_discovery_port
Cephadm service discovery port
- type:
int- runtime updatable:
false- default:
8765
- secure_monitoring_stack
Enable TLS security for all monitoring stack daemons
- type:
bool- runtime updatable:
false- default:
false
- config_dashboard
Manage configs like API endpoints in Dashboard.
- type:
bool- runtime updatable:
false- default:
true
Hardware Monitoring
These options control node-proxy, which reads hardware status from the out-of-band management interface of each host. See Hardware Monitoring.
- hw_monitoring
Whether the hardware monitoring daemon be deployed on every host?
- type:
bool- runtime updatable:
false- default:
false
- hw_monitoring_vendor
Redfish vendor implementation for node-proxy (generic, dell, atollon).
- type:
str- runtime updatable:
false- default:
generic
- oob_default_addr
Default IP address for RedFish API (OOB management).
- type:
str- runtime updatable:
false- default:
169.254.1.1
Cephadm Agent
These options control the cephadm agent, an optional daemon on each host that gathers host metadata and sends it to the active Manager.
- use_agent
Use the cephadm agent on each host to gather and send metadata
- type:
bool- runtime updatable:
false- default:
false
- agent_refresh_rate
How often each agent sends metadata. Use -1 to auto-adjust based on cluster size.
- type:
int- runtime updatable:
false- default:
-1
- agent_starting_port
The first TCP port the agent will try to bind to. Up to 1000 subsequent ports will be attempted if this port cannot be bound
- type:
int- runtime updatable:
false- default:
4721
- agent_down_multiplier
Multiplied by agent refresh rate to calculate how long agent must not report before being marked down
- type:
float- runtime updatable:
false- default:
3.0
Certificates
These options control how cephadm checks, renews, and signs the TLS certificates that it manages. See Certificate Management.
- certificate_automated_rotation_enabled
This flag controls whether cephadm automatically rotates certificates upon expiration.
- type:
bool- runtime updatable:
false- default:
true
- certificate_check_period
Specifies how often (in days) the certificate should be checked for validity.
- type:
int- runtime updatable:
false- default:
1- allowed range:
[0, 30]
- certificate_duration_days
Specifies the duration of self-signed certificates generated and signed by the cephadm root CA
- type:
int- runtime updatable:
false- default:
1095- allowed range:
[90, 3650]
- certificate_renewal_threshold_days
Specifies the lead time in days to initiate certificate renewal before expiration.
- type:
int- runtime updatable:
false- default:
30- allowed range:
[10, 90]
Logging and Debugging
These options control what cephadm logs, and where, for the module itself,
for the cephadm binary on each host, for ceph-volume, and for SSH
connections. See Ceph Daemon Logs and Controlling asyncssh Log Verbosity.
- log_to_cluster
Log to the “cephadm” cluster log channel”
- type:
bool- runtime updatable:
false- default:
true
- log_refresh_metadata
Log all refresh metadata. Includes daemon, device, and host info collected regularly. Only has effect if logging at the debug level
- type:
bool- runtime updatable:
false- default:
false
- log_deploy_configuration
Whether to log deploy config for daemons cephadm deploys in both the cephadm mgr module and cephadm.log on individual hosts. Useful for debugging and developers, but these log statements may contain sensitive info such as cephx keys. Only relevant when logging at debug level
- type:
bool- runtime updatable:
false- default:
false
- cephadm_log_destination
Destination for cephadm command persistent logging
- type:
str- runtime updatable:
false- default:
<empty string>
- cephadm_binary_logging_level
Logging verbosity for the cephadm binary when invoked by the mgr (e.g. check-host, gather-facts).
- type:
str- runtime updatable:
false- default:
debug
- ceph_volume_log_level
Change log level for ceph-volume commands executed by cephadm
- type:
str- runtime updatable:
false- default:
info
- asyncssh_log_level
asyncssh library log level. Controls the verbosity of the SSH log that cephadm captures per connection attempt and writes to the mgr log when a connection fails. Default is INFO, WARNING or ERROR reduce the captured output. Set to DEBUG only when actively diagnosing SSH connectivity issues.
- type:
str- runtime updatable:
false- default:
INFO
- asyncssh_debug_level
asyncssh library debug verbosity level. Set asyncssh_log_level to DEBUG first to see any debug output. 1-3 produce increasing detail (Use 3 = full debug cautiously as it may expose passwords in clear text). 0 restores the minimum verbosity (asyncssh level 1). To turn debug output off, set asyncssh_log_level to INFO, WARNING, or ERROR.
- type:
int- runtime updatable:
false- default:
0- allowed range:
[0, 3]
Brought to you by the Ceph Foundation
The Ceph Documentation is a community resource funded and hosted by the non-profit Ceph Foundation. If you would like to support this and our other efforts, please consider joining now.