Varnish: - The HTTP Accelerator Poul-Henning Kamp
Varnish: - The HTTP Accelerator Poul-Henning Kamp
Poul-Henning Kamp
[email protected]
CMS systems
● GET / HTTP/1.1
– Hang on, I need to look up a few hundred
things in my database and then do a lot of
editing with some badly written software.
CMS systems
● GET / HTTP/1.1
– Hang on, I need to look up a few hundred
things in my database and then do a lot of
editing with some badly written software.
● HEAD / HTTP/1.1
– Hang on, I need to look up a few hundred
things in my database and then do a lot of
editing with some badly written software, and
then I will throw the result away.
CMS systems are SLOW!
● Complex content generation process
● Single database prevents clustering
● Expensive software ditto.
if (req.url.host ~ "cnn.no$") {
rewrite req.url.host ”cnn.no” ”vg.no”
}
if (!backend.up) {
if (obj.exist) {
set obj.ttl += 10m;
deliver;
}
switch_config ”ohhshit”;
}
Logging
● Logging to shared memory
– No slowdown for real workload