-
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
Old revision does not scale down when TargetBurstCapacity set to 0 #13487
Comments
/triage accepted |
Another interesting thing is that the new pod is still running too... in general, we'd expect a pod not getting requests to scale down much sooner than that (under two minutes). |
Bisected it to this PR - #12033 Looks like the autoscaler tries to probe that the activator is in the path but the request is not being directed to the 'probing logic'. So it's being forwarded to the user container and being counted as regular request. So effectively in low-TBC (to be confirmed if this affects TBC>0) this prevents scaling to 0. Thankfully it's a simple fix but we'll probably want to cherry pick this back to earlier releases. /assign @dprotaso |
Thanks @dprotaso ! Would appreciate if you can help patch this to 1.7 release. |
Yeah - I'll be pulling this fix back to older releases (probably back to 1.5) |
@yuzisun Point releases should be out next Tuesday when the automation kicks off. I'll post a nightly link when that becomes available if you care to verify the fix beforehand. |
Thanks, will check tomorrow and verify the fix. |
What version of Knative?
1.7.x
Expected Behavior
After updating the knative service, the previous revision should be scaled down once the new revision is in ready state no matter
targetBurstCapacity
is set or not.Actual Behavior
Both old and new revisions are running when
targetBurstCapacity
is set to 0 to remove the activator from the path. It works as expected when we do not settargetBurstCapacity
explicitly on the annotations.Note: This wasn't an issue in 1.0 version
Steps to Reproduce the Problem
autoscaling.knative.dev/targetBurstCapacity: "0"
The text was updated successfully, but these errors were encountered: