-
Notifications
You must be signed in to change notification settings - Fork 264
Cache snapshot includes all jobs? #667
Comments
oh, for the pod without PodGroup annotation, scheduler will help to create a shadow PodGroup which makes kube-batch able to schedule normal object, e.g. ReplicaSet. |
It will make more sense that kube-batch try to schedule normal k8s objects who is willing to be scheduled? Like with some specific annotation? Otherwise, even daemonsets or system level deployment will be taken into consideration.
|
Good point! We should only create Shadow PodGroup for the pod whose |
We should care about those pods whose scheduleName is not kube-batch, because they could be preempted for releasing more resource. However we do not need to allocate resource for them. So Shadow PodGroup is still needed, but we should not try to allocate resource for those pods whose scheduleName is not kube-batch? |
hm... maybe not as we did not define protocol between schedulers right now. For example, there'll a ping-pong that kube-batch & default-scheduler keep preempt resource for other pods :) |
Get it. It makes sense. |
I could help fix it if you do not plan to work on it. /assign |
Please confirm this is expected or a bug.
Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
/kind question
What happened:
I notice all jobs even kube-batch unrelated jobs are taken into consideration? Seems this is a bug when listener get pods, a shadow PodGroup is created for each job.
https://github.com/kubernetes-sigs/kube-batch/blob/e511be27ea352b856744e563f4dc5b95a3d4867c/pkg/scheduler/cache/event_handlers.go#L42-L44
When kube-batch allocate jobs, Job likes system pods should be skipped based on my understanding? Otherwise, even kube-system jobs will be added into cache snapshot.
https://github.com/kubernetes-sigs/kube-batch/blob/e511be27ea352b856744e563f4dc5b95a3d4867c/pkg/scheduler/cache/cache.go#L543-L555
What you expected to happen:
Skip workloads don't reply on kube-batch to make schedule decision.
How to reproduce it (as minimally and precisely as possible):
Create few deployment and create kube-batch by default.
Anything else we need to know?:
I have not created any jobs, all 6 are system level jobs.
Environment:
kubectl version
): 1.11uname -a
):The text was updated successfully, but these errors were encountered: