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

in_kafka: add parser support and improve performance #9726

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lyhgo
Copy link

@lyhgo lyhgo commented Dec 15, 2024

in_kafka: add parser support and improve performance

When processing records, the in_kafka plugin lacks
parser ability, This commit added support to
parse payload. It has been tested with Kafka.

When processing the record, the in_kafka plugin currently
will commit every single message poll from kafka.
which is good in normal cases. But with this default
behavior, the performance is strictly limited. This
commit has added auto_commit as an option when
the performance matters more. It has been tested
with Kafka. There is a sample benchmark as follows.

topic_size topic_offset time_cost
before 251 MB 506701 1m30s
after 251 MB 506701 10s

Signed-off-by: luoyy8 [email protected]

@artemus717
Copy link

When processing record, the in_kafka plugin lack of
parser ability, This commit added support to
parse payload. It has been tested with kafka.

When processing record, the in_kafka plugin currently
will commit every single message poll from kafka.
which is good at normal case. But with this default
behavier, the performance is strictly limited. This
commit has add auto_commit as an option when
the performance matter more. It has been tested
with kafka. There is a sample benchmark as following.
              topic_size topic_offset time_cost
before  251 MB     506701         1m30s
after     251 MB     506701         10s

Signed-off-by: luoyy8 <[email protected]>
@lyhgo lyhgo marked this pull request as draft December 18, 2024 11:27
@lyhgo lyhgo marked this pull request as ready for review December 19, 2024 04:28
@lyhgo
Copy link
Author

lyhgo commented Dec 19, 2024

#7991 Related issue

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

Successfully merging this pull request may close these issues.

2 participants