-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Fix Disagg Coordinator task limit enforcement #18732
Conversation
77da0a1
to
b508bb5
Compare
@bot kick off tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM % some comments.
presto-main/src/main/java/com/facebook/presto/resourcemanager/ResourceManagerClient.java
Outdated
Show resolved
Hide resolved
presto-main/src/main/java/com/facebook/presto/resourcemanager/ClusterQueryTrackerService.java
Show resolved
Hide resolved
presto-main/src/main/java/com/facebook/presto/execution/QueryTracker.java
Outdated
Show resolved
Hide resolved
presto-main/src/main/java/com/facebook/presto/execution/SqlQueryManager.java
Outdated
Show resolved
Hide resolved
presto-main/src/main/java/com/facebook/presto/execution/QueryTracker.java
Outdated
Show resolved
Hide resolved
@@ -127,7 +128,8 @@ public DispatchManager( | |||
QueryManagerConfig queryManagerConfig, | |||
DispatchExecutor dispatchExecutor, | |||
ClusterStatusSender clusterStatusSender, | |||
SecurityConfig securityConfig) | |||
SecurityConfig securityConfig, | |||
Optional<ClusterQueryTrackerService> queryTrackerService) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
presto-main/src/test/java/com/facebook/presto/execution/TestQueryTrackerHighTaskCountKill.java
Outdated
Show resolved
Hide resolved
presto-main/src/test/java/com/facebook/presto/execution/TestQueryTrackerHighTaskCountKill.java
Outdated
Show resolved
Hide resolved
presto-main/src/test/java/com/facebook/presto/execution/TestQueryTrackerHighTaskCountKill.java
Outdated
Show resolved
Hide resolved
...c/test/java/com/facebook/presto/resourcemanager/TestResourceManagerClusterStateProvider.java
Show resolved
Hide resolved
b508bb5
to
fb6b432
Compare
There was a problem hiding this 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.
fb6b432
to
d31317f
Compare
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