Aldo Culquicondor
d6f09f7dfb
Fix UpdateSnapshot when Node is partially removed
...
Change-Id: I5b459e9ea67020183c87d1ce0a2380efb8cc3e05
2020-09-28 17:50:41 -04:00
maelk
fc5edb8c12
Change nodeInfolist building logic in scheduler
...
This commit transforms the next() function of the scheduler node
tree into a listNodes() function that directly returns a list of
nodes, going through the zones in a round-robin fashion. This
removes the flawed logic of the next() function.
2020-08-18 11:35:14 +03:00
Aldo Culquicondor
dfe9e413d9
Keep track of remaining pods when a node is deleted.
...
The apiserver is expected to send pod deletion events that might arrive at a different time. However, sometimes a node could be recreated without its pods being deleted.
Partial revert of https://github.com/kubernetes/kubernetes/pull/86964
Signed-off-by: Aldo Culquicondor <acondor@google.com>
Change-Id: I51f683e5f05689b711c81ebff34e7118b5337571
2020-08-13 14:24:01 -04:00
Aldo Culquicondor
16d7ecfa45
Remove direct accesses to cache's node map
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
Change-Id: Iebb22fc816926aaa1ddd1e4b2e52f335a275ffaa
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-08-13 14:22:06 -04:00
Maël Kimmerlin
c2ec8bedbc
Fix scheduler issue with nodetree additions
...
When nodes are added in multiple zones at once, the nodeTree next
function does not return a correct list of nodes but repeats some
This commit resets the index before starting to call next() to
prevent this issue
Special thanks to igraecao for the help in finding the bug
Co-authored-by: igraecao <matvej.yolli@outlook.com>
2020-07-24 09:42:53 +03:00
Abdullah Gharaibeh
2c51c13620
Scheduler NodeInfo cleanup
2020-04-09 19:03:51 -04:00
Kubernetes Prow Robot
0c9245a29f
Merge pull request #89974 from ahg-g/ahg-info
...
scheduler's NodeInfo tracks PodInfos instead of Pods
2020-04-09 09:19:58 -07:00
Abdullah Gharaibeh
b8ddd00312
scheduler's NodeInfo tracks PodInfos instead of Pods
2020-04-08 17:53:20 -04:00
Kubernetes Prow Robot
1edbfe1745
Merge pull request #89908 from alculquicondor/fix_cache
...
Skip updating scheduler cache on pod update if the node was deleted
2020-04-07 16:46:06 -07:00
Aldo Culquicondor
e75b5dcfe4
Skip updating cache on pod update if the node was deleted
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-04-07 13:24:42 -04:00
Abdullah Gharaibeh
a5d8172715
move nodeinfo type to framework pkg
2020-04-07 10:25:24 -04:00
Abdullah Gharaibeh
ed3fe054df
move scheduler nodeinfo to pkg/scheduler/types
2020-03-31 21:02:09 -04:00
Aldo Culquicondor
7a39e1396a
Remove unnecessary slow binding test
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-01-20 11:49:45 -05:00
Aldo Culquicondor
f53d7e55df
Move Snapshot from nodeinfo/snapshot to internal/cache
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-01-17 13:29:41 -05:00
Aldo Culquicondor
6a14203658
Rename cache's Snapshot to Dump
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-01-17 11:28:08 -05:00
Wei Huang
b2159b5d66
Remove scheduler/algorithm/priorities/util package
2020-01-09 20:16:05 -08:00
Aldo Culquicondor
afe3b907a1
Remove nodes from cache immediately on delete events
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-01-09 12:58:12 -05:00
Abdullah Gharaibeh
5ea43f20cb
optimize scheduler's UpdateNodeInfoSnapshot
2019-11-29 15:06:13 -05:00
yuxiaobo
81e9f21f83
Correct spelling mistakes
...
Signed-off-by: yuxiaobo <yuxiaobogo@163.com>
2019-11-06 20:25:19 +08:00
Abdullah Gharaibeh
8ec56aeafb
Change all scheduler's Node and Pod list/lookups to be from the snapshot rather than the cache.
2019-10-25 14:24:55 -04:00
Abdullah Gharaibeh
373cf8c1b1
move nodeinfo/snapshot.go into its own package
2019-10-23 16:12:13 -04:00
Abdullah Gharaibeh
d393804237
separate listers into their own package
2019-10-22 18:11:02 -04:00
Abdullah Gharaibeh
63d7733e98
create an ordered list of nodes instead of iterating over the tree
2019-10-18 12:51:46 -04:00
draveness
ffef11f768
feat(scheduler): move node info snapshot out of internal package
2019-08-23 22:32:16 +08:00
ahg-g
ece3e3cdba
Revert "Faster scheduler"
2019-06-06 22:34:18 -04:00
Kubernetes Prow Robot
baa2030683
Merge pull request #77509 from ahg-g/faster_scheduler
...
Faster scheduler
2019-05-08 17:15:00 -07:00
Andrew Kim
c919139245
update import of generic featuregate code from k8s.io/apiserver/pkg/util/feature -> k8s.io/component-base/featuregate
2019-05-08 10:01:50 -04:00
Abdullah Gharaibeh
e660e84459
Faster scheduler.
2019-05-08 09:49:01 -04:00
Bobby (Babak) Salamat
404dc1ed79
Update scheduler framework plugins to align with the latest changes to the framework design
2019-04-29 16:40:56 -07:00
Wei Huang
49346c1e04
shorten scheduler package alias for better readability
...
- schedulerinternalcache -> internalcache
2019-03-21 18:14:19 -07:00
yanghaichao12
b475cdf7fc
Fix typos
...
change SupportsPreemption
change comment again
2019-03-05 02:12:55 -05:00
Bobby (Babak) Salamat
337cb7036c
Add tests for the new cache snapshotting mechanism.
2019-02-20 13:38:37 -08:00
Bobby (Babak) Salamat
e0ad271891
Optimize scheduler cache snapshotting using an MRU structure.
2019-02-20 13:38:37 -08:00
yuexiao-wang
f3353c358d
[scheduler cleanup phase 2]: Rename to
...
Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
2018-12-11 11:21:12 +08:00
k8s-ci-robot
527d1c34cc
Merge pull request #70947 from Adirio/nodetree-thread-safety
...
Scheduler internal NodeTree thread-safe NumNodes
2018-11-29 07:36:48 -08:00
Jordan Liggitt
de8bf9b63d
fix scheduler and kubelet unit tests leaking feature flag changes
2018-11-16 10:52:53 -05:00
Adrián Orive
c7cba7370f
Scheduler internal NodeTree thread-safe NumNodes
...
Signed-off-by: Adrián Orive <adrian.orive.oneca@gmail.com>
2018-11-13 08:40:48 +01:00
Guoliang Wang
a50404d441
[scheduler cleanup phase 1]: Move NodeInfo utils into pkg/scheduler/cache
2018-10-11 11:04:23 +08:00
Guoliang Wang
187e2e01c9
Move scheduler cache interface and implementation to pkg/scheduler/internal/cache
2018-10-06 20:48:59 +08:00