Varnish returns 503 error.
Abraham Cruz Sustaita
abraham.sustaita at buscacorp.com
Wed Jun 13 22:51:14 CEST 2012
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.
I have made this change to the vcl file:
backend app05 {
.host = "app05.site.com";
.port = "80";
.connect_timeout = *1.5s; # I do change this from 0.7 to 1.5 but it is
still serving 503 errors...*
.first_byte_timeout = 30s;
.between_bytes_timeout = 30s;
.probe = {
.url = "/";
.interval = 5s;
.timeout = 1s;
.window = 5;
.threshold = 3;
}
}
Do I have to increase also the first_byte_timeout?
Abraham Cruz Sustaita
Leader Development
Mail: abraham.sustaita at buscacorp.com
Ph: +52 (664) 200.2213
F: +52 (664) 200.2234
M: +52 (664) 123.0312
Calle Brasil No. 8471. Col. Juárez, Tijuana Baja California, CP 22040
BuscaCorp.com <http://www.buscacorp.com/> |
LevelUp.com<http://www.levelup.com/>
| MetaTube.com <http://www.metatube.com/> |
SanDiegoRed.com<http://www.sandiegored.com/>
| Tarreo.com <http://www.tarreo.com/>
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.
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.
2012/6/13 Hugo Cisneiros (Eitch) <hugo.cisneiros at gmail.com>
> On Wed, Jun 13, 2012 at 5:24 PM, Abraham Cruz Sustaita
> <abraham.sustaita at buscacorp.com> wrote:
> > I'm using varnish to cache the content of my websites. It is working as
> it
> > supposed, but there is a problem. Randomly it returns an 503 error, it is
> > really strange, since the app servers are ok and the load is under .8,
> also
> > the database server its ok. Here is part of my configuration:
>
> On Varnish, 503 means an error on the backend connection. Usually this
> happens when the web server takes more time than "first_byte_timeout"
> to reply to a request. But also, if for some reason the backend can't
> connect before the "connect_timeout" delay, it'll give you a 503.
>
> The proper way to debug these kind of things is to use varnishlog on
> everything related to these 503 errors.
>
> In your configuration, why you say that restart did not work? It goes
> to "error 500 failed"? What happens exactly?
>
> --
> []'s
> Hugo
> www.devin.com.br
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120613/1b33e697/attachment-0001.html>
More information about the varnish-misc
mailing list