-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move autoscaler docs to package documentation.
- Loading branch information
1 parent
9ecea8d
commit 13dbf7c
Showing
2 changed files
with
18 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package Autoscaler | ||
|
||
// Autoscaler calculates the number of pods necessary for the desired | ||
// level of concurrency per pod (stableConcurrencyPerPod). It operates in | ||
// two modes, stable mode and panic mode. | ||
|
||
// Stable mode calculates the average concurrency observed over the last | ||
// 60 seconds and adjusts the observed pod count to achieve the target | ||
// value. Current observed pod count is the number of unique pod names | ||
// which show up in the last 60 seconds. | ||
|
||
// Panic mode calculates the average concurrency observed over the last 6 | ||
// seconds and adjusts the observed pod count to achieve the stable | ||
// target value. Panic mode is engaged when the observed 6 second average | ||
// concurrency reaches 2x the target stable concurrency. Panic mode will | ||
// last at least 60 seconds--longer if the 2x threshold is repeatedly | ||
// breached. During panic mode the number of pods is never decreased in | ||
// order to prevent flapping. |