Skip to content

doc/rados: create-stretch-replicated rules choose {zones} zone buckets - #56

Merged
Ericmzhang merged 1 commit into
stretchy-Cfrom
wip-stretchy-C-crush-map-stretch-rule
Oct 9, 2026
Merged

Ericmzhang merged 1 commit into
stretchy-Cfrom
wip-stretchy-C-crush-map-stretch-rule

Conversation

@aainscow

@aainscow aainscow commented Oct 8, 2026

Copy link
Copy Markdown
Owner

Not urgent. Docs only, and stretchy-C only: main has no create-stretch-replicated.

The example rule for ceph osd crush rule create-stretch-replicated in crush-map.rst shows step choose firstn 0 type {zone-failure-domain}. Since "mon: add per-zone replica configuration for stretch pools" (#35), the command builds its rule with add_simple_stretch_rule(), which takes the given number of zones: step choose firstn {zones} type {zone-failure-domain}. This updates the example to match.

Eric, assigning this to you because you wrote that section (eb0f166).

Testing

  • Docs only; not built with Sphinx.

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.

🤖 Generated with Claude Code

The example rule for 'ceph osd crush rule create-stretch-replicated'
takes every zone bucket under the root ("choose firstn 0"). Since "mon:
add per-zone replica configuration for stretch pools" the command
builds its rule with add_simple_stretch_rule(), which takes the given
number of zones ("choose firstn {zones}"), as the stretch EC rule does.

Assisted-by: Claude Code
@github-actions github-actions Bot added core documentation Improvements or additions to documentation labels Oct 8, 2026

@Ericmzhang Ericmzhang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Should be {num_zones} instead of 0

@Ericmzhang
Ericmzhang marked this pull request as ready for review October 9, 2026 22:49
@Ericmzhang
Ericmzhang merged commit 4f78103 into stretchy-C Oct 9, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants