You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 24, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: README.rst
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,8 @@ Goals:
21
21
* respect Availability Zones, i.e. make sure that all AZs provide enough capacity
22
22
* be deterministic and predictable, i.e. the ``DesiredCapacity`` is only calculated based on the current cluster state
23
23
* scale down slowly to mitigate service disruptions, i.e. at most one node at a time
24
+
* support "elastic" workloads like daily up/down scaling
25
+
* support AWS Spot Fleet (not yet implemented)
24
26
* require a minimum amount of configuration (preferably none)
25
27
* keep it simple
26
28
@@ -32,6 +34,13 @@ This hack was created as a proof of concept and born out of frustration with the
32
34
* it requires unnecessary configuration
33
35
* the code is quite complex
34
36
37
+
Disclaimer
38
+
==========
39
+
40
+
** Use at your own risk! **
41
+
This autoscaler was only tested with Kubernetes version 1.5.2.
42
+
There is no guarantee that it works in previous Kubernetes versions.
43
+
35
44
36
45
How it works
37
46
============
@@ -48,7 +57,7 @@ The ``autoscale`` function performs the following task:
48
57
* iterate through every ASG/AZ combination
49
58
* use the calculated resource usage (sum of resource requests) and add the resource requests of any unassigned pods (pods not scheduled on any node yet)
50
59
* apply the configured buffer values (10% extra for CPU and memory by default)
51
-
* find the capacity of the weakest node
60
+
* find the `allocatable capacity`_ of the weakest node
52
61
* calculate the number of required nodes by adding up the capacity of the weakest node until the sum is greater than or equal to requested+buffer for both CPU and memory
53
62
* sum up the number of required nodes from all AZ for the ASG
54
63
@@ -99,3 +108,4 @@ The following command line options are supported:
0 commit comments