elastic / elastic/logstash

Improve performance of the metrics collection

Open
#4,664 3 comments 0 reactions 0 assignees View on GitHub
monitoring
Dominant language
Java
Stars
14.9k
Forks
3.5k
Avg merge
19h 14m
Merged PRs (30d)
63

Description

The current metrics system add a 15% slowdown in the events processing of the pipeline. We should improve that situation. I believe we have some room to grow to improve the situation. I think is reasonable to improve the performance by 5%.

Lets try the following:
- We have some allocation required for the lookup cache which I believe could be removed.
- We are using the atomicfixnum type in the metric store, since we have multiples threads updating the same values we should look at `LongAdder` to see if we can some performance improvements #4508
- Profile the code to see the bottlenecks.

Followup of #4572

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.