Hi Team,

Kafka version: 2_2.12-2.6.0
Zookeeper version: 3.8.x

We have a Kafka Cluster of 12 brokers spread equally across 3 racks. Topic
gets auto created with default num.partitions=6 and replication_factor=3.
It is observed that replicas are equally distributed over racks but within
the rack the replicas are randomly distributed like sometimes 3,3,0,0 or
sometimes 3:2:1 or sometime 2,2,1,1

Is there a configuration to evenly distribute replicas across brokers
within a rack, maybe some sort of round robin strategy 2,2,1,1?

And also it is observed that over time 1 broker ends up having way more
replicas across topics than the other broker in the same rack. Is there a
config for even distribution of replicas across topics also?

Regards,
Abhishek Singla

Reply via email to