redpanda-data / redpanda-data/redpanda

Add rack/leader affinity to Redpanda

Open
#7,109 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/enhance
Dominant language
C++
Stars
12.6k
Forks
792
PR merge metrics
No merged PRs in 30d

Description

Who is this for and what problem do they have today?

This ticket is to publicly track adding rack/leader affinity to Redpanda. From the internal ticket:

To facilitate the most cost-efficient use of cross-AZ/region clusters, some customers need to control placement of partition leadership for a given topic within an AZ/region (as represented by the rack ID), because all/most clients for a given topic may be AZ/region-local, and transfer cost/latency is minimized with this capability, leading to substantial cost savings.

For clusters where rack-awareness has been configured, topics should be able to declare which rack should host all partition leaders for the topic (follower replicas should be stored in other racks per the normal rack aware replica placement for resiliency).

What are the success criteria?

A topic's leader can be set by the user on topic creation.

Why is solving this problem impactful?

Some future features that would be either enabled or unblocked by this implementation are:

  • allow producers to write to a topic's partition which is within the same AZ
  • allow consumers to read from the closest replica partition
Additional notes

Implementing rack/leader affinity is related to these other issues:

JIRA Link: CORE-1071

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the linked issue #4103 and the referenced internal ticket CORE-1071 to understand the related work and requirements. The stated outcome is that users can select a rack for topic leaders at topic creation; the issue does not name implementation files or tests, so the remaining scope needs investigation.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
distributed-systems, stream-processing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.