Project

General

Profile

Actions

Bug #75424

closed
KS EZ

PG Autoscaler: Pools with pg_autoscale_mode=off incorrectly consume PG budget

Bug #75424: PG Autoscaler: Pools with pg_autoscale_mode=off incorrectly consume PG budget

Added by Kamoltat (Junior) Sirivadhna 9 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
pg_autoscaler module
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
tentacle
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v21.0.0-1763-gb95bdca832
Released In:
v21.2.0~363
Upkeep Timestamp:
2026-10-24T01:49:57+00:00

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.


Related issues 1 (0 open — 1 closed)

Copied to mgr - Backport #78895: tentacle: PG Autoscaler: Pools with pg_autoscale_mode=off incorrectly consume PG budgetResolvedEric Zhang

Actions

KS Updated by Kamoltat (Junior) Sirivadhna 9 months ago Actions #1

  • Description updated (diff)

KS Updated by Kamoltat (Junior) Sirivadhna 9 months ago Actions #2

  • Assignee set to Eric Zhang

KS Updated by Kamoltat (Junior) Sirivadhna 9 months ago Actions #3

  • Project changed from RADOS to mgr
  • Category set to pg_autoscaler module

NM Updated by Nitzan Mordechai 6 months ago Actions #4

Bug scrub: @Eric Zhang any progress on that one?

EZ Updated by Eric Zhang 6 months ago Actions #5

  • Pull request ID set to 67551

EZ Updated by Eric Zhang 6 months ago Actions #6

  • Status changed from New to Resolved

EZ Updated by Eric Zhang 6 months ago Actions #7

  • Status changed from Resolved to Fix Under Review

EZ Updated by Eric Zhang 6 months ago Actions #8

  • Status changed from Fix Under Review to Resolved

EZ Updated by Eric Zhang 6 months ago · Edited Actions #9

UB Updated by Upkeep Bot 6 months ago Actions #10

  • 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 Actions #11

  • Status changed from Resolved to Pending Backport
  • Backport set to tentacle

UB Updated by Upkeep Bot 4 months ago Actions #12

  • 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 Actions #13

  • Tags (freeform) set to backport_processed

UB Updated by Upkeep Bot 3 months ago Actions #14

  • 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 Actions #15

  • 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
Actions

Also available in: PDF Atom