Varnish returns 503 error.
Jean-Christian BEDIER
jc.bedier at gmail.com
Thu Jun 14 09:44:00 CEST 2012
Hello,
I have the same problem too, on random request i read it in my varnishlog:
11 FetchError c http first read error: -1 104 (Connection reset by peer)
13 BackendClose b farm1
11 VCL_call c error
11 VCL_return c deliver
11 VCL_call c deliver
11 VCL_return c deliver
11 TxProtocol c HTTP/1.1
11 TxStatus c 503
Did you have the same Abraham ?
Regards,
On Thu, Jun 14, 2012 at 12:54 AM, Abraham Cruz Sustaita
<abraham.sustaita at buscacorp.com> wrote:
> Thanks a lot. I have made the change you suggested me and it seems its
> working now.
>
> I'm still checking but I think its working very fine right now.
>
> Thanks a lot again.
>
>
> 2012/6/13 Hugo Cisneiros (Eitch) <hugo.cisneiros at gmail.com>
>>
>> On Wed, Jun 13, 2012 at 5:51 PM, Abraham Cruz Sustaita
>>
>> <abraham.sustaita at buscacorp.com> wrote:
>> > 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.
>>
>> The only way to be sure what is happening is to log details from the
>> requests using varnishlog.
>>
>> The restart function will reset the request and it goes back to
>> vcl_recv as if it is a new request. But since you're using saintmode,
>> maybe varnish isn't really retrying to fetch this particular URL from
>> the backend. You can do a
>>
>> if (req.restarts > 3) {
>> set beresp.saintmode = 5m;
>> }
>>
>> and it will restart at least 2 times before inserting the item on
>> saintmode.
>>
>> > I have made this change to the vcl file:
>> [...]
>> > Do I have to increase also the first_byte_timeout?
>>
>> You need to increase only if the request isn't getting reply data in
>> the first 30 seconds :) You can check this with varnishlog and
>> varnishncsa to be sure.
>>
>> --
>> []'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
>
>
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
More information about the varnish-misc
mailing list