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

Fix Disagg Coordinator task limit enforcement #18732

Merged
merged 1 commit into from
Dec 8, 2022

Conversation

swapsmagic
Copy link
Contributor

For Disagg Coodinator, each coordinator is doing it's own task limit enforcement and ended up runnig lot more tasks on the cluster than configured. With this change, fixing the behavior so each coordinator get global running task count and then enforce the limit and kill queries which using tasks larger that configured limit.

Test plan - unit tests

== RELEASE NOTES ==

General Changes
* Fix disagg coordinator task limit enforcement

@swapsmagic swapsmagic requested a review from a team as a code owner November 29, 2022 20:58
@swapsmagic swapsmagic force-pushed the disagg_cluster_query_tracker branch 5 times, most recently from 77da0a1 to b508bb5 Compare November 30, 2022 23:38
@tdcmeehan
Copy link
Contributor

@bot kick off tests

Copy link
Contributor

@ajaygeorge ajaygeorge left a comment

Choose a reason for hiding this comment

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

LGTM % some comments.

@@ -127,7 +128,8 @@ public DispatchManager(
QueryManagerConfig queryManagerConfig,
DispatchExecutor dispatchExecutor,
ClusterStatusSender clusterStatusSender,
SecurityConfig securityConfig)
SecurityConfig securityConfig,
Optional<ClusterQueryTrackerService> queryTrackerService)
Copy link
Contributor

Choose a reason for hiding this comment

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

please rename this as clusterQueryTrackerService for clarity.

Copy link
Contributor

Choose a reason for hiding this comment

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

Can you double check if the code changes are pushed. I still see the old naming of queryTrackerService

Copy link
Contributor

@ajaygeorge ajaygeorge left a comment

Choose a reason for hiding this comment

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

LGTM % one more var rename.

For Disagg Coodinator, each coordinator is doing it's own task limit enforcement and ended up
runnig lot more tasks on the cluster than configured. With this change, fixing the behavior so
each coordinator get global running task count and then enforce the limit and kill queries which
using tasks larger that configured limit.
@tdcmeehan tdcmeehan merged commit 2744f0e into prestodb:master Dec 8, 2022
@wanglinsong wanglinsong mentioned this pull request Jan 12, 2023
30 tasks
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.

None yet

3 participants