cant get restart; to fetch and deliver from other backend on HTTP error

Kristian Lyngstol kristian at redpill-linpro.com
Thu Sep 3 11:00:32 CEST 2009


On Thu, Aug 27, 2009 at 04:29:13PM +0200, Gerald Leier wrote:
> After setting up 2 servers(one returning the requested page
> the other returning 500 errors) i tested a bit but i have
> some bug in there i cant get a grip on.
> 
> after the first node returns a http 500 error varnish continues with
> the second node....here is the part where it stops doing what i want:

(...)
> 11 TxHeader     b X-Forwarded-For: 10.21.1.40
> 11 BackendClose b test2
> 10 VCL_call     c error
(...)

If the connection failed, like it seems to have done here, you do not end
up in VCL fetch. Note how varnish doesn't receive any headers from the web
server (no RxHeader for the second backend).

Varnish is unable to connect properly to your second server and that's
what's causing problems.

Varnishstat will probably reveal backend failures.

-- 
Kristian Lyngstøl
Redpill Linpro AS
Tlf: +47 21544179
Mob: +47 99014497
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20090903/2710a466/attachment-0003.pgp>


More information about the varnish-misc mailing list