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

#306 - Compactor flush to backend based on buffer size #325

Merged
merged 3 commits into from Nov 5, 2020

Conversation

mdisibio
Copy link
Contributor

@mdisibio mdisibio commented Nov 5, 2020

What this PR does:
Changes the compactor to flush partial blocks to the backend based on buffered data size instead of trace count. The default is 30MB. This ensures that at least 5MB of data can be buffered for the S3 parts, and should work well without tuning across most cases, no matter if traces are large or small. Exposed as configuration option flush_size_bytes. The default value allows for a maximum block size of 300GB (10,000 parts maximum).

Which issue(s) this PR fixes:
Fixes #306

Checklist

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

…unt. Expose configuration option. Default to 30MB
Copy link
Member

@joe-elliott joe-elliott left a comment

Choose a reason for hiding this comment

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

Let's add the new option here along with some details:

https://github.com/grafana/tempo/blob/master/docs/tempo/website/configuration/_index.md

Other than that, looks good to me.

@joe-elliott joe-elliott merged commit 09af806 into master Nov 5, 2020
@joe-elliott joe-elliott deleted the compactor-flush-size branch November 5, 2020 20:45
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.

Tempo logs errors relating to multipart uploads with S3 backend
2 participants