54 Commits

Author SHA1 Message Date
yliao
34a64db2c7 extended resource backed by DRA: implementation 2025-07-29 18:55:21 +00:00
Maciej Skoczeń
17d733e243 KEP-5229: Send API calls through dispatcher and cache 2025-07-25 15:35:36 +00:00
Ania Borowiec
aecd37e6fb Moving Scheduler interfaces to staging: Move PodInfo and NodeInfo interfaces (together with related types) to staging repo, leaving internal implementation in kubernetes/kubernetes/pkg/scheduler 2025-07-24 12:10:58 +00:00
Omar Nasser
45c355ca58 Move unschedulablePods struct to a separate file 2025-07-11 19:48:11 +03:00
Junhao Zou
1b730abf8d cleanup: use HandleErrorWithXXX instead of logger.Error where errors are intentionally ignored 2025-07-08 09:34:49 +08:00
Ania Borowiec
ee8c265d35 Move Code and Status from pkg/scheduler/framework to k8s.io/kube-scheduler/framework 2025-06-30 10:06:22 +00:00
Ania Borowiec
00d3750503 Move ClusterEvent type to staging repo, leaving some functions (that contain logic internal to scheduler) in kubernetes/kubernetes (#132190)
* Move ClusterEvent type to staging repo, leaving some functions (that contain logic internal to scheduler) in kubernetes/kubernetes

apply review comment and fix linter warning

* update-vendor.sh

* update doc comments

* run update-vendor.sh
2025-06-26 08:06:29 -07:00
Kensei Nakada
f694c58c6c feat: graduate QueueingHint to GA 2025-05-26 21:23:46 +02:00
Maciej Skoczeń
157903b09b Skip backoff when PodMaxBackoffDuration is set to zero 2025-05-26 09:35:53 +00:00
Kensei Nakada
adc4916dfe feat: introduce pInfo.UnschedulableCount to make the backoff calculation more appropriate 2025-05-17 12:39:58 +02:00
Kubernetes Prow Robot
0113538e59 Merge pull request #127180 from sanposhiho/general-gate
feat: introduce pInfo.GatingPlugin to filter out events more generally
2025-05-14 05:13:18 -07:00
Kensei Nakada
5140786829 feat: improve the backoff calculation to o(1) 2025-05-12 01:26:47 +02:00
Kensei Nakada
d28c8cd488 fix: not removing the plugin from the unsched plugins after PreEnqueue 2025-05-07 14:12:23 +02:00
Kensei Nakada
47d296d62d feat: introduce pInfo.GatingPlugin to filter out events more generally 2025-05-07 13:54:47 +02:00
Ania Borowiec
17acc4a5ee Move queue.Done() before Prebind, add tests 2025-03-20 22:14:36 +00:00
Maciej Skoczeń
c7919f5e22 Pop from the backoffQ when the activeQ is empty 2025-03-20 16:07:13 +00:00
Kubernetes Prow Robot
65d9066665 Merge pull request #130680 from macsko/update_backoffq_less_function_to_order_by_priority_in_windows
Update backoffQ's less function to order pods by priority in windows
2025-03-20 01:36:31 -07:00
Maciej Skoczeń
e367dca6c5 Change backoffQ less function to order pods by priority in windows 2025-03-19 13:04:15 +00:00
Maciej Skoczeń
1be3f8961b Fix a race when closing activeQ 2025-03-18 10:25:56 +00:00
Maciej Skoczeń
9df0f6b604 Call PreEnqueue plugins before adding pod to backoffQ 2025-03-14 08:47:40 +00:00
carlory
aab7a079fa make each scheduler test independent
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-03-13 14:39:50 +08:00
Maciej Skoczeń
2fc3cd90b1 Store pod backoff expiration time in QueuedPodInfo 2025-03-06 10:45:38 +00:00
Maciej Skoczeń
6975572a80 Add missing increments of queue_incoming_pods_total metric in scheduling queue 2025-03-04 12:37:22 +00:00
Maciej Skoczeń
0f24b9ff45 Split backoffQ into backoffQ and errorBackoffQ in scheduler 2025-02-24 14:11:26 +00:00
Maciej Skoczeń
0452ae402a Use cached calculateResource result when removing pod from NodeInfo in preemption 2025-01-21 10:02:57 +00:00
Kubernetes Prow Robot
fb033826a8 Merge pull request #128170 from sanposhiho/async-preemption
feature(KEP-4832): asynchronous preemption
2024-11-07 19:44:54 +00:00
Kensei Nakada
b96eee847e feat: graduate SchedulerQueueingHints to beta 2024-11-07 21:45:18 +09:00
Kensei Nakada
105d489aa4 chore: wording 2024-11-07 14:09:35 +09:00
Kensei Nakada
ce377efa00 fix: improve logs\ 2024-11-07 14:09:35 +09:00
Kensei Nakada
49135d6173 fix: take QHint disable scenario into consideration 2024-11-07 14:09:35 +09:00
Kensei Nakada
623b2a20d2 fix: handle Activate event properly 2024-11-07 14:09:35 +09:00
Kensei Nakada
102d79ec93 add: add a test case for Activate 2024-11-07 14:09:35 +09:00
Kensei Nakada
02459ca59c fix: register the event in in-flight as necessary at Activate 2024-11-07 14:09:35 +09:00
Kensei Nakada
089457e908 fix: check correctly if the event is scale down
Signed-off-by: Kensei Nakada <handbomusic@gmail.com>
2024-10-22 10:01:20 +09:00
Kensei Nakada
83f9e4b6df cleanup: remove event list 2024-10-18 11:10:10 +10:00
Kensei Nakada
a2b3a4f4dc chore: ensure the scheduler handles events before checking the pod position 2024-10-06 21:06:45 +09:00
Richa Banker
6944af22d1 Initialize scheduler metrics after metrics options are applied 2024-09-13 12:52:32 -07:00
dom4ha
2a2b743445 Commit review suggestion to pkg/scheduler/backend/queue/scheduling_queue_test.go
Co-authored-by: Maciej Skoczeń <87243939+macsko@users.noreply.github.com>
2024-09-11 15:23:40 +02:00
dom4ha
e7827879db Enable testing logger in the remaining scheduler tests. 2024-09-09 21:59:24 +00:00
Kensei Nakada
24a14aa810 fix: run a test for requeueing with PreFilterResult correctly 2024-09-07 23:52:45 +09:00
Kubernetes Prow Robot
f12334be03 Merge pull request #126962 from sanposhiho/memory-leak-scheduler
fix(scheduler): fix a possible memory leak for QueueingHint
2024-09-06 19:01:25 +01:00
Kubernetes Prow Robot
f248c24456 Merge pull request #127182 from sanposhiho/cleanup-metrics
chore: cleanup inFlightPods when closing the queue
2024-09-06 12:05:42 +01:00
Kensei Nakada
d76433554e chore: cleanup inFlightPods when closing the queue 2024-09-06 17:12:28 +09:00
Kubernetes Prow Robot
52d4972901 Merge pull request #127109 from sanposhiho/precheck-move
feat: disable preCheck when QHint is enabled
2024-09-05 17:19:57 +01:00
Kensei Nakada
6d357d2476 fix: discard a pod at Pop() when the pod is being scheduled 2024-09-05 22:30:43 +09:00
Kensei Nakada
0b71f256a8 fix(scheduler): fix a possible memory leak for QueueingHint 2024-09-05 12:13:05 +09:00
Kubernetes Prow Robot
05df9f4675 Merge pull request #127052 from sanposhiho/add-inflight-event-metric
feat(scheduler): support inflight_events metric
2024-09-04 19:56:19 +01:00
Kensei Nakada
b5ed15b94a feat: implement a force flush 2024-09-04 21:59:27 +09:00
Kensei Nakada
4ee1394b71 feat: disable preCheck when QHint is enabled 2024-09-04 17:43:00 +09:00
Kensei Nakada
110d28355d feat(scheduler): support inflight_events metric 2024-09-02 10:16:43 +09:00