Skip to content
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

HTTP Keda with prometheus implemented api is scaling even though there is no load sent to it. #5176

Closed
KasyapG opened this issue Nov 10, 2023 · 1 comment

Comments

@KasyapG
Copy link

KasyapG commented Nov 10, 2023

Discussed in https://github.com/kedacore/keda/discussions/5172

Originally posted by KasyapG November 9, 2023
We have implemented HTTP Keda with promethues.

Implemented the scaledobject on a test api, the scaling is working perfectly whenever there is load coming to the api.

However I have noticed that whenever there is load on other api as well this test api strts spinning up pods to scale.

Steps Implemented:

apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
name: prometheus-scaledobject-test-sample-kg
namespace: 60436a51-7059-4f45-b1be-a0069c86b864
labels:
deploymentName: test-sample-kg
spec:
scaleTargetRef:
name: test-sample-kg
pollingInterval: 15
cooldownPeriod: 30
minReplicaCount: 1
maxReplicaCount: 10
triggers:
- type: prometheus
metadata:
serverAddress: http://prometheus-server.ingress-nginx.svc.cluster.local:9090
metricName: access_frequency
threshold: '1'
query: sum(rate(nginx_ingress_controller_requests[1m]))

  • I tried making api specific but on this query was working.

Issue : WHenever there is load coming to other api, this test api also starts spinning the pods as the ingre_controller requests has crossed the threshold.

Could you please suggest if ther any othe query I can use to make it api specific.

Also correct if my understanding is incorrect.

@tomkerkhove
Copy link
Member

@tomkerkhove tomkerkhove closed this as not planned Won't fix, can't repro, duplicate, stale Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants