From 9b7e4a7ddafc87b03701a835adfa6c4cbf43c507 Mon Sep 17 00:00:00 2001 From: Jorge Turrado Date: Sat, 23 Jul 2022 22:12:08 +0200 Subject: [PATCH] feat: Introduce activationThreshold/minMetricValue for Redis Scalers Signed-off-by: Jorge Turrado --- content/docs/2.8/scalers/redis-cluster-lists.md | 2 ++ content/docs/2.8/scalers/redis-lists.md | 2 ++ content/docs/2.8/scalers/redis-sentinel-lists.md | 2 ++ 3 files changed, 6 insertions(+) diff --git a/content/docs/2.8/scalers/redis-cluster-lists.md b/content/docs/2.8/scalers/redis-cluster-lists.md index 4f515ff09..1ba750ce2 100644 --- a/content/docs/2.8/scalers/redis-cluster-lists.md +++ b/content/docs/2.8/scalers/redis-cluster-lists.md @@ -20,6 +20,7 @@ triggers: passwordFromEnv: REDIS_PASSWORD listName: mylist # Required listLength: "5" # Required + activationListLength: "5" # optional enableTLS: "false" # optional # Alternatively, you can use existing environment variables to read configuration from: # See details in "Parameter list" section @@ -36,6 +37,7 @@ triggers: - Both the hostname, username and password fields need to be set to the names of the environment variables in the target deployment that contain the host name, username and password respectively. - `listName` - Name of the Redis List that you want to monitor. - `listLength` - Average target value to trigger scaling actions. +- `activationListLength` - Target value for activating the scaler. Learn more about activation [here](./../concepts/scaling-deployments.md#activating-and-scaling-thresholds).(Default: `0`, Optional) - `enableTLS` - Allow a connection to a redis queue using tls. (Values: `true`, `false`, Default: `false`, Optional) Some parameters could be provided using environmental variables, instead of setting them directly in metadata. Here is a list of parameters you can use to retrieve values from environment variables: diff --git a/content/docs/2.8/scalers/redis-lists.md b/content/docs/2.8/scalers/redis-lists.md index 8642e8902..25fee8ec3 100644 --- a/content/docs/2.8/scalers/redis-lists.md +++ b/content/docs/2.8/scalers/redis-lists.md @@ -20,6 +20,7 @@ triggers: passwordFromEnv: REDIS_PASSWORD listName: mylist # Required listLength: "5" # Required + activationListLength: "5" # optional enableTLS: "false" # optional databaseIndex: "0" # optional # Alternatively, you can use existing environment variables to read configuration from: @@ -37,6 +38,7 @@ triggers: - Both the hostname, username and password fields need to be set to the names of the environment variables in the target deployment that contain the host name, username and password respectively. - `listName` - Name of the Redis List that you want to monitor. - `listLength` - Average target value to trigger scaling actions. +- `activationListLength` - Target value for activating the scaler. Learn more about activation [here](./../concepts/scaling-deployments.md#activating-and-scaling-thresholds).(Default: `0`, Optional) - `enableTLS` - Allow a connection to a redis queue using tls. (Values: `true`, `false`, Default: `false`, Optional) - `databaseIndex` - Index of Redis database to use. If not specified, the default value is 0. diff --git a/content/docs/2.8/scalers/redis-sentinel-lists.md b/content/docs/2.8/scalers/redis-sentinel-lists.md index cf1b29712..9462d668f 100644 --- a/content/docs/2.8/scalers/redis-sentinel-lists.md +++ b/content/docs/2.8/scalers/redis-sentinel-lists.md @@ -23,6 +23,7 @@ triggers: sentinelMasterFromEnv: REDIS_SENTINEL_MASTER # optional listName: mylist # Required listLength: "5" # Required + activationListLength: "5" # optional enableTLS: "false" # optional # Alternatively, you can use existing environment variables to read configuration from: # See details in "Parameter list" section @@ -42,6 +43,7 @@ triggers: - `sentinelMaster` - The name of the master in Sentinel to get the Redis server address for. - `listName` - Name of the Redis List that you want to monitor. - `listLength` - Average target value to trigger scaling actions. +- `activationListLength` - Target value for activating the scaler. Learn more about activation [here](./../concepts/scaling-deployments.md#activating-and-scaling-thresholds).(Default: `0`, Optional) - `enableTLS` - Allow a connection to a redis queue using tls. (Values: `true`, `false`, Default: `false`, Optional) Some parameters could be provided using environmental variables, instead of setting them directly in metadata. Here is a list of parameters you can use to retrieve values from environment variables: