-
Notifications
You must be signed in to change notification settings - Fork 3.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
Safely server reload #4577
Comments
Hi, you can set max_wait_time and reload_async to reload or stop worker softly. |
With max_wait_time server waits requests when reloading, but it does not accept new requests, so they need to wait too. |
It would be great, if server, when restarting, could wait while current requests will be finished, and at the same time accept new requests. |
I think it is hard to achieve it. |
I see another way to implement zero downtime deploy using nginx, like this https://syshero.org/2016-06-09-zero-downtime-deployments-using-nginx/ Steps:
|
It may seem logical at the application level. But for the database layer, you must shut down the system. The new application may fail before the database migrations are complete. |
Server reload function does not work as needed, I can not update workers from new sources in Symfony app using k911/swoole-bundle. Sometimes it works in controllers, sometimes not. And never works in other services.
I use full server restart, but it can to interrupt current worker processes.
Is it possible to send every worker stop signal, if worker handles request wait it, else restart it fully with new source code and start handling new requests while other workers finishing current requests?
The text was updated successfully, but these errors were encountered: