<font color="#000000"><font size="2"><font face="trebuchet ms,sans-serif">Hi Maxim,</font></font></font><div><font color="#000000"><font size="2"><font face="trebuchet ms,sans-serif"><br></font></font></font></div><div><font color="#000000"><font size="2"><font face="trebuchet ms,sans-serif">We implemented to module and still had some trouble. A lot of the connections would return " </font></font></font><span class="Apple-style-span" style="font-family: 'trebuchet ms', sans-serif; ">503 Service Temporarily Unavailable". Our configuration works fine without the load balancer but then gives these 503 errors behind the load balancer. </span></div>
<div><span class="Apple-style-span" style="font-family: 'trebuchet ms', sans-serif; "><br></span></div><div><span class="Apple-style-span" style="font-family: 'trebuchet ms', sans-serif; ">Looking into the error logs I notice a lot of these errors both with and without the load balancer "connect() failed (111: Connection refused) while connecting to upstream". Could this be the reason that we are having issues?</span></div>
<div><span class="Apple-style-span" style="font-family: 'trebuchet ms', sans-serif; "><br></span></div><div><span class="Apple-style-span" style="font-family: 'trebuchet ms', sans-serif; ">Thanks!</span></div>
<div><span class="Apple-style-span" style="font-family: 'trebuchet ms', sans-serif; ">Rami</span></div><div><font color="#000000"><font size="2"><font face="trebuchet ms,sans-serif"><br></font></font></font><br><div class="gmail_quote">
On Mon, Nov 21, 2011 at 7:46 AM, Maxim Dounin <span dir="ltr"><<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello!<br>
<div class="im"><br>
On Mon, Nov 21, 2011 at 07:40:49AM -0500, Rami Essaid wrote:<br>
<br>
> Thanks Maxim,<br>
><br>
> This looks like exactly what we need. In your experience does this resolve<br>
> most issues behind a load balancer?<br>
<br>
</div>Yes.<br>
<span class="HOEnZb"><font color="#888888"><br>
Maxim Dounin<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
> On Mon, Nov 21, 2011 at 7:38 AM, Maxim Dounin <<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>> wrote:<br>
><br>
> > Hello!<br>
> ><br>
> > On Mon, Nov 21, 2011 at 07:25:39AM -0500, Rami Essaid wrote:<br>
> ><br>
> > > Hi Guys,<br>
> > ><br>
> > > This weekend for scalability we tried putting our nginx servers behind<br>
> > > amazon's elastic load balancers and came across a road block: it does not<br>
> > > transparently pass the user IP and header information to nginx. This<br>
> > caused<br>
> > > issues with several pieces of nginx we use including the IP allow / deny<br>
> > > rules, the limit_req module, and the limit_con module. Has anyone<br>
> > > successfully put nginx behind a load balancer? Any ideas on how to make<br>
> > > this work?<br>
> ><br>
> > <a href="http://wiki.nginx.org/HttpRealIpModule" target="_blank">http://wiki.nginx.org/HttpRealIpModule</a><br>
> ><br>
> > Maxim Dounin<br>
> ><br>
> > _______________________________________________<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" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
> ><br>
<br>
> _______________________________________________<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" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
<br>
_______________________________________________<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" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br></div>