Repository navigation
RADOS: Generalize stretch mode pg temp handling to be usable without stretch mode - #56233
Conversation
de33711 to
8413e1c
Compare
3b504ac to
1b24e98
Compare
3bbda7a to
a2dc1ef
Compare
3739add to
2969da8
Compare
2969da8 to
a9ec826
Compare
|
Tested the newly created integration test: |
a9ec826 to
b79cec7
Compare
069bd14 to
ea789dd
Compare
525aecb to
85a1e5a
Compare
85a1e5a to
50b6a34
Compare
|
@gregsfortytwo ready for second round of review :) |
|
/a/ksirivad-2024-07-12_16:29:18-rados-wip-ksirivad-pr-56233-plus-57381-distro-default-smithi/ 287/316 Passed (scheduled against RADOS suite, using a branch that combines #56233 with #57381 wip-ksirivad-pr-56233-plus-57381 FAILED & DEAD jobs unrelated 7798816, 7798892, 7798966, 7799045 https://tracker.ceph.com/issues/66881 qa/workunits/cephtool/test.sh: cannot remove '/tmp/foo': Operation not permitted RADOS approved |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
In the command `ceph osd pool stretch set`
<pool> <peering_crush_bucket_count>
<peering_crush_bucket_target> <peering_crush_bucket_barrier>
<crush_rule> <size> <min_size>
user has the option of setting the value of `peering_crush_bucket_{count|target|barrier}`.
This will then allow the utilization `calc_replicated_acting_stretch`,
since with `peering_crush_bucket_count != 0`
the pool is now a stretch_pool and we can handle pg_temp
better by settubg barriers and limits to how much OSDs
should be in a pg_temp.
This will enable the specify pool to
handle pg_temp properly during create_acting, as a stretch pool
should.
User can also use the command:
`osd pool stretch show <pool> `
to show all the stretch related information for the pool
pool: cephfs.a.data
pool_id: 3
is_stretch_pool: 1
peering_crush_bucket_count: 3
peering_crush_bucket_target: 3
peering_crush_bucket_barrier: 8
crush_rule: replicated_rule_custom
size: 3
min_size: 2
User can also unset the stretch pool wiith the commnad:
`osd pool stretch unset <pool>`
However, the pool must be a stretch pool.
Fixes: https://tracker.ceph.com/issues/64802
Signed-off-by: Kamoltat <[email protected]>
Test the following new Ceph CLI commands: `ceph osd pool stretch set` `ceph osd pool stretch unset` `ceph osd pool stretch show` `qa/workunits/mon/mon-stretch-pool.sh` will create the stretch cluster while performing input validation for the CLI Commands mentioned above. `qa/tasks/stretch_cluster.py` is in charge of setting a pool to stretch cluster and checks whether it prevents PGs from the going active when there is not enough buckets available in the acting set of PGs to go active. Also, test different MON fail over scenarios after setting pool as stretch `qa/suites/rados/singleton/all/mon-stretch-pool.yaml` brings the scripts together. Fixes: https://tracker.ceph.com/issues/64802 Signed-off-by: Kamoltat <[email protected]>
50b6a34 to
cdf0f92
Compare
cdf0f92 to
666266e
Compare
Test the case where 2 DC loses connection with each other for a 3 AZ stretch cluster with stretch pool enabled. Check if cluster is accessible and PGs are active+clean after reconnected. Signed-off-by: Kamoltat <[email protected]>
666266e to
7b41aff
Compare
|
jenkins test windows |
|
Fine by me to merge if it passes tests. |
RADOS APPROVED/ksirivad-2024-08-06_15:03:07-rados-wip-ksirivad-57381-and-56233-distro-default-smithi/ Known Failures:
|
ATTENTION:
THIS PR SHOULD BE TESTED IN CONJUNCTION WITH #57381
Recommend merging #57381 before this PR.
In the command
ceph osd pool stretch setuser has the option of setting the value of
peering_crush_bucket_{count|target|barrier}.This will then allow the utilization
calc_replicated_acting_stretch,since with
peering_crush_bucket_count != 0the pool is now a stretch_pool and we can handle pg_temp
better by setting barriers and limits to how much OSDs
should be in a
pg_temp.This will enable the specify pool to
handle
pg_tempproperly duringcreate_acting, as a stretch poolshould.
Users can also use the command:
osd pool stretch show <pool>to show all the stretch related information for the pool
pool: cephfs.a.data
pool_id: 3
is_stretch_pool: 1
peering_crush_bucket_count: 3
peering_crush_bucket_target: 3
peering_crush_bucket_barrier: 8
crush_rule: replicated_rule_custom
size: 3
min_size: 2
Users can also unset the stretch pool with the command:
osd pool stretch unset <pool>However, the pool must be a stretch pool.
Fixes: https://tracker.ceph.com/issues/64802
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.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 toxjenkins test windowsjenkins test rook e2e