Re: Replicas not equally distributed within rack

2024-03-27 Thread Chia-Ping Tsai
hi Abhishek

Is this issue similar to the unbalance you had met?

https://issues.apache.org/jira/browse/KAFKA-10368

best,
chia-ping

On 2024/03/23 21:06:59 Abhishek Singla wrote:
> 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
> 


Re: Kafka Cluster WITHOUT Zookeeper

2023-03-27 Thread Chia-Ping Tsai
hiYou can use the keyword “kraft” to get the answer by google or chatgpt. For example:Introduction:KRaft - Apache Kafka Without ZooKeeperdeveloper.confluent.ioQuickStart:Apache Kafkakafka.apache.org—Chia-PingKafka Life  於 2023年3月27日 下午1:33 寫道:Hello  Kafka expertsIs there a way where we can have Kafka Cluster be functional servingproducers and consumers without having Zookeeper cluster manage theinstance .Any particular version of kafka for this or how can we achieve this please