Backend timeout.

Sébastien FOUTREL sfoutrel at bcstechno.com
Tue Oct 9 12:08:13 CEST 2007


I am pretty new to subversion.

This is what I did :
svn co http://varnish.projects.linpro.no/svn/
cd svn/trunk/varnish-cache
./autogen.sh
./configure --prefix=/tmp/varnish
Make
Make install
cp etc/default.vcl /tmp/varnish/
Cd /tmp/varnish
Edited default.vcl, modified backend.host, backend.port, added backend.timeout ="10s"; under the backend.port line.
Then started varnish with :
varnish:/tmp/varnish# sbin/varnishd -f /tmp/varnish/default.vcl -a 0.0.0.0:80 -h classic -s file -t 120
file ./varnish.FFeyOF (unlinked) size 31350784 bytes (7654 fs-blocks, 7654 pages)
Unknown variable 'backend.timeout'
At: (/tmp/varnish/default.vcl Line 14 Pos 13)
        set backend.timeout = "10s";
------------###############---------

And got that result. What did I do wrong ?

-----Message d'origine-----
De : phk at critter.freebsd.dk [mailto:phk at critter.freebsd.dk] De la part de Poul-Henning Kamp
Envoyé : lundi 8 octobre 2007 18:15
À : Sébastien FOUTREL
Cc : varnish-misc at projects.linpro.no
Objet : Re: Backend timeout. 

In message <D71E8F2EEEAFB64BB0336A4D09E512F741D5E5 at hermes.BCSTECHNO.local>, =?i so-8859-1?Q?S=E9bastien_FOUTREL?= writes:

>Hello, I wanted to use varnish in front of a very slow applications 
>but, the backend sometimes take to long to feed varnish's cache, 
>resulting in error 503 from varnish.
>my googling gave some result about a backend.timeout parameter but
>varnish-1.1.1 do not understand it.
>Where can I found a version that understand it, do the trunk on svn 
>manage that variable ?

Trunk is in pretty good shape right now, give it a shot.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



More information about the varnish-misc mailing list