Skip to content

tentacle: common/options: clarify osd_max_backfills vs osd_recovery_max_active - #73112

Open
anthonyeleven wants to merge 1 commit into
ceph:tentaclefrom
anthonyeleven:wip-82127-tentacle
Open

anthonyeleven wants to merge 1 commit into
ceph:tentaclefrom
anthonyeleven:wip-82127-tentacle

Conversation

@anthonyeleven

@anthonyeleven anthonyeleven commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

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 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

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

Assisted-by: Claude Opus-5.5

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
@github-actions

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

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.
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.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

⚠️ WARNING: Cherry-pick conflicts or deviations were found that require component lead review.

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)

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 backfill

How 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.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.

View workflow run

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Oct 26, 2026
@anthonyeleven
anthonyeleven marked this pull request as ready for review October 26, 2026 18:50
@anthonyeleven
anthonyeleven requested a review from bluikko October 26, 2026 18:51
@anthonyeleven

Copy link
Copy Markdown
Contributor Author

/audit override

@anthonyeleven

Copy link
Copy Markdown
Contributor Author

/config check ok

@github-actions github-actions Bot added releng-audit-override and removed releng-audit-fail Release engineering: failed backport verification audit. labels Oct 26, 2026
@github-actions

Copy link
Copy Markdown

✅ Audit Override Applied by @anthonyeleven.

View workflow run

@anthonyeleven

Copy link
Copy Markdown
Contributor Author

/config check ok

@anthonyeleven

Copy link
Copy Markdown
Contributor Author

@bluikko, gentle bump: could you take a look at this backport when you have a moment?

@SrinivasaBharath

Copy link
Copy Markdown
Contributor

This PR has been added to wip-bharath7-testing-20261109.045335-tentacle.

@JonBailey1993

Copy link
Copy Markdown
Contributor

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