Thanks a lot. I have made the change you suggested me and it seems its working now.<div><br></div><div>I'm still checking but I think its working very fine right now.</div><div><br></div><div>Thanks a lot again.<br clear="all">
<br><div>2012/6/13 Hugo Cisneiros (Eitch) <span dir="ltr"><<a href="mailto:hugo.cisneiros@gmail.com" target="_blank">hugo.cisneiros@gmail.com</a>></span></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Wed, Jun 13, 2012 at 5:51 PM, Abraham Cruz Sustaita<br>
<<a href="mailto:abraham.sustaita@buscacorp.com">abraham.sustaita@buscacorp.com</a>> wrote:<br>
> I understand varnish have to restart the connection and try again in another app server (I have 5), but it allways returns the 503 error, so I understand that means the rule is being ignored.<br>
<br>
</div>The only way to be sure what is happening is to log details from the<br>
requests using varnishlog.<br>
<br>
The restart function will reset the request and it goes back to<br>
vcl_recv as if it is a new request. But since you're using saintmode,<br>
maybe varnish isn't really retrying to fetch this particular URL from<br>
the backend. You can do a<br>
<br>
if (req.restarts > 3) {<br>
set beresp.saintmode = 5m;<br>
}<br>
<br>
and it will restart at least 2 times before inserting the item on saintmode.<br>
<div class="im"><br>
> I have made this change to the vcl file:<br>
</div>[...]<br>
<div class="im">> Do I have to increase also the first_byte_timeout?<br>
<br>
</div>You need to increase only if the request isn't getting reply data in<br>
the first 30 seconds :) You can check this with varnishlog and<br>
varnishncsa to be sure.<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
[]'s<br>
Hugo<br>
<a href="http://www.devin.com.br" target="_blank">www.devin.com.br</a><br>
<br>
_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br>
</div></div></blockquote></div><br></div>