• Save

Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

Speeding Up The Snail

on

  • 3,291 views

Like all frameworks, Drupal comes with a performance cost, but there are many ways to minimise that cost. ...

Like all frameworks, Drupal comes with a performance cost, but there are many ways to minimise that cost.

This session explores different and complementary ways to improve performance, covering topics such as caching techniques, performance tuning, and Drupal configuration.

We'll touch on benchmarking before presenting the results from applying each of the performance techniques against copies of a number of real-world Drupal sites.

Statistics

Views

Total Views
3,291
Views on SlideShare
3,274
Embed Views
17

Actions

Likes
1
Downloads
0
Comments
0

4 Embeds 17

http://mgfr.cleverapps.io 8
http://drupaltalks.org 4
http://lanyrd.com 3
http://www.slideshare.net 2

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

CC Attribution License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

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

    Speeding Up The Snail Speeding Up The Snail Presentation Transcript

    • Speeding up the snail Marcus Deglos and making Drupal scale
    • Who is Marcus? Software engineer with Ibuildings Drupal contributor PADI scuba diving instructor
    • The problem with frameworks
      • The cost of the framework:
      • - include files
      • - function calls
      • - database queries
    • So why use Drupal?
      • Quicker to develop
      • Easier to maintain
    • Turbo-charging your site Optimising the stack Tuning Drupal Adding hardware Benchmarks
    • Optimising the stack
      • Apache
      • PHP
      • MySQL
      • APC extension
      • Varnish
    • Apache
      • Pre-fork vs Worker mode
      • Number of servers / clients
      • Impact of .htaccess / AllowOverride
      • Impact of SuExec
      Optimising the stack
    • PHP
      • CGI vs Apache Module vc FastCGI
      • php.ini:
        • Memory limit - choose for stability
        • register_long_ arrays
      Optimising the stack
    • Database
      • Optimising the database
        • Monitoring with the slow query log
        • Add (and remove) indices based on usage
        • Consider table types: MYISAM vs INNODB
      • Optimising the service
        • Custom compilation
        • Configuring my.cnf
      • Consider your hardware
      Optimising the stack
    • APC
      • APC is an op-code cache
      • Install and forget?
      • Monitor APC use
      • APC tuning
        • APC memory usage
        • APC stat: checks if files are modified
        • APC filters
      Optimising the stack
    • Varnish
      • Varnish is an HTTP accelerator
      • Requires D7, Pressflow, or a patch to Drupal core
      • New mindset for personalising content - think ESI
      Optimising the stack
    • Tuning Drupal
      • Drupal page cache
      • Optimise JS / CSS
      • Memcached
      • Using the Drupal cache
      • admin/settings/performance
      • Page caching improves performance for anonymous users
      • CSS and JS aggregation improves front-end performance
      Admin : performance settings Tuning Drupal
    • Memcached
      • Direct replacement for Drupal’s DB cache
      • To setup:
        • Install the Drupal module
        • Configure settings.php
        • Install the memcached daemon
        • Install the PECL extension
      • Minimal tuning (multiple cache ‘bins’)
      Tuning Drupal
    • Using cache_get and cache_set
      • Use a static cache for simple queries static $foo = null;
      • Use cache_get and cache_set for complex objects:
        • Multiple DB queries
        • Slow remote resources (e.g. SOAP)
      Tuning Drupal
    • Adding hardware
      • Separate the web server, database server and HTTP accelerator onto their own dedicated hardware
      • Horizontal scaling: double the hardware = double the performance?
      • Hunt the bottleneck
      • Scale with the cloud - Project Mercury
    • Benchmarking
      • ab
      • Jmeter
      • Online services
    • Real world performance
    • Page cache Real world performance
    • Memcache Real world performance
    • APC Real world performance
    • Varnish Real world performance
    • Summary
      • Page cache: 2x - 8x
      • Memcache: 2.5x
      • APC: 1x - 2x
      • Varnish: 50x ?
      Real world performance
    • Final thoughts
      • Off the shelf : Pressflow, Zend Community Server
      • Quick wins:
        • Page cache
        • Memcache
        • APC
        • Varnish
    • That’s all folks!
    • Image attribution - CC via Flickr
      • SNAIL (nutmeg66) http://www.flickr.com/photos/rachel_s/2906095941/
      • SCUBA - FISH SCHOOL (tobze) http://www.flickr.com/photos/tobze/2137899342/
      • BALL AND CHAIN (Fred Dawson) http://www.flickr.com/photos/fwp-dawson/520311773/
      • SPOILER (icathing) http://www.flickr.com/photos/icathing/26603225/
      • SERVER RACK (Jamison_Judd) http://www.flickr.com/photos/jamisonjudd/2433102356/
      • GRAPH (tracer.ca) http://www.flickr.com/photos/tracer/324953312/
      • STACK (Wonderlane) http://www.flickr.com/photos/wonderlane/2363603984/
      • TUNING (Crashmaster007) http://www.flickr.com/photos/crashmaster/3344052447/
      • ROAD END (Joseph Hatfield) http://www.flickr.com/photos/jhat/2188807450/
      • TORTOISE NAP (MaestroBen) http://www.flickr.com/photos/maestroben/369200383/
      • CAMERA (Burnt Pixel) http://www.flickr.com/photos/keithwj/365098384/
      • QUESTIONS (Stefan Baudy) http://www.flickr.com/photos/-bast-/349497988/
      • SERVER FARM (sugree) http://www.flickr.com/photos/sugree/3024640027/
      • CAT (fofurasfelinas) http://www.flickr.com/photos/fofurasfelinas/1297744859/
    • Thanks for coming! Rate this talk http: //joind .in/620 Download slides from slideshare @manarth