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

Queue keeps stale event data in memory in 8.15 #41355

Open
faec opened this issue Oct 21, 2024 · 1 comment · May be fixed by #41356
Open

Queue keeps stale event data in memory in 8.15 #41355

faec opened this issue Oct 21, 2024 · 1 comment · May be fixed by #41356
Assignees
Labels
bug Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team

Comments

@faec
Copy link
Contributor

faec commented Oct 21, 2024

In 8.15, events in the memory queue are not freed when they are acknowledged (as intended), but only when they are overwritten by later events in the queue buffer. This means for example if a configuration has a queue size of 5000, but the input data is low-volume and only 100 events are active at once, then the queue will gradually store more events until reaching 5000 in memory at once, then start replacing those with new events. This means:

  • the worst memory increase is for low-throughput configs with large queues.
  • for users whose queues were already sized proportionate to their throughput, memory use is increased but only marginally (probably still better than e.g. 8.12-13). This is also probably why it was missed, since most of our benchmarks focus on high-throughput scenarios.
  • users that are affected should be able to mitigate it by lowering their queue size.
@faec faec added bug Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team labels Oct 21, 2024
@faec faec self-assigned this Oct 21, 2024
@elasticmachine
Copy link
Collaborator

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants