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] Refactor scheduler state #1910

Closed
yahoNanJing opened this issue Mar 3, 2022 · 0 comments · Fixed by #1913
Closed

[Ballista] Refactor scheduler state #1910

yahoNanJing opened this issue Mar 3, 2022 · 0 comments · Fixed by #1913
Labels
enhancement New feature or request

Comments

@yahoNanJing
Copy link
Contributor

yahoNanJing commented Mar 3, 2022

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

Currently the ballista scheduler state mod messes many things up in the mod file, which is not good for code reviewing.

Describe the solution you'd like

It's better to reorganize the scheduler contents as following:

  • backend, for persisting states in some storage
  • in_memory_state, for managing part of the scheduler state which is volatile and only be stored in memory
  • persistent_state, for managing part of the scheduler state which is relatively stable and be stored in one of the backend storage and cached in memory for fast reading.
  • scheduler_state, for providing a unified interface for scheduler state
  • task_scheduler, for fetching tasks to be scheduled
  • query_stage_scheduler, for dealing with stage status changes (TODO)

Additional context
#1704

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

Successfully merging a pull request may close this issue.

1 participant