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.<div><br></div><div>I have made this change to the vcl file:</div>
<div><br></div><div><div>backend app05 {</div><div> .host = "<a href="http://app05.site.com">app05.site.com</a>";</div><div> .port = "80";</div><div> .connect_timeout = <b>1.5s; # I do change this from 0.7 to 1.5 but it is still serving 503 errors...</b></div>
<div> .first_byte_timeout = 30s;</div><div> .between_bytes_timeout = 30s;</div><div> .probe = {</div><div> .url = "/";</div><div> .interval = 5s;</div><div> .timeout = 1s;</div><div> .window = 5;</div>
<div> .threshold = 3;</div><div> }</div><div>}</div><div><br></div><div>Do I have to increase also the first_byte_timeout?</div><br><div><div><table style="font-family:'Times New Roman';font-size:medium">
<tbody><tr><td style="vertical-align:top;width:27px" width="27"><img src="http://buscacorp.com/buscacorp-icon.png" style="margin-top:4px"></td><td style="font-family:Arial"><p style="font-weight:bold;font-size:18px;color:rgb(41,44,46);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
Abraham Cruz Sustaita<br></p><p style="font-size:11px;color:rgb(92,98,103);margin-top:2px;margin-right:0px;margin-bottom:0px;margin-left:0px">Leader Development<span lang="en"><span></span><span></span></span></p><p style="font-size:12px;color:rgb(92,98,103);margin-top:6px;margin-right:0px;margin-bottom:0px;margin-left:0px">
Mail: <a href="mailto:abraham.sustaita@buscacorp.com" style="color:rgb(250,166,26);text-decoration:none" target="_blank">abraham.sustaita@buscacorp.com</a><br>Ph: +52 (664) 200.2213<br>F: +52 (664) 200.2234<br>M: +52 (664) 123.0312<br>
Calle Brasil No. 8471. Col. Juárez, Tijuana Baja California, CP 22040</p>
<p style="font-size:12px;color:rgb(179,182,192);margin-top:10px;margin-right:0px;margin-bottom:10px;margin-left:0px"><a href="http://www.buscacorp.com/" style="color:rgb(250,166,26);text-decoration:none" target="_blank">BuscaCorp.com</a> | <a href="http://www.levelup.com/" style="color:rgb(250,166,26);text-decoration:none" target="_blank">LevelUp.com</a> | <a href="http://www.metatube.com/" style="color:rgb(250,166,26);text-decoration:none" target="_blank">MetaTube.com</a> | <a href="http://www.sandiegored.com/" style="color:rgb(250,166,26);text-decoration:none" target="_blank">SanDiegoRed.com</a> | <a href="http://www.tarreo.com/" style="color:rgb(250,166,26);text-decoration:none" target="_blank">Tarreo.com</a></p>
<p style="font-size:11px;color:rgb(179,182,192);margin:0px">This
e-mail message is intended only for the personal use of the
recipient(s) named above. This message may be an attorney-client
communication and as such privileged and confidential. If you are not an
intended recipient,you may not review, copy or distribute this message.
If you have received this communication in error, please notify us
immediately by e-mail and delete the original message.</p><p style="font-size:11px;color:rgb(179,182,192);margin:0px"><br></p><p style="font-size:11px;color:rgb(179,182,192);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
Este mensaje es para uso personal de(los) destinatario(s) a cuyos
nombres se dirige. Este mensaje puede ser comunicación abogado-cliente y
por tanto es privilegiado y confidencial. Si usted no es la persona a
quien se intentó enviar este mensaje, no debe revisarlo, copiarlo o
distribuirlo en forma alguna. Si ha recibido este mensaje por error, por
favor notifíquelo inmediatamente por email y destruya el mensaje
original.</p>
</td></tr></tbody></table></div></div><br>
<br><br><div class="gmail_quote">2012/6/13 Hugo Cisneiros (Eitch) <span dir="ltr"><<a href="mailto:hugo.cisneiros@gmail.com" target="_blank">hugo.cisneiros@gmail.com</a>></span><br><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:24 PM, Abraham Cruz Sustaita<br>
<<a href="mailto:abraham.sustaita@buscacorp.com">abraham.sustaita@buscacorp.com</a>> wrote:<br>
> I'm using varnish to cache the content of my websites. It is working as it<br>
> supposed, but there is a problem. Randomly it returns an 503 error, it is<br>
> really strange, since the app servers are ok and the load is under .8, also<br>
> the database server its ok. Here is part of my configuration:<br>
<br>
</div>On Varnish, 503 means an error on the backend connection. Usually this<br>
happens when the web server takes more time than "first_byte_timeout"<br>
to reply to a request. But also, if for some reason the backend can't<br>
connect before the "connect_timeout" delay, it'll give you a 503.<br>
<br>
The proper way to debug these kind of things is to use varnishlog on<br>
everything related to these 503 errors.<br>
<br>
In your configuration, why you say that restart did not work? It goes<br>
to "error 500 failed"? What happens exactly?<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
[]'s<br>
Hugo<br>
<a href="http://www.devin.com.br" target="_blank">www.devin.com.br</a><br>
</font></span><div class="HOEnZb"><div class="h5"><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>