AxeZhan
cf73c9d93c
remove EvaluatedNodes field in Diagnosis struct
2024-06-04 14:20:55 +08:00
Gabe
c8f0ea1a54
Don't fill in NodeToStatusMap with UnschedulableAndUnresolvable
2024-05-31 15:52:16 +00:00
Kubernetes Prow Robot
0f584a9b86
Merge pull request #124933 from AxeZhan/fix_panic
...
[Scheduler] Use allNodes when calculating nextStartNodeIndex
2024-05-21 10:29:35 -07:00
AxeZhan
d6d1e6ad8a
base on allNodes when calculating nextStartNodeIndex
2024-05-18 00:30:38 +08:00
NoicFank
31a4b13238
enhancement(scheduler): share waitingPods among profiles
2024-05-17 17:07:27 +08:00
AxeZhan
bcf1c55837
evaluated nodes only consider filter stage
2024-05-10 12:40:12 +08:00
Claudiu Belu
2be8baeaef
unittests: Skip failing Windows tests
...
Some of the unit tests are currently failing on Windows.
Skip them for now, and remove the skips later, once the underlying issues
have been resolved.
2024-04-25 14:24:16 +00:00
kerthcet
84750fe52e
Revert "enhancement(scheduler): share waitingPods among profiles"
...
This reverts commit 227c1915db
.
2024-03-19 22:52:59 +01:00
Kensei Nakada
2b56de43e5
register Node/UpdateNodeTaint event to plugins which has Node/Add only, doesn't have Node/UpdateNodeTaint
2024-03-16 14:13:06 +00:00
Aleksandra Malinowska
dd1e617ba0
Scheduler first fit ( #123384 )
...
* Don't evaluate extra nodes if there's no score plugin defined
* Fix existing unit test (add no op scoring plugin)
* Add unit tests for no score plugin scenario
* address review comments
* add a test with non-filter, non-scoring extender
2024-02-26 11:07:19 -08:00
AxeZhan
630ff96f9d
Revert "Scheduler first fit"
2024-02-14 20:43:59 +08:00
NoicFank
227c1915db
enhancement(scheduler): share waitingPods among profiles
2024-02-01 10:06:23 +08:00
Kubernetes Prow Robot
919d4624a0
Merge pull request #122503 from sunbinnnnn/scheduler-extender-support-ignore-bind
...
Support ignore scheduler extender error when binding
2024-01-08 17:30:44 +01:00
Neil Sun
87816ffb2c
Support ignore scheduler extender error when binding
...
Signed-off-by: sunbinnnnn <sunbinnnnn@hotmail.com>
2024-01-08 21:06:25 +08:00
Kensei Nakada
09abd6be5a
address reviews
2024-01-02 02:10:41 +00:00
Aleksandra Malinowska
f89c744b7b
Only run Prioritize() for extenders with prioritizeVerb configured
2023-12-21 13:42:27 +01:00
Aleksandra Malinowska
cd3f7a31e8
Add unit tests for no score plugin scenario
2023-12-21 13:42:21 +01:00
Aleksandra Malinowska
7abba24231
Fix existing unit test (add no op scoring plugin)
2023-12-21 13:30:01 +01:00
Aleksandra Malinowska
e19be41f58
Don't evaluate extra nodes if there's no score plugin defined
2023-12-21 13:29:46 +01:00
AxeZhan
be48c93689
Sched framework: expose NodeInfo in all functions of PluginsRunner interface
2023-12-15 11:30:06 +08:00
Paco Xu
1160521a4f
Revert "Scheduler first fit"
2023-12-14 17:27:25 +08:00
Kubernetes Prow Robot
517091cdc5
Merge pull request #122058 from aleksandra-malinowska/scheduler-first-fit
...
Scheduler first fit
2023-12-14 05:10:19 +01:00
Aleksandra Malinowska
3df00d1bdd
Only run Prioritize() for extenders with prioritizeVerb configured
2023-11-28 17:13:13 +01:00
Aleksandra Malinowska
56dcde8627
Add unit tests for no score plugin scenario
2023-11-28 17:13:13 +01:00
Aleksandra Malinowska
feb23ec581
Fix existing unit test (add no op scoring plugin)
2023-11-28 10:42:21 +01:00
Aleksandra Malinowska
199dc03bdd
Don't evaluate extra nodes if there's no score plugin defined
2023-11-28 10:39:49 +01:00
Kensei Nakada
468e2dac81
fix: requeue pods rejected by Extenders properly
2023-11-23 13:20:02 +00:00
Kubernetes Prow Robot
fd5c406112
Merge pull request #120933 from mengjiao-liu/contextual-logging-scheduler-remaining-part
...
kube-scheduler: convert the remaining part to use contextual logging
2023-10-27 10:30:58 +02:00
Kensei Nakada
27bb66fd7b
cleanup: rename failedPlugin to plugin in framework.Status
2023-10-25 12:03:56 +00:00
Mengjiao Liu
b0a73213d6
kube-scheduler: convert the remaining part to use contextual logging
2023-10-24 17:56:48 +08:00
olderTaoist
5d5958e338
fix ImageLocality plugin score is inconsistent
2023-10-17 09:38:03 +08:00
bzsuni
b71d7f9305
use generic Set in scheduler
...
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
2023-09-24 22:46:55 +08:00
Mengjiao Liu
a7466f44e0
Change the scheduler plugins PluginFactory function to use context parameter to pass logger
...
- Migrated pkg/scheduler/framework/plugins/nodevolumelimits to use contextual logging
- Fix golangci-lint validation failed
- Check for plugins creation err
2023-09-20 17:49:54 +08:00
Stephen Kitt
9990307146
kube-scheduler: drop deprecated pointer package
...
This replaces deprecated k8s.io/utils/pointer functions with their ptr
equivalent.
Signed-off-by: Stephen Kitt <skitt@redhat.com>
2023-09-13 09:42:19 +02:00
kerthcet
6fbb8ec7e4
Move scheduler testing utils to /scheduler/testing
...
Signed-off-by: kerthcet <kerthcet@gmail.com>
2023-09-12 13:42:38 +08:00
kerthcet
855b445d28
Remove deprecated selectorSpread
...
Signed-off-by: kerthcet <kerthcet@gmail.com>
2023-08-28 22:11:33 +08:00
Kensei Nakada
b008223705
fix: when PreFilter returns UnschedulableAndUnresolvable, copy the state in all nodes in statusmap
2023-08-12 06:58:49 +00:00
Kensei Nakada
c7e7eee554
feature(scheduling_queue): track events per Pods ( #118438 )
...
* feature(sscheduling_queue): track events per Pods
* fix typos
* record events in one slice and make each in-flight Pod to refer it
* fix: use Pop() in test before AddUnschedulableIfNotPresent to register in-flight Pods
* eliminate MakeNextPodFuncs
* call Done inside the scheduling queue
* fix comment
* implement done() not to require lock in it
* fix UTs
* improve the receivedEvents implementation based on suggestions
* call DonePod when we don't call AddUnschedulableIfNotPresent
* fix UT
* use queuehint to filter out events for in-flight Pods
* fix based on suggestion from aldo
* fix based on suggestion from Wei
* rename lastEventBefore → previousEvent
* fix based on suggestion
* address comments from aldo
* fix based on the suggestion from Abdullah
* gate in-flight Pods logic by the SchedulingQueueHints feature gate
2023-07-17 15:53:07 -07:00
kidddddddddddddddddddddd
9c7166ff63
wait for eventhandlers to sync before run scheduler
2023-06-27 23:19:34 +08:00
Kubernetes Prow Robot
d58492b19c
Merge pull request #114688 from sanposhiho/sanposhiho/scheduling-one-score
...
feature(schedule_one): use heap to find the highest score node
2023-06-08 15:40:12 -07:00
Mengjiao Liu
074900e81b
scheduler: update the scheduler interface and cache methods to use contextual logging
2023-05-29 13:26:32 +08:00
Kensei Nakada
0535e74224
feature(schedule_one): use heap to find the highest score node
2023-05-27 11:34:32 +00:00
Mengjiao Liu
1c05cf1d51
kube-scheduler: NewFramework function to pass the context parameter
...
Co-authored-by: Aldo Culquicondor <1299064+alculquicondor@users.noreply.github.com>
2023-05-23 10:17:34 +08:00
dingzhu lurong
ed26fcf5b8
cleanup useless null pointer check about nodeInfo.Node() from snapshot for in-tree plugins
2023-05-20 22:53:43 +08:00
sarab
8d18ae6fc2
Use the generic Set in scheduler
2023-04-09 11:34:17 +05:30
kidddddddddddddddddddddd
f5a69ffda9
feature(scheduler): won't run Score if PreScore returned a Skip status ( #115652 )
...
* allow preScore to return skip status to skip running the corresponding score extension
* add test case for all skipped
* add test case for select host
* update plugin status
* skip score when all plugins are skipped
* update
2023-02-13 14:53:29 -08:00
Kubernetes Prow Robot
c549b59983
Merge pull request #114125 from sanposhiho/skip-reimplementation
...
feature(scheduler): won't run Filter if PreFilter returned a Skip status
2023-01-06 02:25:59 -08:00
Kensei Nakada
e5b536755f
feature(scheduler): won't run Filter if PreFilter returned a Skip status
2023-01-06 07:38:15 +00:00
Kante Yin
febf95cc43
Stop Cache in scheduler when test tears down
...
Signed-off-by: Kante Yin <kerthcet@gmail.com>
2022-12-22 15:38:38 +08:00
Kubernetes Prow Robot
dc1e77143f
Merge pull request #114082 from kidddddddddddddddddddddd/refactor_handleSchedulingFailure
...
pass status to handleSchedulingFailure
2022-12-12 22:05:34 -08:00