-
Notifications
You must be signed in to change notification settings - Fork 453
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
Restrict the number of results processed per index worker #3269
Merged
Merged
Changes from 3 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
9abfd17
Restrict the number of results processed per index worker
ryanhall07 b4b543e
Merge branch 'master' into rhall-worker-pool-iter
ryanhall07 7c11e7d
mock gen
ryanhall07 c8e2e40
use channels for fixed permits
ryanhall07 2fa777b
use TryAcquire to limit # of go routines
ryanhall07 ae102f5
Merge branch 'master' into rhall-worker-pool-iter
ryanhall07 4581f11
Just use Acquire to get permits
ryanhall07 2107c97
review comments
ryanhall07 a22b186
Merge remote-tracking branch 'origin/master' into rhall-worker-pool-iter
ryanhall07 13cb785
fix tests
ryanhall07 d5b6680
Merge remote-tracking branch 'origin/master' into rhall-worker-pool-iter
ryanhall07 2d24354
fix config test
ryanhall07 ae5ac98
Merge remote-tracking branch 'origin/master' into rhall-worker-pool-iter
ryanhall07 ae900ca
Limit block iters by time
ryanhall07 1f9ebbd
fix tests
ryanhall07 b9cf04c
Merge branch 'master' into rhall-worker-pool-iter
ryanhall07 92c93e3
remove ctx from Release
ryanhall07 ad52f6f
Merge branch 'rhall-worker-pool-iter' of github.com:m3db/m3 into rhal…
ryanhall07 a3c33af
permit quota is int64
ryanhall07 53c5a48
Merge branch 'master' into rhall-worker-pool-iter
ryanhall07 dd0678a
Merge branch 'master' into rhall-worker-pool-iter
ryanhall07 1a563c3
default max worker time to 1s
ryanhall07 c08b57a
Merge branch 'master' into rhall-worker-pool-iter
ryanhall07 b7ab449
Merge branch 'master' into rhall-worker-pool-iter
ryanhall07 5b9b982
Remove unused MaxResultsPerWorkerConfiguration
ryanhall07 1337a6d
Merge branch 'rhall-worker-pool-iter' of github.com:m3db/m3 into rhal…
ryanhall07 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we split this up into different values for 1) regular queries 2) aggregate queries?
Aggregate queries when scoped with
match[]=...
are relatively more expensive per iteration since they have to do postings list interception with each aggregate term which is progressed to, as per:m3/src/dbnode/storage/index/fields_terms_iterator.go
Lines 229 to 248 in 812d585
and
m3/src/dbnode/storage/index/fields_terms_iterator.go
Lines 149 to 177 in 812d585
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose we could do this in a followup? Might be too much to add to scope of this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's pretty easy to do now, just 2 different config values.