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

推荐订阅源

aimingoo的专栏
aimingoo的专栏
Jina AI
Jina AI
WordPress大学
WordPress大学
Recent Announcements
Recent Announcements
G
Google Developers Blog
I
InfoQ
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Google DeepMind News
Google DeepMind News
P
Proofpoint News Feed
MyScale Blog
MyScale Blog
M
MIT News - Artificial intelligence
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
C
Check Point Blog
J
Java Code Geeks
T
Tailwind CSS Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Microsoft Security Blog
Microsoft Security Blog
MongoDB | Blog
MongoDB | Blog
V
Visual Studio Blog
人人都是产品经理
人人都是产品经理
量子位
A
About on SuperTechFans
D
DataBreaches.Net
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知

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 Understand PG Splitting in Ceph
Nawaz Dhandala · 2026-03-31 · via OneUptime Blog

What Is PG Splitting?

When a Ceph pool's pg_num increases (either manually or via autoscaling), existing PGs are split into smaller PGs through a process called PG splitting. Each existing PG is divided into two child PGs, and the objects it contained are redistributed between them. PG splitting allows Ceph to use more OSDs for data distribution and improves parallel I/O performance for growing pools.

PG splitting is the opposite of PG merging, which occurs when pg_num decreases.

How Splitting Works Internally

When pg_num is doubled (e.g., from 64 to 128):

  1. New PG IDs are allocated (1.0 splits into 1.0 and 1.40, since PG ID 64 = 0x40 in hex)
  2. Each existing primary OSD splits its PG into two
  3. Objects are redistributed based on the new CRUSH mapping
  4. Replicas are synchronized to secondary OSDs
  5. The split is acknowledged to monitors when complete

Triggering a PG Split

Manually increase pg_num to trigger splits:

# Check current pg_num
kubectl -n rook-ceph exec -it deploy/rook-ceph-tools -- \
  ceph osd pool get mypool pg_num

# Double the PG count
kubectl -n rook-ceph exec -it deploy/rook-ceph-tools -- \
  ceph osd pool set mypool pg_num 128

# pgp_num controls actual placement - increase after pg_num
kubectl -n rook-ceph exec -it deploy/rook-ceph-tools -- \
  ceph osd pool set mypool pgp_num 128

Important: Always increase pg_num before pgp_num. Setting pgp_num equal to pg_num triggers data movement. Keeping pgp_num at the old value temporarily pauses movement while pg_num increases.

Monitoring Split Progress

Watch the split progress:

kubectl -n rook-ceph exec -it deploy/rook-ceph-tools -- \
  watch -n 5 "ceph pg stat"

kubectl -n rook-ceph exec -it deploy/rook-ceph-tools -- \
  ceph status | grep -E "splitting|peering|active"

PGs temporarily enter splitting or peering states during the process.

Performance Impact During Splits

PG splitting causes temporary I/O overhead as OSDs:

  • Rebuild PG data structures
  • Verify object placement
  • Synchronize with replicas

To minimize client impact, split during low-traffic periods and throttle recovery:

kubectl -n rook-ceph exec -it deploy/rook-ceph-tools -- \
  ceph config set osd osd_max_backfills 1

Incremental Splitting

Split incrementally rather than jumping to the final pg_num all at once. Each doubling should complete before the next:

# Stage 1: 64 to 128
ceph osd pool set mypool pg_num 128
# Wait for completion...
ceph osd pool set mypool pgp_num 128

# Stage 2: 128 to 256 (if needed)
ceph osd pool set mypool pg_num 256
# Wait...
ceph osd pool set mypool pgp_num 256

Autoscaler-Triggered Splits

When pg_autoscale_mode=on, Ceph triggers splits automatically. View pending splits:

kubectl -n rook-ceph exec -it deploy/rook-ceph-tools -- \
  ceph osd pool autoscale-status | grep -v "^$"

Summary

PG splitting redistributes objects across more PGs as a pool grows, improving data distribution and parallel I/O. Always increase pg_num before pgp_num to control when data movement occurs. Split incrementally in powers of two and monitor completion between stages. PG autoscaling handles splitting automatically when enabled, making manual management unnecessary for most production pools.