mesos / kafka

Apache Kafka on Apache Mesos
Apache License 2.0
412 stars 140 forks source link

broker_attr_matching_distr #134

Closed dmitrypekar closed 9 years ago

dmitrypekar commented 9 years ago

Hey,

Following changes were added:

As a consequence, it should distribute correctly partitions of newly created or rebalanced topic taking into account actual attribute value. For instance, if we have 5 brokers in 3 racks and creating a topic with 3 partitions it will select brokers with different rack values. On the other hand, if the number of partitions is larger than brokers count the behavior would be +/- the same as before (we should use all available brokers in that case).

Please review & merge.