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

推荐订阅源

IT之家
IT之家
The GitHub Blog
The GitHub Blog
F
Fortinet All Blogs
Last Week in AI
Last Week in AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
L
LangChain Blog
爱范儿
爱范儿
博客园_首页
Stack Overflow Blog
Stack Overflow Blog
MongoDB | Blog
MongoDB | Blog
博客园 - 三生石上(FineUI控件)
大猫的无限游戏
大猫的无限游戏
宝玉的分享
宝玉的分享
GbyAI
GbyAI
H
Help Net Security
A
About on SuperTechFans
Recent Announcements
Recent Announcements
Hugging Face - Blog
Hugging Face - Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
雷峰网
雷峰网
D
Docker
博客园 - Franky
有赞技术团队
有赞技术团队
G
Google Developers 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.