<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi Parikh,<div><br></div><div>I used following configuration but still its waiting for long time.</div><div><br></div><div><b><span style="line-height: 21px; color: rgb(68, 68, 68); font-size: 15px;">server host1.example.com:8080 max_fails=2 fail_timeout=5s;</span></b><br><br>As you suggested removed off<br><b>proxy_next_upstream error timeout http_404 http_500 http_502 http_503 http_504;</b></div><div><b><br></b>Thanks,<div>Sandeep.</div><br><div><hr id="stopSpelling">Date: Wed, 3 Jul 2013 00:47:31 -0500<br>From: sajan@noppix.com<br>To: nginx@nginx.org<br>Subject: Re: Nginx upstream servers status<br><br>
  
    
  
  
    <div class="ecxmoz-cite-prefix">In your proxy_next_upstream, why do you
      have 'off' enabled.<br>
      <br>
      off — it forbids the request transfer to the next server.<br>
      <br>
      Remove 'off' from that line.<br>
      <br>
      <div class="ecxmoz-signature">Sajan Parikh<br>
        <i>Owner, Noppix LLC</i><br>
        <br>
        e: <a class="ecxmoz-txt-link-abbreviated" href="mailto:sajan@noppix.com">sajan@noppix.com</a><br>
        p: (563) 726-0371<br>
        <br>
        <img alt="Noppix LLC Logo" src="cid:part1.02000400.06050101@noppix.com"></div>
      On 07/03/2013 12:37 AM, Sandeep L wrote:<br>
    </div>
    <blockquote cite="mid:BLU171-W6171044CFF2FBDF4D7C5AAC730@phx.gbl">
      <style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
      <div dir="ltr">@<span style="color:rgb(68, 68, 68);font-size:15px;line-height:21px;">Parikh I tried with </span><span style="color:rgb(68, 68, 68);font-size:15px;line-height:21px;"> proxy_next_upstream also but facing same issue.</span>
        <div><font color="#444444"><span style="font-size:15px;line-height:21px;"><br>
            </span></font></div>
        <div><font color="#444444"><span style="font-size:15px;line-height:21px;">Regarding fail_timeout I used values
              from 10s to 30s but facing same issue.</span></font></div>
        <div><font color="#444444"><span style="font-size:15px;line-height:21px;"><br>
            </span></font></div>
        <div><font color="#444444"><span style="font-size:15px;line-height:21px;">I used following configuration, just
              check and let me know If I am missing any thing.</span></font></div>
        <div><font color="#444444"><span style="font-size:15px;line-height:21px;"><br>
            </span></font></div>
        <div><b><span style="line-height:21px;color:rgb(68, 68, 68);font-size:15px;">upstream appcluster {</span><br style="line-height:21px;color:rgb(68, 68, 68);font-size:15px;">
            <span style="line-height:21px;color:rgb(68, 68, 68);font-size:15px;">  server host1.example.com:8080
              max_fails=2 fail_timeout=10s;</span><br style="line-height:21px;color:rgb(68, 68, 68);font-size:15px;">
            <span style="line-height:21px;color:rgb(68, 68, 68);font-size:15px;">  server host2.example.com:8080
              max_fails=2 fail_timeout=10s;</span><br style="line-height:21px;color:rgb(68, 68, 68);font-size:15px;">
            <span style="line-height:21px;color:rgb(68, 68, 68);font-size:15px;">}</span><font color="#444444"><span style="font-size:15px;line-height:21px;"><br>
              </span></font></b>
          <div><b><br>
            </b></div>
          <div>
            <div><b>server {<span style="font-size:12pt;">         </span></b></div>
            <div><b>                listen *;</b></div>
            <div><b>                location / {</b></div>
            <div><b>                        proxy_pass
                 <a class="ecxmoz-txt-link-freetext" href="http://appcluster" target="_blank">http://appcluster</a>;</b></div>
            <div><b>                        proxy_next_upstream error
                timeout http_404 http_500 http_502 http_503 http_504
                off;</b></div>
            <div><b>                        proxy_set_header  X-Real-IP
                 $remote_addr;</b></div>
            <div><b>                }</b></div>
            <div><b>}</b></div>
            <div><br>
            </div>
            <div><br>
            </div>
            Thanks,
            <div>Sandeep.</div>
            <br>
            <br>
            <div>> To: <a class="ecxmoz-txt-link-abbreviated" href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
              > Subject: Re: Nginx upstream servers status<br>
              > From: <a class="ecxmoz-txt-link-abbreviated" href="mailto:nginx-forum@nginx.us">nginx-forum@nginx.us</a><br>
              > Date: Wed, 3 Jul 2013 01:11:20 -0400<br>
              > <br>
              > you allow 600 seconds to pass until you npotice, that
              your upstream-server <br>
              > is not responsible. <br>
              > <br>
              > ... max_fails=2 fail_timeout=300s;<br>
              > <br>
              > why?<br>
              > <br>
              > Posted at Nginx Forum:
              <a class="ecxmoz-txt-link-freetext" href="http://forum.nginx.org/read.php?2%2c240513%2c240515#msg-240515" target="_blank">http://forum.nginx.org/read.php?2,240513,240515#msg-240515</a><br>
              > <br>
              > _______________________________________________<br>
              > nginx mailing list<br>
              > <a class="ecxmoz-txt-link-abbreviated" href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
              > <a class="ecxmoz-txt-link-freetext" href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="ecxmimeAttachmentHeader"></fieldset>
      <br>
      <pre>_______________________________________________
nginx mailing list
<a class="ecxmoz-txt-link-abbreviated" href="mailto:nginx@nginx.org">nginx@nginx.org</a>
<a class="ecxmoz-txt-link-freetext" href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a></pre>
    </blockquote>
    <br>
  

<br>_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx</div></div>                                           </div></body>
</html>