SlideShare a Scribd company logo
Mark Jaquith
                    Making
                    WordPress
      “JAKE-with”




 @markjaquith       Go “Vroom”
mark@jaquith.me
markjaquith.com
Survey
MATH TIME
 50k pages/day = 0.58 pages/second

          Uh... that’s it?
Traffic isn’t
  steady
Speed
Ma ers
Scaling
a Single Server
Apache
nginx
proxy to Apache
      or
PHP-FPM
PHP
Opcode
Cache
WP
Object
Cache
HTML
            Output
           Cache
Batcache || W3 Total Cache   || WP Super Cache
Nginx
Microcache
Fragment
               Caching
if ( $html = get_transient( 'expensive-html-chunk' ) ) {
  echo $html;
} else {
  $html = dynamically_generate_foo();
  set_transient( 'expensive-html-chunk', $html, 3600 );
  echo $html;
}
TLC
 Transients
echo tlc_transient( 'example-feed' )
    ->updates_with( 'my_callback' )
    ->expires_in( 300 )
    ->background_only()
    ->get();
MySQL
Query Cache
CDN
   — with —
Origin Pull
Guideline:
1000ms+ — Really slow
  350–999ms — Slow
  250–349ms — Okay
  100–249ms — Fast
0–99ms — ZOMG FAST
The
Optimization
   Cycle
Dead-simple bo leneck
        identification



<!--timer: <?php timer_stop(true) ?>-->
Case Study
havebabyneedstuff.com
Nginx
caching
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
Multiple
Servers
Load
Balancing
Sharing
Uploads
Memcached
Rinse &
Repeat
HyperDB
Mark Jaquith
      “JAKE-with”   Thanks!
 @markjaquith
mark@jaquith.me
markjaquith.com

More Related Content

PDF
PyGotham 2014 Introduction to Profiling
PDF
Introduction to performance tuning perl web applications
PDF
Alternative Infrastucture
PDF
Backing up thousands of containers
KEY
Genkidama:実装と課題
PDF
Performance and stability testing \w Gatling
PDF
Tsung info
PyGotham 2014 Introduction to Profiling
Introduction to performance tuning perl web applications
Alternative Infrastucture
Backing up thousands of containers
Genkidama:実装と課題
Performance and stability testing \w Gatling
Tsung info

What's hot (20)

PDF
LCA2014 - Introduction to Go
PDF
Benchmarking for HTTP/2
PPT
5 things MySql
PDF
WordPress Performance & Scalability
PDF
톰캣 #09-쓰레드
PDF
Server-Side JavaScript with jQuery and AOLserver
PPTX
Techniques to Improve Cache Speed
PPTX
Put kajakken på hylden - og få sexede windows services
PDF
WebPagetest - Good, Bad & Ugly
PDF
Phorum MySQL tricks
PDF
QCon 2017 - Java/JVM com Docker em produção: lições das trincheiras
PDF
From One to a Cluster
PPTX
Ad Server Optimization
PDF
Performance tests with Gatling (extended)
PDF
Event Driven Architecture Concepts in Web Technologies - Part 1
PDF
Django and Nginx reverse proxy cache
PPT
High Performance Wordpress: “Faster, Cheaper, Easier : Pick Three”
KEY
Server side scripting smack down - Node.js vs PHP
PDF
Cape Cod Web Technology Meetup - 2
PDF
Grafana is not enough: DIY user interfaces for Prometheus
LCA2014 - Introduction to Go
Benchmarking for HTTP/2
5 things MySql
WordPress Performance & Scalability
톰캣 #09-쓰레드
Server-Side JavaScript with jQuery and AOLserver
Techniques to Improve Cache Speed
Put kajakken på hylden - og få sexede windows services
WebPagetest - Good, Bad & Ugly
Phorum MySQL tricks
QCon 2017 - Java/JVM com Docker em produção: lições das trincheiras
From One to a Cluster
Ad Server Optimization
Performance tests with Gatling (extended)
Event Driven Architecture Concepts in Web Technologies - Part 1
Django and Nginx reverse proxy cache
High Performance Wordpress: “Faster, Cheaper, Easier : Pick Three”
Server side scripting smack down - Node.js vs PHP
Cape Cod Web Technology Meetup - 2
Grafana is not enough: DIY user interfaces for Prometheus
Ad

