• Save
Drupal performance
Upcoming SlideShare
Loading in...5

Drupal performance



A short overview of performance improvements that can be relatively easily be done with drupal.

A short overview of performance improvements that can be relatively easily be done with drupal.



Total Views
Views on SlideShare
Embed Views



1 Embed 23

http://2012.drupal.org.il 23



Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
Post Comment
Edit your comment

    Drupal performance Drupal performance Presentation Transcript

    • Drupal Performance Gabi Lee, Sergata gabi.lee@sergata.com +972-54-5444542
    • Agenda• About• What is “Performance”• Measuring performance• Recipes – User – Server – Framework – Application
    • About Sergata• Innovative Software Development• Focus: Innovation | Startups | Entrepreneurs• From 0 to 100 in 3 months• Large scale projects of over 4 years• R&D Dream Team of 55 full time developers• Over 150 innovative projects world wide since 2006
    • Drupal Sites
    • “Performance”?• IT doesn’t matter• Single user – Total server time (App + DB) – Time for page to load (render) – Perceived performance• Concurrent users – Impact of multiple users on the single user experience• Analysis
    • Traffic 6,000/hour 30,000/hour
    • Measuring• User – Browsing the page… – Your (non-IE) browser – YSlow for FF – http://www.webpagetest.org• Load testing – ab – JMeter
    • YSlow• Network – Minimize HTTP Requests (Aggregation, Sprites) – Use a Content Delivery Network (Domains) – Gzip Components (CPU vs. Network)• Caching – Expires or a Cache-Control Header – Make AJAX Cacheable – Use GET for AJAX Requests• Data – Reduce the Number of DOM Elements – Do Not Scale Images in HTML (Smush.it)
    • Content Types• Cacheable content – Images – CSS/JS – “Static” HTMLs – Anonymous pages• Personalized content – Logged in users – Session based data
    • Bypass Server• How? – CDN (AWS, Cotendo, CloudFlare, etc.) – Boost – Reverse proxy (Varnish, Squid) – Expires header• When? – Resources - always – Most traffic is anonymous – Static, anonymous, landing pages
    • Drupal Configuration• Performance tab
    • Modules• Data access – APC – Memcache• Caching – Boost – Block Cache Alter – Varnish HTTP Accelerator Integration• CDN – Login Cookie – CDN• Others – “ImageCache”
    • Application Optimization• Use what you need• Ajax• Batch processing (e.g. analytics)• SQL optimization – Analysis – Indexing – No PHP<->DB loops (use DAL / Entity API) – Configuration
    • IT Level• Bigger servers• More servers – ELB on AWS – Requires shared drive• Opcode caching (APC)• Apache config – KeepAlive, modules, Expires, GZip
    • Bottom Line• Analyze•• Use external tools• Invest in configuration• Don’t write code
    • Thank You! Questions?gabi.lee@sergata.com
    • References• http://www.vmirgorod.name/blog/tuning- drupal-performance• http://fuseinteractive.ca/blog/drupal- performance-tuning-0• http://www.practicalclouds.com/content/guid e/accelerate-your-drupal-website-vital- performance-tuning• http://developer.yahoo.com/yslow/
    • mail@sergata.com+972-77-210300328 Baruch Hirsch St.Bnei-Brak, 51202, Israelhttp://www.sergata.com/en