Mailing List Archive

Varnish as web page cache for dynamic content
Hello,

I'm totally new to Varnish and working for the largest IT news portal in
Scandinavia. We're looking to replacing our current server side page
cache environment with a hardware solution (such as Netapp NetCache
for example). Now would this be possible to do maybe with Varnish instead?

So I don't want to use Varnish for client proxy anyhow, just website
content cache/acceleration and if possible also distribution for
streaming media (webtv)..


// kimmo
Varnish as web page cache for dynamic content [ In reply to ]
In message <a226f3e20706200611g7ea657dfscc52ffa02695fc at mail.gmail.com>, "=?ISO-
8859-1?Q?Kimmo_Gl=E4borg?=" writes:
>Hello,
>
>I'm totally new to Varnish and working for the largest IT news portal in
>Scandinavia. We're looking to replacing our current server side page
>cache environment with a hardware solution (such as Netapp NetCache
>for example). Now would this be possible to do maybe with Varnish instead?
>
>So I don't want to use Varnish for client proxy anyhow, just website
>content cache/acceleration and if possible also distribution for
>streaming media (webtv)..

That's exactly what Varnish is built for :-)

Dag-Erling and I talked briefly about real-time streaming apps yesterday
and I think I can say definitively, that it is at earliest a v3 feature,
if we do it at all.


--
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 as web page cache for dynamic content [ In reply to ]
Can varnish run on separate machines?

We wan't to place the future cache machine's between load balancer
and web front ends. We have two systems we would like to use same
caching boxes for; one unix based CMS and also one iis environment.
Is this doable?

// kimmo


On 6/20/07, Poul-Henning Kamp <phk at phk.freebsd.dk> wrote:
> In message <a226f3e20706200611g7ea657dfscc52ffa02695fc at mail.gmail.com>, "=?ISO-
> 8859-1?Q?Kimmo_Gl=E4borg?=" writes:
> >Hello,
> >
> >I'm totally new to Varnish and working for the largest IT news portal in
> >Scandinavia. We're looking to replacing our current server side page
> >cache environment with a hardware solution (such as Netapp NetCache
> >for example). Now would this be possible to do maybe with Varnish instead?
> >
> >So I don't want to use Varnish for client proxy anyhow, just website
> >content cache/acceleration and if possible also distribution for
> >streaming media (webtv)..
>
> That's exactly what Varnish is built for :-)
>
> Dag-Erling and I talked briefly about real-time streaming apps yesterday
> and I think I can say definitively, that it is at earliest a v3 feature,
> if we do it at all.
>
>
> --
> 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 as web page cache for dynamic content [ In reply to ]
In message <a226f3e20706200648r6c811065q330fa81990973d16 at mail.gmail.com>, "=?IS
O-8859-1?Q?Kimmo_Gl=E4borg?=" writes:

>Can varnish run on separate machines?

Sure.

>We wan't to place the future cache machine's between load balancer
>and web front ends. We have two systems we would like to use same
>caching boxes for; one unix based CMS and also one iis environment.
>Is this doable?

Absolutely.

--
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 as web page cache for dynamic content [ In reply to ]
Sounds wonderful. Sorry my incompetence but, just so I get this right,
in our IIS environment we use an old style "burning" batch jobs that
burns out static html pages from an .asp site. Could external Varnish
boxes replace & include a similar functionality?

// kimmo

On 6/20/07, Poul-Henning Kamp <phk at phk.freebsd.dk> wrote:
> In message <a226f3e20706200648r6c811065q330fa81990973d16 at mail.gmail.com>, "=?IS
> O-8859-1?Q?Kimmo_Gl=E4borg?=" writes:
>
> >Can varnish run on separate machines?
>
> Sure.
>
> >We wan't to place the future cache machine's between load balancer
> >and web front ends. We have two systems we would like to use same
> >caching boxes for; one unix based CMS and also one iis environment.
> >Is this doable?
>
> Absolutely.
>
> --
> 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 as web page cache for dynamic content [ In reply to ]
In message <a226f3e20706200656m6d8aa789p47b45f4a6ec4d1f0 at mail.gmail.com>, "=?IS
O-8859-1?Q?Kimmo_Gl=E4borg?=" writes:

>Sounds wonderful. Sorry my incompetence but, just so I get this right,
>in our IIS environment we use an old style "burning" batch jobs that
>burns out static html pages from an .asp site. Could external Varnish
>boxes replace & include a similar functionality?

Yes, that's what it is designed for.

--
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 as web page cache for dynamic content [ In reply to ]
That just did my day

// kimmo

On 6/20/07, Poul-Henning Kamp <phk at phk.freebsd.dk> wrote:
> In message <a226f3e20706200656m6d8aa789p47b45f4a6ec4d1f0 at mail.gmail.com>, "=?IS
> O-8859-1?Q?Kimmo_Gl=E4borg?=" writes:
>
> >Sounds wonderful. Sorry my incompetence but, just so I get this right,
> >in our IIS environment we use an old style "burning" batch jobs that
> >burns out static html pages from an .asp site. Could external Varnish
> >boxes replace & include a similar functionality?
>
> Yes, that's what it is designed for.
>
> --
> 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 as web page cache for dynamic content [ In reply to ]
Oh, one more thing. One of our requirements it the possibility to
choose which content to cache and not. All our pages are individual
with ad strings etc. How do an external varnish box act, as a router
or a switch between networks? Can it do loadbalancing?

// kimmo

On 6/20/07, Poul-Henning Kamp <phk at phk.freebsd.dk> wrote:
> In message <a226f3e20706200656m6d8aa789p47b45f4a6ec4d1f0 at mail.gmail.com>, "=?IS
> O-8859-1?Q?Kimmo_Gl=E4borg?=" writes:
>
> >Sounds wonderful. Sorry my incompetence but, just so I get this right,
> >in our IIS environment we use an old style "burning" batch jobs that
> >burns out static html pages from an .asp site. Could external Varnish
> >boxes replace & include a similar functionality?
>
> Yes, that's what it is designed for.
>
> --
> 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 as web page cache for dynamic content [ In reply to ]
In message <a226f3e20706200730u66a29377p6476a97e79e5fc14 at mail.gmail.com>, "=?IS
O-8859-1?Q?Kimmo_Gl=E4borg?=" writes:

>Oh, one more thing. One of our requirements it the possibility to
>choose which content to cache and not.

Varnish will inspect the HTTP headers from your backend, and will
do as told. If you want to do something different, you can override
the caching decision and lifetime in the VCL configuration language.

>How do an external varnish box act, as a router
>or a switch between networks?

Varnishd doesn't care, it receives requests and answers them,
using HTTP to contact the backend server when necessary.

You can put it on the same machine, on a different machine
with any number of network interfaces you like.

>Can it do loadbalancing?

Not currently.

We're working on that.

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