Abdullah Gharaibeh
c33f217a5d
tracking nodes with pod with affinity
2019-11-05 20:02:33 -05:00
Abdullah Gharaibeh
05cb382357
Update PredicateMetadataProducer to accept a scheduler SharedLister instead of nodeinfomap
2019-10-25 19:19:23 -04:00
draveness
09f333940e
feat: remove CheckNodeMemoryPressure/DiskPressure/PIDPressure/Condition predicates
2019-10-22 15:28:32 +08:00
draveness
9554276d17
feat(scheduler): create metadata and addPod/removePod for migration
2019-10-08 10:05:22 +08:00
Kubernetes Prow Robot
654aa1d846
Merge pull request #83234 from SataQiu/scheduler-cleanup-20190927
...
scheduler: change PredicateMetadata.AddPod to use *v1.Node insead of rich *schedulernodeinfo.NodeInfo
2019-09-28 23:49:37 -07:00
SataQiu
bcaa991676
scheduler: code clean up for predicates/metadata
2019-09-29 10:11:53 +08:00
SataQiu
20e3580066
scheduler: handle error of podSpreadCache.removePod method
2019-09-27 16:23:56 +08:00
Shintaro Murakami
a0c93b10c9
Remove unnecessary factory layer
2019-08-24 08:08:30 +09:00
Wei Huang
8f559ea53b
Optimize internal data structure of EvenPodsSpread
...
- Rename 'topologyPairsPodSpreadMap' to 'podSpreadCache'
- New struct `criticalPaths criticalPaths`
- Add unified method `*criticalPaths.update()` for:
- regular update
- addPod in preemption case
- remotePod in preemption case
2019-08-20 09:26:41 -07:00
Wei Huang
0bff4c27d6
EvenPodsSpread: weigh constraints individually
...
- update logic to weigh each constraint individually
- address comments and misc fixes
2019-07-26 20:48:05 -07:00
Wei Huang
821446ed70
EvenPodsSpread: Make some funcs in predicates pkg as public
2019-07-26 20:48:05 -07:00
Kubernetes Prow Robot
50a0d38e3a
Merge pull request #80503 from tedyu/spread-constaints
...
Refactor nested loop in getTPMapMatchingSpreadConstraints
2019-07-25 20:48:11 -07:00
Ted Yu
89818d8d09
Refactor nested loop in getTPMapMatchingSpreadConstraints
2019-07-25 07:15:14 -07:00
Wei Huang
794847967c
EvenPodsSpread: update addPod() logic to match individual constraint
...
- also add TODO items for potential perf optimization
2019-07-24 15:27:55 -07:00
Wei Huang
fe7072a482
fixup: address comments
2019-07-24 15:27:55 -07:00
Wei Huang
ff831c3df2
EvenPodsSpread: Supports Preemption (addPod)
...
- add addPod() for podSpreadMap
2019-07-24 15:27:55 -07:00
Wei Huang
9e9808d0ab
EvenPodsSpread: Supports Preemption (removePod)
...
- add removePod() for podSpreadMap
2019-07-24 15:27:54 -07:00
Wei Huang
f822487f05
EvenPodsSpread: match selector of each constraint independently
...
- see more discussion at https://github.com/kubernetes/kubernetes/pull/77760#discussion_r305107973
2019-07-22 17:51:23 -07:00
Wei Huang
249752cc1f
fixup: fix comments and use a channel to pass err
2019-07-22 17:34:56 -07:00
Wei Huang
3dbef991a3
EvenPodsSpread: refactor topologyPairsPodSpreadMap
...
- update minMatchMap from []int32 to map[string]int32
2019-07-22 17:34:56 -07:00
Wei Huang
a242e376ac
EvenPodsSpread: PredicateMetadata initilization
...
- build a new `topologyPairsPodSpreadMap` into PredicateMetadata
- update ShallowCopy()
- unit tests
2019-07-22 17:34:56 -07:00
draveness
fab1948a1b
feat: use channel instead of mutex in scheduling predicates
2019-07-13 09:11:52 +08:00
jingxueli
6a1bbff60c
keep processing other nodes for the nil node error
2019-07-11 15:34:40 +08:00
shiyan2016
c329d5117d
cancel process node if error occurs
2019-07-09 19:50:48 -07:00
jingxueli
6196f7274e
improve error msg for predicate meta data
2019-06-30 03:32:02 +08:00
Jun Gong
5ad4cd6b72
Cancel processing node if error occurs when getting affinity and antiaffinity
2019-04-22 11:35:23 +08:00
caiweidong
4038a5e3db
Remove unused lock in scheduler
2019-04-13 13:27:16 +08:00
PingWang
b43a9d6ad1
Delete unused struct
...
Signed-off-by: PingWang <wang.ping5@zte.com.cn>
2019-04-03 17:43:42 +08:00
Bobby (Babak) Salamat
a1b8777d42
Revert "Merge pull request #73934 from bsalamat/num_cpu"
...
This reverts commit cfe4ca8012
, reversing
changes made to f16035600a
.
2019-03-04 13:14:25 -08:00
Bobby (Babak) Salamat
d0ebeefbc4
Use runtime.NumCPU() instead of a fixed value for parallel scheduler threads.
2019-02-11 13:37:30 -08:00
wangqingcan
b82a1d4600
Move predicate types from algorithm to predicates
2018-12-21 22:26:47 +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
Davanum Srinivas
954996e231
Move from glog to klog
...
- Move from the old github.com/golang/glog to k8s.io/klog
- klog as explicit InitFlags() so we add them as necessary
- we update the other repositories that we vendor that made a similar
change from glog to klog
* github.com/kubernetes/repo-infra
* k8s.io/gengo/
* k8s.io/kube-openapi/
* github.com/google/cadvisor
- Entirely remove all references to glog
- Fix some tests by explicit InitFlags in their init() methods
Change-Id: I92db545ff36fcec83afe98f550c9e630098b3135
2018-11-10 07:50:31 -05:00
Bobby (Babak) Salamat
7a352b2b92
Do not allocate memory for pods that do not have inter-pod affinity/anti-affinity
2018-11-02 15:15:45 -07:00
k8s-ci-robot
c00f19bd15
Merge pull request #68403 from wgliang/master.deprecate-Parallelize
...
Replace Parallelize with function ParallelizeUntil and formally depre…
2018-10-06 09:40:07 -07:00
Christoph Blecker
97b2992dc1
Update gofmt for go1.11
2018-10-05 12:59:38 -07:00
Guoliang Wang
c2622dd9d8
Replace Parallelize with function ParallelizeUntil and formally deprecate the Parallelize
2018-10-05 17:56:56 +08:00
zhangmingld
061e0dbb7e
func getPodsMatchingAffinity no longer exists,dont need it in comment
2018-09-27 14:42:49 +08:00
Wei Huang
7490542156
fix PodAntiAffinity issues
...
- update logic of verifying incoming pod's anti-affinity
- rename podMatchesAffinityTermProperties to podMatchesAllAffinityTermProperties
- add podMatchesAnyAffinityTermProperties which is used in some PodAntiAffinity cases
- rename some functions to make it more readable
- add unit tests to verify correctness of PodAffinity and PodAntiAffinity
- verifying "Existing pod anti-affinity"
- verifying "incoming pod's anti-affinity"
- verifying "incoming pod's affinity"
2018-09-13 18:32:33 -07:00
Ahmad Diaa
ee393b4e06
addressed reviewer comments
2018-08-30 01:48:55 +02:00
Ahmad Diaa
ac4a082b33
use topologyPairsMaps for inter pod affinity/anti-affinity maps
2018-08-30 01:48:54 +02:00
Ahmad Diaa
b4c7d190cd
using set instead of lists for topologyPairsMaps attributes
2018-08-18 01:02:48 +02:00
Ahmad Diaa
0f4c3064fd
created struct for topologyPairs maps
2018-08-18 01:02:48 +02:00
Ahmad Diaa
f6659e4543
further enhancements removing matchingTerms from metadata
2018-08-18 01:02:47 +02:00
Mohamed Mehany
3fb6912d08
add topologyValue map to reduce search space
2018-08-18 01:02:46 +02:00
Guoliang Wang
761cf41427
Move pkg/scheduler/schedulercache -> pkg/scheduler/cache
2018-05-31 22:55:34 +08:00
Bobby (Babak) Salamat
c590ec7ae9
Fix an issue in inter-pod affinity predicate that cause affinity to self being processed incorrectly
2018-04-14 19:46:38 -07:00
Bobby (Babak) Salamat
3041698e52
Addressed reviewer comments
2018-04-12 16:30:08 -07:00
Bobby (Babak) Salamat
418c7502f0
Improve performance of affinity/anti-affinity predicate
2018-04-11 21:17:29 -07:00
Yang Guo
8d880506fe
Support cluster-level extended resources in kubelet and kube-scheduler
...
Co-authored-by: Yang Guo <ygg@google.com>
Co-authored-by: Chun Chen <chenchun.feed@gmail.com>
2018-02-27 17:25:30 -08:00