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

TSM1 Open Limiter #9918

Merged
merged 1 commit into from
May 30, 2018
Merged

TSM1 Open Limiter #9918

merged 1 commit into from
May 30, 2018

Conversation

benbjohnson
Copy link
Contributor

@benbjohnson benbjohnson commented May 29, 2018

Overview

This commit restricts the number of TSM1 files that can be opened concurrently across the entire tsdb.Store. There is currently a limit for the number of shards that can be opened concurrently, however, this limit does not help when the number of CPU cores is higher than the number of shards. Because TSM1 files have a 2GB limit and there is no limit on the number of files per shard, extremely large shards (1TB+) can load 1,000s of files simultaneously.

Notes

Testing on a m5.12xlarge w/ a 2.1TB dataset containing 1,084 .tsm files, load time was reduced by 31% from 8m48s to 6m2s.

This commit restricts the number of TSM1 files that can be opened
concurrently across the entire `tsdb.Store`. There is currently
a limit for the number of shards that can be opened concurrently,
however, this limit does not help when the number of CPU cores
is higher than the number of shards. Because TSM1 files have a 2GB
limit and there is no limit on the number of files per shard,
extremely large shards (1TB+) can load 1,000s of files simultaneously.
@benbjohnson benbjohnson self-assigned this May 29, 2018
@benbjohnson benbjohnson requested a review from e-dard May 29, 2018 16:22
@ghost ghost added the review label May 29, 2018
Copy link
Contributor

@e-dard e-dard left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@benbjohnson benbjohnson merged commit cec2a2d into master May 30, 2018
@ghost ghost removed the review label May 30, 2018
@benbjohnson benbjohnson deleted the bj-tsm-open-limiter branch May 30, 2018 19:13
@e-dard e-dard mentioned this pull request Jun 26, 2018
10 tasks
jacobmarble pushed a commit that referenced this pull request Jun 26, 2018
jacobmarble pushed a commit that referenced this pull request Jun 27, 2018
jacobmarble pushed a commit that referenced this pull request Jun 27, 2018
jacobmarble pushed a commit that referenced this pull request Jun 27, 2018
jacobmarble pushed a commit that referenced this pull request Jun 27, 2018
jacobmarble pushed a commit that referenced this pull request Jun 27, 2018
gshif added a commit that referenced this pull request Jun 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants