kerthcet
c0eb0caf4a
Support fine-gained rescheduling in ReservePlugin
...
Signed-off-by: kerthcet <kerthcet@gmail.com >
2023-07-07 13:30:29 +08:00
Kubernetes Prow Robot
b07a843cb5
Merge pull request #119046 from kerthcet/fix/handle-unschedule-plugins
...
Fix fitError in Permit plugin not handled perfectly
2023-07-06 21:01:03 -07:00
kerthcet
278a8376e1
Fix: fiterror in permit plugin not handled perfectly
...
We only added failed plulgins, but actually this will not work unless
we make the status with a fitError because we only copy the failured plugins
to podInfo if it is a fitError
Signed-off-by: kerthcet <kerthcet@gmail.com >
2023-07-07 10:35:59 +08:00
Kubernetes Prow Robot
aeed7da616
Merge pull request #119077 from sanposhiho/follow-up-hint
...
clean up the implementation around QueueingHintFn
2023-07-06 13:39:15 -07:00
Kensei Nakada
be0db3f93d
clean up the implementation around QueueingHintFn
2023-07-06 16:07:39 +00:00
tangwz
1bf2f6c9c0
feat(NodePorts): return Skip status in PreFilter
2023-07-06 08:42:08 +08:00
Kubernetes Prow Robot
293c1b8378
Merge pull request #118025 from AxeZhan/score-metrics
...
feature(scheduler): plugin_evaluation_total metric support preScore/score
2023-07-05 05:14:56 -07:00
Mengjiao Liu
443bf3b01b
scheduler test: Use cmp.Diff instead of reflect.DeepEqual for pkg/scheduler/internal/cache
2023-07-05 16:00:25 +08:00
Kubernetes Prow Robot
0852a2759a
Merge pull request #118965 from mengjiao-liu/use-cmp.Diff-scheduler-queue
...
scheduler test: Use cmp.Diff instead of reflect.DeepEqual for pkg/scheduler/internal/queue/
2023-07-04 05:29:05 -07:00
Heba Elayoty
d548983dbb
Use table-driven table for TestPerPodSchedulingMetrics
...
Signed-off-by: Heba Elayoty <hebaelayoty@gmail.com >
2023-06-29 14:51:55 -07:00
Shingo Omura
d53762ec3a
remove unnecessary comment in pkg/scheduler/framework.QueueingHintFn
...
event is not passed to QueueingHintFn but it exists a comment about it.
event is unnecessary in QueueingHintFn because QueueingHintFn is used in
ClusterEventWithHint and ClusterEventWithHint already have ClusterEvent.
Signed-off-by: Shingo Omura <everpeace@gmail.com >
2023-06-29 21:22:20 +09:00
Kubernetes Prow Robot
3a9c639d5a
Merge pull request #118312 from mengjiao-liu/improve-scheduler-cache-test
...
scheduler: add test name and remove redundant test tables to improve cache_test.go
2023-06-29 02:51:36 -07:00
Mengjiao Liu
72294e4eff
scheduler test: Use cmp.Diff instead of reflect.DeepEqual for pkg/scheduler/internal/queue/
2023-06-29 15:28:42 +08:00
utam0k
ef26510164
Return Skip in PodTopologySpread#PreScore under specific conditions
...
Signed-off-by: utam0k <k0ma@utam0k.jp >
2023-06-28 12:08:10 +00:00
Kubernetes Prow Robot
52457842d1
Merge pull request #117055 from cyclinder/csi_migration
...
remove CSI-migration gate
2023-06-28 04:28:31 -07:00
kidddddddddddddddddddddd
9c7166ff63
wait for eventhandlers to sync before run scheduler
2023-06-27 23:19:34 +08:00
Kubernetes Prow Robot
d9714078f8
Merge pull request #118551 from sanposhiho/event-to-register
...
feature(scheduler): implement ClusterEventWithHint to filter out useless events
2023-06-26 06:41:45 -07:00
Kensei Nakada
6f8d38406a
feature(scheduler): implement ClusterEventWithHint to filter out useless events
2023-06-22 13:36:19 +00:00
Heba Elayoty
902c711fb4
Unset gated pod info timestamp in addToActiveQ
...
Signed-off-by: Heba Elayoty <hebaelayoty@gmail.com >
2023-06-21 14:16:08 -07:00
Kubernetes Prow Robot
bc8e312857
Merge pull request #117903 from sourcelliu/dynamic
...
feature(DynamicResources): return Skip in PreFilter
2023-06-20 17:48:20 -07:00
Kubernetes Prow Robot
9740bc0e0a
Merge pull request #118606 from sanposhiho/refactor-score
...
refactor: simplify RunScorePlugins for readability + performance
2023-06-13 21:41:57 -07:00
Mengjiao Liu
22de2c27d1
scheduler: improve cache_test.go
...
- Add test name to enhance test readability
- Remove redundant test tables
2023-06-12 19:02:50 +08:00
Kensei Nakada
a7eb7ed5c6
refactor: simplify RunScorePlugins for readability + performance
2023-06-11 03:29:05 +00:00
Kubernetes Prow Robot
4483bf66fe
Merge pull request #116635 from mengjiao-liu/contextual-logging-plugin-interpodaffinity
...
Migrated `pkg/scheduler/framework/plugins/interpodaffinity` to contextual logging
2023-06-09 08:14:13 -07: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
Kubernetes Prow Robot
2057a48ee5
Merge pull request #114771 from sanposhiho/scheduling_perf_scheduler_scheduling_attempt_duration_seconds
...
feature(scheduler_perf): distinguish result in scheduler_scheduling_attempt_duration_seconds metric result
2023-06-07 06:18:13 -07:00
Yuan Chen
9eaa50cc82
Rename scheduler queue variables for consistency
2023-06-05 09:02:06 -07:00
guoguangwu
1d9eed9f95
chore: slice replace loop
2023-06-05 22:40:53 +08:00
SataQiu
410b6023d6
scheduler: fix code style issues for pkg/scheduler
2023-06-05 17:29:49 +08:00
cyclinder
8e4228a8c1
remove CSI-migration gate
2023-06-04 18:40:17 +08:00
Kensei Nakada
a4ea058cc7
feature(scheduler_perf): distinguish result in scheduler_scheduling_attempt_duration_seconds metric result
2023-06-02 14:45:55 +00:00
Mengjiao Liu
6d23da045f
Migrated pkg/scheduler/framework/plugins/interpodaffinity to use contextual logging
2023-06-01 18:24:54 +08:00
likakuli
5a14573258
clean: use info instead of error to log queue closed message when scheduler exit
...
Signed-off-by: likakuli <1154584512@qq.com >
2023-05-31 11:07:24 +08: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
Kubernetes Prow Robot
f7cfb5f02f
Merge pull request #118257 from pohly/dra-scheduler-plugin-loopvar-fix
...
dra scheduler plugin test: fix loopvar bug and "reserve" expected data
2023-05-26 06:06:53 -07:00
Patrick Ohly
7a6b4a9215
dra scheduler plugin test: fix loopvar bug and "reserve" expected data
...
The `listAll` function returned a slice where all pointers referred to the same
instance. That instance had the value of the last list entry. As a result, unit
tests only compared that element.
During the reserve phase, the first claim gets reserved in two test
cases. Those two tests must expect that change. That hadn't been noticed before
because that first claim didn't get compared.
2023-05-25 15:10:05 +02: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
Kubernetes Prow Robot
c7c41d27b4
Merge pull request #117834 from NoicFank/cleanup-scheduler-node-must-not-nil-in-snapshot
...
cleanup useless null pointer check about nodeInfo.Node() from snapshot for in-tree plugins
2023-05-20 15:16:18 -07: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
Kubernetes Prow Robot
da1b9df26c
Merge pull request #118032 from kerthcet/cleanup/interpodaffinity2
...
Chore: cleanup in interPodAffinity
2023-05-17 14:00:33 -07:00
Kubernetes Prow Robot
53772982be
Merge pull request #116829 from mengjiao-liu/contextual-logging-scheduler-plugin-volumezone
...
Migrated the volumezone scheduler plugin to use contextual logging
2023-05-16 09:53:35 -07:00
AxeZhan
8c6c1e5319
plugin_evaluation_total metric support preScore/score
2023-05-16 16:52:29 +08:00
kerthcet
3ac7497361
Chore: cleanup in interpodaffinity
...
Signed-off-by: kerthcet <kerthcet@gmail.com >
2023-05-16 14:46:15 +08:00
Kubernetes Prow Robot
ffb4172ff1
Merge pull request #115754 from linxiulei/sched
...
Start informers after leader election
2023-05-15 15:41:36 -07:00
Eric Lin
a52dcd0d9f
Add DelayCacheUntilActive option to start informers after leader election
...
If scheduler fails to be active (elected if leader election is enabled),
setting this option will not start informers so that to avoid memory
overhead.
Signed-off-by: Eric Lin <exlin@google.com >
2023-05-15 19:52:04 +00:00
mantuliu
6e2ea32fc8
feature(DynamicResources): return Skip in PreFilter
2023-05-15 00:06:08 +08:00
Kensei Nakada
13cef6a754
cleanup unused variables for v1beta2 component config
2023-05-14 00:22:25 +09:00
Kubernetes Prow Robot
58e13496d6
Merge pull request #116842 from mengjiao-liu/contextual-logging-scheduler-runtime
...
Migrated `pkg/scheduler/framework/runtime` to use contextual logging
2023-05-11 10:59:02 -07:00
Mengjiao Liu
fe728996ca
scheduler test: call frameworkruntime.WithLogger function for contextual logging
2023-05-11 15:46:08 +08:00