-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Datadog scaler doesn't scale correctly to 0 #2759
Comments
Hi @JorTurFer |
@JorTurFer I just test the version with main tag and my issue is still here. Can you reopen the issue ? |
This might be the problem: keda/pkg/scalers/datadog_scaler.go Line 215 in 87d589f
it should be |
|
Ok thank you @zroubalik I will do a test next monday and share the result |
Finally I had time to test it and it works as expected 😃 |
Report
We are configuring datadog scaler on queue workers to scale 0 to N.
Scale up to N work perfectly, scale down to 1 is also working but when we are expecting to scale to 0 we are experiencing strange behaviours.
If the query return 0 the scaler will keep the minimum to 1, if we "break" the metric the deployment go to 0.
By break I mean no data is sent to datadog, so we have no plot on the graph.
Expected Behavior
I expect if the datadog query return a value under the
queryValue
the scaler scale down to the min specify, in my case 0Actual Behavior
The scaler is not scaling down to 0 when the minReplicas is set to 0 and if the query return a value under
queryValue
The scaler cale to 0 only if there is no plot in the response from datadog
Steps to Reproduce the Problem
apt-get update && apt-get install nano -y
default_type text/plain;
in/etc/nginx/conf.d/default.conf
metrics
in/usr/share/nginx/html/
service nginx reload
Deployment manifest (you can change the namespace):
Content of the
metrics
file:In the
metrics
file you can change the value without reload as this one is a plain text file delivered by nginxWe use this scaling object:
Logs from KEDA operator
KEDA Version
2.6.1
Kubernetes Version
1.21
Platform
Google Cloud
Scaler Details
datadog
Anything else?
No response
The text was updated successfully, but these errors were encountered: