KIP-881 — Rack-aware Partition Assignment for Kafka Consumers
Accepted Kafka 3.4 Consumer
Extends the Kafka consumer partition assignment algorithms to prefer assigning partitions to consumers whose rack matches the replica rack, minimizing cross-AZ fetches when the replication factor is lower than the number of AZs. The existing rack-aware fetch (KIP-392) only helped when every AZ had a local replica; with fewer replicas than AZs some consumers were always assigned partitions with no local replica.
Protocol Impact
ConsumerProtocolAssignment · ConsumerProtocolSubscription
Details
| Author | Rajini Sivaram |
| Status | Accepted |
| Kafka Version | 3.4 |
| JIRA | KAFKA-14352 |
| Wiki | View on Apache Wiki |
| Created | 2022-11-02 |
| Last Modified | 2023-03-29 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.