-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Unnecessary high memory in sharedcomponent #11818
Comments
For a status aggregator I believe it is important that the previous events be played back in order. Since |
…atus count (#11826) #### Description Use a ring buffer to only remember the last 5 events. This ensures we remember a reasonable number of events during startup, so that a status aggregator gets the events for all instances. Then during normal operation, when we're done adding sources and no longer need to replay events, we don't have to remember every single event. #### Link to tracking issue Closes #11818 #### Testing `go test status_test.go -count 1000 -failfast` still passes with many tries.
…atus count (open-telemetry#11826) #### Description Use a ring buffer to only remember the last 5 events. This ensures we remember a reasonable number of events during startup, so that a status aggregator gets the events for all instances. Then during normal operation, when we're done adding sources and no longer need to replay events, we don't have to remember every single event. #### Link to tracking issue Closes open-telemetry#11818 #### Testing `go test status_test.go -count 1000 -failfast` still passes with many tries.
The #10777 added the "capability" to keep all previously reported events in shared components and the list grows unbounded causing memory issues.
Proposed solution: only preserve the last reported event.
The text was updated successfully, but these errors were encountered: