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
Avesh Agarwal
4e354de98a
Implement evictions for low node utilization strategy.
2017-08-15 00:51:14 -04:00
Avesh Agarwal
6c5bbabb41
Implement categorization of pods in nodes usage map.
2017-08-14 19:43:01 -04:00
Avesh Agarwal
f69bdb905f
Implement sorting of nodes by usage.
2017-08-11 17:44:18 -04:00
Avesh Agarwal
256962f599
Update node usage map implementation.
2017-08-11 16:48:54 -04:00
Avesh Agarwal
1a049d5651
Update low node utilization implementation for target thresholds.
2017-08-11 16:17:43 -04:00
Avesh Agarwal
7f50e54719
Print some information.
2017-08-11 15:35:28 -04:00
Avesh Agarwal
41b696bae6
Fix thresholds logic.
2017-08-11 14:57:50 -04:00
Avesh Agarwal
9fc75c7ce6
Update low node utlization strategy implementation.
2017-08-11 14:53:12 -04:00
Avesh Agarwal
b41cce684a
Refactor low utilization strategy implementation a bit.
2017-08-11 13:50:26 -04:00