Ce diaporama a bien été signalé.
Le téléchargement de votre SlideShare est en cours. ×

Magento: I varnish you

Prochain SlideShare
UMS Ltd new version
UMS Ltd new version
Chargement dans…3
×

Consultez-les par la suite

1 sur 21
1 sur 21

Magento: I varnish you

Télécharger pour lire hors ligne

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

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

Plus De Contenu Connexe

Livres associés

Gratuit avec un essai de 30 jours de Scribd

Tout voir

Livres audio associés

Gratuit avec un essai de 30 jours de Scribd

Tout voir

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

×