Wait for backend
duda
nginx-forum at forum.nginx.org
Wed Jun 27 09:57:40 UTC 2018
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 backend and do not respond with 502 ?
So it should hold connection for 5 second and if it is unreachable in that
interval responds 502 to client.
Thanks
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,280293,280293#msg-280293
More information about the nginx
mailing list