Enhancement #69477
closedDisable the PG autoscaler during Ceph upgrades
0%
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 almost 2 years ago
AD Updated by Anthony D'Atri 8 months ago
- Pull request ID set to 67694
UB Updated by Upkeep Bot 7 months ago
- 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
- 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