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

Reduce lock contention in HttpRemoteTask #13934

Merged
merged 5 commits into from
Sep 2, 2022

Conversation

sopel39
Copy link
Member

@sopel39 sopel39 commented Aug 31, 2022

Description

Use separate locks for sending a new request
(which is potentially expensive) and modifying
HttpRemoteTask state.

Is this change a fix, improvement, new feature, refactoring, or other?

improvement

Is this a change to the core query engine, a connector, client library, or the SPI interfaces? (be specific)

core

How would you describe this change to a non-technical end user or system administrator?

Improve throughput for large clusters with higher concurrency

Related issues, pull requests, and links

Fixes #10842

Documentation

(x) No documentation is needed.
( ) Sufficient documentation is included in this PR.
( ) Documentation PR is available with #prnumber.
( ) Documentation issue #issuenumber is filed, and can be handled later.

Release notes

( ) No release notes entries required.
( ) Release notes entries required with the following suggested text:

# General
* Improve throughput for large clusters with higher concurrency. ({issue}`issuenumber`)

Sending of dynamic filters is idempotent. Hence
it doesn't matter if sentDynamicFiltersVersion is
up to date as long as it gets consistent eventually.
sendPlan doesn't have to be in critical
section since it's atomic and sending of
plan is idempotent.
Use separate locks for sending a new request
(which is potentially expensive) and modifying
HttpRemoteTask state.
@sopel39
Copy link
Member Author

sopel39 commented Aug 31, 2022

I've split it into smaller commits. PTAL @losipiuk

Copy link
Member

@losipiuk losipiuk left a comment

Choose a reason for hiding this comment

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

Seems fine :/

@radek-kondziolka
Copy link
Contributor

lgtm

@sopel39 sopel39 merged commit 12b404e into trinodb:master Sep 2, 2022
@sopel39 sopel39 deleted the ks/reduce_pressure branch September 2, 2022 09:30
@github-actions github-actions bot added this to the 395 milestone Sep 2, 2022
@sopel39 sopel39 mentioned this pull request Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Improve parallelism of HttpRemoteTask
4 participants