<div dir="ltr">Hi Robert,<div><br></div><div>Thank you for your reply. Yes, I have taken the backup parameter into account. It is not clear to me how the backup parameter works in combination with the hash directive and whether this achieves the desired behavior.</div><div><br></div><div>~Jonathan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 11, 2017 at 4:34 PM, Robert Paprocki <span dir="ltr"><<a href="mailto:rpaprocki@fearnothingproductions.net" target="_blank">rpaprocki@fearnothingproductions.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Wed, Jan 11, 2017 at 1:27 PM, Jonathan Simowitz via nginx <span dir="ltr"><<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I would like to define an upstream block with a number of servers and utilize the hash directive to choose a particular server dependent on the request. There is a chance that the chosen server could fail and so I would also like to configure a backup server to handle the request in this case. If I define an additional server in this upstream and declare it as backup will it handle the request if the hash-chosen server fails as defined by my proxy_next_upstream directive?</div></div></blockquote><div><br></div></span><div>Have you had a look at the 'backup' parameter of <a href="http://nginx.org/en/docs/http/ngx_http_upstream_module.html#server" target="_blank">http://nginx.org/en/docs/<wbr>http/ngx_http_upstream_module.<wbr>html#server</a>? Sounds like exactly what you need.</div></div><br></div></div>
<br>______________________________<wbr>_________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/<wbr>mailman/listinfo/nginx</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div></div></div><div><table cellpadding="0" cellspacing="0" style="border:1px dotted rgb(211,211,211);text-align:center"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small"><td nowrap style="border-color:rgb(51,105,232) rgb(211,211,211) rgb(211,211,211);border-width:2px 1px 1px;border-style:solid dotted dotted">Jonathan Simowitz |</td><td nowrap style="border-color:rgb(213,15,37) rgb(211,211,211) rgb(211,211,211);border-width:2px 1px 1px;border-style:solid dotted dotted">Jigsaw |</td><td nowrap style="border-color:rgb(238,178,17) rgb(211,211,211) rgb(211,211,211);border-width:2px 1px 1px;border-style:solid dotted dotted"> Software Engineer |</td><td nowrap style="border-color:rgb(51,105,232) rgb(211,211,211) rgb(211,211,211);border-width:2px 1px 1px;border-style:solid dotted dotted"> <a href="mailto:simowitz@google.com" style="color:rgb(17,85,204)" target="_blank">simowitz@google.com</a> |</td><td nowrap style="border-color:rgb(0,153,57) rgb(211,211,211) rgb(211,211,211);border-width:2px 1px 1px;border-style:solid dotted dotted"> <br><font color="#222222"> 631-223-8608</font><br><br></td></tr></tbody></table></div></div></div></div></div></div></div>
</div>