Skip to content

Improve vector kafka source performance #15884

Answered by Djeezus
LinTechSo asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

the number of Vector replicas is only 1 part of the solution. Since Vector fully implements "librdkafka", you can choose whatever "partition.assignment.strategy" you wish in your Vector deployment.

Say you have 10 partitions for "test_topic" : you would then deploy 10 vector instances, with Kafka source config looking something like this :

...
        topics:
          - test_topic
        librdkafka_options:
          partition.assignment.strategy: cooperative-sticky
...

This will ensure that topic is consumed from all 10 partitions in parallel, and even rebalancing is taken into account.
There are obviously other assignment strategies too, but it depends on your kafka setup which t…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LinTechSo
Comment options

Answer selected by LinTechSo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants