k8s-merge-robot
9a7507c4db
Merge pull request #29186 from wojtek-t/cleanup_resource_request
...
Automatic merge from submit-queue
Reuse existing Resource struct instead of new resourceRequest
@davidopp
2016-07-19 07:31:19 -07:00
k8s-merge-robot
b0bcb8f7b2
Merge pull request #29100 from wojtek-t/pods_can_never_be_scheduled_again
...
Automatic merge from submit-queue
Fix disappearing pods in scheduler
Fix #29098
2016-07-19 03:26:16 -07:00
Wojciech Tyczynski
dcb5a6d1a6
Reuse existing Resource struct instead of new resourceRequest
2016-07-19 12:21:09 +02:00
Wojciech Tyczynski
66009877bc
Fix disappearing pods in scheduler
2016-07-19 08:18:04 +02:00
k8s-merge-robot
a049a97820
Merge pull request #28803 from lukaszo/ds
...
Automatic merge from submit-queue
Make Daemonset use GeneralPredicates
fixes : #21454 #22205
2016-07-18 22:12:14 -07:00
k8s-merge-robot
fa174bcdaf
Merge pull request #29042 from dims/fixup-imports
...
Automatic merge from submit-queue
Use Go canonical import paths
Add canonical imports only in existing doc.go files.
https://golang.org/doc/go1.4#canonicalimports
Fixes #29014
2016-07-18 07:23:38 -07:00
Wojciech Tyczynski
78101ac55e
Fix crashes in schedulercache
2016-07-18 10:04:36 +02:00
Davanum Srinivas
2b0ed014b7
Use Go canonical import paths
...
Add canonical imports only in existing doc.go files.
https://golang.org/doc/go1.4#canonicalimports
Fixes #29014
2016-07-16 13:48:21 -04:00
k8s-merge-robot
4374b090c3
Merge pull request #28958 from wojtek-t/optimize_priorities_5
...
Automatic merge from submit-queue
Few more optimizations of priority functions in scheduler
Ref #28590
@davidopp
2016-07-15 09:32:04 -07:00
k8s-merge-robot
8b2d994153
Merge pull request #28952 from wojtek-t/optimize_pod_affinity
...
Automatic merge from submit-queue
First step of optimizing PodAffinity priority function
Ref #26144
This is obviously only a first step - I will continue working on this code. However, this is changing the general scheme of computations to what is described in: https://github.com/kubernetes/kubernetes/issues/26144#issuecomment-232612384
2016-07-15 08:59:17 -07:00
Wojciech Tyczynski
a538045d7b
Cleanup and prepare for optimizing PodAffinity priority function.
2016-07-15 10:06:36 +02:00
Wojciech Tyczynski
a23f7bd556
Few more optimizations of priority functions in scheduler
2016-07-14 15:32:56 +02:00
k8s-merge-robot
6bb0995c89
Merge pull request #28886 from wojtek-t/fix_schedulercache_bug
...
Automatic merge from submit-queue
Add ForgetPod to SchedulerCache
Fix #28883
@gmarek @davidopp @xiang90
2016-07-14 05:30:23 -07:00
k8s-merge-robot
74c5b4e4be
Merge pull request #28459 from ping035627/ping035627-patch-0704
...
Automatic merge from submit-queue
Optimise the process of the CalculateSpreadPriority in selector_spreading.go
It had better inspect if the nodeLister is normal first in the CalculateSpreadPriority in selector_spreading.go. If the nodeLister.List return error, the function return directly, not need deal the serviceLister and controllerLister and replicaSetLister.
2016-07-14 04:54:32 -07:00
k8s-merge-robot
ae990defcf
Merge pull request #26956 from joe2far/fix-typos
...
Automatic merge from submit-queue
Fixed several typos
2016-07-14 04:13:15 -07:00
k8s-merge-robot
06939c57aa
Merge pull request #20699 from jiangyaoguo/add-AvoidPreviousNode
...
Automatic merge from submit-queue
Implement alpha version of PreferAvoidPods
This is part of #18853
<!-- Reviewable:start -->
---
This change is [<img src="http://reviewable.k8s.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](http://reviewable.k8s.io/reviews/kubernetes/kubernetes/20699 )
<!-- Reviewable:end -->
2016-07-14 03:30:25 -07:00
PingWang
e4ab32cde2
Modify CalculateAntiAffinityPriority function
...
Signed-off-by: PingWang <wang.ping5@zte.com.cn>
2016-07-14 09:10:50 +08:00
PingWang
437e133b34
Optimise the process of the CalculateSpreadPriority in selector_spreading.go
...
Signed-off-by: PingWang <wang.ping5@zte.com.cn>
2016-07-14 09:09:05 +08:00
Wojciech Tyczynski
9745878778
Add ForgetPod to SchedulerCache
2016-07-13 16:30:05 +02:00
joe2far
5ead89b5bb
Fixed several typos
2016-07-13 15:06:24 +01:00
Łukasz Oleś
528bf7af3a
Make Daemonset use GeneralPredicates
...
fixes #21454 , fixes #22205
2016-07-13 14:50:29 +02:00
Wojciech Tyczynski
c929d95884
Cache Allocatable Resources
2016-07-13 12:57:18 +02:00
Wojciech Tyczynski
58c201834c
Unify resources
2016-07-13 12:57:07 +02:00
jiangyaoguo
4e91166bc6
Use PreferAvoidPods annotation to avoid pods being scheduled to specific node.
...
1. define PreferAvoidPods annotation
2. add PreferAvoidPodsPriority
3. validate AvoidPods in node annotations
2016-07-13 17:07:46 +08:00
Wojciech Tyczynski
ea1d797f98
Avoid computing ports multiple times
2016-07-13 11:02:26 +02:00
Wojciech Tyczynski
ae6b66207a
Optimize selector spreading
2016-07-13 11:02:26 +02:00
Wojciech Tyczynski
b9d13c5dbd
Avoid computing pod resources multiple times
2016-07-13 11:01:53 +02:00
kevin-wangzefeng
ff6280fa5b
update inter-pod affinity predicates, check PodAntiAffinity even when pod has no AntiAffinity constraints
2016-07-13 03:55:01 +00:00
k8s-merge-robot
5894dc4615
Merge pull request #28829 from gmarek/hooks
...
Automatic merge from submit-queue
Add hooks for cluster health detection
Separate a function that decides if zone is healthy. First real commit for preventing massive pod eviction.
Ref. #28832
cc @davidopp
2016-07-12 08:12:04 -07:00
k8s-merge-robot
98030ded05
Merge pull request #28781 from wojtek-t/optimize_priorities_2
...
Automatic merge from submit-queue
Change storeToNodeConditionLister to return []*api.Node instead of api.NodeList for performance
Currently copies that are made while copying/creating api.NodeList are significant part of scheduler profile, and a bunch of them are made in places, that are not-parallelizable.
Ref #28590
2016-07-12 06:18:15 -07:00
gmarek
fd600ab65c
Add hooks for cluster health detection
2016-07-12 15:10:58 +02:00
k8s-merge-robot
9b5827691a
Merge pull request #28669 from lixiaobing10051267/masterTestPodFitsResources
...
Automatic merge from submit-queue
Add test case to TestPodFitsResources() of scheduler algorithm
File "plugin\pkg\scheduler\algorithm\predicates", function "TestPodFitsResources()", line 199, only provide test case "one resource cpu fits but memory not", it should add test case "one resource memory fits but cpu not".
2016-07-11 22:46:09 -07:00
Wojciech Tyczynski
d14fe0f269
Change storeToNodeConditionLister to return []*api.Node instead of api.NodeList for performance
2016-07-11 21:02:33 +02:00
k8s-merge-robot
5067af159e
Merge pull request #28715 from euank/kubelet-trim-dead-code
...
Automatic merge from submit-queue
kubelete: delete a few bits of dead code
Less is more.
2016-07-11 11:40:47 -07:00
k8s-merge-robot
9b74e24fa3
Merge pull request #28769 from wojtek-t/optimize_priorities
...
Automatic merge from submit-queue
Optimize priorities in scheduler
Ref #28590
It's probably easier to review it commit by commit, since those changes are kind of independent from each other.
@davidopp - FYI
2016-07-11 07:49:23 -07:00
Wojciech Tyczynski
d02e8d2885
Avoid unnecessary conversions
2016-07-11 15:41:27 +02:00
Wojciech Tyczynski
dcb2ca54ad
Avoid unnecessary copies
2016-07-11 15:41:27 +02:00
Wojciech Tyczynski
989202c384
Cache AllowedPodNumber to avoid conversions.
2016-07-11 15:41:26 +02:00
Wojciech Tyczynski
4eed5e07a5
Precompute pod resources
2016-07-11 15:41:26 +02:00
Wojciech Tyczynski
e8e8e2d086
Remove unneeded factories
2016-07-11 15:41:26 +02:00
lixiaobing10051267
ce83c04251
Error info "scheduler" modify
2016-07-11 15:17:43 +08:00
PingWang
4fde2ff3a5
Update CheckServiceAffinity in predicates.go
...
Signed-off-by: PingWang <wang.ping5@zte.com.cn>
gofmt -s -w
Signed-off-by: PingWang <wang.ping5@zte.com.cn>
2016-07-11 09:57:57 +08:00
k8s-merge-robot
a261776f3e
Merge pull request #28670 from wojtek-t/scheduler_metadata
...
Automatic merge from submit-queue
Add meta field to predicate signature to avoid computing the same things multiple times
This PR only uses it to avoid computing QOS of a pod for every node from scratch.
Ref #28590
2016-07-09 22:28:14 -07:00
Euan Kemp
26e0f50504
kubelet: delete unused code
2016-07-08 15:15:43 -07:00
Wojciech Tyczynski
49934c05c0
Avoid creating NodeInfoMap from scratch on every scheduling.
2016-07-08 18:09:49 +02:00
Wojciech Tyczynski
0e6dc8a932
Avoid unnecessary copies
2016-07-08 13:54:06 +02:00
Wojciech Tyczynski
b1d53895a4
Check only predicate functions in test
2016-07-08 13:01:41 +02:00
Wojciech Tyczynski
b92eadfd1a
Avoid computing QOS multiple times
2016-07-08 12:57:40 +02:00
Wojciech Tyczynski
6890868823
Add meta field to predicates signature
2016-07-08 12:25:48 +02:00
lixiaobing10051267
b4c106426e
Add test case to TestPodFitsResources()
2016-07-08 15:43:03 +08:00