-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
[FLINK-33389][runtime] Support tasks balancing at slot level for Adaptive Scheduler #25504
base: master
Are you sure you want to change the base?
Conversation
Hi, @1996fanrui Could you help take a look ? many thx~ |
...a/org/apache/flink/runtime/scheduler/adaptive/allocator/TaskBalancedSlotSharingStrategy.java
Outdated
Show resolved
Hide resolved
...a/org/apache/flink/runtime/scheduler/adaptive/allocator/TaskBalancedSlotSharingStrategy.java
Show resolved
Hide resolved
55d4eba
to
46bbf39
Compare
46bbf39
to
3040c70
Compare
94f7d10
to
ac63a9c
Compare
Hi, @1996fanrui @huyuanfeng2018 Could you help take a look if you had the free time ? Many thanks ! |
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.
overall LGTM.
flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/AbstractSlotSharingStrategy.java
Show resolved
Hide resolved
62f9c98
to
f8e434d
Compare
import static org.apache.flink.util.Preconditions.checkNotNull; | ||
|
||
/** Execute slot sharing groups builder based on the balanced scheduling strategy. */ | ||
public class TaskBalancedExecutionSlotSharingGroupBuilder { |
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.
May I know is this class copied from TaskBalancedPreferredSlotSharingStrategy
?
It's better to be done in a separate refactor commit.
Also, please help double check whether other code is refactor as well.
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.
Good proposal 👍 and many thanks ! Updated~
4a93f4e
to
0a8bbd7
Compare
…lder as a separated class.
…as SlotSharingStrategy then refactor the implementation of the default strategy.
…d abstractions of adaptive scheduler.
…m concrete slot assigners up to SlotSharingSlotAllocator.
…ple the logic of slot state localization priority allocation and stateless allocation.
2b20da4
to
0220da3
Compare
What is the purpose of the change
[FLINK-33389][runtime] Support tasks balancing at slot level for Adaptive Scheduler
Brief change log
SlotSharingStrategy
and related implementations for the original slot sharing strategy and tasks balanced slot sharing strategy.CoLocationGroup
related methods forJobInformation
,VertexInformation
Verifying this change
This change is already covered by existing tests,
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: (yes / no)Documentation