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

Enable configurable TTL-based scope/metric deallocation #150

Open
wants to merge 25 commits into
base: master
Choose a base branch
from

Conversation

mway
Copy link
Member

@mway mway commented Feb 23, 2021

Presently, scope and metric caches exist indefinitely. This creates a significant problem for applications dealing with a large number of metrics, particularly if a substantial amount of metrics are emitted infrequently, or if dimensions are volatile (e.g. request-based metrics).

While this doesn't solve memory design issues within Tally, it at least affords the ability to configure if/when old memory should be reaped.

@coveralls
Copy link

coveralls commented Feb 23, 2021

Coverage Status

Coverage decreased (-5.8%) to 86.541% when pulling 7e58f12 on mway/mem-3 into c27bf68 on mway/mem-2.

scope.go Outdated Show resolved Hide resolved
scope.go Outdated Show resolved Hide resolved
Base automatically changed from mway/mem-2 to mway/mem August 10, 2021 16:53
Base automatically changed from mway/mem to master August 10, 2021 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants