Magento: I varnish you
-
Upload
sylvain-raye -
Category
Technology
-
view
826 -
download
3
description
Transcript of Magento: I varnish you
ecommerce solutions
Sylvain RayéMeet Magento Germany 2014
ecommerce solutions
VARNISH?!!!
ecommerce solutions
Servers Architecture
Source: http://edoceo.com/howto/nginx-varnish-ssl
ecommerce solutions
Without Varnish200 requests / 5 concurrent clients Result: ~2 req / sec
ecommerce solutions
With Varnish200 requests / 5 concurrent clients Result: ~1400 req / sec
ecommerce solutions
• The GoodPeak 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 UglyUse for static content, hide bad coding practices
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
ecommerce solutions
HTTP Protocol#
Varnish Configuration#
Web Application
ecommerce solutions
HTTP Protocol
Source: Varnish Book
Request Response
ecommerce solutions
HTTP Cache headers• Expires / Cache-Control
• ETAG / Last-Modified
• If-Modified-Since / If-None-Match
• Vary
• Age
ecommerce solutions
Configuration• /etc/default/varnish
#
#
• /etc/varnish/default.vcl
• /usr/bin/varnishadm
ecommerce solutions
ecommerce solutions
VCL & Routines
Source: http://www.fabrizio-branca.de
ecommerce solutions
Christmas time!#Hum, sorry… shopping time!##Your shop is fast now?
ecommerce solutions
ecommerce solutions
ecommerce solutions
Edge Side IncludesHTML generated from server side
Your VCL should have
ecommerce solutions
Magento Extensions
• Nexcess Turpentine
• Phoenix Media PageCache
• Aoe_Static (forked by S. Hoyer)
Dammit!!!
ecommerce solutions
Varnish or
not Varnish? #
That’s the question
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)
ecommerce solutions
THANK YOU
ecommerce solutions
I can do shopping much faster now
ecommerce solutions
Links• Varnish Book
https://www.varnish-software.com/book
• Nexcess Turpentine http://bit.ly/1cFAIxe
• Phoenix Media PageCachehttp://bit.ly/19fYzoQ
• Aoe_Static (forked)http://bit.ly/19fYNMO
ecommerce solutions
Copyright - Jeff Dunham
Achmed the dead terrorist http://www.youtube.com/watch?v=R_jU3FdnNoc