Bug 1997332

Summary: [RFE] Global on/off flag for PG autoscale feature
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vikhyat Umrao <vumrao>
Component: RADOSAssignee: Kamoltat (Junior) Sirivadhna <ksirivad>
Status: CLOSED ERRATA QA Contact: Pawan <pdhiran>
Severity: medium Docs Contact: Ranjini M N <rmandyam>
Priority: unspecified    
Version: 5.0CC: agunn, akupczyk, bhubbard, ceph-eng-bugs, ksirivad, mmurthy, nojha, pdhiran, rmandyam, rzarzyns, sseshasa, tserlin, vumrao
Target Milestone: ---Keywords: FutureFeature
Target Release: 5.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-16.2.7-39.el8cp Doc Type: Enhancement
Doc Text:
.Use the `noautoscale` flag to manage the PG autoscaler With this release, `pg_autoscaler` can be turned `on` or `off` globally using the `noautoscale` flag. This flag is set to `off` by default. When this flag is set, then all the pools have `pg_autoscale_mode` as `off` For more information, see the link:{storage-strategies-guide}#manually-updating-autoscale-profile[_Manually updating autoscale profile_] section in the _{storage-product} Storage Strategies Guide_.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-04 10:21:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2031073    

Description Vikhyat Umrao 2021-08-25 01:36:30 UTC
Description of problem:
[RFE] Global on/off flag for PG autoscale feature

https://tracker.ceph.com/issues/51213

For now, we do not have a global flag, like `ceph osd set noout` for the pg autoscale feature. We have pool flags1 for making this feature on and off.
It would be good to have a flag2 that could be a global flag and it should not touch or override pool level configuration like on/off status or any custom tuning.

This global flag will help during upgrades when we are bouncing the OSD's or any kind of cluster maintenance/OSD maintenance. Because during these activities we do not want the pg-autoscale feature to cause peering/recovery/backfills etc. We can simply set the flag before these activities and once the activity will complete just unset it.

[1] https://docs.ceph.com/en/latest/rados/operations/placement-groups/#autoscaling-placement-groups
[2] `ceph osd set noautoscale` and `ceph osd unset noautoscale`


Version-Release number of selected component (if applicable):
RHCS 5

Comment 2 Kamoltat (Junior) Sirivadhna 2021-10-19 19:30:56 UTC
Sure thing!

Comment 16 Kamoltat (Junior) Sirivadhna 2022-02-16 14:50:24 UTC
Hi,

Yep, the doc text looks good.

Thank you,

Comment 18 errata-xmlrpc 2022-04-04 10:21:20 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Red Hat Ceph Storage 5.1 Security, Enhancement, and Bug Fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:1174