-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Implement preemption for system jobs. #4710
Conversation
44c85b5
to
1b06413
Compare
This commit implements an allocation selection algorithm for finding allocations to preempt. It currently special cases network resource asks from others (cpu/memory/disk/iops).
282a027
to
c395008
Compare
Scheduler config API
Closing this and the other PR #4732, both are against a feature branch. I will be rebasing against master since the resources structs have changed quite a bit. |
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
Work in progress PR for preemption.
Currently, the approach implemented special cases network resource asks, by preempting per task rather than per task group. This will allow us to preempt allocations on different network devices for the same task group (e.g scenario - task
t1
will preempt allocs usingeth0
, and taskt2
will preempt allocs usingeth1
).Wrote several unit test cases in preemption_test.go, but will be adding more next week.