Repository navigation
tentacle: common/options: clarify osd_max_backfills vs osd_recovery_max_active - #73112
anthonyeleven wants to merge 1 commit into
Conversation
These two knobs are routinely confused because the names suggest they do the same thing. They operate at different granularities: - osd_max_backfills is a per-OSD reservation limit on whole PGs. It caps how many PGs may be backfilling at once (concurrency), not the rate of each one, and an erasure-coded PG must reserve a slot on every shard's OSD at the same time -- which is why wide EC pools stall on it even when disks are idle. - osd_recovery_max_active[_hdd|_ssd] limits individual object operations in flight per OSD. Despite the "recovery" name it throttles backfill's data movement as well as log-based recovery, so it sets the rate, not the concurrency. Rewrite the fmt_desc of all four to say which is concurrency and which is rate, state that osd_recovery_max_active governs backfill too, and cross-link the pair via see_also. Also harmonize osd_max_backfills onto the same desc/fmt_desc/note shape as the recovery options -- it previously carried a long_desc and no fmt_desc, so its detail did not render in the online docs. The read/write detail moves into fmt_desc and the mClock caveat becomes a note. Signed-off-by: Anthony D'Atri <[email protected]> Assisted-by: Claude Opus-4.8 (cherry picked from commit 26052a6) Conflicts: src/common/options/osd.yaml.in: tentacle still has the older desc, long_desc and fmt_desc for osd_max_backfills, which main harmonized in 7fed2df before this change, so the osd_max_backfills text is taken from main
Config Diff Tool Output! changed: osd_max_backfills: old: (osd.yaml.in)
! changed: osd_max_backfills: new: This setting is automatically reset when the mClock scheduler is used. (osd.yaml.in)
! changed: osd_max_backfills: old: There can be osd_max_backfills local reservations AND the same remote reservations per OSD. So a value of 1 lets this OSD participate as 1 PG primary in recovery and 1 shard of another recovering PG. (osd.yaml.in)
! changed: osd_max_backfills: new: (osd.yaml.in)
! changed: osd_max_backfills: old: Maximum number of concurrent local and remote backfills or recoveries per OSD (osd.yaml.in)
! changed: osd_max_backfills: new: Maximum number of PGs concurrently backfilling to or from a single OSD. (osd.yaml.in)
! changed: osd_max_backfills: old: ['osd_mclock_override_recovery_settings'] (osd.yaml.in)
! changed: osd_max_backfills: new: ['osd_recovery_max_active', 'osd_recovery_max_active_hdd', 'osd_recovery_max_active_ssd', 'osd_mclock_override_recovery_settings'] (osd.yaml.in)
! changed: osd_max_backfills: old: The maximum number of backfills allowed to or from a single OSD. Note that this is applied separately for read and write operations. This setting is automatically reset when the mClock scheduler is used. (osd.yaml.in)
! changed: osd_max_backfills: new: The maximum number of PGs that may be backfilling into or out of a single OSD at one time. This is a reservation limit, so it caps backfill concurrency (how many PGs move at once), not the rate at which each one moves; for that, see ``osd_recovery_max_active``. Backfill populates a PG on an OSD by scanning its object set and sending the objects the target is missing (used when the PG log cannot drive recovery, e.g. an OSD new to the PG), as opposed to log-based recovery of individual objects. The limit is counted separately for the source (read) and destination (write) side of a backfill. Because an erasure-coded PG must hold a reservation on all of its shards' OSDs at once, wide EC pools are frequently limited by this even when the disks are near-idle. (osd.yaml.in)
! changed: osd_recovery_max_active: old: ['osd_recovery_max_active_hdd', 'osd_recovery_max_active_ssd', 'osd_mclock_override_recovery_settings'] (osd.yaml.in)
! changed: osd_recovery_max_active: new: ['osd_max_backfills', 'osd_recovery_max_active_hdd', 'osd_recovery_max_active_ssd', 'osd_mclock_override_recovery_settings'] (osd.yaml.in)
! changed: osd_recovery_max_active: old: The number of active recovery requests per OSD at one time. More requests will accelerate recovery, but the requests places an increased load on the cluster. (osd.yaml.in)
! changed: osd_recovery_max_active: new: The number of recovery operations (individual object pushes and pulls) that may be in flight at once on a single OSD, summed across all of that OSD's actively recovering and backfilling PGs. Despite the name, this also throttles the data-movement rate of backfill, not just log-based recovery; it governs how fast the active work proceeds, whereas ``osd_max_backfills`` governs how many PGs may be backfilling at once. More operations accelerate recovery and backfill at the cost of higher OSD load; when the disks are not saturated, this is the effective throughput lever. (osd.yaml.in)
! changed: osd_recovery_max_active_ssd: old: ['osd_recovery_max_active', 'osd_recovery_max_active_hdd', 'osd_mclock_override_recovery_settings'] (osd.yaml.in)
! changed: osd_recovery_max_active_ssd: new: ['osd_max_backfills', 'osd_recovery_max_active', 'osd_recovery_max_active_hdd', 'osd_mclock_override_recovery_settings'] (osd.yaml.in)
! changed: osd_recovery_max_active_ssd: old: The number of active recovery requests per OSD at one time, if the primary device is non-rotational (i.e., an SSD). (osd.yaml.in)
! changed: osd_recovery_max_active_ssd: new: As ``osd_recovery_max_active`` (the number of in-flight recovery/backfill object operations per OSD), applied when ``osd_recovery_max_active`` is ``0`` and the OSD's primary device is non-rotational (an SSD). (osd.yaml.in)
! changed: osd_recovery_max_active_hdd: old: ['osd_recovery_max_active', 'osd_recovery_max_active_ssd', 'osd_mclock_override_recovery_settings'] (osd.yaml.in)
! changed: osd_recovery_max_active_hdd: new: ['osd_max_backfills', 'osd_recovery_max_active', 'osd_recovery_max_active_ssd', 'osd_mclock_override_recovery_settings'] (osd.yaml.in)
! changed: osd_recovery_max_active_hdd: old: The number of active recovery requests per OSD at one time, if the primary device is rotational. (osd.yaml.in)
! changed: osd_recovery_max_active_hdd: new: As ``osd_recovery_max_active`` (the number of in-flight recovery/backfill object operations per OSD), applied when ``osd_recovery_max_active`` is ``0`` and the OSD's primary device is rotational (an HDD). (osd.yaml.in)
The above configuration changes are found in the PR. Please update the relevant release documentation if necessary. |
There was a problem hiding this comment.
Ceph Release Engineering Audit Report
Commit Parity Visualizer
| BACKPORT PR #73112 | SOURCE PR |
SOURCE STATUS |
|---|---|---|
| cfbc3fa common/options: clarify osd_max_backfills vs osd_recovery_max_active | PR #71706 | 26052a6 common/options: clarify osd_max_backfills vs osd_recovery_max_active |
Automated Backport Parity Review - Cherry-Pick Conflicts / Deviations
A conflict or deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.
This does not necessarily indicate an issue but a maintainer should review.
**Click to expand conflict summaries.**
Deviation in Backport cfbc3fa (cherry-pick of 26052a6)
Affected File(s)
src/common/options/osd.yaml.in
Range Diff
Click to expand
--- Original (26052a6a)
+++ Backport (cfbc3fa1)
@@ -20,4 +20,11 @@
moves into fmt_desc and the mClock caveat becomes a note.
Signed-off-by: Anthony D'Atri <[email protected]>
-Assisted-by: Claude Opus-4.8+Assisted-by: Claude Opus-4.8
+(cherry picked from commit 26052a6a1dab97cf211a8f959f035bcbbd8081fd)
+
+Conflicts:
+ src/common/options/osd.yaml.in: tentacle still has the older desc,
+ long_desc and fmt_desc for osd_max_backfills, which main harmonized in
+ 7fed2df746e before this change, so the osd_max_backfills text is
+ taken from main
================================================================================
RANGE DIFF
================================================================================
1: 26052a6a1da ! 1: cfbc3fa1b96 common/options: clarify osd_max_backfills vs osd_recovery_max_active
@@ Commit message
Signed-off-by: Anthony D'Atri <[email protected]>
Assisted-by: Claude Opus-4.8
+ (cherry picked from commit 26052a6a1dab97cf211a8f959f035bcbbd8081fd)
+
+ Conflicts:
+ src/common/options/osd.yaml.in: tentacle still has the older desc,
+ long_desc and fmt_desc for osd_max_backfills, which main harmonized in
+ 7fed2df746e before this change, so the osd_max_backfills text is
+ taken from main
## src/common/options/osd.yaml.in ##
@@ src/common/options/osd.yaml.in: options:
- name: osd_max_backfills
type: uint
level: advanced
-- desc: Maximum number of concurrent backfills to or from a single OSD.
-- long_desc: The maximum number of backfills allowed to or from a single OSD. Note
-- that this is applied separately for read and write operations. This setting is
-- automatically reset when the mClock scheduler is used.
+- desc: Maximum number of concurrent local and remote backfills or recoveries per
+- OSD
+- long_desc: There can be osd_max_backfills local reservations AND the same remote
+- reservations per OSD. So a value of 1 lets this OSD participate as 1 PG primary
+- in recovery and 1 shard of another recovering PG.
+- fmt_desc: The maximum number of backfills allowed to or from a single OSD.
+- Note that this is applied separately for read and write operations.
+- This setting is automatically reset when the mClock scheduler is used.
+ desc: Maximum number of PGs concurrently backfilling to or from a single OSD.
+ fmt_desc: The maximum number of PGs that may be backfilling into or out of a
+ single OSD at one time. This is a reservation limit, so it caps backfillHow to proceed:
- Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git
Conflicts:block intact) and include an explanation for changes. - Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
- Component Leads (Review): Please review the Range Diff(s) above to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting
/audit override.
Be familiar with the rules and guidelines for writing backports.
🛟 Need Help?
If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.
📋 Component Lead / Release Manager
To override the audit failure, apply releng-audit-override label or comment /audit override.
When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.
|
/audit override |
|
/config check ok |
|
✅ Audit Override Applied by @anthonyeleven. |
|
/config check ok |
|
@bluikko, gentle bump: could you take a look at this backport when you have a moment? |
|
This PR has been added to wip-bharath7-testing-20261109.045335-tentacle. |
backport tracker: https://tracker.ceph.com/issues/82127
backport of #71706
parent tracker: https://tracker.ceph.com/issues/82125
One commit. The osd_max_backfills hunk conflicted because tentacle still has the option text from before 7fed2df, so that text is taken from main. All five options now match main.
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 test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.
Assisted-by: Claude Opus-5.5