You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rayjanoka
changed the title
JetStream scaler metrics are only accurate from the stream's consumer leader
JetStream scaler should query the stream consumer leader when clustered
Nov 15, 2022
Report
I found that when running a cluster of nats pods, only the stream consumer's leader pod reports the accurate number of messages in the queue.
Expected Behavior
The scaler needs to identify the nats jetstream pod that is the selected stream's consumer leader to get the accurate metric.
Actual Behavior
The scaler is designed to connect to the general k8s svc endpoint so it will connect to a random nats server.
Steps to Reproduce the Problem
nats consumer info test-stream durable
Logs from KEDA operator
No response
KEDA Version
2.8.1
Kubernetes Version
1.23
Platform
Any
Scaler Details
JetStream
Anything else?
No response
The text was updated successfully, but these errors were encountered: