Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reinstate static partitioning in Kafka biner #31

Closed
sobychacko opened this issue Sep 1, 2016 · 4 comments
Closed

Reinstate static partitioning in Kafka biner #31

sobychacko opened this issue Sep 1, 2016 · 4 comments

Comments

@sobychacko
Copy link
Contributor

By default, Kafka binder currently provide dynamically allocated/rebalanced partitions. We need a way to tell the binder to use static partitioning. It is desirable to have two flavors of static partitioning.

  1. Use a modulo based approach (partition % instance count)
  2. Use fixed set of partitions.
@sabbyanandan
Copy link
Contributor

This is already supported.

@dvsridhar
Copy link

dvsridhar commented Feb 14, 2017

Is this available in Brooklyn.RELEASE, we are noticing static portioning is not working as expected.
we are setting the following JVM arguments as part of each microservice boot up ( -Dspring.cloud.stream.instanceIndex=(0..1) -Dspring.cloud.stream.instanceCount=2) and all the messages are distributed dynamically.

Also, according to M1 release notes (https://spring.io/blog/2016/08/26/spring-cloud-stream-brooklyn-m1-is-available) the static partition feature will be available in the final release. Do we know what's that release would be? Because this feature used to work with 0.8 consumer but not with the new version anymore.

@mbogoevici
Copy link
Contributor

Hi @dvsridhar,

Please use the autoRebalanceEnabled option of the Kafka Binder http://docs.spring.io/spring-cloud-stream/docs/Brooklyn.RELEASE/reference/htmlsingle/#_kafka_consumer_properties.

Please open a new issue if you need further support.

@dvsridhar
Copy link

Awesome that works. Thank you very much for all the help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants