saintube
afb4e96510
Expose NodeInfo to Score plugins
...
Co-authored-by: shenxin <rougang.hrg@alibaba-inc.com >
Signed-off-by: saintube <saintube@foxmail.com >
2025-03-04 17:57:14 +08:00
Kensei Nakada
3701e39327
fix: remove the mention that DRA uses Pending
2025-02-04 06:45:05 +09:00
Davanum Srinivas
4e05bc20db
Linter to ensure go-cmp/cmp is used ONLY in tests
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2025-01-24 20:49:14 -05:00
Kensei Nakada
a95b8b5085
fix: use Activate always
2024-11-07 14:09:35 +09:00
Kensei Nakada
c322294883
implement PodActivator to activate when preemption fails
2024-11-07 14:09:35 +09:00
Kuba Tużnik
87cd496a29
scheduler/framework: introduce pluggable SharedDRAManager
...
SharedDRAManager will be used by the DRA plugin to obtain DRA
objects, and to track modifications to them in-memory. The current
DRA plugin behavior will be the default implementation of
SharedDRAManager.
Plugging a different implementation will allow Cluster Autoscaler
to provide a simulated state of DRA objects to the DRA plugin when
making scheduling simulations, as well as obtain the modifications
to DRA objects from the plugin.
2024-11-05 13:52:57 +01:00
googs1025
69831b0043
chore(scheduler): refactor import package ordering
2024-09-18 20:31:03 +08:00
Kubernetes Prow Robot
5b95fdb374
Merge pull request #126476 from pohly/scheduler-framework-filter-docs
...
scheduler: document behavior of Error status returned by Filter
2024-08-13 22:10:42 -07: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
Patrick Ohly
d71d59b91e
scheduler: document behavior of Error status returned by Filter
...
This behavior was useful for https://github.com/kubernetes/kubernetes/pull/125488 but
wasn't obvious when reading the documentation.
2024-07-31 08:55:46 +02:00
Maciej Skoczeń
98be7dfc5d
Change structure of NodeToStatus map in scheduler
2024-07-25 07:48:35 +00:00
googs1025
a3978e8315
scheduler: Add ctx param and error return to EnqueueExtensions.EventsToRegister()
2024-07-18 12:22:17 +08:00
Kubernetes Prow Robot
ae1caa40a2
Merge pull request #125961 from Jerry-yz/master
...
Chore: fix scheduler code comment typos
2024-07-15 19:27:30 -07: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
Jerry-yz
bd90e99b2a
fix: schedule code comment typo
...
Signed-off-by: Jerry-yz <yz386071268@gmail.com >
2024-07-09 00:04:18 +08:00
Kubernetes Prow Robot
b6899c5e08
Merge pull request #122251 from olderTaoist/unschedulable-plugin
...
register unschedulable plugin for those plugins that PreFilter's PreFilterResult filter out some nodes
2024-07-05 05:44:26 -07:00
olderTaoist
b478621596
register unscheduable plugin when prefileter with NodeNames
2024-07-02 13:02:45 +08:00
Kubernetes Prow Robot
8c478a06d8
Merge pull request #124595 from pohly/dra-scheduler-assume-cache-eventhandlers
...
DRA: scheduler event handlers via assume cache
2024-06-25 11:56:28 -07:00
Patrick Ohly
9a6f3b9388
scheduler: central ResourceClaim assume cache
...
This enables connecting the event handler for ResourceClaim to the assume
cache, which addresses a theoretic race condition.
It may also be useful for implementing the autoscaler support, because now
the autoscaler can modify the content of the cache.
2024-06-25 14:00:25 +02:00
Gabe
c8f0ea1a54
Don't fill in NodeToStatusMap with UnschedulableAndUnresolvable
2024-05-31 15:52:16 +00: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
Kubernetes Prow Robot
56d0da546a
Merge pull request #121950 from sanposhiho/doc-postfilter
...
fix(framework): elaborate the document on PostFilter
2023-12-18 16:57:49 +01:00
AxeZhan
be48c93689
Sched framework: expose NodeInfo in all functions of PluginsRunner interface
2023-12-15 11:30:06 +08:00
Kubernetes Prow Robot
f708c47469
Merge pull request #122017 from sanposhiho/doc-shared-lister
...
fix(doc): elaborate the documentation of SnapshotSharedLister
2023-12-14 05:09:52 +01:00
Kubernetes Prow Robot
fb011badd7
Merge pull request #121670 from kerthcet/bug/add-status-message
...
Fix empty status message in logging
2023-12-13 22:34:51 +01:00
Kensei Nakada
4d9df1134f
fix(doc): elaborate the documentation of SnapshotSharedLister
2023-11-23 08:19:26 +00:00
Kensei Nakada
52ff7f8dc0
fix(framework): elaborate the document on PostFilter
2023-11-23 05:18:49 +00:00
Kensei Nakada
005e85c4d3
fix(framework): remove the mention about what happens with nil from EventsToRegister
2023-11-18 15:47:31 +09:00
kerthcet
f77a4543d1
Unregister events in schedulingGates plugin
...
Signed-off-by: kerthcet <kerthcet@gmail.com >
2023-11-06 10:01:13 +08:00
kerthcet
fade7463cd
Add String() to framework status
...
Signed-off-by: kerthcet <kerthcet@gmail.com >
2023-11-01 17:01:36 +08:00
Kensei Nakada
c7842d9c63
narrow down the scope of EnqueueExtensions to subscribe less cluster events
2023-10-27 14:14:37 +00:00
Kubernetes Prow Robot
2749509f35
Merge pull request #121469 from sanposhiho/renamerename
...
cleanup: rename failedPlugin to plugin in framework.Status
2023-10-25 20:16:43 +02:00
Kensei Nakada
27bb66fd7b
cleanup: rename failedPlugin to plugin in framework.Status
2023-10-25 12:03:56 +00:00
Kensei Nakada
fb6b10997a
cleanup: remove useless test
2023-10-22 04:41:59 +00:00
Kensei Nakada
4f5bc7e8d7
fix based on reviews
2023-10-20 02:53:06 +00:00
Kensei Nakada
cb5dc46edf
feature(scheduler): simplify QueueingHint by introducing new statuses
2023-10-19 11:02:11 +00: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
sarab
8d18ae6fc2
Use the generic Set in scheduler
2023-04-09 11:34:17 +05:30
Aldo Culquicondor
07a73bb2e1
One lock among PodNominator and SchedulingQueue
...
Change-Id: I17fe5da40250e42c04124c25b530ce6c8dea4154
2023-03-08 16:18:36 -05: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
70c28f3e12
Merge pull request #114486 from kerthcet/cleanup/make-preemption-more-readable
...
Make handling scheduleResult more readable
2022-12-21 15:01:25 -08:00
Kante Yin
c8908716ee
Make handling scheduleResult more readable
...
Signed-off-by: Kante Yin <kerthcet@gmail.com >
2022-12-22 01:22:34 +08:00