Configuration to avoid dog-pile when cache is empty

Per Buer perbu at varnish-software.com
Sat Jun 5 09:18:08 CEST 2010


On Fri, Jun 4, 2010 at 2:34 PM, Evgeniy Dolzhenko <dolzenko at gmail.com> wrote:
> (..)
> 3. Multiple users request /takes_forever_to_load.html page.
> If my understanding is correct with the default configuration all requests
> will hit Application Server.

No. Varnish will only send one request to the App Server unless you
have indicated that it shall pass.

> Now what I would like ideally to achieve with Varnish is that only
> first request hits Application Server and every other request is
> "joined" to that request, i.e. will be served as soon as
> Application Server responds to the first request and with
> the content of the response. I.e. Varnish will have to hold
> the connections open and then use response cached by first request
>
> Is that possible? Or is it just a too crazy thing to do?

No. It's quite sensible. It's also the default. :-)

-- 
Per Buer,  Varnish Software
Phone: +47 21 54 41 21 / Mobile: +47 958 39 117 / skype: per.buer




More information about the varnish-misc mailing list