Operation of varnish

Poul-Henning Kamp phk at phk.freebsd.dk
Wed Apr 18 11:10:57 CEST 2007


In message <462488E9.8040402 at fer.hr>, Ivan Voras writes:

>Does varnish do full buffering from the server-side? I.e. when the
>client connects to varnish, and varnish connects to the "real" web
>server, does it buffer the web server response fully, and closes the web
>server side of the connection (thus freeing it for other uses), then
>pipes the data to the client at the rate client's network allows?

Depends what varnish (or rather: the VCL program) decides to do.

If "pipe" is chosen, Varnish just moves bytes forth and back.

In the "trunk" version of varnish, everything else is fully buffered.
In the released versions, up to 1.0.3, "pass" mode will not do full
buffing, but fetches to cache will.

>Can varnish generate HTTP logs in the "combined" format. 

Pointer to documentation ?

>(subquestion:
>how about http/1.1 virtual hosts? can each get its own log?) 

Right now:  No.

>If I
>understand this correctly, varnish would generate its own logs, and then
>the apache could generate its own log, but apche's will show every=20
>connection as arriving from 127.0.0.1, right?

I'm not sure if Apache logs the tcp source address or the HTTP header
client IP# in the logs.

-- 
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