Wait for backend

2018-06-27 Thread duda
Hi I have one backend: upstream backend_1 { server 127.0.0.1:35510; } and server: server { ... location / { proxy_pass http://backend_1; } } Sometimes I have to restart my backend and it is unavailable for 3-5sec (port unreachable) How I can tell nginx to "wait" for

Re: Wait for backend

2018-07-02 Thread duda
That is very sad. IMHO waiting for backend is a very simple feature, it can be implemented on nodejs or in Golang in couple lines. I am surprised that nginx does not support that. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,280293,280377#msg-280377

Re: Wait for backend

2018-06-28 Thread duda
*That is Posted at Nginx Forum: https://forum.nginx.org/read.php?2,280293,280320#msg-280320 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Wait for backend

2018-06-28 Thread duda
What is not work: nginx immediately returns "502 Bad Gateway" to the client Posted at Nginx Forum: https://forum.nginx.org/read.php?2,280293,280319#msg-280319 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx