Magento: I varnish you

1,768 views

Published on

Improve the performance of your Magento installation thanks to Varnish software. This presentation give you an overview of the knowledge necessary to understand this technology.

Presented at Developers Paradise and Meet Magento Germany in 2014

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

No Downloads
Views
Total views
1,768
On SlideShare
0
From Embeds
0
Number of Embeds
7
Actions
Shares
0
Downloads
7
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Magento: I varnish you

  1. 1. ecommerce solutions Sylvain Rayé
 Meet Magento Germany 2014
  2. 2. ecommerce solutions VARNISH?!!!
  3. 3. ecommerce solutions Servers Architecture Source: http://edoceo.com/howto/nginx-varnish-ssl
  4. 4. ecommerce solutions Without Varnish 200 requests / 5 concurrent clients Result: ~2 req / sec
  5. 5. ecommerce solutions With Varnish 200 requests / 5 concurrent clients Result: ~1400 req / sec
  6. 6. ecommerce solutions • The Good
 Peak of visitors (Christmas, Sales period, TV show, etc), low or heavy traffic, grace mode, load balancer, health check# • The Bad
 SSL, configuration, wrong web server logs, debugging (web app, varnish), FPC deactivated (EE)# • The Ugly
 Use for static content, hide bad coding practices
  7. 7. ecommerce solutions Hey idiot !! # Did you mentioned Ivan’s Magento Performance tweaks from eComDev?! # http://bit.ly/1abipgf (Presentation)! http://bit.ly/1d2nDPz (Module)! # Or $product->addAttributeUpdate()! http://bit.ly/1eIK5fb (in german)! # Use OpCode, Redis / Memcached, etc ecommerce solutions
  8. 8. ecommerce solutions HTTP Protocol# Varnish Configuration# Web Application
  9. 9. ecommerce solutions HTTP Protocol Source: Varnish Book Request Response
  10. 10. ecommerce solutions HTTP Cache headers • Expires / Cache-Control • ETAG / Last-Modified • If-Modified-Since / If-None-Match • Vary • Age
  11. 11. ecommerce solutions Configuration • /etc/default/varnish # # • /etc/varnish/default.vcl • /usr/bin/varnishadm ecommerce solutions
  12. 12. ecommerce solutions VCL & Routines Source: http://www.fabrizio-branca.de
  13. 13. ecommerce solutions Christmas time!# Hum, sorry… shopping time!# # Your shop is fast now? ecommerce solutions
  14. 14. ecommerce solutions
  15. 15. ecommerce solutions Edge Side Includes HTML generated from server side Your VCL should have
  16. 16. ecommerce solutions Magento Extensions • Nexcess Turpentine • Phoenix Media PageCache • Aoe_Static (forked by S. Hoyer) Dammit!!!
  17. 17. ecommerce solutions Varnish
 or
 not Varnish?
 # That’s the question
  18. 18. ecommerce solutions Alternatives • Full Page Cache of Bubble Code: 
 http://bit.ly/1kxRUvc • Lesti FPC: http://bit.ly/1axNMFb • Litespeed • HipHop VM (work in progress)
  19. 19. ecommerce solutions THANK YOU ecommerce solutions I can do shopping
 much faster now
  20. 20. ecommerce solutions Links • Varnish Book
 https://www.varnish-software.com/book • Nexcess Turpentine
 http://bit.ly/1cFAIxe • Phoenix Media PageCache
 http://bit.ly/19fYzoQ • Aoe_Static (forked)
 http://bit.ly/19fYNMO
  21. 21. ecommerce solutions Copyright - Jeff Dunham Achmed the dead terrorist
 http://www.youtube.com/watch?v=R_jU3FdnNoc

×