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

Improves the size estimation when cutting new rows #3038

Merged
merged 7 commits into from
Oct 20, 2023

Conversation

joe-elliott
Copy link
Member

What this PR does:
Recently we have discovered that tenants with extremely large strings in their attributes will cause Tempo to cut large row groups whose dictionary sizes can overflow an int32:

parquet-go/parquet-go#79

This PR adjusts the size estimation to better take into account these very large strings. in an environment with a target rg size of 50MB the above change had the following impact to min/max/avg row group sizes:

#2731

Which issue(s) this PR fixes:
This PR, along with the fix to the parquet-go issue above, will help alleviate #2987 and #2731.

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>
CHANGELOG.md Outdated Show resolved Hide resolved
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Copy link
Member

@mapno mapno left a comment

Choose a reason for hiding this comment

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

Very hacky, but better than nothing :)

@joe-elliott joe-elliott merged commit 0542bc3 into grafana:main Oct 20, 2023
14 checks passed
This pull request was closed.
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