Comments (9)
Hello,
You have to choose between requestRate
and concurrency
. They are mutually exclusive and probably that's the reason because the resource is pending
scalingMetric: # requestRate and concurrency are mutually exclusive
requestRate:
granularity: 1s
targetValue: 100
window: 1m
concurrency:
targetValue: 100
from http-add-on.
Hi @JorTurFer
Thanks for that, but it didn't resolve the issue unfortunately.
Still getting the message:
{ "lastTransitionTime": "2024-06-07T08:22:23+00:00", "message": "Health check failed after 5m0.032530515s: timeout waiting for: [HTTPScaledObject/daprpoc/http-scaledobject-orderapplication status: 'InProgress']", "reason": "HealthCheckFailed", "status": "False", "type": "Ready" },
kind: HTTPScaledObject
apiVersion: http.keda.sh/v1alpha1
metadata:
name: http-scaledobject-orderapplication
namespace: daprpoc
spec:
hosts:
- dev-app-ordersample.example.be
pathPrefixes:
- /
scaleTargetRef:
name: orderapplication
kind: Deployment
apiVersion: apps/v1
service: orderapplication-svc
port: 80
replicas:
min: 0 # We want to scale to zero eventually
max: 10
scaledownPeriod: 300
scalingMetric: # requestRate and concurrency are mutually exclusive
# requestRate:
# granularity: 1s
# targetValue: 100
# window: 1m
concurrency:
targetValue: 100
from http-add-on.
Anything related? #611
from http-add-on.
Sorry for the slow response, I've been involved on a huge working peak :(
Do you see any error in in the HTTP Add-on logs? (there are 2 operators, we need to http add-on one in this case)
from http-add-on.
No worries, already happy you want to help :-)
Which logs would you like to see?
I don't see any errors in any of these.
However; if I trigger a scale up by browsing to the application (so replica 0 -> 1):
2024-06-24T13:51:51Z INFO scaleexecutor Successfully updated ScaleTarget {"scaledobject.Name": "http-scaledobject-orderapplication", "scaledObject.Namespace": "daprpoc", "scaleTarget.Name": "orderapplication", "Original Replicas Count": 0, "New Replicas Count": 1}
2024-06-24T13:51:59Z INFO Reconciling ScaledObject {"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "ScaledObject": {"name":"http-scaledobject-orderapplication","namespace":"daprpoc"}, "namespace": "daprpoc", "name": "http-scaledobject-orderapplication", "reconcileID": "3c49b97f-a92b-40d3-8ae2-0db81843b006"}
2024-06-24T13:52:00Z INFO Reconciling ScaledObject {"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "ScaledObject": {"name":"keda-add-ons-http-interceptor","namespace":"kube-system"}, "namespace": "kube-system", "name": "keda-add-ons-http-interceptor", "reconcileID": "a1f5f811-29e0-4e13-af4c-fb02748b8c5b"}
2024-06-24T13:52:29Z INFO Reconciling ScaledObject {"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "ScaledObject": {"name":"http-scaledobject-orderapplication","namespace":"daprpoc"}, "namespace": "daprpoc", "name": "http-scaledobject-orderapplication", "reconcileID": "7ae6e900-a5fe-4284-a0e8-22908be5ff63"}
2024-06-24T13:52:30Z INFO Reconciling ScaledObject {"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "ScaledObject": {"name":"azure-service-bus-scaledobject","namespace":"daprpoc"}, "namespace": "daprpoc", "name": "azure-service-bus-scaledobject", "reconcileID": "5ff2ebfd-8635-4b5f-944a-40cb72ec78a6"}
2024-06-24T13:52:30Z INFO Reconciling ScaledObject {"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "ScaledObject": {"name":"keda-add-ons-http-interceptor","namespace":"kube-system"}, "namespace": "kube-system", "name": "keda-add-ons-http-interceptor", "reconcileID": "f82dcec1-aa7b-422d-a864-89ccce837edb"}
from http-add-on.
I'd like to see the error of the 1st pod: http-controller-manager
. That's the add-on operator and the responsible of updating the status for HTTPScaledObjects, if there is any error with that resource, that's the pod for checking it :)
from http-add-on.
kubectl -n kube-system logs keda-add-ons-http-controller-manager-64dfdfcd7-fnfv4
Defaulted container "kube-rbac-proxy" out of: kube-rbac-proxy, keda-add-ons-http-operator
I0616 01:29:38.331628 1 main.go:186] Valid token audiences:
I0616 01:29:38.331963 1 main.go:316] Generating self signed cert as no cert is provided
I0616 01:29:40.032044 1 main.go:366] Starting TCP socket on 0.0.0.0:8443
I0616 01:29:40.032807 1 main.go:373] Listening securely on 0.0.0.0:8443
from http-add-on.
Mb, I need the other container (keda-add-ons-http-operator
)
from http-add-on.
Sorry, I don't have that pod. FYI: I run on AKS.
from http-add-on.
Related Issues (20)
- Walkthrough Error: the path "examples/v0.8.0/httpscaledobject.yaml" does not exist HOT 2
- HTTPScaledObject Vanishes Immediately after Creation HOT 1
- TLS requests are sent over HTTP instead of HTTPS HOT 9
- ScaledObject is not created HOT 8
- OTEL Env vars don't respect spec HOT 3
- Proxy letting through too many requests before additional replicas ready HOT 3
- namespacedNameError on Proxy when attempting to submit a cURL call to it HOT 1
- Multiple deployments per httpso HOT 7
- HTTPScaledObject doesn't scale-up HOT 1
- HTTPScaledObject restarts existing pods
- Deprecate `spec.scaleTargetRef.deployment`
- KEDA's security standards (signing images, snyk, etc...)
- Interceptor Proxy - Configure header, proxy and buffer size
- RPS doesn't decrease when requests stop suddenly HOT 1
- Memory leak on Interceptor HOT 15
- Multiple deployments/stses auto scalating to one by http add on trigger
- Azure Front Door - Origin Header - Case Sensitivity
- HTTP Add-on not working with other scalers or when scaled object is created separately
- GRPC does not work?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from http-add-on.