Similar to Scaling WordPress (20)

PDF
Optimizing WordPress for Performance - WordCamp Houston
PDF
WordCamp RVA
PDF
WordCamp RVA 2011 - Performance & Tuning.pdf
PDF
WordCamp RVA 2011 - Performance & Tuning.pdf
PDF
WordCamp RVA
ODP
Clug 2011 March web server optimisation
PDF
Cache Money Business
PDF
WordCamp RVA 2011 - Performance & Tuning
PDF
Roshan Bhattarai: Scaling WordPress for high traffic sites
PPTX
Scaling wordpress for high traffic
PPTX
Joomla! Performance on Steroids
PPT
Roy foubister (hosting high traffic sites on a tight budget)
PPTX
NGINX High-performance Caching
PDF
Clug 2012 March web server optimisation
PDF
23 Ways To Speed Up WordPress
PDF
Symfony Performance
PDF
The Need For Speed: Caching Fundamentals
KEY
Performance and scalability with drupal
ODP
Caching and tuning fun for high scalability
PDF
Cache Rules Everything Around Me
Optimizing WordPress for Performance - WordCamp Houston
WordCamp RVA
WordCamp RVA 2011 - Performance & Tuning.pdf
WordCamp RVA 2011 - Performance & Tuning.pdf
WordCamp RVA
Clug 2011 March web server optimisation
Cache Money Business
WordCamp RVA 2011 - Performance & Tuning
Roshan Bhattarai: Scaling WordPress for high traffic sites
Scaling wordpress for high traffic
Joomla! Performance on Steroids
Roy foubister (hosting high traffic sites on a tight budget)
NGINX High-performance Caching
Clug 2012 March web server optimisation
23 Ways To Speed Up WordPress
Symfony Performance
The Need For Speed: Caching Fundamentals
Performance and scalability with drupal
Caching and tuning fun for high scalability
Cache Rules Everything Around Me
Ad

More from Mark Jaquith (14)

PDF
Creating and Maintaining WordPress Plugins
PDF
Coding, Scaling, and Deploys... Oh My!
PDF
WordPress Security - WordCamp Phoenix
PDF
WordPress Custom Post Types
PDF
Writing Your First WordPress Plugin
PDF
What I Hate About Wordpress
PDF
Writing Secure Plugins — WordCamp New York 2009
PDF
BuddyPress and the Future of WordPress Plugins
PDF
"State of the Word" at WordCamp Mid-Atlantic, by Mark Jaquith
PDF
Secure Coding With Wordpress (BarCamp Orlando 2009)
PDF
Wordcamp Charlotte: WordPress Today and Tomorrow
PDF
Secure Coding with WordPress - WordCamp SF 2008
PPT
Amping up your WordPress Blog
PDF
Contributing To WordPress
Creating and Maintaining WordPress Plugins
Coding, Scaling, and Deploys... Oh My!
WordPress Security - WordCamp Phoenix
WordPress Custom Post Types
Writing Your First WordPress Plugin
What I Hate About Wordpress
Writing Secure Plugins — WordCamp New York 2009
BuddyPress and the Future of WordPress Plugins
"State of the Word" at WordCamp Mid-Atlantic, by Mark Jaquith
Secure Coding With Wordpress (BarCamp Orlando 2009)
Wordcamp Charlotte: WordPress Today and Tomorrow
Secure Coding with WordPress - WordCamp SF 2008
Amping up your WordPress Blog
Contributing To WordPress

Scaling WordPress