Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Gold Sponsor ofDrupalCamp Kyiv 201115.6.11
Silver Sponsors ofDrupalCamp Kyiv 201115.6.11
What is Varnish and how it Works
Varnish caches backend responses   and delivers from the cache
Varnish stores cache entry   for each Host + URL
Pressflow  Pressflow = Drupal 6 with many performance                    tweaksPressflow allows: -   Lazy sessions creatio...
Pressflow Pros and Cons
Server Config
Tuning and administering VarnishVCL - Varnish configuration language – allows to hook most of the eventsduring handling re...
Varnish Configuration LanguageC-like syntaxSupports regular expressionsGets translated to C code then compiled and execute...
Code Examplebackend image_server {  .host = 127.0.0.1  .port = 1080}sub vcl_recv { #direct image requests to image server ...
Case StudiesNon-Drupal Websites    livejournal.com  weather.com  slideshare.netDrupal Websites  drupal.org  fusemusic.com
Read morehttp://www.varnish-cache.orghttp://www.pressflow.orghttp://www.google.com
Petrov Olexandr.Varnish and drupal.DrupalCamp Kyiv 2011
Upcoming SlideShare
Loading in …5
×

Petrov Olexandr.Varnish and drupal.DrupalCamp Kyiv 2011

2,109 views

Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Petrov Olexandr.Varnish and drupal.DrupalCamp Kyiv 2011

  1. 1. Gold Sponsor ofDrupalCamp Kyiv 201115.6.11
  2. 2. Silver Sponsors ofDrupalCamp Kyiv 201115.6.11
  3. 3. What is Varnish and how it Works
  4. 4. Varnish caches backend responses and delivers from the cache
  5. 5. Varnish stores cache entry for each Host + URL
  6. 6. Pressflow Pressflow = Drupal 6 with many performance tweaksPressflow allows: - Lazy sessions creation - No cookies for anonynous users- Lots of Drupal 7 performance tweaksimplemented
  7. 7. Pressflow Pros and Cons
  8. 8. Server Config
  9. 9. Tuning and administering VarnishVCL - Varnish configuration language – allows to hook most of the eventsduring handling requestsCommand line optionsVarnish Tools – cache viewer, stats viewer,
  10. 10. Varnish Configuration LanguageC-like syntaxSupports regular expressionsGets translated to C code then compiled and executedHooks: vcl_recv, vcl_pipe, vcl_pass, vcl_hash, vcl_hit, vcl_miss, vcl_fetch,vcl_deliver, vcl_discard, vcl_errors
  11. 11. Code Examplebackend image_server { .host = 127.0.0.1 .port = 1080}sub vcl_recv { #direct image requests to image server if(req.url ~ “(jpg|gif|png)”){ set req.backend = image_server; }}
  12. 12. Case StudiesNon-Drupal Websites livejournal.com weather.com slideshare.netDrupal Websites drupal.org fusemusic.com
  13. 13. Read morehttp://www.varnish-cache.orghttp://www.pressflow.orghttp://www.google.com

×