-
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
queue proxy should distinguish shutting down from not ready yet #8151
Labels
area/API
API objects and controllers
area/networking
kind/feature
Well-understood/specified features, ready for coding.
Milestone
Comments
mattmoor
added
the
kind/feature
Well-understood/specified features, ready for coding.
label
Jun 1, 2020
/kind good-first-issue |
/assign @rafaeltello |
rafaeltello
added a commit
to rafaeltello/serving
that referenced
this issue
Jun 3, 2020
Fixes: knative#8151 * Makes health_state return a different error code (currently 409) when it's shutting down. * Makes shutting down fail fast (like preferPodForScaleDown). * Unit tests to validate behavior.
rafaeltello
added a commit
to rafaeltello/serving
that referenced
this issue
Jun 3, 2020
Fixes: knative#8151 * Makes health_state return a different error code (currently 409) when it's shutting down. * Makes shutting down fail fast (like preferPodForScaleDown). * Unit tests to validate behavior.
rafaeltello
added a commit
to rafaeltello/serving
that referenced
this issue
Jun 4, 2020
Fixes: knative#8151 * Makes health_state return a different error code (currently 409) when it's shutting down. * Makes shutting down fail fast (like preferPodForScaleDown). * Unit tests to validate behavior.
rafaeltello
added a commit
to rafaeltello/serving
that referenced
this issue
Jun 4, 2020
Fixes: knative#8151 * Makes health_state return a different error code (currently 409) when it's shutting down. * Makes shutting down fail fast (like preferPodForScaleDown). * Unit tests to validate behavior.
knative-prow-robot
pushed a commit
that referenced
this issue
Jun 4, 2020
* Separate shutting down v. not ready in queue proxy. Fixes: #8151 * Makes health_state return a different error code (currently 409) when it's shutting down. * Makes shutting down fail fast (like preferPodForScaleDown). * Unit tests to validate behavior. * Switching StatusConflict to StatusGone, per PR feedback * Dropping nil check for IsHTTPProbeReady and IsHTTPProbeShuttingDown. * Fix comment typo in health_state
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/API
API objects and controllers
area/networking
kind/feature
Well-understood/specified features, ready for coding.
/area API
/area networking
Describe the feature
This came up digging into #8147
It seems like the intent of the high-frequency of probing was to speed shutdowns:
serving/pkg/reconciler/revision/resources/queue.go
Lines 151 to 155 in e0b4b30
However, we don't distinguish between "not yet ready" and shutting down in the health-state management logic:
serving/pkg/queue/health/health_state.go
Lines 107 to 110 in e0b4b30
I also don't see any matched logic here:
serving/cmd/queue/main.go
Lines 273 to 287 in 67f920c
So if I'm reading things correctly, we will probe until K8s times out even after we've received the shutdown signal.
This seems like an easy way to save 10s during shutdown to potentially offset a change like: #8148
The text was updated successfully, but these errors were encountered: