fluent-bit icon indicating copy to clipboard operation
fluent-bit copied to clipboard

in_kafka: add parser support and improve performance

Open lyhgo opened this issue 1 year ago • 2 comments

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]

lyhgo avatar Dec 15 '24 14:12 lyhgo

https://github.com/fluent/fluent-bit/issues/8400

artemus717 avatar Dec 15 '24 14:12 artemus717

#7991 Related issue

lyhgo avatar Dec 19 '24 04:12 lyhgo