Skip to content

Fix Disagg Coordinator task limit enforcement#18732

Merged
tdcmeehan merged 1 commit intoprestodb:masterfrom
swapsmagic:disagg_cluster_query_tracker
Dec 8, 2022
Merged

Fix Disagg Coordinator task limit enforcement#18732
tdcmeehan merged 1 commit intoprestodb:masterfrom
swapsmagic:disagg_cluster_query_tracker

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.

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

@swapsmagic swapsmagic force-pushed the disagg_cluster_query_tracker branch from b508bb5 to fb6b432 Compare December 6, 2022 21:12
@swapsmagic swapsmagic removed the draft label Dec 6, 2022
@swapsmagic swapsmagic requested a review from ajaygeorge December 6, 2022 22:47
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.
@swapsmagic swapsmagic force-pushed the disagg_cluster_query_tracker branch from fb6b432 to d31317f Compare December 6, 2022 23:58
@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.

3 participants