kubernetes/pkg/scheduler
Yibo Zhuang 380c7f248e scheduler volumebinding: leverage PreFilterResult
This change will leverage the new PreFilterResult
to reduce down the list of eligible nodes for pod
using Bound Local PVs during PreFilter stage so
that only the node(s) which local PV node affinity
matches will be cosnidered in subsequent scheduling
stages.

Today, the NodeAffinity check is done during Filter
which means all nodes will be considered even though
there may be a large number of nodes that are not
eligible due to not matching the pod's bound local
PV(s)' node affinity requirement. Here we can
reduce down the node list in PreFilter to ensure that
during Filter we are only considering the reduced
list and thus can provide a more clear message to
users when node(s) are not available for scheduling
since the list only contains relevant nodes.

If error is encountered (e.g. PV cache read error) or
if node list reduction cannot be done (e.g. pod uses
no local PVs), then we will still proceed to consider
all nodes for the rest of scheduling stages.

Signed-off-by: Yibo Zhuang <yibzhuang@gmail.com>
2022-11-17 21:37:24 -08:00
..
apis/config scheduler: add dynamic resource allocation plugin 2022-11-11 21:58:03 +01:00
framework scheduler volumebinding: leverage PreFilterResult 2022-11-17 21:37:24 -08:00
internal Fix an issue that pod may be added to backoffQ 2022-11-08 10:05:32 -08:00
metrics PreEnqueue implementation 2022-11-07 14:02:58 -08:00
profile Fix scheduler misc 2022-09-04 00:07:49 +08:00
testing scheduler: add dynamic resource allocation plugin 2022-11-11 21:58:03 +01:00
util [sched] Add more retriable errors 2022-08-11 20:48:20 -07:00
eventhandlers_test.go Revert "Enable paralellism in scheduler unit tests" 2022-09-23 12:00:14 -04:00
eventhandlers.go scheduler: add dynamic resource allocation plugin 2022-11-11 21:58:03 +01:00
extender_test.go Remove newScheduler to simplify instantiation 2022-10-10 10:25:37 +08:00
extender.go scheduler: remove unused Equal function for HTTPExtender 2022-07-05 13:17:05 +08:00
OWNERS Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00
schedule_one_test.go Merge pull request #111545 from jlsong01/rewrite_signature_of_StartEventWatcher 2022-11-07 08:06:18 -08:00
schedule_one.go Merge pull request #112025 from kerthcet/refactor/handle-scheduling-failure 2022-10-21 08:31:51 -07:00
scheduler_test.go Refactor schedulingCycle and bindingCycle in scheduler 2022-10-21 13:53:18 +08:00
scheduler.go PreEnqueue implementation 2022-11-07 14:02:58 -08:00