tanshanshan
d1fd1d3516
fix comment and so on
2017-01-04 17:16:11 +08:00
Mike Danese
161c391f44
autogenerated
2016-12-29 13:04:10 -08:00
Joe Finney
b4c87a94a8
Remove two zany unit tests.
2016-12-16 14:49:05 -08:00
Robert Rati
91931c138e
[scheduling] Moved node affinity from annotations to api fields. #35518
2016-12-16 11:42:43 -05:00
Mike Danese
c87de85347
autoupdate BUILD files
2016-12-12 13:30:07 -08:00
Clayton Coleman
c52d510a24
refactor: generated
2016-12-10 18:05:53 -05:00
Clayton Coleman
3c72ee2189
Change references to OwnerReference
2016-12-10 18:05:36 -05:00
Kubernetes Submit Queue
f2f107124b
Merge pull request #37691 from dshulyak/term_selector
...
Automatic merge from submit-queue (batch tested with PRs 38377, 36365, 36648, 37691, 38339)
Do not create selector and namespaces in a loop where possible
With 1000 nodes and 5000 pods (5 pods per node) with anti-affinity a lot of CPU wasted on creating LabelSelector and sets.String (map).
With this change we are able to deploy that number of pods in ~25 minutes. Without - it takes 30 minutes to deploy 500 pods with anti-affinity configured.
2016-12-08 10:52:01 -08:00
Ivan Shvedunov
d40a8f3279
Don't require failureDomains in PodAffinityChecker
...
failureDomains are only used for PreferredDuringScheduling pod
anti-affinity, which is ignored by PodAffinityChecker.
This unnecessary requirement was making it hard to move
PodAffinityChecker to GeneralPredicates because that would require
passing --failure-domains to both kubelet and kube-controller-manager.
2016-12-08 14:08:28 +03:00
Dmitry Shulyak
55b413f504
Do not create selector and namespaces in a loop where possible
...
Change-Id: Ib8e62df92a3ea6b8ee6b90cb0b73af71332481d7
2016-12-08 13:04:38 +02:00
Kubernetes Submit Queue
f299a0010a
Merge pull request #37558 from jayunit100/scheduler_log_spam
...
Automatic merge from submit-queue (batch tested with PRs 38076, 38137, 36882, 37634, 37558)
[scheduler] Use V(10) for anything which may be O(N*P) logging
Fixes #37014
This PR makes sure that logging statements which are capable of being called on a perNode / perPod basis (i.e. non essential ones that will just clog up logs at large scale) are at V(10) level.
I dreamt of a levenstein filter that built a weak map of word frequencies and alerted once log throughput increased w/o varying information content.... but then I woke up and realized this is probably all we really need for now :)
2016-12-05 19:25:57 -08:00
Clayton Coleman
3454a8d52c
refactor: update bazel, codec, and gofmt
2016-12-03 19:10:53 -05:00
Clayton Coleman
5df8cc39c9
refactor: generated
2016-12-03 19:10:46 -05:00
jayunit100
7c94c51860
[scheduler] Use V(10) for anything which may be O(N*P) logging
2016-11-28 10:31:49 -05:00
Chao Xu
bcc783c594
run hack/update-all.sh
2016-11-23 15:53:09 -08:00
Chao Xu
f782aba56e
plugin/scheduler
2016-11-23 15:53:09 -08:00
gmarek
3971553298
Scheduler Reduce function can use nodeNameToNodeInfo map
2016-11-03 10:07:05 +01:00
gmarek
c80d308128
Scheduler Reduce functions can use PriorityMetadata
2016-11-02 16:33:22 +01:00
gmarek
802ebf01e2
split scheduler priorities
2016-10-26 14:11:15 +02:00
Clayton Coleman
07bd50be0d
Internal weight field for affinity must be int32
2016-10-25 19:28:40 -04:00
Mike Danese
df713b478c
fix tests by declaring testdata
2016-10-21 17:32:32 -07:00
Mike Danese
3b6a067afc
autogenerated
2016-10-21 17:32:32 -07:00
Kubernetes Submit Queue
6e2f5f8f6d
Merge pull request #28742 from jessfraz/test-go1.7rc1
...
Automatic merge from submit-queue
Update to go 1.7
<!--
Checklist for submitting a Pull Request
Please remove this comment block before submitting.
1. Please read our [contributor guidelines](https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md ).
2. See our [developer guide](https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md ).
3. If you want this PR to automatically close an issue when it is merged,
add `fixes #<issue number>` or `fixes #<issue number>, fixes #<issue number>`
to close multiple issues (see: https://github.com/blog/1506-closing-issues-via-pull-requests ).
4. Follow the instructions for [labeling and writing a release note for this PR](https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes ) in the block below.
-->
Closes #33070
Closes #32999
```release-note
Updated Go to 1.7
```
[]()
This is to test go version 1.7
2016-10-18 05:59:04 -07:00
Kubernetes Submit Queue
669efd72a4
Merge pull request #34041 from pigmej/fix_typos_plugin
...
Automatic merge from submit-queue
Fix typos and englishify plugin/pkg
**What this PR does / why we need it**: Just typos
**Which issue this PR fixes**: `None`
**Special notes for your reviewer**: Just typos
**Release note**: `NONE`
2016-10-15 02:13:06 -07:00
Jess Frazelle
d51962e1bb
vet fixes
...
Signed-off-by: Jess Frazelle <me@jessfraz.com>
2016-10-13 21:12:15 -07:00
jayunit100
182e89b84e
Part 1 of pr #33763 : cleanup CheckServiceAffinity in preparation for
...
predicate injection support, Update metadata struct
2016-10-13 10:38:45 -04:00
David Oppenheimer
cd4e08e7ec
Revert "Add kubelet awareness to taint tolerant match caculator."
2016-10-07 12:10:55 -07:00
Kubernetes Submit Queue
21188cadeb
Merge pull request #26501 from resouer/scheduler
...
Automatic merge from submit-queue
Add kubelet awareness to taint tolerant match caculator.
Add kubelet awareness to taint tolerant match caculator.
Ref: #25320
This is required by `TaintEffectNoScheduleNoAdmit` & `TaintEffectNoScheduleNoAdmitNoExecute `, so that node will know if it should expect the taint&tolerant
2016-10-07 12:05:35 -07:00
Kubernetes Submit Queue
0f40c1a6d0
Merge pull request #34149 from timothysc/prio-hotloop
...
Automatic merge from submit-queue
Turn down hootloop logs in priorities.
Excessive spam is output once we near cluster capacity, sometimes a panic is triggered but that data is clipped in the logs see #33935 for more details.
2016-10-06 06:55:00 -07:00
Timothy St. Clair
f2b8b08651
Turn down hootloop logs in priorities. Hit once cluster is near capacity
2016-10-05 16:58:23 -05:00
deads2k
c30b2efc46
update replicaset lister
2016-10-05 15:20:27 -04:00
Jedrzej Nowak
d2161c21d7
Fix typos and englishify plugin/pkg
2016-10-04 17:51:14 +02:00
Wojciech Tyczynski
f8632e2203
Migrate EqualPriority to MapReduce-like framework.
2016-10-04 12:19:08 +02:00
Wojciech Tyczynski
daac9a1869
Remove unnecessary podLister from SelectorSpreading
2016-09-30 15:15:14 +02:00
Wojciech Tyczynski
6598c181f7
Support metadata producer with underlying data.
2016-09-28 09:11:18 +02:00
Wojciech Tyczynski
4ccb27202c
Migrate priority functions with non-trivial reduce function.
2016-09-27 11:27:38 +02:00
Jordan Liggitt
1812fe70a3
Log test error
2016-09-26 11:21:38 -04:00
deads2k
500959b70c
fix RC lister
2016-09-23 08:12:03 -04:00
Kubernetes Submit Queue
b2aed32578
Merge pull request #33269 from deads2k/client-15-svc-lister
...
Automatic merge from submit-queue
simplify svc lister
trying to track down what killed the e2e tests.
2016-09-23 03:10:57 -07:00
Daniel Smith
db3e549bd1
more usages of go2idl
2016-09-22 13:42:46 -07:00
Harry Zhang
c735921b6f
Add no admit on node side
...
Update generated code
Refactored predicates & restore helper
2016-09-22 10:12:44 -04:00
deads2k
483af28944
fix up service lister
2016-09-22 09:12:37 -04:00
Antoine Pelisse
938872582e
Revert "simplify RC and SVC listers"
2016-09-21 15:49:38 -07:00
deads2k
16fbb47189
fix up service lister
2016-09-20 08:24:33 -04:00
deads2k
185a7adf84
fix RC lister
2016-09-20 08:24:32 -04:00
Wojciech Tyczynski
ea943d825e
Migrate a bunch of priority functions to map-reduce framework
2016-09-13 13:20:29 +02:00
Wojciech Tyczynski
c8c938c3e0
AvoidPriority using ControllerRef
2016-09-12 08:45:02 +02:00
Wojciech Tyczynski
33c710adf0
MapReduce-like scheduler priority functions
2016-08-31 15:16:10 +02:00
Marcin Wielgus
de2fea95ca
ClusterAutoscaler-friendly scheduler priority function that promotes well-used nodes.
2016-08-18 08:34:10 +02:00
Jess Frazelle
7e9d82129e
fix go vet errors
...
Signed-off-by: Jess Frazelle <jessfraz@google.com>
fix composites
Signed-off-by: Jess Frazelle <me@jessfraz.com>
2016-08-10 16:45:41 -07:00
Wojciech Tyczynski
c092e15edf
SelectorSpreading using controllerRef.
2016-08-02 16:24:48 +02:00
Wojciech Tyczynski
d3b9d583a2
Optimize PodAffinity priority function.
2016-07-28 16:57:28 +02:00
Wojciech Tyczynski
898a6444e3
Return pointer for Affinity in api helper
2016-07-28 16:57:28 +02:00
Wojciech Tyczynski
fad876b6f9
PodAffinity code refinements
2016-07-22 08:49:28 +02:00
Wojciech Tyczynski
cab7db3a64
Use []*api.Node instead of NodeLister in priority functions.
2016-07-21 08:21:07 +02: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
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
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
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
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
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
gmarek
fd600ab65c
Add hooks for cluster health detection
2016-07-12 15:10:58 +02:00
Wojciech Tyczynski
d14fe0f269
Change storeToNodeConditionLister to return []*api.Node instead of api.NodeList for performance
2016-07-11 21:02:33 +02: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
e8e8e2d086
Remove unneeded factories
2016-07-11 15:41:26 +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
31538db145
Avoid growing slices
2016-07-07 15:54:39 +02:00
Wojciech Tyczynski
6c77c01f24
Avoid copying nodes in priority functions
2016-07-07 14:38:09 +02:00
David McMahon
ef0c9f0c5b
Remove "All rights reserved" from all the headers.
2016-06-29 17:47:36 -07:00
xiangpengzhao
f1d98ba961
Make priority score info more clear
2016-06-12 02:31:41 -04:00
Kevin
52fb89ff73
implement taints and tolerations
2016-05-18 15:06:23 +00:00
Kevin
82ba4f077e
implement inter pod topological affinity and anti-affinity
2016-05-06 06:46:23 +00:00
Clayton Coleman
fdb110c859
Fix the rest of the code
2016-04-29 17:12:10 -04:00
Wojciech Tyczynski
a4b3f47347
Add RC and container pors to scheduler benchmark
2016-04-20 15:10:57 +02:00
Wojciech Tyczynski
ebcc8f737c
Parallelize computing selector spreading priority in scheduler.
2016-03-22 14:09:58 +01:00
Hongchao Deng
ae88f08af0
Scheduler: replace system modeler with scheduler cache
2016-03-14 09:03:41 -07:00
Marek Grabowski
eb2f5153b3
Revert "Scheduler: replace system modeler with scheduler cache and do O(1) lookup for resource req"
2016-03-02 15:38:56 +01:00
k8s-merge-robot
e7d0f06c4a
Merge pull request #21736 from resouer/check-register
...
Auto commit by PR queue bot
2016-03-01 02:21:56 -08:00
Hongchao Deng
f29a1d6c5c
scheduler: Scheduler: replace system modeler with scheduler cache
...
We're using the scheduler cache to do O(1) lookup for resource request
2016-02-26 09:22:29 -08:00
Harry Zhang
636e982ecd
Implement checking in predicates
2016-02-25 21:25:36 +08:00
harry
b90550de25
Implement check for priority
2016-02-23 11:59:32 +08:00
Vishnu kannan
2623fdde17
Improve the naming of fields in ContainerImage struct used in NodeStatus.
...
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-02-16 15:45:22 -08:00
k8s-merge-robot
8a815b919d
Merge pull request #21074 from mqliang/scheduler-ReplicaSet
...
Auto commit by PR queue bot
2016-02-16 01:48:33 -08:00
mqliang
0aab44a00d
add ReplicaSet support in scheduler
2016-02-16 14:34:46 +08:00
derekwaynecarr
a03361bd84
Make default format right for nil values
2016-02-15 13:55:33 -05:00
Hongchao Deng
1cf4540b5d
priorities: move getNonzeroRequests() into util/ package
2016-02-10 08:35:00 -08:00
Hongchao Deng
9236e4a0b4
scheduler: change fit predicates and priority func as needed for optimization
2016-02-09 09:38:28 -08:00
k8s-merge-robot
8e56494ec5
Merge pull request #20140 from resouer/scheduler
...
Auto commit by PR queue bot
2016-02-05 20:08:31 -08:00
Kevin
c8c82c1d8f
implement Node affinity and NodeSelector
2016-02-04 01:53:14 +00:00
harry
233a601130
Caculate priorities based on image locality
...
Add test for image score
Update generated docs
2016-02-03 21:01:26 +08:00