-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 Fluent-bit kafka consumer can't reach high throughput #7991
Comments
Anyone? |
I run into the same problem, I can't limit or improve the throughput of consumers through any means and configuration items, except to add instances of fluent-bit, maybe using fluent-bit is not a good idea? |
I have also encountered that each Fluent-Bit resource usage rate is not high, but the consumption rate is not up |
I am also experiencing the same problem. I have tried and tested many properties of librdkafka, but there hasn't been any improvement.
|
The problem seems linked to the fact that a call to The following change taken for the site above is dramatically improving performance
In https://docs.huihoo.com/apache/kafka/confluent/3.1/clients/consumer.html, it is mentioned It seems related to #8400 |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days. Maintainers can add the |
This issue was closed because it has been stalled for 5 days with no activity. |
cc: @lecaros |
any update ? |
#9726 I have created a PR for this. It added an option to enable auto-commit to reach high throughput. |
I'm working on replacing
promtail
kafka consumer withfluent-bit
in high-load setup. Overall, our configuration of fluent-bit kafka consumer works and it consumes messages, but the problem is that it can't reach consumption throughput that is successfully handled bypromtail
. For example,promtail
consumer is able to reach 140-150MB/s and max that we can squeeze from fluent-bit kafka consumer runningthe same resources
- 10-15 MB/s.Configuration
Fluent-bit v2.1.8
Kafka Brokers and Topics:
6 brokers
kafka.m5.large
(2 vCPU, 8 GB)Topic with
128 partitions
,replication factor = 3
Fluent-bit Config
Fluent-bit Resources:
128 pods running at
c5n.large
:Promtail Config:
Promtail Resources:
128 pods running at
c5n.large
:Our goal is to ensure fluent-bit can reach throughput that is handled by promtail. During POC run (fluent-bit kafka consumer), all kafka partitions in our consumer group are properly distributed between fluent-bit consumers. We use
fluentbit_input_bytes_total
metric to get the rate of fluent-bit kafka consumer throughput. Fluent-bit doesn't restart or crash - it just consumers messages but slowly.We noticed that CPU of the fluent-bit consumers doesn't increase higher than 0.04-0.05 (in k8s CPU units) when there are messages available to consume from kafka. Like it waits for some backoff timer and reads messages only
occasionally
.The text was updated successfully, but these errors were encountered: