惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

量子位
WordPress大学
WordPress大学
小众软件
小众软件
云风的 BLOG
云风的 BLOG
IT之家
IT之家
人人都是产品经理
人人都是产品经理
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Last Week in AI
Last Week in AI
博客园 - 【当耐特】
T
Tailwind CSS Blog
阮一峰的网络日志
阮一峰的网络日志
V
V2EX
宝玉的分享
宝玉的分享
博客园 - Franky
F
Fortinet All Blogs
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
GbyAI
GbyAI
Hugging Face - Blog
Hugging Face - Blog
Jina AI
Jina AI
D
Docker
博客园 - 聂微东
C
Check Point Blog
H
Help Net Security

OneUptime Blog

How to Monitor Azure App Services (PaaS) with OpenTelemetry Grafana Stack vs OneUptime: DIY Observability or Unified Platform? Your AI Workloads Are About to Blow Up Your Observability Bill The Great Observability Consolidation Is Here How to Write Custom Object Classes for Ceph How to Write Custom Ceph Manager Modules How to Write a ceph.conf Configuration File How to Use Rook-Ceph with OpenShift How to Use Rook-Ceph with Longhorn for Comparison How to Configure Volume Snapshot Class for RBD in Rook How to Configure VolumeReplicationClass Scheduling Intervals in Rook How to Set Up Volume Replication with Rook-Ceph How to Create Volume Group Snapshots with Rook CSI How to Visualize Ceph Network Performance in Grafana How to Enable Virtual Host-Style Bucket Access in Rook How to View Runtime Configuration via Admin Socket How to View Quota Settings and Update Stats in Ceph RGW How to View PG Scaling Recommendations with autoscale-status How to View PG Distribution via Admin Socket How to View Performance Metrics in the Ceph Dashboard How to View OSD Performance Counters in Ceph How to View Connection Status via Admin Socket How to View Ceph Cluster Summary Dashboard via CLI How to Version Control Rook-Ceph Configuration How to Version Control Ceph Infrastructure with Terraform How to Verify Kubernetes Node Requirements for Rook-Ceph Deployment How to Verify Health Before and After Rook Upgrades How to Verify Data Integrity with Deep Scrubbing How to Verify Complete Rook-Ceph Cleanup How to Verify Backup Integrity from Ceph Snapshots
How to Update Ceph Configuration on a Running Rook Cluster
Nawaz Dhandala · 2026-03-31 · via OneUptime Blog

Configuration Methods in Rook

Rook provides three ways to update Ceph configuration:

  1. ceph config set via the toolbox (runtime, persisted to mon KV store)
  2. ConfigMap override via Rook's rook-config-override
  3. Editing the CephCluster spec (for Rook-managed settings)

Method 1: ceph config set (Recommended for Runtime Changes)

This method is persistent and immediately applied without restarts:

# Set OSD memory target to 4GB
kubectl -n rook-ceph exec -it deploy/rook-ceph-tools -- \
  ceph config set osd osd_memory_target 4294967296

# Set RGW thread pool size
kubectl -n rook-ceph exec -it deploy/rook-ceph-tools -- \
  ceph config set client.rgw rgw_thread_pool_size 512

# Verify the setting
kubectl -n rook-ceph exec -it deploy/rook-ceph-tools -- \
  ceph config get osd osd_memory_target

Method 2: rook-config-override ConfigMap

For settings that must be in ceph.conf:

apiVersion: v1
kind: ConfigMap
metadata:
  name: rook-config-override
  namespace: rook-ceph
data:
  config: |
    [global]
    osd_pool_default_size = 3
    osd_pool_default_min_size = 2
    mon_osd_full_ratio = .95
    mon_osd_backfillfull_ratio = .90
    mon_osd_nearfull_ratio = .85

    [osd]
    osd_scrub_begin_hour = 1
    osd_scrub_end_hour = 5
    osd_max_scrubs = 1

Apply and restart the relevant daemons for the change to take effect:

kubectl -n rook-ceph apply -f rook-config-override.yaml
kubectl -n rook-ceph rollout restart deployment/rook-ceph-mgr-a

Method 3: CephCluster Spec Updates

Some settings are managed directly in the CephCluster spec:

spec:
  mgr:
    modules:
    - name: pg_autoscaler
      enabled: true
    - name: dashboard
      enabled: true
  monitoring:
    enabled: true
    rulesNamespaceOverride: monitoring
kubectl -n rook-ceph apply -f ceph-cluster.yaml

Checking Currently Applied Configuration

# View all non-default config settings
kubectl -n rook-ceph exec -it deploy/rook-ceph-tools -- ceph config dump

# Get a specific daemon's full config
kubectl -n rook-ceph exec -it deploy/rook-ceph-tools -- \
  ceph config show osd.0

Resetting a Config to Default

kubectl -n rook-ceph exec -it deploy/rook-ceph-tools -- \
  ceph config rm osd osd_memory_target

Verifying Config Changes Applied

For runtime changes, verify without restarting:

kubectl -n rook-ceph exec -it deploy/rook-ceph-tools -- \
  ceph tell osd.0 config get osd_memory_target

Summary

Rook-Ceph supports runtime configuration updates via ceph config set (persisted in the mon KV store) and file-based overrides via the rook-config-override ConfigMap. Both methods persist across daemon restarts. Runtime changes via ceph config set are preferred for most operational tuning, while ConfigMap overrides are useful for settings that must be present in ceph.conf before the daemon connects to the monitors.