<div dir="ltr">Hello,<div><br></div><div>I'm facing issue where if one of the upstream servers is down, nginx going to emerg mode with the subjected error.</div><div>My requirement is, nginx should go down when all of the upstream servers are down. <br></div><div>But when even one of the upstream servers is up, nginx should still serve the requests by proxying requests to that one live upstream server. Any help would be appreciated.<br></div><div><br></div><div>Below is my conf</div><div><br></div><div><i><b>events {<br>    worker_connections 4096;<br>}<br><br>http {<br>  error_log /etc/nginx/error_log.log warn;<br>  client_max_body_size 20m;<br>  log_format upstreamlog '$server_name to: $upstream_addr {$request} '<br>  'upstream_response_time $upstream_response_time'<br>  ' request_time $request_time';<br>  proxy_cache_path /etc/nginx/cache keys_zone=one:500m max_size=1000m;<br>  access_log /var/log/nginx/nginx-access.log upstreamlog;<br><br>upstream app.localhost {<br>        # simple round-robin<br>        server app-1:9763 fail_timeout=60s;<br>        server app-2:9763 fail_timeout=60s;<br>        server app-3:9763 fail_timeout=60s;       <br>}<br><br>server {<br>        listen 80;<br>        server_name app.localhost;<br>        location / {<br>                  proxy_pass xxxx<br>        }<br><br>}<br><br>}<br></b></i><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><font style="font-family:courier new,monospace" size="1"><b style="color:rgb(102,102,102)">Regards,<br><br></b></font><div style="color:rgb(102,102,102)"><font size="1"><b><font face="'comic sans ms', sans-serif"><font style="font-family:courier new,monospace" size="1">K S Praveen Kumar<br></font><br></font></b></font></div></div></div></div>