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

推荐订阅源

Google DeepMind News
Google DeepMind News
爱范儿
爱范儿
J
Java Code Geeks
L
LangChain Blog
V
V2EX
大猫的无限游戏
大猫的无限游戏
S
SegmentFault 最新的问题
博客园 - Franky
Microsoft Azure Blog
Microsoft Azure Blog
Jina AI
Jina AI
Blog — PlanetScale
Blog — PlanetScale
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The Cloudflare Blog
博客园 - 司徒正美
B
Blog
G
Google Developers Blog
Stack Overflow Blog
Stack Overflow Blog
罗磊的独立博客
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Apple Machine Learning Research
Apple Machine Learning Research
Engineering at Meta
Engineering at Meta
MyScale Blog
MyScale Blog
有赞技术团队
有赞技术团队
Hugging Face - Blog
Hugging Face - Blog

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 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 Use Rook-Ceph with Velero for Kubernetes Backup
How to View PG Scaling Recommendations with autoscale-status
Nawaz Dhandala · 2026-03-31 · via OneUptime Blog

Why Review PG Scaling Recommendations?

The Ceph PG autoscaler continuously monitors pool sizes and suggests PG count adjustments. Reviewing these recommendations helps you understand whether pools are over or under-provisioned with PGs, catch configuration issues early, and validate autoscaler behavior before enabling automatic changes.

Running autoscale-status

From the Rook toolbox:

kubectl -n rook-ceph exec -it deploy/rook-ceph-tools -- \
  ceph osd pool autoscale-status

For formatted output:

kubectl -n rook-ceph exec -it deploy/rook-ceph-tools -- \
  ceph osd pool autoscale-status --format json | python3 -m json.tool

Reading the Output

A typical output table looks like:

POOL                     SIZE  TARGET SIZE  RATE  RAW CAPACITY  RATIO  TARGET RATIO  EFFECTIVE RATIO  BIAS  PG_NUM  NEW PG_NUM  AUTOSCALE  BULK
device_health_metrics      0               3.0      11.3T         0.0                          0.0   1.0       1              warn
replicapool               50G               3.0      11.3T         0.013                        0.0   1.0     128      32       warn
.mgr                     1.5M               1.0      11.3T         0.0                          0.0   4.0       1              warn

Key columns explained:

  • SIZE: Actual logical data stored in the pool
  • TARGET SIZE: Manually configured target size hint (from target_size_bytes)
  • RATE: Replication multiplier (3x for 3-way replication, variable for erasure coding)
  • RATIO: Current fraction of raw cluster capacity used by this pool
  • PG_NUM: Current number of PGs
  • NEW PG_NUM: Recommended PG count (blank means current count is optimal)
  • AUTOSCALE: Current mode (off/warn/on)

Interpreting Recommendations

When NEW PG_NUM differs significantly from PG_NUM, the autoscaler is recommending a change. Ceph only acts (in on mode) when the ratio is off by a factor of 3x or more.

A recommendation to decrease PGs means:

  • The pool has fewer objects than expected
  • Current PG count wastes memory

A recommendation to increase PGs means:

  • The pool has grown larger than the initial PG estimate accounted for
  • PGs are unbalanced, with some OSDs handling too much data

Checking Why a Recommendation Was Made

Get detailed reasons for a specific pool:

kubectl -n rook-ceph exec -it deploy/rook-ceph-tools -- \
  ceph osd pool autoscale-status --format json | \
  python3 -c "import sys,json; \
  [print(p['pool_name'], p['pg_num'], '->', p.get('pg_num_final','same')) \
  for p in json.load(sys.stdin)]"

Acting on Recommendations Manually

If autoscaling is in warn mode, apply recommendations manually:

kubectl -n rook-ceph exec -it deploy/rook-ceph-tools -- \
  ceph osd pool set replicapool pg_num 32

kubectl -n rook-ceph exec -it deploy/rook-ceph-tools -- \
  ceph osd pool set replicapool pgp_num 32

Always reduce pg_num and pgp_num together and set pgp_num last.

Summary

ceph osd pool autoscale-status is the primary tool for understanding PG scaling recommendations. Review it regularly to validate pool sizing, identify misconfigurations, and understand what the autoscaler would change in on mode. Use the NEW PG_NUM column as guidance for manual adjustments when running in warn mode.