Andri Steiner Head of Hosting @ snowflake.ch Hosting, Virtualisation & Datacenter Automation Volkswagen Camping Car Driver & Paragliding Pilot TYPO3 since v3.5
Idea @ Verdens Gang AS Poul-Henning Kamp BSD License Redpill Linpro / Varnish Software AS Commercial Support & Modules 2006: v1 2008: v2 2011: v3 Worldwide Integration-/ Hosting-/ Trainings- Partner Varnish About the Company
About the Software Web Accelerator HTTP reverse Proxy Server highly efficient C virtual Memory Datastore (RAM/Swap) logical Webserver Client Varnish Webserver
Varnish Configuration Language meta Language compiled into C Code & linked into Varnish Process Business Logic (& Hacks) HTTP Headers regular Expressions
Features Edge Side Includes mix static with dynamic Content Logging High Performance shared Memory Log <html> <body> <h1>Private</h1> <esi:include src="/private/" /> <h1>News</h1> <p>...</p> </body> </html> serverside HTTP Proxy Server Everything is already standardized Magic in VCL allowed but not required sub vcl_recv { if (req.http.Cookie ~ "be_typo_user") { return (pass); } }
& TYPO3 new Extension „varnish“ KISS Principle minimal System impact Varnish 3 TYPO3 4.5 & 6.2 clear Cache Hook HTTP Header with Page ID TYPO3 Core Functions & Config no ESI Support no XClassing based on Page ID no URL Lookup Magic
& TYPO3 Technical Background config.sendCache Headers = 1 no_cache = 0 no _INT Objects HTTP Header TYPO3 Page ID clearCache Hook BAN is Expensive on very big Sites with lots of BANs Hash Ninja (Commercial Module) Varnish VCL removes Headers Set-Cookie, TYPO3-Pid
FE Sessions no no_cache=1 no _INT Objects use AJAX HTTP Methods GET to get Data POST to post Data Varnish & TYPO3 Best Practices VCL Magic Force Caching Remove Cookies ...
denner.ch Grocery Chain 500 Stores Weekly Mailings Every Thusday Special Offers & Lottery CPU from 8 Cores to 1 Core Load Time from ~ 5s to ~ 50ms no more Overload Memory from ~ 20 GB to 2 GB
brunch.ch Brunch on Farms Swiss Nation Holiday Search Farms Traffic Peak unused on 360 Days Heavy Traffic a few Days befor 1. August Afterwards no measurable Load reliefed Brunch Hotline Outages unscalable Application 30GB+ RAM, 24 Cores Search Function JavaScript / JSON Google Maps
koordination.ch Collects Informations Insurances Law related few Visitors, but huge Peaks Training Sessions Additional Extension sets Cookie Hashed Usergroup used by Varnish as Cache Hash protected Access TYPO3 FE Users no Varnish Caching by default
& Varnish Hosting and Integration- partner in Germany, Austria and Switzerland Hosting, Implementation and Consulting up to 20% Reseller Discount for TYPO3 Agencies get in touch: [email protected]