Skip to content

made stripe size configurable#6644

Merged
codesome merged 1 commit intoprometheus:masterfrom
thorfour:tsdb/stripe-size-option
Jan 30, 2020
Merged

made stripe size configurable#6644
codesome merged 1 commit intoprometheus:masterfrom
thorfour:tsdb/stripe-size-option

Conversation

@thorfour
Copy link
Copy Markdown
Contributor

This changes exposes the stripeSize const as a configurable option in tsdb. Not passing in the option will result in the tsdb using the default stripe size that is uses today.

This is an important change for Cortex's new experimental TSDB feature as it allows us to reduce the memory footprint of TSDB's as they are scaled to many nodes. More info about this memory usage can be found here

@codesome @krasi-georgiev

@thorfour thorfour force-pushed the tsdb/stripe-size-option branch from 94e802e to de3d2a4 Compare January 16, 2020 16:27
Copy link
Copy Markdown
Member

@codesome codesome left a comment

Choose a reason for hiding this comment

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

This change looks fine as long as it is not exposed via a flag, which is the case. I would prefer some explanation about the stripeSize in the comments for NewHead including what is the effect of increasing or decreasing it.

@thorfour thorfour force-pushed the tsdb/stripe-size-option branch from de3d2a4 to 29a3cc6 Compare January 17, 2020 14:56
Copy link
Copy Markdown
Member

@codesome codesome left a comment

Choose a reason for hiding this comment

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

LGTM. I will wait for another maintainer to give +1 on this.

@thorfour
Copy link
Copy Markdown
Contributor Author

@krasi-georgiev any chance you could look at these changes?

@krasi-georgiev
Copy link
Copy Markdown
Contributor

LGTM

@codesome codesome merged commit 17d8c49 into prometheus:master Jan 30, 2020
@thorfour thorfour deleted the tsdb/stripe-size-option branch January 30, 2020 15:55
boyskila pushed a commit to boyskila/prometheus that referenced this pull request Mar 3, 2020
boyskila pushed a commit to boyskila/prometheus that referenced this pull request Mar 3, 2020
ntk148v added a commit to ntk148v/prometheus that referenced this pull request Apr 2, 2026
The PR prometheus#6644 is only
internal configurability. This PR makes it truly configurable.

Related-Issue: prometheus#17100
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