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

[FLINK-33389][runtime] Support tasks balancing at slot level for Adaptive Scheduler #25504

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

RocMarshal
Copy link
Contributor

What is the purpose of the change

[FLINK-33389][runtime] Support tasks balancing at slot level for Adaptive Scheduler

Brief change log

  • Introduce the SlotSharingStrategy and related implementations for the original slot sharing strategy and tasks balanced slot sharing strategy.
  • Add CoLocationGroup related methods for JobInformation, VertexInformation
  • Do some related adaption lines.

Verifying this change

This change is already covered by existing tests,

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): (yes / no)
  • The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
  • The serializers: (yes / no / don't know)
  • The runtime per-record code paths (performance sensitive): (yes / no / don't know)
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / no / don't know)
  • The S3 file system connector: (yes / no / don't know)

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@RocMarshal
Copy link
Contributor Author

Hi, @1996fanrui Could you help take a look ? many thx~

@flinkbot
Copy link
Collaborator

flinkbot commented Oct 13, 2024

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

@RocMarshal
Copy link
Contributor Author

Hi, @1996fanrui @huyuanfeng2018 Could you help take a look if you had the free time ? Many thanks !

Copy link

@huyuanfeng2018 huyuanfeng2018 left a comment

Choose a reason for hiding this comment

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

overall LGTM.

import static org.apache.flink.util.Preconditions.checkNotNull;

/** Execute slot sharing groups builder based on the balanced scheduling strategy. */
public class TaskBalancedExecutionSlotSharingGroupBuilder {
Copy link
Member

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.

Copy link
Contributor Author

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~

@1996fanrui 1996fanrui self-assigned this Dec 2, 2024
@RocMarshal RocMarshal force-pushed the FLINK-33389 branch 2 times, most recently from 4a93f4e to 0a8bbd7 Compare December 9, 2024 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants