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

Bounded parallelism for DoParallelQueries #1053

Merged
merged 2 commits into from
Oct 5, 2018
Merged

Conversation

bboreham
Copy link
Contributor

@bboreham bboreham commented Oct 3, 2018

Limit the number of queries we will send in parallel to the back-end, in case we have tens of thousands of series to fetch.

In my tests, the DynamoDB back-end cannot be used with schema v9 without a change like this.

I couldn't see a nice way to make the "100" limit configurable. Suggestions welcome.

@tomwilkie
Copy link
Contributor

Yeah agree, no nice way to make it configurable - would need to be added to each StorageClient's config.

LGTM

@gouthamve
Copy link
Contributor

Can't we make it flag configurable by making it a global variable?

@bboreham
Copy link
Contributor Author

bboreham commented Oct 4, 2018

Maybe, where would the flag.IntVar() go? I could live with putting that in querier/main.go

@gouthamve
Copy link
Contributor

Limit the number of queries we will send in parallel to the back-end,
in case we have tens of thousands of series to fetch.

Signed-off-by: Bryan Boreham <bryan@weave.works>
Signed-off-by: Bryan Boreham <bryan@weave.works>
@bboreham
Copy link
Contributor Author

bboreham commented Oct 4, 2018

Added a flag in main() as discussed

@bboreham bboreham merged commit 44fdd67 into master Oct 5, 2018
@tomwilkie tomwilkie deleted the bounded-parallelism branch November 19, 2018 12:51
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