CCDAK · Question #210
You use Kafka Connect with the JDBC source connector to extract data from a large database and push it into Kafka. The database contains tens of tables, and the current connector is unable to…
The correct answer is B. Increase the value of the connector's property 'tasks.max'. Increasing the connector's tasks.max property allows Kafka Connect to create and run multiple tasks in parallel. For the JDBC source connector, this enables parallel table reading or partitioned queries, significantly improving throughput when combined with multiple worker…
Question
You use Kafka Connect with the JDBC source connector to extract data from a large database and push it into Kafka. The database contains tens of tables, and the current connector is unable to process the data quickly enough to meet your throughput requirements. To address this, you deploy multiple Kafka Connect worker instances to handle the workload. However, the throughput remains unchanged. You need to make additional adjustments to improve the throughput. What should you do?
Options
- AIncrease the number of Kafka partitions for the topics.
- BIncrease the value of the connector's property 'tasks.max'.
- CAdd more Kafka brokers to the cluster.
- DModify the database schemas to enable horizontal sharding.
How the community answered
(19 responses)- A5% (1)
- B68% (13)
- C11% (2)
- D16% (3)
Explanation
Increasing the connector's tasks.max property allows Kafka Connect to create and run multiple tasks in parallel. For the JDBC source connector, this enables parallel table reading or partitioned queries, significantly improving throughput when combined with multiple worker instances.
Topics
Community Discussion
No community discussion yet for this question.