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

Total Worker Parallelism in the Querier #2456

Merged
merged 48 commits into from
Apr 24, 2020

Conversation

joe-elliott
Copy link
Contributor

What this PR does:

  • Adds a parameter -querier.worker-total-parallelism that controls a total number of concurrent requests allowed spread across workers.
  • Adds workerFrontendManager to help encapsulate functionality related to maintaining a set of concurrent workers per frontend.
  • Related tests/docs
  • Extends existing frontend tests to cover both the existing and new parallelism modes

Which issue(s) this PR fixes:
Fixes #1883

Checklist

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

Signed-off-by: Joe Elliott <[email protected]>
Signed-off-by: Joe Elliott <[email protected]>
Signed-off-by: Joe Elliott <[email protected]>
Signed-off-by: Joe Elliott <[email protected]>
Signed-off-by: Joe Elliott <[email protected]>
Signed-off-by: Joe Elliott <[email protected]>
Signed-off-by: Joe Elliott <[email protected]>
Signed-off-by: Joe Elliott <[email protected]>
Signed-off-by: Joe Elliott <[email protected]>
Signed-off-by: Joe Elliott <[email protected]>
Signed-off-by: Joe Elliott <[email protected]>
@joe-elliott joe-elliott changed the title Querier parallelism Total Worker Parallelism in the Querier Apr 14, 2020
Signed-off-by: Joe Elliott <[email protected]>
Signed-off-by: Joe Elliott <[email protected]>
Signed-off-by: Joe Elliott <[email protected]>
Signed-off-by: Joe Elliott <[email protected]>
Signed-off-by: Joe Elliott <[email protected]>
@joe-elliott
Copy link
Contributor Author

joe-elliott commented Apr 16, 2020

I believe all concerns have been addressed. I did prefer to pass the FrontendClient into the manager for reasons detailed above.

Please let me know if any other changes are desired!

@tomwilkie

Signed-off-by: Joe Elliott <[email protected]>
Copy link
Contributor

@tomwilkie tomwilkie left a comment

Choose a reason for hiding this comment

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

Just nits left now. Thanks Joe!

@joe-elliott joe-elliott requested a review from tomwilkie April 17, 2020 17:37
Signed-off-by: Joe Elliott <[email protected]>
@joe-elliott joe-elliott requested a review from tomwilkie April 19, 2020 13:51
@jtlisi jtlisi self-requested a review April 20, 2020 15:34
@tomwilkie tomwilkie requested review from pracucci and gouthamve April 21, 2020 12:35
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.

One question. Otherwise this LGTM

@joe-elliott joe-elliott requested a review from jtlisi April 22, 2020 01:23
@tomwilkie tomwilkie merged commit 75c5eb5 into cortexproject:master Apr 24, 2020
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.

querier.worker-parallelism should be derivable
3 participants