diff --git a/charts/n8n/README.md b/charts/n8n/README.md index 2e2b199..7b73301 100644 --- a/charts/n8n/README.md +++ b/charts/n8n/README.md @@ -227,10 +227,12 @@ keda: triggers: - type: redis metadata: - listName: "bull:default:wait" + listName: "bull:jobs:wait" listLength: "5" ``` +The `listName` is the Bull waiting-list key, `:jobs:wait`, where the prefix defaults to `bull`. If you set `redis.prefix`, update `listName` to match (e.g. `myprefix:jobs:wait`), otherwise the scaler polls a key n8n never writes to and queue-depth autoscaling won't fire. + See [keda-autoscaling.yaml](./examples/keda-autoscaling.yaml) for a complete example. ## Upgrading diff --git a/charts/n8n/examples/keda-autoscaling.yaml b/charts/n8n/examples/keda-autoscaling.yaml index 61286d6..835c8ef 100644 --- a/charts/n8n/examples/keda-autoscaling.yaml +++ b/charts/n8n/examples/keda-autoscaling.yaml @@ -31,8 +31,9 @@ keda: metadata: # Leave empty to auto-derive from redis.host:redis.port address: "" - # Bull queue key for waiting jobs - listName: "bull:default:wait" + # Bull queue key for waiting jobs: ":jobs:wait" (prefix defaults + # to "bull"). If you set redis.prefix, update this to ":jobs:wait". + listName: "bull:jobs:wait" # Scale up when queue length exceeds 5 per replica listLength: "5" authenticationRef: diff --git a/charts/n8n/values.yaml b/charts/n8n/values.yaml index 21dd2d1..3cd74a6 100644 --- a/charts/n8n/values.yaml +++ b/charts/n8n/values.yaml @@ -500,8 +500,9 @@ keda: metadata: # Redis address (auto-derived from redis.host:redis.port if empty) address: "" - # Bull queue waiting list key - listName: "bull:default:wait" + # Bull queue waiting list key: ":jobs:wait" (prefix defaults to + # "bull"). If you set redis.prefix, update this to match, e.g. "myprefix:jobs:wait". + listName: "bull:jobs:wait" # Target queue length per worker replica listLength: "5" authenticationRef: @@ -638,7 +639,7 @@ redis: # Advanced Redis settings database: 0 # <-- Redis database number timeout: 10000 # <-- Redis timeout threshold (ms) - prefix: "" # <-- Queue key prefix + prefix: "" # <-- Queue key prefix (if set, update keda.worker.triggers listName to ":jobs:wait") tls: false # <-- Enable TLS (required for AWS ElastiCache and other managed Redis services) dualstack: false # <-- Enable dual-stack (IPv4/IPv6) # Redis Cluster support (comma-separated list of host:port)