Richa Banker
6944af22d1
Initialize scheduler metrics after metrics options are applied
2024-09-13 12:52:32 -07:00
dom4ha
e7827879db
Enable testing logger in the remaining scheduler tests.
2024-09-09 21:59:24 +00:00
Kensei Nakada
8519d3399f
chore: move the scheduler internal components out of internal dir
2024-08-25 13:10:29 +09:00
Maciej Skoczeń
33815db3c1
Move NominatedPodsForNode to scheduling queue directly
2024-08-21 07:24:52 +00:00
Kubernetes Prow Robot
ea1143efc7
Merge pull request #126022 from macsko/new_node_to_status_map_structure
...
Change structure of NodeToStatus map in scheduler
2024-08-13 21:02:55 -07:00
Maciej Skoczeń
98be7dfc5d
Change structure of NodeToStatus map in scheduler
2024-07-25 07:48:35 +00:00
Kubernetes Prow Robot
d879103c28
Merge pull request #125820 from macsko/add_separate_lock_for_pod_nominator_scheduling_queue
...
Add a separate lock for pod nominator in scheduling queue
2024-07-17 12:06:10 -07:00
Maciej Skoczeń
5def93b10a
Add a separate lock for pod nominator in scheduling queue
2024-07-17 07:58:59 +00:00
Kubernetes Prow Robot
31062790a1
Merge pull request #125855 from googs1025/refactor_scheduler_ut
...
chore: call close framework when finishing
2024-07-12 05:14:35 -07:00
googs1025
d4627f16a5
chore: call close framework when finishing
...
Signed-off-by: googs1025 <googs1025@gmail.com >
2024-07-12 18:11:04 +08:00
olderTaoist
b478621596
register unscheduable plugin when prefileter with NodeNames
2024-07-02 13:02:45 +08:00
NoicFank
31a4b13238
enhancement(scheduler): share waitingPods among profiles
2024-05-17 17:07:27 +08:00
kerthcet
84750fe52e
Revert "enhancement(scheduler): share waitingPods among profiles"
...
This reverts commit 227c1915db .
2024-03-19 22:52:59 +01:00
NoicFank
227c1915db
enhancement(scheduler): share waitingPods among profiles
2024-02-01 10:06:23 +08:00
Kubernetes Prow Robot
5b979a3a53
Merge pull request #122498 from Gekko0114/close
...
Allow framework plugins to be closed
2024-01-08 17:30:36 +01:00
moriya
288c00c0c7
Allow framework plugins to be closed
2024-01-06 10:11:19 +09:00
Kensei Nakada
09abd6be5a
address reviews
2024-01-02 02:10:41 +00:00
Kensei Nakada
5ab2317947
run all PreFilter when the preemption will happen later in the same scheduling cycle
2024-01-01 09:44:06 +00:00
AxeZhan
be48c93689
Sched framework: expose NodeInfo in all functions of PluginsRunner interface
2023-12-15 11:30:06 +08:00
caohe
1f5738df84
fix(scheduler): fix incorrect loop logic in MultiPoint to avoid a plugin being loaded multiple times
...
Signed-off-by: caohe <caohe9603@gmail.com >
2023-11-29 20:14:18 +08:00
Kubernetes Prow Robot
d84ee0ba69
Merge pull request #121632 from kerthcet/fix/runscoreplugins
...
Fix panic when process RunScorePlugins for cap out of range
2023-10-31 13:14:32 +01:00
kerthcet
b02aad42fa
Fix panic when process RunScorePlugins for cap out of range
...
Signed-off-by: kerthcet <kerthcet@gmail.com >
2023-10-31 16:02:16 +08:00
Kensei Nakada
27bb66fd7b
cleanup: rename failedPlugin to plugin in framework.Status
2023-10-25 12:03:56 +00: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
ab01848134
Make sure skip score plugins alwarys returned
...
Signed-off-by: kerthcet <kerthcet@gmail.com >
2023-08-24 13:39:47 +08:00
Wei Huang
765f3916c2
Fix a bug that PostFilter plugin may not function if previous PreFilter plugins return Skip
2023-08-10 13:43:00 -07:00
kerthcet
c0eb0caf4a
Support fine-gained rescheduling in ReservePlugin
...
Signed-off-by: kerthcet <kerthcet@gmail.com >
2023-07-07 13:30:29 +08: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
Kensei Nakada
6f8d38406a
feature(scheduler): implement ClusterEventWithHint to filter out useless events
2023-06-22 13:36:19 +00:00
Mengjiao Liu
074900e81b
scheduler: update the scheduler interface and cache methods to use contextual logging
2023-05-29 13:26:32 +08: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
sarab
8d18ae6fc2
Use the generic Set in scheduler
2023-04-09 11:34:17 +05:30
Kubernetes Prow Robot
77af0be42f
Merge pull request #115519 from sanposhiho/move-metric-recorder
...
cleanup(scheduler): move metricRecorder to metrics package
2023-02-16 03:57:38 -08:00
Kensei Nakada
aa7b1766e5
cleanup(scheduler): move metricRecorder to metrics package
2023-02-16 07:27:08 +00:00
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
2c205e291d
Distinguish unschedulable with unresolvable in scheduler
...
Before, in RunPostFilterPlugins, we didn't distinguish between unschedulable and unresolvable
because we only have one postFilterPlugin by default, now, we have at least two, we should
make sure that once a postFilterPlugin returns unresolvable, we'll return directly
Signed-off-by: Kante Yin <kerthcet@gmail.com >
2023-01-05 16:59:19 +08:00
Kante Yin
49e7e80999
Modify the return type of RunFilterPlugins to *Status
...
Before, the return type of RunFilterPlugins is a Map, but considering we'll return immediately
once we met unsuccessful status, this is not necessary.
Signed-off-by: Kante Yin <kerthcet@gmail.com >
2023-01-03 14:33:58 +08:00
Kubernetes Prow Robot
94fd106a17
Merge pull request #110453 from claudiubelu/unittests-4
...
unittests: Fixes unit tests for Windows (part 4)
2022-12-16 06:16:16 -08:00
Wei Huang
0aecf6b3d5
Fix a regression that scheduler always go through all Filter plugins
...
The correct behavior is to stop upon the first Filter failure.
2022-12-15 12:02:27 -08:00
Claudiu Belu
4dc7a260ec
unittests: Fixes unit tests for Windows (part 4)
...
Currently, there are some unit tests that are failing on Windows due to
various reasons:
- paths not properly joined (filepath.Join should be used).
- files not closed, which means that they cannot be removed / renamed.
- time.Now() is not as precise on Windows, which means that 2
consecutive calls may return the same timestamp.
2022-11-29 16:32:26 +00:00
Kensei Nakada
f3868abfed
Revert "feature(scheduler): won't run Filter if PreFilter returned a Skip status"
...
This reverts commit 786be73b4b .
2022-11-09 11:55:33 +00:00
Kubernetes Prow Robot
2b7b5245ea
Merge pull request #112637 from sanposhiho/pre-filter-skip
...
feature(scheduler): won't run Filter if PreFilter returned a Skip status
2022-11-08 06:16:37 -08:00
Kensei Nakada
786be73b4b
feature(scheduler): won't run Filter if PreFilter returned a Skip status
2022-11-07 23:47:48 +00:00
Wei Huang
0b27f25252
PreEnqueue implementation
...
- Add PreEnqueuePlugin to Scheduler Framework
- Implement PreEnqueuePlugin in scheduler queue
- Implementation of SchedulingGates plugin
- Metrics
2022-11-07 14:02:58 -08:00
Kubernetes Prow Robot
8305358630
Merge pull request #108494 from sanposhiho/RunScorePlugins-return-type
...
change framework.RunScorePlugins to return slice organized by node
2022-10-20 08:57:02 -07:00
sanposhiho
cbf1ea5e68
change framework.RunScorePlugins to return slice organized by node
2022-10-20 01:04:38 +00:00
Yuan Chen
7297f48f12
Add profile level percentageOfNodesToScore
...
Fix conversion errors
Changed the order
update
update
fix manaul coversions
keep the global parameter for backward compatibility
Address Wei's comments
Fix an error
Fix issues
Add unit tests for validation
Fix a comment
Address comments
Update comments
fix verifiation errors
Add tests for scheme_test.go
Convert percentageOfNodesToScore to pointer
Fix errors
Resolve conflicts
Fix testing errors
Address Wei's comments
Revert IntPtr to Int changes
Address comments
Not overrite percentageOfNodesToScore
Fix a bug
Fix a bug
change errs to err
Fix a nit
Remove duplication
Address comments
Fix lint warning
Fix an issue
Update comments
Clean up
Address comments
Revert changes to defaults
fix unit test error
Update
Fix tests
Use default PluginConfigs
2022-10-14 13:01:06 -07:00