A crash course in scaling wordpress

GovLoop
GovLoopVice President at GovLoop
A Crash Course in
Scaling WordPress
A Crash Course in
Scaling WordPress
or: let me at least
show you what is possible
(in 8 minutes)
A Crash Course in
Scaling WordPress
or: let me at least
show you what is possible
(in 8 minutes)
A Crash Course in
Scaling WordPress
or: let me at least
show you what is possible
(in 8 minutes)
[and then I'll take questions]
• Andrew Nacin
• Lead Developer for WordPress
• Washington, D.C.
• Work for WP founder Matt Mullenweg
(Don't work for Automattic or WP.com)
• Full time on WordPress (the project)
and WordPress.org (the site)
WordPress can scale
(no, really!)
WordPress can scale
(and it's easy!)
nginx
nginx
nginx
nginx
nginx
nginx
(with PHP-FPM)
• nginx is a web server (like Apache or IIS)
• nginx is better
• nginx is so much better it isn't even funny
• Well-tuned Apache can serve a few hundred
requests a second
• nginx can serve 10,000 requests/sec and up
nginx can be a…
• request router/load balancer (layer 7)
• load balancer(layer 4)
• front end proxy (often proxying to Apache)
• web server (using PHP-FPM)
• cache (fastcgi_cache and proxy_cache)
nginx can be a…
• request router/load balancer (layer 7)
• load balancer(layer 4)
• front end proxy (often proxying to Apache)
• web server (using PHP-FPM)
• cache (fastcgi_cache and proxy_cache)
and it is all of these things for WP.com and WP.org
If you can't switch out Apache
(because reasons)
Try to still still use nginx
as a front-end proxy
and caching layer
At the PHP level:
Use the latest version of PHP
for security and performance
Turn on PHP opcode cache,
also called a PHP accelerator
• APC (until PHP 5.5)
• Zend Optimizer+ (PHP 5.5 and up)
Inside WordPress (Objects)
Enable object caching in WordPress
• stores objects in a key-value store like
APC, Memcached, Redis, and WinCache
– APC for one server, Memcached for multiple
• avoids database queries
• improves speed and performance
• lowers memory consumption
Inside WordPress (DB)
Have multiple database servers?
Use HyperDB by Automattic.
• splitting reads/writes
• master/slave setups
• DB failover
• sharding
• multiple databases
• multiple datacenters (mind blown)
Inside WordPress (Debugging)
• Use the Debug Bar plugin
by the WordPress core team
• It's like Firebug or the Web Inspector,
but for WordPress
• Inspect queries, cache hits, performance
• Watch for errors and deprecated notices
• General debugging
• Look for issues with themes and plugins
Inside WordPress (Page Caching)
• Temporarily Caching entire pages and
serving those pages as fast as possible
– nginx can do most of this for you
• Batcache by Automattic
(You may have also heard of
W3 Total Cache & WP Super Cache)
At the hardware level:
(Solid-State Drives)
SSDs
one server, 10,000 requests/sec
864,000,000
requests a day
• nacin@wordpress.org
• Questions?
1 of 25

Recommended

WordPress.org & Optimizing Security for your WordPress sites by
WordPress.org & Optimizing Security for your WordPress sitesWordPress.org & Optimizing Security for your WordPress sites
WordPress.org & Optimizing Security for your WordPress sitesGovLoop
12.9K views18 slides
Save Time by Managing WordPress from the Command Line by
Save Time by Managing WordPress from the Command LineSave Time by Managing WordPress from the Command Line
Save Time by Managing WordPress from the Command LineShawn Hooper
2.9K views31 slides
WP-CLI - WordCamp Miami 2015 by
WP-CLI - WordCamp Miami 2015WP-CLI - WordCamp Miami 2015
WP-CLI - WordCamp Miami 2015Shawn Hooper
1.7K views33 slides
WP-CLI Talk from WordCamp Montreal by
WP-CLI Talk from WordCamp MontrealWP-CLI Talk from WordCamp Montreal
WP-CLI Talk from WordCamp MontrealShawn Hooper
954 views33 slides
Anthony Somerset - Site Speed = Success! by
Anthony Somerset - Site Speed = Success!Anthony Somerset - Site Speed = Success!
Anthony Somerset - Site Speed = Success!WordCamp Cape Town
990 views19 slides
Managing Multisite: Lessons from a Large Network by
Managing Multisite: Lessons from a Large NetworkManaging Multisite: Lessons from a Large Network
Managing Multisite: Lessons from a Large NetworkWilliam Earnhardt
2.3K views24 slides

More Related Content

What's hot

High Performance WordPress - WordCamp Jerusalem 2010 by
High Performance WordPress - WordCamp Jerusalem 2010High Performance WordPress - WordCamp Jerusalem 2010
High Performance WordPress - WordCamp Jerusalem 2010Barry Abrahamson
1.4K views82 slides
10 things every developer should know about their database to run word press ... by
10 things every developer should know about their database to run word press ...10 things every developer should know about their database to run word press ...
10 things every developer should know about their database to run word press ...Otto Kekäläinen
5.7K views23 slides
Working in harmony by
Working in harmonyWorking in harmony
Working in harmonyEdmund Turbin
2.4K views39 slides
Don't worry with bower by
Don't worry with bowerDon't worry with bower
Don't worry with bowerFrank van der Linden
1.4K views20 slides
ServerBeach and WordPress BlogWorldExpo 2007 by
ServerBeach and WordPress BlogWorldExpo 2007ServerBeach and WordPress BlogWorldExpo 2007
ServerBeach and WordPress BlogWorldExpo 2007Barry Abrahamson
4.3K views14 slides
High Performance WordPress by
High Performance WordPressHigh Performance WordPress
High Performance WordPressBarry Abrahamson
16.4K views13 slides

What's hot(20)

High Performance WordPress - WordCamp Jerusalem 2010 by Barry Abrahamson
High Performance WordPress - WordCamp Jerusalem 2010High Performance WordPress - WordCamp Jerusalem 2010
High Performance WordPress - WordCamp Jerusalem 2010
Barry Abrahamson1.4K views
10 things every developer should know about their database to run word press ... by Otto Kekäläinen
10 things every developer should know about their database to run word press ...10 things every developer should know about their database to run word press ...
10 things every developer should know about their database to run word press ...
Otto Kekäläinen5.7K views
ServerBeach and WordPress BlogWorldExpo 2007 by Barry Abrahamson
ServerBeach and WordPress BlogWorldExpo 2007ServerBeach and WordPress BlogWorldExpo 2007
ServerBeach and WordPress BlogWorldExpo 2007
Barry Abrahamson4.3K views
Production optimization with React and Webpack by k88hudson
Production optimization with React and WebpackProduction optimization with React and Webpack
Production optimization with React and Webpack
k88hudson6.4K views
Liz Quilty – Security, Scaling & High End Hosting for WordPress sites by WordCamp New Zealand
Liz Quilty – Security, Scaling & High End Hosting for WordPress sitesLiz Quilty – Security, Scaling & High End Hosting for WordPress sites
Liz Quilty – Security, Scaling & High End Hosting for WordPress sites
How to make your Webpack builds 10x faster by trueter
How to make your Webpack builds 10x fasterHow to make your Webpack builds 10x faster
How to make your Webpack builds 10x faster
trueter22.1K views
Introducing WordPress Multitenancy (Wordcamp Vegas/Orlando 2015/WPCampus) by Cliff Seal
Introducing WordPress Multitenancy (Wordcamp Vegas/Orlando 2015/WPCampus)Introducing WordPress Multitenancy (Wordcamp Vegas/Orlando 2015/WPCampus)
Introducing WordPress Multitenancy (Wordcamp Vegas/Orlando 2015/WPCampus)
Cliff Seal6.3K views
Using WebSockets with ColdFusion by cfjedimaster
Using WebSockets with ColdFusionUsing WebSockets with ColdFusion
Using WebSockets with ColdFusion
cfjedimaster2.6K views
Take home your very own free Vagrant CFML Dev Environment - Presented at dev.... by Gavin Pickin
Take home your very own free Vagrant CFML Dev Environment - Presented at dev....Take home your very own free Vagrant CFML Dev Environment - Presented at dev....
Take home your very own free Vagrant CFML Dev Environment - Presented at dev....
Gavin Pickin539 views
Roy foubister (hosting high traffic sites on a tight budget) by WordCamp Cape Town
Roy foubister (hosting high traffic sites on a tight budget)Roy foubister (hosting high traffic sites on a tight budget)
Roy foubister (hosting high traffic sites on a tight budget)
WordCamp Cape Town2.5K views
WordPress Development with VVV, VV, and Vagrant by Mitch Canter
WordPress Development with VVV, VV, and VagrantWordPress Development with VVV, VV, and Vagrant
WordPress Development with VVV, VV, and Vagrant
Mitch Canter3.4K views
Webpack and Web Performance Optimization by Chen-Tien Tsai
Webpack and Web Performance OptimizationWebpack and Web Performance Optimization
Webpack and Web Performance Optimization
Chen-Tien Tsai1.5K views
Getting Started With WP REST API by Kishor Kumar
Getting Started With WP REST APIGetting Started With WP REST API
Getting Started With WP REST API
Kishor Kumar1.3K views
Word camp2011 introwordpresssecurity by David Wilemski
Word camp2011 introwordpresssecurityWord camp2011 introwordpresssecurity
Word camp2011 introwordpresssecurity
David Wilemski709 views
Command Line WordPress with WP-CLI - WordPress Perth User Group by James Collins
Command Line WordPress with WP-CLI - WordPress Perth User GroupCommand Line WordPress with WP-CLI - WordPress Perth User Group
Command Line WordPress with WP-CLI - WordPress Perth User Group
James Collins15K views

Similar to A crash course in scaling wordpress

DrupalCampLA 2014 - Drupal backend performance and scalability by
DrupalCampLA 2014 - Drupal backend performance and scalabilityDrupalCampLA 2014 - Drupal backend performance and scalability
DrupalCampLA 2014 - Drupal backend performance and scalabilitycherryhillco
1K views53 slides
Caching 101 by
Caching 101Caching 101
Caching 101Andy Melichar
262 views41 slides
Improve WordPress performance with caching and deferred execution of code by
Improve WordPress performance with caching and deferred execution of codeImprove WordPress performance with caching and deferred execution of code
Improve WordPress performance with caching and deferred execution of codeDanilo Ercoli
2.9K views29 slides
Scaling wordpress for high traffic by
Scaling wordpress for high trafficScaling wordpress for high traffic
Scaling wordpress for high trafficRoshan Bhattarai
1.9K views15 slides
Roshan Bhattarai: Scaling WordPress for high traffic sites by
Roshan Bhattarai: Scaling WordPress for high traffic sitesRoshan Bhattarai: Scaling WordPress for high traffic sites
Roshan Bhattarai: Scaling WordPress for high traffic siteswpnepal
2.4K views15 slides
EECI 2013 - ExpressionEngine Performance & Optimization - Laying a Solid Foun... by
EECI 2013 - ExpressionEngine Performance & Optimization - Laying a Solid Foun...EECI 2013 - ExpressionEngine Performance & Optimization - Laying a Solid Foun...
EECI 2013 - ExpressionEngine Performance & Optimization - Laying a Solid Foun...Nexcess.net LLC
2.4K views35 slides

Similar to A crash course in scaling wordpress (20)

DrupalCampLA 2014 - Drupal backend performance and scalability by cherryhillco
DrupalCampLA 2014 - Drupal backend performance and scalabilityDrupalCampLA 2014 - Drupal backend performance and scalability
DrupalCampLA 2014 - Drupal backend performance and scalability
cherryhillco1K views
Improve WordPress performance with caching and deferred execution of code by Danilo Ercoli
Improve WordPress performance with caching and deferred execution of codeImprove WordPress performance with caching and deferred execution of code
Improve WordPress performance with caching and deferred execution of code
Danilo Ercoli2.9K views
Scaling wordpress for high traffic by Roshan Bhattarai
Scaling wordpress for high trafficScaling wordpress for high traffic
Scaling wordpress for high traffic
Roshan Bhattarai1.9K views
Roshan Bhattarai: Scaling WordPress for high traffic sites by wpnepal
Roshan Bhattarai: Scaling WordPress for high traffic sitesRoshan Bhattarai: Scaling WordPress for high traffic sites
Roshan Bhattarai: Scaling WordPress for high traffic sites
wpnepal2.4K views
EECI 2013 - ExpressionEngine Performance & Optimization - Laying a Solid Foun... by Nexcess.net LLC
EECI 2013 - ExpressionEngine Performance & Optimization - Laying a Solid Foun...EECI 2013 - ExpressionEngine Performance & Optimization - Laying a Solid Foun...
EECI 2013 - ExpressionEngine Performance & Optimization - Laying a Solid Foun...
Nexcess.net LLC2.4K views
Drupalcamp Estonia - High Performance Sites by Exove
Drupalcamp Estonia - High Performance SitesDrupalcamp Estonia - High Performance Sites
Drupalcamp Estonia - High Performance Sites
Exove1.1K views
Drupalcamp Estonia - High Performance Sites by drupalcampest
Drupalcamp Estonia - High Performance SitesDrupalcamp Estonia - High Performance Sites
Drupalcamp Estonia - High Performance Sites
drupalcampest865 views
Optimizing WordPress - WordPress SF Meetup April 2012 by Ben Metcalfe
Optimizing WordPress -  WordPress SF Meetup April 2012Optimizing WordPress -  WordPress SF Meetup April 2012
Optimizing WordPress - WordPress SF Meetup April 2012
Ben Metcalfe3.1K views
Site Performance - From Pinto to Ferrari by Joseph Scott
Site Performance - From Pinto to FerrariSite Performance - From Pinto to Ferrari
Site Performance - From Pinto to Ferrari
Joseph Scott3.5K views
Host and Boast: Best Practices for Magento Hosting | Imagine 2013 Technolog… by Atwix
Host and Boast: Best Practices for Magento Hosting | Imagine 2013 Technolog…Host and Boast: Best Practices for Magento Hosting | Imagine 2013 Technolog…
Host and Boast: Best Practices for Magento Hosting | Imagine 2013 Technolog…
Atwix1K views
Optimizing WordPress for Performance - WordCamp Houston by Chris Olbekson
Optimizing WordPress for Performance - WordCamp HoustonOptimizing WordPress for Performance - WordCamp Houston
Optimizing WordPress for Performance - WordCamp Houston
Chris Olbekson605 views
Drupal caching by Exove
Drupal cachingDrupal caching
Drupal caching
Exove2.2K views
DrupalCampLA 2011: Drupal backend-performance by Ashok Modi
DrupalCampLA 2011: Drupal backend-performanceDrupalCampLA 2011: Drupal backend-performance
DrupalCampLA 2011: Drupal backend-performance
Ashok Modi3.8K views
Site Speed = Success – Optimising WordPress from the Server Up - Presented by... by WordCamp Harare
Site Speed = Success – Optimising WordPress from the Server Up - Presented by...Site Speed = Success – Optimising WordPress from the Server Up - Presented by...
Site Speed = Success – Optimising WordPress from the Server Up - Presented by...
WordCamp Harare187 views

More from GovLoop

How is GovLoop Transforming Learning for Government? by
How is GovLoop Transforming Learning for Government?How is GovLoop Transforming Learning for Government?
How is GovLoop Transforming Learning for Government?GovLoop
2.4K views26 slides
Teaching vs learning by
Teaching vs learningTeaching vs learning
Teaching vs learningGovLoop
10.4K views23 slides
Next Gen: Critical Conversations Slide Deck by
Next Gen: Critical Conversations Slide DeckNext Gen: Critical Conversations Slide Deck
Next Gen: Critical Conversations Slide DeckGovLoop
1.3K views26 slides
Internet of Things: Lightning Round, Sargent by
Internet of Things: Lightning Round, SargentInternet of Things: Lightning Round, Sargent
Internet of Things: Lightning Round, SargentGovLoop
1.5K views8 slides
Internet of Things: Lightning Round, Ronzio by
Internet of Things: Lightning Round, RonzioInternet of Things: Lightning Round, Ronzio
Internet of Things: Lightning Round, RonzioGovLoop
1K views6 slides
Internet of Things: Lightning Round, Hite by
Internet of Things: Lightning Round, HiteInternet of Things: Lightning Round, Hite
Internet of Things: Lightning Round, HiteGovLoop
1.2K views22 slides

More from GovLoop(20)

How is GovLoop Transforming Learning for Government? by GovLoop
How is GovLoop Transforming Learning for Government?How is GovLoop Transforming Learning for Government?
How is GovLoop Transforming Learning for Government?
GovLoop2.4K views
Teaching vs learning by GovLoop
Teaching vs learningTeaching vs learning
Teaching vs learning
GovLoop10.4K views
Next Gen: Critical Conversations Slide Deck by GovLoop
Next Gen: Critical Conversations Slide DeckNext Gen: Critical Conversations Slide Deck
Next Gen: Critical Conversations Slide Deck
GovLoop1.3K views
Internet of Things: Lightning Round, Sargent by GovLoop
Internet of Things: Lightning Round, SargentInternet of Things: Lightning Round, Sargent
Internet of Things: Lightning Round, Sargent
GovLoop1.5K views
Internet of Things: Lightning Round, Ronzio by GovLoop
Internet of Things: Lightning Round, RonzioInternet of Things: Lightning Round, Ronzio
Internet of Things: Lightning Round, Ronzio
GovLoop1K views
Internet of Things: Lightning Round, Hite by GovLoop
Internet of Things: Lightning Round, HiteInternet of Things: Lightning Round, Hite
Internet of Things: Lightning Round, Hite
GovLoop1.2K views
Internet of Things: Lightning Round, Fritzinger by GovLoop
Internet of Things: Lightning Round, FritzingerInternet of Things: Lightning Round, Fritzinger
Internet of Things: Lightning Round, Fritzinger
GovLoop781 views
Internet of Things: Lightning Round, McKinney by GovLoop
Internet of Things: Lightning Round, McKinneyInternet of Things: Lightning Round, McKinney
Internet of Things: Lightning Round, McKinney
GovLoop864 views
Internet of Things: Government Keynote, Randy Garrett by GovLoop
Internet of Things: Government Keynote, Randy GarrettInternet of Things: Government Keynote, Randy Garrett
Internet of Things: Government Keynote, Randy Garrett
GovLoop1.8K views
Leap Not Creep Participant Guide Pre-Course Through Week 3 - 20140722 by GovLoop
Leap Not Creep Participant Guide Pre-Course Through Week 3 - 20140722Leap Not Creep Participant Guide Pre-Course Through Week 3 - 20140722
Leap Not Creep Participant Guide Pre-Course Through Week 3 - 20140722
GovLoop970 views
Week Three by GovLoop
Week ThreeWeek Three
Week Three
GovLoop672 views
FHWA Week Two by GovLoop
FHWA Week TwoFHWA Week Two
FHWA Week Two
GovLoop517 views
Building Powerful Outreach - Executive Research Brief by GovLoop
Building Powerful Outreach - Executive Research BriefBuilding Powerful Outreach - Executive Research Brief
Building Powerful Outreach - Executive Research Brief
GovLoop1.2K views
Turning Big Data into Big Decisions by GovLoop
Turning Big Data into Big DecisionsTurning Big Data into Big Decisions
Turning Big Data into Big Decisions
GovLoop1.1K views
Examining the Big Data Frontier by GovLoop
Examining the Big Data FrontierExamining the Big Data Frontier
Examining the Big Data Frontier
GovLoop1.1K views
The Need for NoSQL - MarkLogic by GovLoop
The Need for NoSQL - MarkLogicThe Need for NoSQL - MarkLogic
The Need for NoSQL - MarkLogic
GovLoop1K views
Capitalizing on the Cloud by GovLoop
Capitalizing on the CloudCapitalizing on the Cloud
Capitalizing on the Cloud
GovLoop954 views
Build Better Virtual Events & Training for your Agency by GovLoop
Build Better Virtual Events & Training for your AgencyBuild Better Virtual Events & Training for your Agency
Build Better Virtual Events & Training for your Agency
GovLoop1.1K views
Social Media Presentation for The Center for Organizational Effectiveness by GovLoop
Social Media Presentation for The Center for Organizational EffectivenessSocial Media Presentation for The Center for Organizational Effectiveness
Social Media Presentation for The Center for Organizational Effectiveness
GovLoop1.9K views
Guide to Managing the Presidential Management Fellows (PMF) Application Proce... by GovLoop
Guide to Managing the Presidential Management Fellows (PMF) Application Proce...Guide to Managing the Presidential Management Fellows (PMF) Application Proce...
Guide to Managing the Presidential Management Fellows (PMF) Application Proce...
GovLoop9.8K views

Recently uploaded

DRBD Deep Dive - Philipp Reisner - LINBIT by
DRBD Deep Dive - Philipp Reisner - LINBITDRBD Deep Dive - Philipp Reisner - LINBIT
DRBD Deep Dive - Philipp Reisner - LINBITShapeBlue
110 views21 slides
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T by
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&TCloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&TShapeBlue
81 views34 slides
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLive by
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLiveAutomating a World-Class Technology Conference; Behind the Scenes of CiscoLive
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLiveNetwork Automation Forum
49 views35 slides
Extending KVM Host HA for Non-NFS Storage - Alex Ivanov - StorPool by
Extending KVM Host HA for Non-NFS Storage -  Alex Ivanov - StorPoolExtending KVM Host HA for Non-NFS Storage -  Alex Ivanov - StorPool
Extending KVM Host HA for Non-NFS Storage - Alex Ivanov - StorPoolShapeBlue
56 views10 slides
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P... by
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...ShapeBlue
120 views62 slides
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue by
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlueMigrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlueShapeBlue
147 views20 slides

Recently uploaded(20)

DRBD Deep Dive - Philipp Reisner - LINBIT by ShapeBlue
DRBD Deep Dive - Philipp Reisner - LINBITDRBD Deep Dive - Philipp Reisner - LINBIT
DRBD Deep Dive - Philipp Reisner - LINBIT
ShapeBlue110 views
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T by ShapeBlue
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&TCloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T
ShapeBlue81 views
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLive by Network Automation Forum
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLiveAutomating a World-Class Technology Conference; Behind the Scenes of CiscoLive
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLive
Extending KVM Host HA for Non-NFS Storage - Alex Ivanov - StorPool by ShapeBlue
Extending KVM Host HA for Non-NFS Storage -  Alex Ivanov - StorPoolExtending KVM Host HA for Non-NFS Storage -  Alex Ivanov - StorPool
Extending KVM Host HA for Non-NFS Storage - Alex Ivanov - StorPool
ShapeBlue56 views
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P... by ShapeBlue
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...
ShapeBlue120 views
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue by ShapeBlue
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlueMigrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue
ShapeBlue147 views
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or... by ShapeBlue
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...
ShapeBlue128 views
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha... by ShapeBlue
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...
ShapeBlue113 views
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f... by TrustArc
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...
TrustArc130 views
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda... by ShapeBlue
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...
ShapeBlue93 views
Why and How CloudStack at weSystems - Stephan Bienek - weSystems by ShapeBlue
Why and How CloudStack at weSystems - Stephan Bienek - weSystemsWhy and How CloudStack at weSystems - Stephan Bienek - weSystems
Why and How CloudStack at weSystems - Stephan Bienek - weSystems
ShapeBlue172 views
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue by ShapeBlue
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlueElevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue
ShapeBlue149 views
Igniting Next Level Productivity with AI-Infused Data Integration Workflows by Safe Software
Igniting Next Level Productivity with AI-Infused Data Integration Workflows Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Safe Software373 views
2FA and OAuth2 in CloudStack - Andrija Panić - ShapeBlue by ShapeBlue
2FA and OAuth2 in CloudStack - Andrija Panić - ShapeBlue2FA and OAuth2 in CloudStack - Andrija Panić - ShapeBlue
2FA and OAuth2 in CloudStack - Andrija Panić - ShapeBlue
ShapeBlue75 views
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue by ShapeBlue
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlueWhat’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue
ShapeBlue191 views
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas... by Bernd Ruecker
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
Bernd Ruecker50 views
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N... by James Anderson
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
James Anderson142 views
KVM Security Groups Under the Hood - Wido den Hollander - Your.Online by ShapeBlue
KVM Security Groups Under the Hood - Wido den Hollander - Your.OnlineKVM Security Groups Under the Hood - Wido den Hollander - Your.Online
KVM Security Groups Under the Hood - Wido den Hollander - Your.Online
ShapeBlue154 views

A crash course in scaling wordpress

  • 1. A Crash Course in Scaling WordPress
  • 2. A Crash Course in Scaling WordPress or: let me at least show you what is possible (in 8 minutes)
  • 3. A Crash Course in Scaling WordPress or: let me at least show you what is possible (in 8 minutes)
  • 4. A Crash Course in Scaling WordPress or: let me at least show you what is possible (in 8 minutes) [and then I'll take questions]
  • 5. • Andrew Nacin • Lead Developer for WordPress • Washington, D.C. • Work for WP founder Matt Mullenweg (Don't work for Automattic or WP.com) • Full time on WordPress (the project) and WordPress.org (the site)
  • 10. nginx
  • 11. nginx
  • 12. nginx
  • 14. • nginx is a web server (like Apache or IIS) • nginx is better • nginx is so much better it isn't even funny • Well-tuned Apache can serve a few hundred requests a second • nginx can serve 10,000 requests/sec and up
  • 15. nginx can be a… • request router/load balancer (layer 7) • load balancer(layer 4) • front end proxy (often proxying to Apache) • web server (using PHP-FPM) • cache (fastcgi_cache and proxy_cache)
  • 16. nginx can be a… • request router/load balancer (layer 7) • load balancer(layer 4) • front end proxy (often proxying to Apache) • web server (using PHP-FPM) • cache (fastcgi_cache and proxy_cache) and it is all of these things for WP.com and WP.org
  • 17. If you can't switch out Apache (because reasons) Try to still still use nginx as a front-end proxy and caching layer
  • 18. At the PHP level: Use the latest version of PHP for security and performance Turn on PHP opcode cache, also called a PHP accelerator • APC (until PHP 5.5) • Zend Optimizer+ (PHP 5.5 and up)
  • 19. Inside WordPress (Objects) Enable object caching in WordPress • stores objects in a key-value store like APC, Memcached, Redis, and WinCache – APC for one server, Memcached for multiple • avoids database queries • improves speed and performance • lowers memory consumption
  • 20. Inside WordPress (DB) Have multiple database servers? Use HyperDB by Automattic. • splitting reads/writes • master/slave setups • DB failover • sharding • multiple databases • multiple datacenters (mind blown)
  • 21. Inside WordPress (Debugging) • Use the Debug Bar plugin by the WordPress core team • It's like Firebug or the Web Inspector, but for WordPress • Inspect queries, cache hits, performance • Watch for errors and deprecated notices • General debugging • Look for issues with themes and plugins
  • 22. Inside WordPress (Page Caching) • Temporarily Caching entire pages and serving those pages as fast as possible – nginx can do most of this for you • Batcache by Automattic (You may have also heard of W3 Total Cache & WP Super Cache)
  • 23. At the hardware level: (Solid-State Drives) SSDs
  • 24. one server, 10,000 requests/sec 864,000,000 requests a day