Skip to content

doc/rados: clarify "upmap_max_deviation" - #64111

Merged
zdover23 merged 1 commit into
ceph:mainfrom
zdover23:wip-doc-2025-06-23-tr71796-rados-ops-balancer
Jun 24, 2025
Merged

zdover23 merged 1 commit into
ceph:mainfrom
zdover23:wip-doc-2025-06-23-tr71796-rados-ops-balancer

Conversation

@zdover23

Copy link
Copy Markdown
Contributor

Clarify the threshold set by "upmap_max_deviation" and add the information about this configurable that is currently in src/pybind/mgr/balancer/module.py to src/common/options/global.yaml.in, so that it will be accessible by means of ".. confval::" declarations.

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

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 x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

@github-actions

Copy link
Copy Markdown

Config Diff Tool Output

+ added: upmap_max_deviation (global.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.

Comment thread doc/rados/operations/balancer.rst Outdated

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.

Suggest s/setting/option/ so we aren't semi-duplicating "set".
Below suggest s/module// , s/balanced/uniform/

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'll make these changes in a future PR.

Good god is the CI infrastructure janky today.

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.

This is after all a day whose name ends in y.

@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@zdover23

Copy link
Copy Markdown
Contributor Author

jenkins retest this please

Clarify the threshold set by "upmap_max_deviation" and add the
information about this configurable that is currently in
src/pybind/mgr/balancer/module.py to src/common/options/global.yaml.in,
so that it will be accessible by means of ".. confval::" declarations.

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

Signed-off-by: Zac Dover <[email protected]>
@zdover23
zdover23 force-pushed the wip-doc-2025-06-23-tr71796-rados-ops-balancer branch from 60864eb to 80de0a3 Compare June 24, 2025 04:58
@zdover23

Copy link
Copy Markdown
Contributor Author

jenkins retest this please

2 similar comments
@zdover23

Copy link
Copy Markdown
Contributor Author

jenkins retest this please

@zdover23

Copy link
Copy Markdown
Contributor Author

jenkins retest this please

@zdover23
zdover23 merged commit f2b7c04 into ceph:main Jun 24, 2025
@zdover23

Copy link
Copy Markdown
Contributor Author

#64149 - Tentacle backport
#64150 - Squid backport
#64151 - Reef backport

@batrick

batrick commented Jun 24, 2025

Copy link
Copy Markdown
Member

This needs reverted. It broke the main branch:

/home/pdonnell/build/b0/src/common/options/global_options.cc: In function ‘std::vector<Option> get_global_options()’:
/home/pdonnell/build/b0/src/common/options/global_options.cc:3696:76: error: ‘FIXME’ was not declared in this scope
 3696 |     Option("upmap_max_deviation", Option::TYPE_INT, Option::LEVEL_UNKNOWN (FIXME))
      |                                                                            ^~~~~
/home/pdonnell/build/b0/src/common/options/global_options.cc:3696:81: error: ‘Option::LEVEL_UNKNOWN’ cannot be used as a function
 3696 |     Option("upmap_max_deviation", Option::TYPE_INT, Option::LEVEL_UNKNOWN (FIXME))
      |                                                                                 ^

batrick added a commit to batrick/ceph that referenced this pull request Jun 24, 2025
…3-tr71796-rados-ops-balancer"

This reverts commit f2b7c04, reversing
changes made to e5868d8.

Signed-off-by: Patrick Donnelly <[email protected]>
@zdover23

Copy link
Copy Markdown
Contributor Author

This needs reverted. It broke the main branch:

/home/pdonnell/build/b0/src/common/options/global_options.cc: In function ‘std::vector<Option> get_global_options()’:
/home/pdonnell/build/b0/src/common/options/global_options.cc:3696:76: error: ‘FIXME’ was not declared in this scope
 3696 |     Option("upmap_max_deviation", Option::TYPE_INT, Option::LEVEL_UNKNOWN (FIXME))
      |                                                                            ^~~~~
/home/pdonnell/build/b0/src/common/options/global_options.cc:3696:81: error: ‘Option::LEVEL_UNKNOWN’ cannot be used as a function
 3696 |     Option("upmap_max_deviation", Option::TYPE_INT, Option::LEVEL_UNKNOWN (FIXME))
      |                                                                                 ^

@batrick, Sorry about that. If you can explain to me how to avoid this kind of thing, I'll avoid it.

@batrick

batrick commented Jun 24, 2025

Copy link
Copy Markdown
Member

This needs reverted. It broke the main branch:

/home/pdonnell/build/b0/src/common/options/global_options.cc: In function ‘std::vector<Option> get_global_options()’:
/home/pdonnell/build/b0/src/common/options/global_options.cc:3696:76: error: ‘FIXME’ was not declared in this scope
 3696 |     Option("upmap_max_deviation", Option::TYPE_INT, Option::LEVEL_UNKNOWN (FIXME))
      |                                                                            ^~~~~
/home/pdonnell/build/b0/src/common/options/global_options.cc:3696:81: error: ‘Option::LEVEL_UNKNOWN’ cannot be used as a function
 3696 |     Option("upmap_max_deviation", Option::TYPE_INT, Option::LEVEL_UNKNOWN (FIXME))
      |                                                                                 ^

@batrick, Sorry about that. If you can explain to me how to avoid this kind of thing, I'll avoid it.

I don't think you can document mgr module configs the same way (.. confval:: upmap_max_deviation) you do everything else. The code has not been adjusted to allow it yet.

batrick added a commit that referenced this pull request Jun 25, 2025
* refs/pull/64153/head:
	Revert "Merge pull request #64111 from zdover23/wip-doc-2025-06-23-tr71796-rados-ops-balancer"

Reviewed-by: Zac Dover <[email protected]>
Reviewed-by: Greg Farnum <[email protected]>
@zdover23

Copy link
Copy Markdown
Contributor Author

This needs reverted. It broke the main branch:

/home/pdonnell/build/b0/src/common/options/global_options.cc: In function ‘std::vector<Option> get_global_options()’:
/home/pdonnell/build/b0/src/common/options/global_options.cc:3696:76: error: ‘FIXME’ was not declared in this scope
 3696 |     Option("upmap_max_deviation", Option::TYPE_INT, Option::LEVEL_UNKNOWN (FIXME))
      |                                                                            ^~~~~
/home/pdonnell/build/b0/src/common/options/global_options.cc:3696:81: error: ‘Option::LEVEL_UNKNOWN’ cannot be used as a function
 3696 |     Option("upmap_max_deviation", Option::TYPE_INT, Option::LEVEL_UNKNOWN (FIXME))
      |                                                                                 ^

@batrick, Sorry about that. If you can explain to me how to avoid this kind of thing, I'll avoid it.

I don't think you can document mgr module configs the same way (.. confval:: upmap_max_deviation) you do everything else. The code has not been adjusted to allow it yet.

#64141 by Kefu adds this ability.

@ronen-fr

Copy link
Copy Markdown
Contributor

#64141 by Kefu adds this ability.

@zdover23 - is the PR number correct? that one is by Radek

@zdover23

Copy link
Copy Markdown
Contributor Author

#64141 by Kefu adds this ability.

@zdover23 - is the PR number correct? that one is by Radek

I mistyped. It should have been #64161.

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.

4 participants