Skip to content

tsdb: expose stripe size option to reduce tsdb memory footprint #2185

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

Merged
merged 1 commit into from
Mar 2, 2020

Conversation

thorfour
Copy link
Contributor

@thorfour thorfour commented Feb 25, 2020

Signed-off-by: Thor [email protected]

What this PR does:

Exposes the new TSDB StripeSize option for reducing memory footprint.

Checklist

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

@thorfour thorfour force-pushed the feat/tsdb-stripe-size branch 2 times, most recently from d751087 to f55a530 Compare February 25, 2020 21:36
Copy link
Contributor

@pracucci pracucci left a comment

Choose a reason for hiding this comment

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

Thanks @thorfour! I'm not sure it's configured correctly.

@thorfour thorfour force-pushed the feat/tsdb-stripe-size branch 3 times, most recently from 6b536ae to f386f1c Compare February 26, 2020 14:14
Copy link
Contributor

@pracucci pracucci left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link
Contributor

@gouthamve gouthamve left a comment

Choose a reason for hiding this comment

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

LGTM but I think asking people to set the whole thing is better than asking to pass the power of 2. Curious what others thing.

@pracucci
Copy link
Contributor

LGTM but I think asking people to set the whole thing is better than asking to pass the power of 2. Curious what others thing.

I thought the same and I would tend to agree. The only thing is that the value must be a power of 2, but we can validate it in Validate(). Let's do this change @thorfour and then merge it.

Copy link
Contributor

@jtlisi jtlisi left a comment

Choose a reason for hiding this comment

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

LGTM

@thorfour thorfour force-pushed the feat/tsdb-stripe-size branch from f386f1c to 4117191 Compare February 29, 2020 01:26
@thorfour
Copy link
Contributor Author

Added validation that the given value is a power of 2. Thanks for the feedback!

Copy link
Contributor

@pracucci pracucci left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@pracucci pracucci merged commit fd91ac8 into cortexproject:master Mar 2, 2020
@pracucci pracucci mentioned this pull request Mar 2, 2020
3 tasks
@thorfour thorfour deleted the feat/tsdb-stripe-size branch March 2, 2020 20:30
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.

6 participants