New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pacific: mgr/autoscaler: Introduce noautoscale flag #44540
pacific: mgr/autoscaler: Introduce noautoscale flag #44540
Conversation
1e8a2c4
to
29db24b
Compare
|
jenkins test make check |
2022-01-12T16:14:07.118 INFO:tasks.workunit.client.0.smithi124.stderr:+ unset CEPH_CLI_TEST_DUP_COMMAND
2022-01-12T16:14:07.119 INFO:tasks.workunit.client.0.smithi124.stderr:++ ceph osd pool ls
2022-01-12T16:14:07.119 INFO:tasks.workunit.client.0.smithi124.stderr:++ wc -l
2022-01-12T16:14:07.394 INFO:tasks.workunit.client.0.smithi124.stderr:+ NUM_POOLS=1
2022-01-12T16:14:07.394 INFO:tasks.workunit.client.0.smithi124.stderr:+ '[' 1 -gt 0 ']'
2022-01-12T16:14:07.395 INFO:tasks.workunit.client.0.smithi124.stdout:test requires no preexisting pools
2022-01-12T16:14:07.396 DEBUG:teuthology.orchestra.run:got remote process result: 1
2022-01-12T16:14:07.396 INFO:tasks.workunit.client.0.smithi124.stderr:+ echo 'test requires no preexisting pools'
2022-01-12T16:14:07.397 INFO:tasks.workunit.client.0.smithi124.stderr:+ exit 1
2022-01-12T16:14:07.397 INFO:tasks.workunit:Stopping ['mon/test_noautoscale_flag.sh'] on client.0...test created device_health_metrics, need to modify the test to not create it. |
29db24b
to
73bc2a4
Compare
|
1/1 Test passed the change in test-noautoscale-flag.yaml worked. |
|
Still need to be tested against the rados suite to make sure it's clean |
PendingReleaseNotes
Outdated
| >=16.2.7 | ||
| -------- | ||
|
|
||
| * MGR: The pg_autoscaler can now be turned `on` and `off` globally | ||
| with the `noautoscale` flag. By default this flag is unset and | ||
| the default pg_autoscale mode remains the same. | ||
| For more details, see: | ||
|
|
||
| https://docs.ceph.com/en/latest/rados/operations/placement-groups/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: should be under 16.2.8 now
`noautoscale` flag is a feature where the user can choose to flip the switch between turning autoscale `on` and `off` for all pools with a single command. `osd pool set noautoscale` will turn all autoscale mode`off` for all pools. `osd pool unset noautoscale` will turn all autoscale mode `on` for all pools. Signed-off-by: Kamoltat <ksirivad@redhat.com> (cherry picked from commit be17f04) Conflicts: src/pybind/mgr/pg_autoscaler/module.py - trivial fix
set and unset the noautoscale flag, evaluate if the results are what we expected. As well as, evaluate if the flag is correct when we create new pools. Signed-off-by: Kamoltat <ksirivad@redhat.com> (cherry picked from commit bb42c71) Conflicts: test-noautoscale-flag.yaml - modified pre-mgr-command to not create device health monitor
Updated the docs in https://docs.ceph.com/en/latest/rados/operations/placement-groups/ and updated the release notes to reflect noautoscale flag. Signed-off-by: Kamoltat <ksirivad@redhat.com> (cherry picked from commit 9baed03) Conflicts: PendingReleaseNotes - trivial fix
73bc2a4
to
b5fb850
Compare
|
jenkins test api |
1 similar comment
|
jenkins test api |
noautoscaleflag is a feature where theuser can choose to flip the switch between
turning autoscale
onandofffor allpools with a single command.
osd pool set noautoscalewill turn allautoscale mode
offfor all pools.osd pool unset noautoscalewill turn allautoscale mode
onfor all pools.Fixes: https://tracker.ceph.com/issues/53769
Backporting the relevant commits from master PR:
#43716
Signed-off-by: Kamoltat ksirivad@redhat.com
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume tox