-
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
Activator should wait for active requests to drain before terminating #4654
Labels
Milestone
Comments
mattmoor
added
the
kind/feature
Well-understood/specified features, ready for coding.
label
Jul 9, 2019
From the
So, the way I read it, once we call shutdown
Thus, I think this issue is unnecessary? |
Agree with @vagababov. Have we seen this not working as expected? |
You may be right, but two concerns come to mind:
What I describe above is likely handled by the |
vagababov
added a commit
to vagababov/serving
that referenced
this issue
Jul 9, 2019
This will permit us to let activator linger longer, before K8s forcefully kills it to process the requests that might take more time (e.g. streaming). /assign @mattmoor For knative#4654
/assign @vagababov looks like this will be closed by #4671 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
In what area(s)?
/area autoscale
/area networking
/kind good-first-issue
Describe the feature
The activator receives the stop signal here, we should hook in a new activation handler here that manages a
sync.WaitGroup{}
that increments/decrements on new requests, and then does awg.Wait()
after thestopCh
signal is received.The text was updated successfully, but these errors were encountered: