-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
How to optimize the performance of Kafka exporters? #36853
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
v0.40.0 is very old. |
@VihasMakwana I saw it in the README.md of Kafka Export:
Which component does the "queued retry processors" here refer to? I didn't find it in the repository. Thank you again for your help. |
@xiaoyao2246 Is there any backpressure from kafka? Do you see any errors in OTeL logs? |
No, Kafka is working normally and there are no error logs for the Collector. Throughout the whole process, the memory usage rate of the Collector remains at around 100 megabytes. However, I've allocated 2 gigabytes of memory to it. Then, through pprof, it was found that this is caused by runtime.mallocgc. It should be related to the following code:
What I don't understand is that although there is so much available memory, why is garbage collection (GC) still taking place? |
Component(s)
exporter/kafka
Describe the issue you're reporting
I deployed a simple Collector using the OpenTelemetry Operator, and its configuration is as follows:
Since the version of my Kubernetes is 1.20.11, I used the v0.40.0 version of the collector.
The configuration of my Collector is 1 core and 2GB of memory.
Part of the collector's logs are as follows:
In order to test the performance of the Collector, I send trace data to the Collector, The current performance of the Collector is as follows:
I found that under the current configuration, the CPU usage is relatively high, while the memory usage is very low.
My question is, is there any other way, or strategy, to improve Collector's performance? I'm just new to OpenTelemetry and hope to get some good advice!
Thank you all again for your help.
The text was updated successfully, but these errors were encountered: