Skip to content

tentacle: mon [stretch-mode]: Allow a max bucket weight diff threshold - #67790

Merged
batrick merged 1 commit into
ceph:tentaclefrom
kamoltat:wip-75493-tentacle
Apr 10, 2026
Merged

batrick merged 1 commit into
ceph:tentaclefrom
kamoltat:wip-75493-tentacle

Conversation

@kamoltat

Copy link
Copy Markdown
Member

@github-actions

Copy link
Copy Markdown

Config Diff Tool Output

+ added: mon_stretch_max_bucket_weight_delta (mon.yaml.in)

The above configuration changes are found in the PR. Please update the relevant release documentation if necessary.
Ignore this comment if docs are already updated. To make the "Check ceph config changes" CI check pass, please comment /config check ok and re-run the test.

@shraddhaag shraddhaag left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like the cherry pick resolutions resulted in a few errors.

Comment thread doc/rados/operations/health-checks.rst Outdated

<<<<<<< HEAD

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we probably want to get rid of this

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Catch, thank you @shraddhaag !

Comment thread doc/rados/operations/health-checks.rst Outdated
This can be done by making sure the combined weight of the OSDs on each dividing
bucket are within the fractional difference defined by
``mon_stretch_max_bucket_weight_delta``.
>>>>>>> d58de5174d0 (mon [stretch-mode]: Allow a max bucket weight diff threshold)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here. I think the previous version of these docs also need to be deleted.

Comment thread PendingReleaseNotes Outdated
Comment on lines +21 to +23
* RADOS: Stretch mode can now be entered even if the two dividing buckets differ
in weight by a small fraction (default 0.1). This is tunable via
`mon_stretch_max_bucket_weight_delta`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's true thank you!

Problem:
Users ran into a problem where the crush bucket
weight different check in stretch mode is too strict, e.g.,
one of the disk that is added to one of the node had slight variation
in the capacity and this caused ceph to fail from enabling the stretch
cluster because crush weight is not balanced. The difference was very small.

Solution:
- Introducing: mon_stretch_max_bucket_weight_delta in mon.yaml.in
  this config var is default to 0.1 and is used as a threshold
  to allow the difference between the two crush buckets in stretch mode
  to be no greater than 10%.
- Introducing: STRETCH_MODE_BUCKET_WEIGHT_IMBALANCE as health warnings
  when the weight delta between the two sites exceeds 10%
- Modified documentations
- Modified tests that exercises this code path

Fixes: https://tracker.ceph.com/issues/72994

Signed-off-by: Kamoltat Sirivadhna <[email protected]>
(cherry picked from commit d58de51)

Conflicts:
	doc/rados/operations/health-checks.rst - Trivial Fix
	PendingReleaseNotes - Remove this
Signed-off-by: Kamoltat (Junior) Sirivadhna <[email protected]>
@kamoltat
kamoltat force-pushed the wip-75493-tentacle branch from bc127b1 to 5a94f78 Compare March 17, 2026 21:36
@ljflores

Copy link
Copy Markdown
Member

@batrick
batrick merged commit 1d342a0 into ceph:tentacle Apr 10, 2026
5 of 6 checks passed
lumir-sliva added a commit to lumir-sliva/rook that referenced this pull request Apr 22, 2026
Allow a stretch cluster to be configured when the two zones' CRUSH
weights differ by up to 10%, matching the tolerance Ceph itself adopted
in ceph/ceph#66580 (mon_stretch_max_bucket_weight_delta, default 0.1).

The relaxed check is available on Umbrella (v21+) and was backported
to tentacle v20.2.2 via ceph/ceph#67790. The squid backport
(ceph/ceph#67789) is still pending; the version gate can be loosened
to include squid once it lands.

Closes: rook#17206
Signed-off-by: Lumir Sliva <[email protected]>
lumir-sliva added a commit to lumir-sliva/rook that referenced this pull request Apr 22, 2026
Allow a stretch cluster to be configured when the two zones' CRUSH
weights differ by up to 10%, matching the tolerance Ceph itself adopted
in ceph/ceph#66580 (mon_stretch_max_bucket_weight_delta, default 0.1).

The relaxed check is available on Umbrella (v21+) and was backported
to tentacle v20.2.2 via ceph/ceph#67790. The squid backport
(ceph/ceph#67789) is still pending; the version gate can be loosened
to include squid once it lands.

Closes: rook#17206

Signed-off-by: Lumir Sliva <[email protected]>
lumir-sliva added a commit to lumir-sliva/rook that referenced this pull request Apr 22, 2026
Allow a stretch cluster to be configured when the two zones' CRUSH
weights differ by up to 10%, matching the tolerance Ceph itself adopted
in ceph/ceph#66580 (mon_stretch_max_bucket_weight_delta, default 0.1).

The relaxed check is available on Umbrella (v21+) and was backported
to tentacle v20.2.2 via ceph/ceph#67790. The squid backport
(ceph/ceph#67789) is still pending; the version gate can be loosened
to include squid once it lands.

Signed-off-by: Lumir Sliva <[email protected]>
lumir-sliva added a commit to lumir-sliva/rook that referenced this pull request Apr 22, 2026
Allow a stretch cluster to be configured when the two zones' CRUSH
weights differ by up to ten percent, matching the tolerance Ceph itself
adopted in ceph/ceph#66580 (mon_stretch_max_bucket_weight_delta, default
0.1).

The relaxed check is available on Umbrella (v21+) and was backported
to tentacle v20.2.2 via ceph/ceph#67790. The squid backport
(ceph/ceph#67789) is still pending; the version gate can be loosened
to include squid once it lands.

Signed-off-by: Lumir Sliva <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants