-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[exporter/exporterhelper] allow to specify max queue size in bytes #5756
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
[exporter/exporterhelper] allow to specify max queue size in bytes #5756
Conversation
The capacity of the queue can now be expressed in bytes. Because of that, parameter queue_size has been renamed to queue_size_batches.
bogdandrutu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We declared the configuration for this stable, and is probably one of the most used config, so cannot break it.
|
Do you mean the change from |
What is the motivation to have all this logic? Why is not the storage extension configured to have a size in bytes instead of the user? |
|
I am not sure I understand what's the problem, so I will elaborate on what this PR is about:
cc: @swiatekm-sumo |
|
This PR needs to be re-created after the cleanup of enabling the persistent queue. |
|
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
|
I've recreated this PR on another branch, but it seems that there are some things that need to be changed in the persistent queue before this feature can be added seamlessly. I'm closing this for now and will create another PR when it will be time for it. |
* Update core/contrib deps * Update renamed components * Update signalfx exporter for contrib open-telemetry#5756 * Update CHANGELOG.md * Fix breaking config map and tracer changes * Account for k8s_tagger rename * Rename k8s_tagger to k8sattributes * reduce collectd-cassandra test flake * improve k8s_tagger rename test * Update hec tls config map usage * move from retracted 0.37.0 to 0.37.1 * Update changelog * Update bundled Smart Agent to v5.14.2 * Update github.com/signalfx/signalfx-agent to main Co-authored-by: Ryan Fitzpatrick <[email protected]>
Description:
This PR resolves a problem described more precisely in the linked issue.
TL;DR: The persistent queue now supports specifying an upper limit for the queue capacity in bytes. The
queue_sizeparameter is now deprecated and serves as an alias forqueue_size_batches.Link to tracking Issue:
Resolves #5213
Testing:
Some of the old tests have been modified insignificantly, by adding a bonus parameter to some functions etc.
The main functionality added in this PR has been tested with a test very similar to the test for the capacity specified in batches.