Mailing List Archive

Backend timeout.
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 ?

Thanks

Sebastien FOUTREL
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.linpro.no/pipermail/varnish-misc/attachments/20071008/69c6d9ee/attachment.htm
Backend timeout. [ In reply to ]
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.
Backend timeout. [ In reply to ]
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.
Backend timeout. [ In reply to ]
To continue on my problem,
I did some grep commands and found a sample.vcl refering to backend.timeout in /svn/trunk/varnish-cache/lib/libvcl
Tried to start varnishd with that file but it's full of errors for varnishd.

What did I do wrong ?


-----Message d'origine-----
De : varnish-misc-bounces at projects.linpro.no [mailto:varnish-misc-bounces at projects.linpro.no] De la part de S?bastien FOUTREL
Envoy? : mardi 9 octobre 2007 12:08
? : varnish-misc at projects.linpro.no
Objet : RE: Backend timeout.

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.
_______________________________________________
varnish-misc mailing list
varnish-misc at projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc