Reputation: 13
I'm using Stream DSL. I have three source topic with partition 17, 100, 40. I will be running three instances and 2 standby instances.
How can I calculate how many stream threads I will need so that each thread gets exactly one task or highest parallelism is achieved?
Upvotes: 0
Views: 88
Reputation: 1
I will try to discuss an approach here in short
You are asking for maximum parallelism
Upvotes: 0
Reputation: 62350
This depends on the structure of your application. You can run the application with a single thread and observe the number of created tasks. The number of task is the maximum number of threads you can use.
The task that are created are logged or you obtain them via KafkaStream#localThreadMetadata()
.
Upvotes: 1