ravisantoshgudimetla
ba3eac6c57
Descheduler should not run when cluster size is 1
2018-02-08 21:15:02 -05:00
Avesh Agarwal
44752e5e83
Update code and hack dir for kube 1.9 rebase.
2018-01-09 12:41:01 -05:00
Avesh Agarwal
7123f30783
Update auto-generated code.
2018-01-09 11:04:26 -05:00
ravisantoshgudimetla
bf29a6073f
Owner ref switch
...
Signed-off-by: ravisantoshgudimetla <ravisantoshgudimetla@gmail.com >
2018-01-05 00:22:12 +05:30
ravisantoshgudimetla
6f873d5e69
Make GPU requested pods not evictable by descheduler
2017-12-05 03:49:47 -05:00
Avesh Agarwal
445ae92caa
Merge pull request #59 from aveshagarwal/master-fix-errors
...
Update logging and a few fixes.
2017-12-01 13:19:36 -05:00
Avesh Agarwal
8f3c0cf4b8
Merge pull request #58 from aveshagarwal/master-fix-node-lister
...
Fix node lister by allowing its reflector to have enough time so that listing works.
2017-12-01 13:02:17 -05:00
Avesh Agarwal
2a280f9a20
Update logging and a few fixes.
2017-12-01 13:02:05 -05:00
Avesh Agarwal
e0a9dfcb76
Fix field selector to only list non-terminated pods.
2017-12-01 12:50:39 -05:00
Avesh Agarwal
5db49f2ce1
Fix node lister by allowing its reflector to have enough time so that listing works.
...
Currently time duration is chosen randomly.
2017-11-30 12:28:33 -05:00
ravisantoshgudimetla
a63f815116
Small refactor to accomodate descheduling only evictable pods
...
Signed-off-by: ravisantoshgudimetla <ravisantoshgudimetla@gmail.com >
2017-11-29 15:34:28 -05:00
ravisantoshgudimetla
6dbc8a1fcc
Changes to fix low node utilization strategy
2017-11-27 18:40:53 -05:00
RaviSantosh Gudimetla
d2bd16a12d
Merge pull request #41 from containscafeine/error-out-on-unsupported-resource-names
...
Validate resource names to pass to thresholds
2017-11-27 12:35:30 -05:00
Shubham Minglani
a490726245
Validate resource names to pass to thresholds
...
This commit adds checks to only allow valid resource names for the
thresholds field, which are "cpu", "memory", and "pods" right now.
For the other valid or invalid resource names, descheduler will now
throw an error.
Also, tests have been added to test the added behavior.
fix #40
2017-11-27 19:54:53 +05:30
Shubham Minglani
d54b73a6ba
Add log messages for target, underutilized nodes
...
This commit adds log messages to be printed whenever a node is
identified as a target node from which the pods can be evicted or
as an underutilized node to which the evicted pods can be
scheduled, if at all.
This should help with debugging as well as with letting the user
know the identified nodes.
2017-11-25 19:49:05 +05:30
Avesh Agarwal
1473e1d024
Remove unused test code.
2017-11-10 16:18:07 -05:00
Avesh Agarwal
7d079813e5
Fix to not process empty node list and also fix error reporting in other places.
...
Also fix unit test panic and if nodeLister is nil and refactor some code.
2017-11-10 16:09:33 -05:00
Avesh Agarwal
acfd4f8680
Update auto-generated files.
2017-11-10 12:02:43 -05:00
Avesh Agarwal
c29c9db41e
Implement node selectors to retrieve node list based on provided query.
2017-11-10 12:02:43 -05:00
Avesh Agarwal
5d3f987dde
Merge pull request #20 from ravisantoshgudimetla/pod-anti-affinity-strategy
...
Pod antiaffinity strategy
2017-11-08 10:19:16 -05:00
ravisantoshgudimetla
97732cf62d
Pod antiaffinity strategy.
...
Signed-off-by: ravisantoshgudimetla <ravisantoshgudimetla@gmail.com >
2017-11-02 18:09:44 -04:00
Avesh Agarwal
d395332793
Update glide.yaml for rebasing kuberenetes to 1.7.6. Also fix
...
unit tests.
2017-10-16 14:42:17 -04:00
Avesh Agarwal
40a19396d0
Fix glog messages.
2017-10-11 11:49:59 -04:00
ravisantoshgudimetla
9e536da99e
Commit for gofmt
...
Signed-off-by: ravisantoshgudimetla <ravisantoshgudimetla@gmail.com >
2017-10-05 16:03:28 -04:00
ravisantoshgudimetla
32c8898ec7
Conversion to glog
...
Signed-off-by: ravisantoshgudimetla <ravisantoshgudimetla@gmail.com >
Conversion to glog
2017-10-04 12:17:44 -04:00
Avesh Agarwal
1977b92b20
Update eviction strategy of pods in low node utilization strategy to
...
consider cpu and memory too in addition to pods.
2017-10-02 17:39:51 -04:00
Avesh Agarwal
01545886b4
Update low node utilization stratgey to evict busrtable pods before
...
guaranteed pods.
2017-10-02 10:58:07 -04:00
Avesh Agarwal
179646a332
Fix computation of number of evicted pods.
2017-09-27 18:32:19 -04:00
Avesh Agarwal
2d6e990f1c
Update auto generated code.
2017-09-26 16:15:44 -04:00
Avesh Agarwal
b7a7fd621e
Add dry run option.
2017-09-26 16:15:44 -04:00
Avesh Agarwal
fc41b658e9
Update unit test code.
2017-09-15 14:22:34 -04:00
Avesh Agarwal
d634701250
Descheduler related modifications.
2017-09-15 14:13:27 -04:00
Avesh Agarwal
8a6b9a814b
Merge pull request #4 from ravisantoshgudimetla/pods_node_unit_tests
...
Changes and file reorganization
2017-09-14 14:55:37 -04:00
ravisantoshgudimetla
c1140e7b02
Changes and file reorganization
2017-09-13 16:18:39 -04:00
Avesh Agarwal
c776e6bb8d
Merge pull request #5 from ravisantoshgudimetla/eviction-unittests
...
Evictions test case and small modification
2017-09-13 14:31:08 -04:00
ravisantoshgudimetla
5e7841b674
Evictions test case
2017-09-06 17:12:47 -04:00
Avesh Agarwal
39d3fa7776
Merge pull request #3 from ravisantoshgudimetla/strategies_lownodeutil_unittests
...
Low node utilization test cases.
2017-09-01 14:55:45 -04:00
ravisantoshgudimetla
77a5caa557
Tests for lownode utilization
2017-09-01 14:52:17 -04:00
Avesh Agarwal
729e1a10a7
Merge pull request #1 from ravisantoshgudimetla/strategies_unittests
...
unit tests for duplicate pods elimination
2017-08-30 10:30:51 -04:00
ravisantoshgudimetla
e2b60d5f92
Unit tests for duplicatePod deletion strategy.
2017-08-30 10:17:06 -04:00
Avesh Agarwal
f799518af5
Add check for critical pods in lownodeutilization to avoid eviction.
2017-08-29 17:33:40 -04:00
Avesh Agarwal
9886ededd1
Add check for critical pods to avoid eviction.
2017-08-29 17:28:18 -04:00
Avesh Agarwal
0f30358750
Update implementation of RemoveDuplicates strategy.
2017-08-28 12:32:17 -04:00
Avesh Agarwal
60c8693883
Add owner file and a bit cleanup.
2017-08-18 12:57:05 -04:00
Avesh Agarwal
7f8ea3a9fb
Fix fetching node list.
2017-08-15 17:53:06 -04:00
Avesh Agarwal
a3714c0be4
Update implementation of low node utilization strategy.
2017-08-15 14:19:25 -04:00
Avesh Agarwal
4b62cc9a86
Fix computation of nodes with low utilization.
2017-08-15 12:31:56 -04:00
Avesh Agarwal
4bf61cb0db
Update implementation of low node utilization strategy.
2017-08-15 11:55:14 -04:00
Avesh Agarwal
f70a2ab6d8
Update implementation of node usage calculation.
2017-08-15 10:56:06 -04:00
Avesh Agarwal
b37db364df
Fix eviction of pods in low node utilization strategy.
2017-08-15 10:38:44 -04:00