-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
nginx-ingress-controller sleeps for 10 seconds before exiting #8095
Comments
/priority backlog |
@strongjz: GitHub didn't allow me to assign the following users: theunrealgeek. Note that only kubernetes members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign |
Thanks for bringing this up. I looked into this a little more than this was the commit 4 years ago that introduced the 10 second sleep but I can't find any good reasoning for it either.
I agree that it should be configurable, so a PR is welcome if you like to make it.
Technically the message isn't wrong, do you have suggestions on what it should be? |
@theunrealgeek To mean the current log message implies that it is waiting for some event from the control plane. Something like "Handled quit, delaying container exit for %s" would be more clear. |
@rittneje The feature to be able to configure the delay period was merged and should be available in a future release. Thanks |
/close |
@strongjz: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
For some reason, during shutdown nginx-ingress-controller sleeps for 10 seconds after shutting down nginx.
ingress-nginx/cmd/nginx/main.go
Lines 171 to 181 in e625c25
This seems entirely pointless, and only serves to make pod shutdown take longer.
The only benefit I can think of is it gives the pre-stop hook time to do any other actions after
/wait-shutdown
, since once pid 1 exits all other processes are immediately killed. But if that's the intent, (1) it should be configurable, and (2) the log message should be amended.The text was updated successfully, but these errors were encountered: