Project

General

Profile

Actions

Enhancement #69477

closed
AD

Disable the PG autoscaler during Ceph upgrades

Enhancement #69477: Disable the PG autoscaler during Ceph upgrades

Added by Anthony D'Atri almost 2 years ago. Updated about 1 month ago.

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

0%

Source:
Support
Backport:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Tags (freeform):
Fixed In:
v21.0.0-1449-g5a0c2ae91d
Released In:
v21.2.0~471
Upkeep Timestamp:
2026-10-24T01:45:03+00:00

Description

I'm crosslinking this to a parallel RH / IBM RFE.

cf. https://github.com/ceph/ceph/pull/60492 where I seek to raise guidance for the PG ratio to where it used to be, because the current autoscaler defaults lead to performance and other issues by virtue of dramatically undershooting `pg_num` for pools.

The original retcon from 200 to 100 was, according to some digging I did at the time, to protect people from OOMing themselves. My sense is that with Filestore pretty much out of the picture, the `osd_memory_target` mostly obviates this concern, and we will benefit from raising the guidance to at least the prior value.

What does this have to do with disabling the autoscaler during upgrades?

When an admin upgrades a given cluster to a release that introduces these changes, it would be ungood for the autoscaler to delay or disrupt the upgrade by performing PG splits, even (especially!) with the throttling of `pgp_num` bumps. The splits would add to the inherent recovery cost of restarting OSDs, but moreover it could significantly delay upgrades by the orchestrator stalling until all PGS are `active+clean` before proceeding to the next OSD node. We have customers with 2900+ OSD nodes where upgrades are already too slow.

By having the autoscaler disabled by the orchestrator / cephadm during upgrades, we streamline the process. This is roughly in the vein of `osd_scrub_during_recovery`. I would think it safe to do all the time, but because we never know what corner case a given deployment might present, we could make it opt-in with a new config option called `pg_autoscale_during_upgrade`.

Those using package installs or other orchestration (Rook, Ansible, homebrew, whatever Canonical does, etc) can accomplish this by disabling the autoscaler in their own processes, but for the party line of `cephadm` / `ceph orch` upgrades I think it's advantageous to at least have a documented option from the principal of least surprise.

@Adam King @mhackett @Mark Nelson

AD Updated by Anthony D'Atri 8 months ago Actions #2

  • Pull request ID set to 67694

UB Updated by Upkeep Bot 7 months ago Actions #3

  • Status changed from New to Resolved
  • Merge Commit set to 5a0c2ae91df7e48ff5b6150dffb8c128661b0287
  • Fixed In set to v21.0.0-1449-g5a0c2ae91d
  • Upkeep Timestamp set to 2026-05-14T19:21:53+00:00

UB Updated by Upkeep Bot about 1 month ago Actions #4

  • Released In set to v21.2.0~471
  • Upkeep Timestamp changed from 2026-05-14T19:21:53+00:00 to 2026-10-24T01:45:03+00:00
Actions

Also available in: PDF Atom