Marcin Wielgus
de2fea95ca
ClusterAutoscaler-friendly scheduler priority function that promotes well-used nodes.
2016-08-18 08:34:10 +02:00
m1093782566
40f5d64411
update comment info when scheduler bind fails
...
Change-Id: Idce89003fe408b713431d07a3300e3acd1af87a9
2016-08-16 20:23:26 +08:00
m1093782566
458f5bd7f2
improve pod log output format
...
Change-Id: I415dd97f14b507ebb8340eb853f935e1e90b7a53
2016-08-16 17:59:58 +08:00
Kubernetes Submit Queue
69419a145a
Merge pull request #29802 from jfrazelle/fix-go-vet-errors
...
Automatic merge from submit-queue
fix go vet errors
<!--
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.
-->
```release-note
```
This fixes the `go vet` errors brought about by go 1.7 testing re (#28742 ).
The are all pretty trivial and mostly related to literal composites.
also related to #16086
2016-08-15 13:10:08 -07:00
m1093782566
8f607394ee
remove duplicated nodeinfo.pods assignment
...
Change-Id: I8b15624e1cf146ab1693938bbd6ab1c6be030724
2016-08-14 16:43:45 +08:00
Daniel Smith
f1fd638962
fix register.go files up + add test import
2016-08-11 17:06:54 -07: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
mksalawa
2749ec7555
Create PredicateFailureReason, modify scheduler predicate interface.
2016-08-09 14:01:46 +02:00
Kubernetes Submit Queue
faffbe4e18
Merge pull request #29622 from rootfs/rbd-ro
...
Automatic merge from submit-queue
allow a read-only rbd image mounted by multiple pods
allow pod to run read-only rbd volume
fix #27725
2016-08-07 17:03:39 -07:00
Kubernetes Submit Queue
e19ea41a5e
Merge pull request #30136 from m1093782566/master
...
Automatic merge from submit-queue
remove useless value copy
Copy something to values in parameters won't change them in go. So, remove it to avoid making people confused.
2016-08-07 16:06:23 -07:00
Huamin Chen
730db45eab
allow a read-only rbd image mounted by multiple pods
...
Signed-off-by: Huamin Chen <hchen@redhat.com >
2016-08-07 10:32:26 -04:00
Kubernetes Submit Queue
711b63e78b
Merge pull request #28104 from ping035627/ping035627-patch-4
...
Automatic merge from submit-queue
SchedulerExtender: add failedPredicateMap in Filter() returns
Fix #25797 . modify extender.Filter for adding extenders information to “failedPredicateMap” in findNodesThatFit.
When all the filtered nodes that passed "predicateFuncs" don’t pass the extenders filter, the failedPredicateMap hasn’t the extenders information, should add it, I think. So when the length of the “filteredNodes.Items” is 0, we can know the integral information. (The length of the “filteredNodes.Items” is 0, may be because the extenders filter failed.)
2016-08-06 20:50:33 -07:00
m1093782566
91f6b7bc2b
remove ineffective copy
2016-08-05 20:43:40 +08:00
Kubernetes Submit Queue
2ff8280123
Merge pull request #29915 from wojtek-t/prepare_for_controller_ref_in_scheduler
...
Automatic merge from submit-queue
Prepare for using "ControllerRef" in scheduler
This is part of a PR that I already have to avoid a bunch of rebases in the future (controller ref probably won't happen in 1.4 release).
@davidopp
2016-08-04 02:23:31 -07:00
PingWang
4106eb70b0
modify extends.Filter
...
Signed-off-by: PingWang <wang.ping5@zte.com.cn >
Add docs
Signed-off-by: PingWang <wang.ping5@zte.com.cn >
add docs for ExtenderFilterResult.FailedNodes in types.go
Signed-off-by: PingWang <wang.ping5@zte.com.cn >
Modify the extender.Filter test.
Signed-off-by: PingWang <wang.ping5@zte.com.cn >
Update extender_test.go
Signed-off-by: PingWang <wang.ping5@zte.com.cn >
modify the comments
Signed-off-by: PingWang <wang.ping5@zte.com.cn >
gofmt -s scheduler_interface.go
Signed-off-by: PingWang <wang.ping5@zte.com.cn >
update the comments
Signed-off-by: PingWang <wang.ping5@zte.com.cn >
2016-08-04 14:03:32 +08:00
Wojciech Tyczynski
c092e15edf
SelectorSpreading using controllerRef.
2016-08-02 16:24:48 +02:00
Wojciech Tyczynski
022719b323
Enable PodAffinity by default in scheduler
2016-08-02 15:06:45 +02:00
Wojciech Tyczynski
4bc410e47a
Speedup pod affintiy predicate function
2016-08-02 08:01:04 +02:00
k8s-merge-robot
821ff657f9
Merge pull request #27199 from derekwaynecarr/disk_eviction
...
Automatic merge from submit-queue
Initial support for pod eviction based on disk
This PR adds the following:
1. node reports disk pressure condition based on configured thresholds
1. scheduler does not place pods on nodes reporting disk pressure
1. kubelet will not admit any pod when it reports disk pressure
1. kubelet ranks pods for eviction when low on disk
1. kubelet evicts greediest pod
Follow-on PRs will need to handle:
1. integrate with new image gc PR (https://github.com/kubernetes/kubernetes/pull/27199 )
1. container gc policy should always run (will not be launched from eviction, tbd who does that)
1. this means kill pod is fine for all eviction code paths since container gc will remove dead container
1. min reclaim support will just poll summary provider (derek will do follow-on)
1. need to know if imagefs is same device as rootfs from summary (derek follow-on)
/cc @vishh @kubernetes/sig-node
2016-07-28 20:18:54 -07:00
derekwaynecarr
0de1e62b30
modify fsStats to fsStatsType to avoid confusion with cadvisor types
2016-07-28 16:01:38 -04:00
derekwaynecarr
9604b47c13
Scheduler does not place pods on nodes that have disk pressure
2016-07-28 16:01:38 -04: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
a63cccfafc
Cache pods with pod (anti)affinity constraints
2016-07-27 17:31:53 +02:00
Wojciech Tyczynski
fad876b6f9
PodAffinity code refinements
2016-07-22 08:49:28 +02:00
Wojciech Tyczynski
fc6d38baa2
Avoid locking when computing predicates.
2016-07-21 08:21:07 +02:00
Wojciech Tyczynski
cab7db3a64
Use []*api.Node instead of NodeLister in priority functions.
2016-07-21 08:21:07 +02:00
mksalawa
fea8d0aebf
Fix generic scheduler test
2016-07-20 14:47:44 +02:00
Davanum Srinivas
ee8507a5ae
Use Infof/Warningf when appropriate
...
When we use a format string, we should use Infof/Warningf instead
of Info/Warning
2016-07-19 12:10:53 -04:00
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