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

[Ballista] Introduce QueryStageScheduler for better managing the stage-based task scheduling #1704

Closed
yahoNanJing opened this issue Jan 29, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@yahoNanJing
Copy link
Contributor

yahoNanJing commented Jan 29, 2022

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

The implementation for get_next_schedulable_task() is not efficient due to lack of classification of task stages and task status, especially when there's thousands of tasks to be scheduled. And it's also not easy to:

  • stage-level priority-based scheduling
  • stage-level retry
  • speculative task scheduling

Describe the solution you'd like

To draw lessons from the Spark, it's better to divide the task scheduling into two levels' scheduling:

  • to introduce QueryStageScheduler for scheduling stages
  • to introduce StageManager for managing job stages and the state machine for each stage.
  • to let TaskScheduler for fetching tasks from running stages in StageManager

An example sequential diagram is as follows:
Picture1

@yahoNanJing yahoNanJing added the enhancement New feature or request label Jan 29, 2022
@yahoNanJing yahoNanJing changed the title [Ballista] Introduce more cluster state info for future better management [Ballista] Introduce DAGScheduler for better managing the stage-based task scheduling Feb 21, 2022
@yahoNanJing
Copy link
Contributor Author

yahoNanJing commented Mar 3, 2022

@yahoNanJing yahoNanJing changed the title [Ballista] Introduce DAGScheduler for better managing the stage-based task scheduling [Ballista] Introduce QueryStageScheduler for better managing the stage-based task scheduling Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants