Commit Graph

67 Commits

Author SHA1 Message Date
Łukasz Osipiuk b12aaa6be3 Pass ClusterSnaphost explicitly to PredicateChecker
Change-Id: I2ead134fd94faa8773c18fe070957b7f74e1224b
2020-01-20 21:08:51 +01:00
Łukasz Osipiuk 81f9d122f4 Extract PredicateChecker interface
Change-Id: Ic51eb5e5526c51551d6da5c0264e5bb0d217ed03
2020-01-20 21:08:51 +01:00
Łukasz Osipiuk da5f0f6f9e Cleanup simulator.PredicateError
Change-Id: I58d21a0aa0798f0468d68beb11931865cdde6f94
2020-01-20 21:08:50 +01:00
Łukasz Osipiuk 003664db10 Remove use of PredicateMetadata 2020-01-20 21:08:50 +01:00
Łukasz Osipiuk 3470a9f1c0 Migrate scheduler creation to scheduler.New() 2019-11-22 14:07:29 +01:00
cedric lamoriniere f0fbf7a87a [cluster-autoscaler] Allow “custom” DaemonSet pods
* Create `utils/pod` package: pod kind detection functions.
* Update DaemonSet Pod detection logic: introduce the annotation
  `cluster-autoscaler.kubernetes.io/daemonset-pod` to declare a Pod as a
  DaemonSet Pod.
* Update `simulator` package to use the new `utils/pod` package function.
* Cleanup `getRequiredPodsForNode()` function.

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>
2019-11-06 11:23:23 +01:00
Vivek Bagade dc64d0aab2 Adding ScaleDownNodeProcessor 2019-08-12 20:19:55 +02:00
Jiaxin Shan 83ae66cebc Consider GPU utilization in scaling down 2019-04-04 01:12:51 -07:00
Pengfei Ni 2546d0d97c Move leaderelection options to new packages 2019-02-21 13:45:46 +08:00
Pengfei Ni 128729bae9 Move schedulercache to package nodeinfo 2019-02-21 12:41:08 +08:00
CodeLingo Bot c0603afdeb Fix error format strings according to best practices from CodeReviewComments
Fix error format strings according to best practices from CodeReviewComments

Fix error format strings according to best practices from CodeReviewComments

Reverted incorrect change to with error format string

Signed-off-by: CodeLingo Bot <hello@codelingo.io>
Signed-off-by: CodeLingoBot <hello@codelingo.io>
Signed-off-by: CodeLingo Bot <hello@codelingo.io>
Signed-off-by: CodeLingo Bot <bot@codelingo.io>

Resolve conflict

Signed-off-by: CodeLingo Bot <hello@codelingo.io>
Signed-off-by: CodeLingoBot <hello@codelingo.io>
Signed-off-by: CodeLingo Bot <hello@codelingo.io>
Signed-off-by: CodeLingo Bot <bot@codelingo.io>

Fix error strings in testscases to remedy failing tests

Signed-off-by: CodeLingo Bot <bot@codelingo.io>

Fix more error strings to remedy failing tests

Signed-off-by: CodeLingo Bot <bot@codelingo.io>
2019-01-11 09:10:31 +13:00
Maciej Pytel 9060014992 Use listers in scale-down 2018-12-31 14:55:38 +01:00
Łukasz Osipiuk 016bf7fc2c Use k8s.io/klog instead github.com/golang/glog 2018-11-26 17:30:31 +01:00
Alex Price 4ae7acbacc add flags to ignore daemonsets and mirror pods when calculating resource utilization of a node
Adds the flag --ignore-daemonsets-utilization and --ignore-mirror-pods-utilization
(defaults to false) and when enabled, factors DaemonSet and mirror pods out when
calculating the resource utilization of a node.
2018-11-23 15:24:25 +11:00
Jakub Tużnik 71111da20c Add a scale down status processor, refactor so that there's more scale down info available to it 2018-09-12 14:52:20 +02:00
Aleksandra Malinowska f5690aab96 Make CheckPredicates return predicateError 2018-08-28 14:11:35 +02:00
Pengfei Ni be3dd85503 Update scheduler cache package 2018-06-11 13:54:12 +08:00
Karol Gołąb 34d12a2628 Add missing classifier 2018-05-08 16:25:06 +02:00
Aleksandra Malinowska 7e1353a865 Ignore TPU resource in simulations 2018-04-11 12:26:22 +02:00
Aleksandra Malinowska feb4ad9e14 Add utility for limiting logging 2018-03-22 12:57:22 +01:00
Marcin Wielgus 04bec08e84 Compilation fix 2018-03-20 20:11:36 +01:00
Aleksandra Malinowska f87c1da2cb Use allocatable instead of capacity to calculate node utilization 2017-12-08 12:54:30 +01:00
Krzysztof Jastrzebski d9c00e5ce1 Adds priority preemption support to cluster autoscaler. 2017-10-23 09:54:56 +02:00
Marcin Wielgus fd6e093a9c Merge pull request #363 from mwielgus/godep-sync-0.7-rc
Godep sync 0.7 rc
2017-09-23 00:00:07 +01:00
Marcin Wielgus e205577cf8 Merge pull request #364 from MaciekPytel/cleanup_findunneeded_logs
Move spammy logs to V(5)
2017-09-22 22:53:58 +01:00
Marcin Wielgus 8f5a0ab7d2 Compilation fix after godeps update 2017-09-22 22:19:50 +01:00
Maciej Pytel 9f7cdb8b56 Remove overriding allocatable in simulations 2017-09-22 22:52:12 +02:00
Maciej Pytel 38f424fb2f Move spammy logs to V(5) 2017-09-22 19:33:09 +02:00
Maciej Pytel 281afa7147 precompute predicateMetadata in scale-down 2017-08-29 16:29:45 +02:00
Maciej Pytel fa53e52ed9 Skip node in scale-down if it was recently found unremovable 2017-08-25 17:21:08 +02:00
Maciej Pytel fb6ef75d12 Don't create verbose errors in predicates if we ignore them
Turns out all this string formatting is pretty damn expensive.
2017-08-24 15:18:38 +02:00
Rush Tehrani dc65cd1058 Print pod namespace/name instead of func signature 2017-08-21 14:41:35 -07:00
Marcin Wielgus 9116e4c08c Compilation fix for CA after godeps update 2017-08-11 17:56:47 +02:00
Marcin Wielgus fc43808149 Godeps bump for CA 2017-07-03 22:05:11 +02:00
Marcin Wielgus 69c77791a2 Fix error types 2017-06-12 21:26:50 +02:00
Maciej Pytel 3f8ca51768 Use typed errors in scale down 2017-05-18 14:09:15 +02:00
Matthew Walter f64a73429a Correct typos for `deamon` -> `daemon` as in `DaemonSet` 2017-05-12 13:27:40 -04:00
Yusuke Kuoka 3ec83d901e cluster-autoscaler: Fix an incorrect message when CA failed to find a place for a to-be-removed pod
The message has been always "<evaluation type>: node <node name> is not suitable for removal nil".
It should be "<evaluation type>: node <node name> is not suitable for removal: failed to find place for <pod key>"
2017-05-10 10:40:36 +09:00
Marcin Wielgus 5b4441083a Cluster-autoscaler: include PodDisruptionBudget in drain - part 1/2 2017-03-06 17:15:04 +01:00
Marcin Wielgus 72a47dc2b2 Cluster-autoscaler: update code for 1.6 k8s sync 2017-03-02 14:34:49 +01:00
Marcin Wielgus ce45c33d29 Cluster-autoscaler: update CA code for godep refresh 2017-01-20 14:46:34 +01:00
Marcin Wielgus 7b63b6c1f1 Cluster-autoscaler: update code to compile with K8S 1.5 2016-12-13 17:22:57 +01:00
Marcin Wielgus 1cea91895d Cluster-autoscaler: delete empty nodes in bulk 2016-11-07 15:52:35 +01:00
Marcin Wielgus a56bf82935 Cluster-autoscaler: more explicit logging on scale down. 2016-11-05 09:34:06 +01:00
Marcin Wielgus df078c9101 Cluster-autoscaler: own drain 2016-10-27 16:58:59 +02:00
Jan Chaloupka e028312170 Remove "All rights reserved" from all the headers 2016-09-08 13:02:39 +02:00
Marcin Wielgus 68a690e105 Cluster-autoscaler: skip nodeinfos with nil nodes 2016-09-02 21:05:30 +02:00
Piotr Szczesniak 7832013a3f [ca] Factored out common functions in drain logic 2016-08-11 10:09:24 +02:00
Marcin Wielgus 40b6e43dbe Cluster-autoscaler: shuffle nodes in scale down 2016-07-20 16:57:01 +02:00
Marcin Wielgus b29f771e0d Cluster-autoscaler: use node usage tracker for better utilization resets 2016-07-15 12:09:52 +02:00