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

HIVE-24201: WorkloadManager can support delayed move if destination pool does not have enough sessions #2065

Merged
merged 19 commits into from Apr 29, 2021

Conversation

Dawn2111
Copy link
Contributor

@Dawn2111 Dawn2111 commented Mar 12, 2021

What changes were proposed in this pull request?

Currently, the Workload management move trigger kills the query being moved to a different pool if destination pool does not have enough capacity. This PR introduces a "delayed move" configuration which doesn't immediately kill the query when the destination pool is full but lets the query run in the source pool as long as possible. Workload manager will attempt the move to destination pool only when there is claim upon the source pool. Also, introduces additional options for retrying delayed moves periodically and moving the session to the destination pool after a specified amount of time (delayed move timeout).
Design Doc-
DelayedMoveDesign.docx

Why are the changes needed?

For better utilization of cluster resources.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Unit test

@Dawn2111 Dawn2111 marked this pull request as ready for review March 16, 2021 16:19
@Dawn2111
Copy link
Contributor Author

@sankarh, Could you please review?

@sankarh sankarh changed the title HIVE-2420: WorkloadManager can support delayed move if destination pool does not have enough sessions HIVE-24201: WorkloadManager can support delayed move if destination pool does not have enough sessions Apr 28, 2021
@sankarh
Copy link
Contributor

sankarh commented Apr 29, 2021

+1, Patch looks good.

@sankarh sankarh merged commit b0f574b into apache:master Apr 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants