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

implement optional soft allocation ceiling #139

Merged
merged 9 commits into from
Sep 17, 2020
Merged

implement optional soft allocation ceiling #139

merged 9 commits into from
Sep 17, 2020

Conversation

ianwilkes
Copy link
Contributor

Adds a new MaxAlloc config value. If > 0, InMemCollector will periodically check to see if the process's total allocation is above the limit. If it is, it will send and discard 10% of traces, and reduce the cache capacity to the new size. For this to work well, it should be set to about 75%-90% of available RAM, to leave room for scratch space and various fluctuations.

The intention is that this is a failsafe for if the cache capacity has been set too high; if it triggers regularly, users should lower their starting cache capacity and/or add machines to their samproxy cluster.

Depends on #138

@ianwilkes ianwilkes requested review from a team, martin308 and asdvalenzuela September 15, 2020 22:44
Base automatically changed from ian.race to main September 15, 2020 22:57
collect/collect_test.go Outdated Show resolved Hide resolved
config_complete.toml Outdated Show resolved Hide resolved
@ianwilkes ianwilkes merged commit 34b0bcd into main Sep 17, 2020
@ianwilkes ianwilkes deleted the ian.oom branch September 17, 2020 19:16
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.

2 participants