From 680edc3a93184feca840b45a619435d234eb9426 Mon Sep 17 00:00:00 2001 From: Tsuyoshi Ushio Date: Mon, 13 Sep 2021 10:15:13 -0700 Subject: [PATCH] Add MultipleScalersCalculation explanation (#505) * add MultipleScalersOption explanation Signed-off-by: Tsuyoshi Ushio * Update content/docs/2.5/concepts/scaling-jobs.md Co-authored-by: Tom Kerkhove Signed-off-by: Tsuyoshi Ushio * Update content/docs/2.5/concepts/scaling-jobs.md Co-authored-by: Tom Kerkhove Signed-off-by: Tsuyoshi Ushio * Update content/docs/2.5/concepts/scaling-jobs.md Co-authored-by: Tom Kerkhove Signed-off-by: Tsuyoshi Ushio * Update content/docs/2.5/concepts/scaling-jobs.md Co-authored-by: Tom Kerkhove Signed-off-by: Tsuyoshi Ushio * Update content/docs/2.5/concepts/scaling-jobs.md Co-authored-by: Tom Kerkhove Signed-off-by: Tsuyoshi Ushio * Update content/docs/2.5/concepts/scaling-jobs.md Co-authored-by: Tom Kerkhove Signed-off-by: Tsuyoshi Ushio * Update content/docs/2.5/concepts/scaling-jobs.md Co-authored-by: Tom Kerkhove Signed-off-by: Tsuyoshi Ushio * Change the option name Signed-off-by: Tsuyoshi Ushio * Update content/docs/2.5/concepts/scaling-jobs.md Co-authored-by: Zbynek Roubalik <726523+zroubalik@users.noreply.github.com> Signed-off-by: Tsuyoshi Ushio * Update content/docs/2.5/concepts/scaling-jobs.md Co-authored-by: Zbynek Roubalik <726523+zroubalik@users.noreply.github.com> Signed-off-by: Tsuyoshi Ushio * Update content/docs/2.5/concepts/scaling-jobs.md Co-authored-by: Zbynek Roubalik <726523+zroubalik@users.noreply.github.com> Signed-off-by: Tsuyoshi Ushio Co-authored-by: Tom Kerkhove Co-authored-by: Zbynek Roubalik <726523+zroubalik@users.noreply.github.com> --- content/docs/2.5/concepts/scaling-jobs.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/content/docs/2.5/concepts/scaling-jobs.md b/content/docs/2.5/concepts/scaling-jobs.md index b50531c0220..92c35238739 100644 --- a/content/docs/2.5/concepts/scaling-jobs.md +++ b/content/docs/2.5/concepts/scaling-jobs.md @@ -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} ``` @@ -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 @@ -237,4 +251,3 @@ spec: host: RabbitMqHost queueLength : '5' ``` -