Redis cluster 7.x.x is not supported by KEDA 2.9.1 #4052
Closed
Description
Report
While trying to use KEDA with redis cluster v7.x.x for scale based on list length:
Spec:
Advanced:
Scale Target Ref:
Name: serving
Triggers:
Metadata:
Addresses: ***
List Length: 3
List Name: ***
Type: redis-cluster
Status:
Conditions:
Message: Failed to ensure HPA is correctly created for ScaledObject
Reason: ScaledObjectCheckFailed
Status: False
Type: Ready
Message: ScaledObject check failed
Reason: UnkownState
Status: Unknown
Type: Active
Message: No fallbacks are active on this scaled object
Reason: NoFallbackFound
Status: False
Type: Fallback
External Metric Names:
s0-redis-input-queue
Health:
s0-redis-input-queue:
Number Of Failures: 0
Status: Happy
Hpa Name: keda-hpa-serving
Last Active Time: 2022-12-23T15:25:25Z
Original Replica Count: 1
Scale Target GVKR:
Group: apps
Kind: Deployment
Resource: deployments
Version: v1
Scale Target Kind: apps/v1.Deployment
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning ScaledObjectCheckFailed 10s (x12 over 14s) keda-operator Failed to ensure HPA is correctly created for ScaledObject
Warning KEDAScalerFailed 8s (x13 over 14s) keda-operator connection to redis cluster failed: got 4 elements in cluster info address, expected 2 or 3
With redis cluster v6.x.x works fine.
Expected Behavior
Work same as for redis v6.x.x
Actual Behavior
ScaledObject failing during initialization:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning ScaledObjectCheckFailed 10s (x12 over 14s) keda-operator Failed to ensure HPA is correctly created for ScaledObject
Warning KEDAScalerFailed 8s (x13 over 14s) keda-operator connection to redis cluster failed: got 4 elements in cluster info address, expected 2 or 3
Steps to Reproduce the Problem
- deploy redis cluster v7.0.0
- deploy ScaledObject with Type of redis-cluster
Logs from KEDA operator
2022-12-30T11:34:46Z ERROR scalehandler Error getting scalers {"object": {"apiVersion": "keda.sh/v1alpha1", "kind": "ScaledObject", "namespace": "default", "name": "serving"}, "error": "connection to redis cluster failed: got 4 elements in cluster info address, expected 2 or 3"}
github.com/kedacore/keda/v2/pkg/scaling.(*scaleHandler).checkScalers
/workspace/pkg/scaling/scale_handler.go:347
github.com/kedacore/keda/v2/pkg/scaling.(*scaleHandler).startScaleLoop
/workspace/pkg/scaling/scale_handler.go:162
2022-12-30T11:34:51Z ERROR scalehandler error resolving auth params {"scalerIndex": 0, "object": {"apiVersion": "keda.sh/v1alpha1", "kind": "ScaledObject", "namespace": "default", "name": "serving"}, "error": "connection to redis cluster failed: got 4 elements in cluster info address, expected 2 or 3
github.com/kedacore/keda/v2/pkg/scaling.(*scaleHandler).buildScalers
/workspace/pkg/scaling/scale_handler.go:543
github.com/kedacore/keda/v2/pkg/scaling.(*scaleHandler).performGetScalersCache
/workspace/pkg/scaling/scale_handler.go:269
github.com/kedacore/keda/v2/pkg/scaling.(*scaleHandler).GetScalersCache
/workspace/pkg/scaling/scale_handler.go:190
github.com/kedacore/keda/v2/pkg/scaling.(*scaleHandler).checkScalers
/workspace/pkg/scaling/scale_handler.go:345
github.com/kedacore/keda/v2/pkg/scaling.(*scaleHandler).startScaleLoop
/workspace/pkg/scaling/scale_handler.go:162
2022-12-30T11:34:51Z ERROR scalehandler Error getting scalers {"object": {"apiVersion": "keda.sh/v1alpha1", "kind": "ScaledObject", "namespace": "default", "name": "serving"}, "error": "connection to redis cluster failed: got 4 elements in cluster info address, expected 2 or 3"}
github.com/kedacore/keda/v2/pkg/scaling.(*scaleHandler).checkScalers
/workspace/pkg/scaling/scale_handler.go:347
github.com/kedacore/keda/v2/pkg/scaling.(*scaleHandler).startScaleLoop
/workspace/pkg/scaling/scale_handler.go:162
KEDA Version
2.9.1
Kubernetes Version
1.24
Platform
Amazon Web Services
Scaler Details
redis-cluster
Anything else?
No response
Metadata
Assignees
Labels
Type
Projects
Status
Ready To Ship