News for hackers. Stuff that matters.
Re:Fixng Nginx 502 Gateway Timeout with proxy_pass During De... by viraptor on Sunday February 09, 2020 @03:26AM (#22281033)
Is this "fixing"? The proper fix would be to use a seamless deployment by either spawning a new vm with new version, then redirecting the traffic once it's ready. Or by doing the same with a new version of the app server on the same host and replacing the socket when ready.

Otherwise, the requests will potentially wait a long time to be handled while the app starts up.

Re:Fixng Nginx 502 Gateway Timeout with proxy_pass During De... by winrid on Sunday February 09, 2020 @04:12AM (#22281189)
In this case it's mostly for experiments and stuff. And spawning a new vm etc is slow for that kind of thing. This takes less than a second (I just merge to master and it deploys).
Re:Fixng Nginx 502 Gateway Timeout with proxy_pass During De... by winrid on Sunday February 09, 2020 @04:17AM (#22281206)
also! I worked at a place where this was an issue for years. We eventually moved to Kubernetes, but it would have been nice to know this fix until then for the qa/dev environments where stuff was constantly deploying.