Skip to content

[26.1] Ordered rack/region preference for leader pinning#1598

Merged
kbatuigas merged 16 commits intov-WIP/26.1from
DOC-1607-Document-feature-Support-ordered-rack-region-preference-for-leader-pinning
Mar 19, 2026
Merged

[26.1] Ordered rack/region preference for leader pinning#1598
kbatuigas merged 16 commits intov-WIP/26.1from
DOC-1607-Document-feature-Support-ordered-rack-region-preference-for-leader-pinning

Conversation

@kbatuigas
Copy link
Contributor

@kbatuigas kbatuigas commented Mar 4, 2026

Description

This pull request updates the documentation for Leader Pinning in Redpanda, introducing support for the new ordered_racks configuration value and clarifying how Leader Pinning works, its limitations, and failover behavior. The changes enhance the explanation of how to configure Leader Pinning, especially for multi-region or multi-AZ deployments, and add guidance to avoid common pitfalls.

Key changes include:

Leader Pinning feature enhancements:

  • Added documentation for the new ordered_racks configuration, which allows specifying preferred racks in priority order for partition leaders. This enables explicit failover sequencing for disaster recovery scenarios and is supported in Redpanda v26.1 and later. [1] [2]
  • Clarified the difference between racks: (uniform distribution) and ordered_racks: (priority-based failover) in both the main Leader Pinning docs and the release notes. [1] [2]

Configuration and usage guidance:

  • Updated instructions and terminology throughout the Leader Pinning documentation to consistently capitalize "Leader Pinning" and reflect the new configuration options. [1] [2]
  • Added best practices to ensure replicas are placed in preferred racks, including when to set Leader Pinning properties and how to align replication factor with rack count.

Limitations and failover behavior:

  • Introduced a new "Limitations" section explaining scenarios where Leader Pinning cannot guarantee preferred leader placement, with actionable steps to avoid indefinite non-preferred leaders.
  • Expanded the failover documentation to describe how leader election proceeds with both racks: and ordered_racks: under AZ/rack failures.

These updates provide clearer, more actionable documentation for users configuring advanced leader placement strategies in Redpanda.

Resolves https://redpandadata.atlassian.net/browse/
Review deadline: 11 Mar

Page previews

Self-Managed - Leader Pinning
Topic properties > redpanda.leaders.preference
What's New
Cloud - Leader Pinning (need learning objectives added)

Checks

  • New feature
  • Content gap
  • Support Follow-up
  • Small fix (typos, links, copyedits, etc)

@kbatuigas kbatuigas requested a review from a team as a code owner March 4, 2026 16:28
@netlify
Copy link

netlify bot commented Mar 4, 2026

Deploy Preview for redpanda-docs-preview ready!

Name Link
🔨 Latest commit 0f19be8
🔍 Latest deploy log https://app.netlify.com/projects/redpanda-docs-preview/deploys/69bc20b61a1975000842e557
😎 Deploy Preview https://deploy-preview-1598--redpanda-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 4, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 25d1faa8-18f0-44f8-a16e-ff5e68ccaa67

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch DOC-1607-Document-feature-Support-ordered-rack-region-preference-for-leader-pinning
📝 Coding Plan
  • Generate coding plan for human review comments

Comment @coderabbitai help to get the list of available commands and usage tips.

@kbatuigas kbatuigas requested a review from joe-redpanda March 4, 2026 16:49

* Enable config_ref:enable_rack_awareness,true,properties/cluster-properties[`enable_rack_awareness`] to distribute replicas across racks automatically.
* Set config_ref:default_leaders_preference,true,properties/cluster-properties[`default_leaders_preference`] before creating topics, so that rack-aware replica placement aligns with the preferred racks.
* Use xref:manage:cluster-maintenance/cluster-balancing.adoc[partition balancing] to move existing replicas to preferred racks.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is this sufficient or should we link/mention a specific kind of balancing listed on this page? https://deploy-preview-1598--redpanda-docs-preview.netlify.app/current/manage/cluster-maintenance/cluster-balancing/

Produce requests that write data to Redpanda topics route through the topic partition leader, which syncs messages across its follower replicas. For a Redpanda cluster deployed across multiple availability zones (AZs), Leader Pinning ensures that a topic's partition leaders are geographically closer to clients, which helps decrease networking costs and guarantees lower latency.

If consumers are located in the same preferred region or AZ for leader pinning, and you have not set up xref:develop:consume-data/follower-fetching.adoc[follower fetching], leader pinning can also help reduce networking costs on consume requests.
If consumers are located in the same preferred region or AZ for Leader Pinning, and you have not set up xref:develop:consume-data/follower-fetching.adoc[follower fetching], Leader Pinning can also help reduce networking costs on consume requests.
Copy link
Contributor

Choose a reason for hiding this comment

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

Thinking maybe you should also mention Cloud Topics, as this is another way to reduce networking costs (at a slight expense to latency, but great for logs, data not reliant on speed).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added a TODO in the Suggested Reading section - that might be a better place to mention Cloud Topics instead of introducing multiple new ideas/contexts right at the start of this doc.

@kbatuigas kbatuigas requested a review from Feediver1 March 12, 2026 16:38
…red-rack-region-preference-for-leader-pinning
@kbatuigas
Copy link
Contributor Author

@Feediver1 new glossary term for Leader Pinning: #1605

Copy link
Contributor

@Feediver1 Feediver1 left a comment

Choose a reason for hiding this comment

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

left some suggestions

kbatuigas and others added 2 commits March 18, 2026 18:02
Co-authored-by: Joyce Fee <102751339+Feediver1@users.noreply.github.com>
@kbatuigas kbatuigas merged commit 2395eca into v-WIP/26.1 Mar 19, 2026
7 checks passed
@kbatuigas kbatuigas deleted the DOC-1607-Document-feature-Support-ordered-rack-region-preference-for-leader-pinning branch March 19, 2026 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants