Bug #75424
closedPG Autoscaler: Pools with pg_autoscale_mode=off incorrectly consume PG budget
0%
Description
The PG autoscaler calculates `final_pg_target` for all pools and consumes PG budget from all pools regardless of their pg_autoscale_mode setting. Pools with pg_autoscale_mode='off' should be excluded from budget calculations since they cannot be adjusted, but currently they consume budget that should be available to pools with pg_autoscale_mode='on'.
E.g.,
Cluster: 24 OSDs, mon_target_pg_per_osd=250
Total Budget: 24 × 250 = 6,000 raw PGs
pool.a Size 3 (off): 512 PGs size 3 = 1,536 raw PGs --bulk
pool.b Size 3 (on): _ needs autoscaling --bulk
pool.c Size 3 (on): _ needs autoscaling --bulk
What current autoscaler does:
pg_left = 6,000
Split 3 ways: 2,000 raw PGs each
pool.a: calculated 667 PGs (stays 512, mode=off)
pool.b: calculated 667 PGs
pool.c: calculated 667 PGs
What should happen:
Available: 6,000 - 1,536 = 4,464 raw PGs
pool.b should get: 2,232 raw PGs → 744
pool.c should get: 2,232 raw PGs → 744
Although in "What should happen" both pool.b and pool.c will both eventually scale down to 512 to match "what the current autoscaler does", in terms of raw PGs calculation, this is not truly accurate.
KS Updated by Kamoltat (Junior) Sirivadhna 9 months ago
- Description updated (diff)
KS Updated by Kamoltat (Junior) Sirivadhna 9 months ago
- Assignee set to Eric Zhang
KS Updated by Kamoltat (Junior) Sirivadhna 9 months ago
- Project changed from RADOS to mgr
- Category set to pg_autoscaler module
NM Updated by Nitzan Mordechai 6 months ago
Bug scrub: @Eric Zhang any progress on that one?
EZ Updated by Eric Zhang 6 months ago
- Pull request ID set to 67551
EZ Updated by Eric Zhang 6 months ago
- Status changed from New to Resolved
EZ Updated by Eric Zhang 6 months ago
- Status changed from Resolved to Fix Under Review
EZ Updated by Eric Zhang 6 months ago
- Status changed from Fix Under Review to Resolved
EZ Updated by Eric Zhang 6 months ago · Edited
Nitzan Mordechai wrote in #note-4:
Bug scrub: @Eric Zhang any progress on that one?
@Nitzan Mordechai This has been merged in https://github.com/ceph/ceph/pull/67551
UB Updated by Upkeep Bot 6 months ago
- Merge Commit set to b95bdca832b369046ae31fa15231125ead752d32
- Fixed In set to v21.0.0-1763-gb95bdca832
- Upkeep Timestamp set to 2026-06-02T01:31:27+00:00
EZ Updated by Eric Zhang 4 months ago
- Status changed from Resolved to Pending Backport
- Backport set to tentacle
UB Updated by Upkeep Bot 4 months ago
- Copied to Backport #78895: tentacle: PG Autoscaler: Pools with pg_autoscale_mode=off incorrectly consume PG budget added
UB Updated by Upkeep Bot 4 months ago
- Tags (freeform) set to backport_processed
UB Updated by Upkeep Bot 3 months ago
- Status changed from Pending Backport to Resolved
- Tags (freeform) deleted (
backport_processed) - Upkeep Timestamp changed from 2026-06-02T01:31:27+00:00 to 2026-08-27T18:33:22+00:00
UB Updated by Upkeep Bot about 1 month ago
- Released In set to v21.2.0~363
- Upkeep Timestamp changed from 2026-08-27T18:33:22+00:00 to 2026-10-24T01:49:57+00:00