Petrov Olexandr.Varnish and drupal.DrupalCamp Kyiv 2011

1,842
-1

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,842
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

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
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×