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

Metrics-Generators: Reduce Wal TruncateFrequency to reduce memory usage #4317

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

joe-elliott
Copy link
Member

What this PR does:
Reduces memory usage in the metrics-generators by reducing the amount of data kept in the prom wal. This has been reduced from 2h to 15m on recommendation from @mattdurham of the github.com/grafana/alloy team.

The impact is that Tempo can now only suffer a 15m network outage before there is data loss on remote write.

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Signed-off-by: Joe Elliott <[email protected]>
Copy link
Contributor

@mdisibio mdisibio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems reasonable. Memory usage from the WAL is a significant portion, and the network tolerance seems acceptable. This pipeline already makes trade-offs vs durability.

@mattdurham
Copy link

15m is what we use for Alloy internally everywhere and rarely have issues with that time scale so it should be reasonable.

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