...
Kafka Connect Distributed
...
Kafka Connect Connectors
...
Kafka Connect Tasks
...
Each Kafka Connect task runs on a separate thread. There is a one-to-one relationship between the number of tasks and the number of worker threads.
From Kafka Connect to Apache Kafka
...
If we increase the number of tasks to 4, then we would have task 4 on Worker 1 and we would have partition-4 on Broker 1. This work distribution is done automatically and we do not have to intervene at all.
Work distribution according the strategy used (round robin strategy, etc.). If one the worker goes down, all tasks performed by that worker will be automatically redistributed to the other workers (Rebalancing).
Just bringing the worker back online will trigger another rebalancing and the tasks previously assigned to our faulted worker will be restored.
...