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

Index Downsample Bytes #519

Merged
merged 6 commits into from
Feb 10, 2021

Conversation

joe-elliott
Copy link
Member

@joe-elliott joe-elliott commented Feb 10, 2021

What this PR does:
Changed configuration option index_downsample to index_downsample_bytes. Defaulted to 2MB. Downsampling by bytes instead of traces will give us more consistent and predictable amounts of data to pull from the backend when doing ReadRange from blocks. This will help prevent large traces from creating extremely large pages.

Note that this value is before compression. 2MB with ztsd should result in roughly 300KB pages in our backend. If you are using no compression or a different compression format it is advised to adjust this accordingly.

Checklist

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

Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
tempodb/encoding/v0/appender_buffered.go Outdated Show resolved Hide resolved
tempodb/encoding/config.go Outdated Show resolved Hide resolved
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
@joe-elliott joe-elliott merged commit 42bd3bd into grafana:master Feb 10, 2021
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.

None yet

2 participants