Skip to content

Commit

Permalink
Add MultipleScalersCalculation explanation (kedacore#505)
Browse files Browse the repository at this point in the history
* add MultipleScalersOption explanation

Signed-off-by: Tsuyoshi Ushio <[email protected]>

* Update content/docs/2.5/concepts/scaling-jobs.md

Co-authored-by: Tom Kerkhove <[email protected]>
Signed-off-by: Tsuyoshi Ushio <[email protected]>

* Update content/docs/2.5/concepts/scaling-jobs.md

Co-authored-by: Tom Kerkhove <[email protected]>
Signed-off-by: Tsuyoshi Ushio <[email protected]>

* Update content/docs/2.5/concepts/scaling-jobs.md

Co-authored-by: Tom Kerkhove <[email protected]>
Signed-off-by: Tsuyoshi Ushio <[email protected]>

* Update content/docs/2.5/concepts/scaling-jobs.md

Co-authored-by: Tom Kerkhove <[email protected]>
Signed-off-by: Tsuyoshi Ushio <[email protected]>

* Update content/docs/2.5/concepts/scaling-jobs.md

Co-authored-by: Tom Kerkhove <[email protected]>
Signed-off-by: Tsuyoshi Ushio <[email protected]>

* Update content/docs/2.5/concepts/scaling-jobs.md

Co-authored-by: Tom Kerkhove <[email protected]>
Signed-off-by: Tsuyoshi Ushio <[email protected]>

* Update content/docs/2.5/concepts/scaling-jobs.md

Co-authored-by: Tom Kerkhove <[email protected]>
Signed-off-by: Tsuyoshi Ushio <[email protected]>

* Change the option name

Signed-off-by: Tsuyoshi Ushio <[email protected]>

* Update content/docs/2.5/concepts/scaling-jobs.md

Co-authored-by: Zbynek Roubalik <[email protected]>
Signed-off-by: Tsuyoshi Ushio <[email protected]>

* Update content/docs/2.5/concepts/scaling-jobs.md

Co-authored-by: Zbynek Roubalik <[email protected]>
Signed-off-by: Tsuyoshi Ushio <[email protected]>

* Update content/docs/2.5/concepts/scaling-jobs.md

Co-authored-by: Zbynek Roubalik <[email protected]>
Signed-off-by: Tsuyoshi Ushio <[email protected]>

Co-authored-by: Tom Kerkhove <[email protected]>
Co-authored-by: Zbynek Roubalik <[email protected]>
  • Loading branch information
3 people authored Sep 13, 2021
1 parent da62385 commit 680edc3
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion content/docs/2.5/concepts/scaling-jobs.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ spec:
- "Ready"
- "PodScheduled"
- "AnyOtherCustomPodCondition"
multipleScalersCalculation : "max" # Optional. Default: max. Specifies how to calculate the target metrics when multiple scalers are defined.
triggers:
# {list of triggers to create jobs}
```
Expand Down Expand Up @@ -193,6 +194,19 @@ if (maxScale + runningJobCount) > maxReplicaCount {
```
For more details, you can refer to [this PR](https://github.com/kedacore/keda/pull/1227).

---

```yaml
scalingStrategy:
multipleScalersCalculation : "max" # Optional. Default: max. Specifies how to calculate the target metrics (`queueLength` and `maxValue`) when multiple scalers are defined.
```
Select a behavior if you have multiple triggers. Possible values are `max`, `min`, `avg`, or `sum`. The default value is `max`.

* **max:** - Use metrics from the scaler that has the max number of `queueLength`. (default)
* **min:** - Use metrics from the scaler that has the min number of `queueLength`.
* **avg:** - Sum up all the active scalers metrics and divide by the number of active scalers.
* **sum:** - Sum up all the active scalers metrics.

# Sample

```yaml
Expand Down Expand Up @@ -237,4 +251,3 @@ spec:
host: RabbitMqHost
queueLength : '5'
```

0 comments on commit 680edc3

Please sign in to comment.