Poorvankbhatia commented on code in PR #26308: URL: https://github.com/apache/flink/pull/26308#discussion_r2000000256
########## flink-runtime/src/main/java/org/apache/flink/runtime/resourcemanager/slotmanager/DefaultResourceAllocationStrategy.java: ########## @@ -526,8 +536,35 @@ public int tryFulfilledRequirementWithResource( } } - private enum LeastUtilizationResourceMatchingStrategy implements ResourceMatchingStrategy { - INSTANCE; + private static class PrioritizedResourceMatchingStrategy implements ResourceMatchingStrategy { + private final Comparator<InternalResourceInfo> resourceInfoComparator; + + /** + * Returns a {@link PrioritizedResourceMatchingStrategy} that prioritizes the resource with + * the least utilization, used to evenly distribute slots to workers. + * + * @return least utilization prioritized resource matching strategy. + */ + public static PrioritizedResourceMatchingStrategy leastUtilization() { Review Comment: Thanks -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org