-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Need help: KSVCs are not scaling down to zero #15191
Comments
I have some logs from autoscaler pod, if it helps. {"severity":"DEBUG","timestamp":"2024-05-08T12:26:15.105875396Z","logger":"autoscaler","caller":"metrics/stats_scraper.go:252","message":"|OldPods| = 1, |YoungPods| = 0","commit":"f1bd929","knative.dev/key":"dx-system/autoscale-go-00003"} {"severity":"DEBUG","timestamp":"2024-05-08T12:26:29.574439514Z","logger":"autoscaler","caller":"scaling/autoscaler.go:190","message":"For metric concurrency observed values: stable = 0.000; panic = 0.000; target = 7.000 Desired StablePodCount = 1, PanicPodCount = 1, ReadyEndpointCount = 1, MaxScaleUp = 1000, MaxScaleDown = 0","commit":"f1bd929","knative.dev/key":"dx-system/autoscale-go-00003"} {"severity":"DEBUG","timestamp":"2024-05-08T12:26:30.105266887Z","logger":"autoscaler","caller":"metrics/stats_scraper.go:252","message":"|OldPods| = 1, |YoungPods| = 0","commit":"f1bd929","knative.dev/key":"dx-system/autoscale-go-00003"} |
One observation is that we are using istio and also a custom stack which contains prometheus and jaeger tracing. |
Hi @kiranmenon
If your metrics are exposed on the same port as your normal app requests probably it is the case. See a similar issue here for probes: #14581. |
hi @skonto
|
As of now I increased the prometheus scraping interval > |
I deployed sample autoscale app on 1.28.2 k8s clusters I created on OCI. I have the annotation
autoscaling.knative.dev/min-scale: "0"
set in that ksvc and also using the default values in config-autoscaler cm. I see that the autoscaler-go sample deployment is not scaling down to zero. Is there any other configs we need to set there to enable scale down to 0 ? Also how we can debug these kind of issues ?In the config-autoscaler cm I tried adding below values explicitly but that didnot helped.
What version of Knative?
1.12.3
Expected Behavior
the autoscaler-go sample deployment should scale down to zero after some time of inactivity.
Actual Behavior
The sample app is not scaling down to zero after waiting for couple of minutes of zero traffic
The text was updated successfully, but these errors were encountered: