From ca3271e0f3e3c31cce413668c6a1ed2dacab91fe Mon Sep 17 00:00:00 2001 From: Luke Chen Date: Sun, 27 Mar 2022 15:47:24 +0800 Subject: [PATCH] MINOR: replace kafka-preferred-replica-election.sh with kafka-leader-election.sh (#11954) Reviewers: Luke Chen --- docs/ops.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ops.html b/docs/ops.html index e5b2fb8e946..183d8acb49a 100644 --- a/docs/ops.html +++ b/docs/ops.html @@ -78,7 +78,7 @@
      auto.leader.rebalance.enable=true
You can also set this to false, but you will then need to manually restore leadership to the restored replicas by running the command: -
  > bin/kafka-preferred-replica-election.sh --bootstrap-server broker_host:port
+
  > bin/kafka-leader-election.sh --bootstrap-server broker_host:port --election-type preferred --all-topic-partitions

Balancing Replicas Across Racks

The rack awareness feature spreads replicas of the same partition across different racks. This extends the guarantees Kafka provides for broker-failure to cover rack-failure, limiting the risk of data loss should all the brokers on a rack fail at once. The feature can also be applied to other broker groupings such as availability zones in EC2.