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

推荐订阅源

OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
雷峰网
雷峰网
Hugging Face - Blog
Hugging Face - Blog
IT之家
IT之家
H
Help Net Security
腾讯CDC
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The GitHub Blog
The GitHub Blog
V
V2EX
M
MIT News - Artificial intelligence
Vercel News
Vercel News
WordPress大学
WordPress大学
博客园 - 三生石上(FineUI控件)
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
阮一峰的网络日志
阮一峰的网络日志
B
Blog RSS Feed
D
Docker
V
Visual Studio Blog
博客园 - 叶小钗
美团技术团队
S
SegmentFault 最新的问题
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com

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.