kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Farmer <m...@frmr.me>
Subject Re: Kafka Streams and Scaling Brokers
Date Fri, 19 Jan 2018 20:40:35 GMT
We recently scaled up the number of brokers we had in our cluster. Instead of adding partitions
we just reassigned the partitions to distributed them better across all the brokers we now
had. We did this for internal streams topics, too, and things went pretty smoothly.

You can find documentation on how to do that here: https://kafka.apache.org/documentation/#basic_ops_automigrate

You may find this a more beneficial starting point rather than just adding partitions. But!


> On Jan 19, 2018, at 3:30 PM, Puneet Lakhina <puneet.lakhina@gmail.com> wrote:
> Hi,
> We have a small kafka cluster (3 broker nodes) and as our kafka usage has
> grown we are looking to add more brokers. In order for the new brokers to
> take on the load of some of the existing topics, I assume we have to either
> add partitions that are assigned to these new broker nodes or we have to
> move some existing partitions to the new nodes.
> We are using kafka streams for some aggregate operations(groupByKey
> followed by aggregate) and I wanted to understand how to reason about the
> impact of adding/moving partitions on the streams application would be.
> Would it be advisable to stop the streams applications, add/move the
> nodes/partitions and then resume? Would the preferred method be to move
> partitions rather than add in order to maintain the accuracy of the
> aggregate operations of kafka streams?
> Thanks!
> -- 
> Regards,
> Puneet

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message