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: mon: osd pool create <pool-name> with --bulk flag #44847
pacific: mon: osd pool create <pool-name> with --bulk flag #44847
Conversation
d2a2533
to
06ad0a8
Compare
|
1/1 passed against rados:singleton:all:pg-autoscaler.yaml |
|
1/1 passed against rados:singleton-bluestore:all:cephtool.yaml |
|
Still need to test against the whole rados suite run, to make sure it doesn't break anything. |
Creating the pool with `--bulk` will allow the pg_autoscaler to use the `scale-down` mode on. Creating pool: `ceph osd pool create <pool-name> --bulk` Get var: `ceph osd pool get <pool-name> bulk` Set var: `ceph osd pool set <pool-name> bulk=true/false/1/0` Removed `autoscale_profile` and incorporate bulk flag into calculating `final_pg_target` for each pool. bin/ceph osd pool autoscale-status no longer has `PROFILE` column but has `BULK` instead. Signed-off-by: Kamoltat <ksirivad@redhat.com> (cherry picked from commit 5f0f967) Conflicts: src/common/options/global.yaml.in - file doesn’t exists in pacific we edited src/common/options.cc and src/common/legacy_config_opts.h instead. src/mon/MonCommands.h - only add `bulk` related stuff not `eio` src/mon/OSDMonitor.cc - use `cmd_getval` instead of `cmd_getval_or` - only add `bulk` related stuff not `eio` src/osd/osd_types.h - only add `bulk` related stuff not `eio` src/pybind/mgr/pg_autoscaler/module.py - remove `profile: ‘ScaleModeT` - keep `threshold: float 3.0` - remove `set_profile_scale_up()` - remove `set_profile_scale_down()` - don’t accept `set_scaling_threshold()`
Modified the unit-test cases to account for bulk flag and remove any `profile` related things. Signed-off-by: Kamoltat <ksirivad@redhat.com> (cherry picked from commit d90a374)
Modified test scrtipt to include `bulk` and remove all `profile` options. Signed-off-by: Kamoltat <ksirivad@redhat.com> (cherry picked from commit c194f4a)
Included bulk flag in the test script such it tests the `get` and `set` of the flag Signed-off-by: Kamoltat <ksirivad@redhat.com> (cherry picked from commit b218335)
Add Release Notes and remove any `profile` related stuff in the autoscaler documentation and replace it with `bulk` flag. Signed-off-by: Kamoltat <ksirivad@redhat.com> (cherry picked from commit abaab51) Conflicts: PendingReleaseNotes - trivial fix
06ad0a8
to
778c2b5
Compare
|
jenkins test api |
|
http://pulpito.front.sepia.ceph.com/?branch=wip-yuri7-testing-2022-02-17-0852-pacific Failures, unrelated: Details: |
Creating the pool with
--bulkwill allowthe pg_autoscaler to use the
scale-downmode on.
Creating pool:
ceph osd pool create <pool-name> --bulkGet var:
ceph osd pool get <pool-name> bulkSet var:
ceph osd pool set <pool-name> bulk=true/false/1/0To do:
Fixes: https://tracker.ceph.com/issues/54082
Backporting the relevant commits from master PR:
#44241
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