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
Improve documentation what hot restart means #2366
Comments
Could someone tell me if the mentioned behaviour (first list) is the correct behaviour? |
@h0jeZvgoxFepBQ2C Your (first) description of the hot restart behavior is correct for a deployment of puma in cluster mode. The puma cluster start-up process is essentially something like this:
If you request the cluster to perform a hot restart (such as by sending SIGUSR2 directly, or by using
As you may have realized in your previous configuration, A new, experimental, puma configuration option called
During a phased restart:
Documentation for the |
If anyone wants to adapt ^^^ into new Docs, go ahead and open the PR! |
Thanks @wjordan for this PR! #2099 Looks pretty cool! Right now we can choose between hard downtimes with hot reloading, or really slow deployments on big machines (32 CPUs take f.e. 15 minutes deployment for 30 puma processes).. With this PR this should improve drastically! Great that you worked / are working on this! ❤️ |
I can do that. I've spent enough time tracing the code related to hot restarts and phased restarts that I could do it. The existing restart documentation is a little tough to follow. I might just rewrite it from scratch if you think that'd be okay. |
If you do try this feature out, we'd love the feedback. Right now with the way I think that |
More than OK bro! |
I tried to switch from rolling restarts to hot restarts, since sometimes we use servers with many CPUs and the rolling restart takes much longer time...
But after setting it up, I realized that my puma workers get stopped and then AFTERWARDS the application gets preloaded, with following order:
but I really thought that preloading means following order:
It would be great if you could a) confirm this behaviour (maybe I only did a mistake?) and b) improve the documentation for this kind of restart.
Thank you!
The text was updated successfully, but these errors were encountered: