swarmkit icon indicating copy to clipboard operation
swarmkit copied to clipboard

Job priorities, eviction and pre-emption

Open aluzzardi opened this issue 8 years ago • 3 comments

Right now, every Job has the same priority and if no candidate node is available the Task stays in PENDING state.

An alternative would be to provide a priority to every Job.

When no node is available to schedule a task, the scheduler would try to evict one or more lower priority task to make room for it.

Since eviction might be costly, Jobs could hint they are Preemptive - therefore informing the scheduler that it's okay to evict them to make room for someone else.

aluzzardi avatar Apr 13 '16 02:04 aluzzardi

Tentatively moving to 1.13. This may not be what we end up doing but it's still relevant

aluzzardi avatar Aug 06 '16 00:08 aluzzardi

Is this issue still active? What's the plan?

ziliangpeng avatar Jun 18 '18 05:06 ziliangpeng

I need this badly. I don't think it's possible right now with swarmkit which will likely force me to use kubernetes (which does support preemption) instead.

machisuji avatar Jun 30 '21 22:06 machisuji