Scaling WordPress
Upcoming SlideShare
Loading in...5
×
 

Scaling WordPress

on

  • 978 views

 

Statistics

Views

Total Views
978
Views on SlideShare
978
Embed Views
0

Actions

Likes
5
Downloads
8
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

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.

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

    Scaling WordPress Scaling WordPress Presentation Transcript

    • Mark Jaquith Making WordPress “JAKE-with” @markjaquith Go “Vroom”mark@jaquith.memarkjaquith.com
    • Survey
    • MATH TIME 50k pages/day = 0.58 pages/second Uh... that’s it?
    • Traffic isn’t steady
    • SpeedMa ers
    • Scalinga Single Server
    • Apache
    • nginx
    • proxy to Apache orPHP-FPM
    • PHPOpcodeCache
    • WPObjectCache
    • HTML Output CacheBatcache || W3 Total Cache || WP Super Cache
    • NginxMicrocache
    • Fragment Cachingif ( $html = get_transient( expensive-html-chunk ) ) { echo $html;} else { $html = dynamically_generate_foo(); set_transient( expensive-html-chunk, $html, 3600 ); echo $html;}
    • TLC Transientsecho tlc_transient( example-feed ) ->updates_with( my_callback ) ->expires_in( 300 ) ->background_only() ->get();
    • MySQLQuery Cache
    • CDN — with —Origin Pull
    • Guideline:1000ms+ — Really slow 350–999ms — Slow 250–349ms — Okay 100–249ms — Fast0–99ms — ZOMG FAST
    • TheOptimization Cycle
    • Dead-simple bo leneck identification<!--timer: <?php timer_stop(true) ?>-->
    • Case Studyhavebabyneedstuff.com
    • Nginxcaching
    • Proactive purging
    • Result?
    • $ ab -c 350 -n 5000 http://havebabyneedstuff.com/ Result?Requests per second: 8114.53 [#/sec] (mean) 95% of requests served within 40ms 99% of requests served within 82ms
    • MultipleServers
    • LoadBalancing
    • SharingUploads
    • Memcached
    • Rinse &Repeat
    • HyperDB
    • Mark Jaquith “JAKE-with” Thanks! @markjaquithmark@jaquith.memarkjaquith.com