SlideShare a Scribd company logo
High Performance
  WordPress II
     Fast and secure
What I LOVE About
  WordPress
About Me

• Barry Abrahamson
• Systems Wrangler, Automattic
• http://barry.wordpress.com/contact-me/
WordPress.com
WordPress.com

• Launched in August 2005
WordPress.com

• Launched in August 2005
• ~9 million blogs today
WordPress.com

• Launched in August 2005
• ~9 million blogs today
• Billions of HTTP requests per day
WordPress.com

• Launched in August 2005
• ~9 million blogs today
• Billions of HTTP requests per day
• Billions of MySQL queries per month
What is Performance?
What is Performance?

• Fast
What is Performance?

• Fast
• Scalable
What is Performance?

• Fast
• Scalable
• Secure
Lifecycle
Lifecycle

• Shared hosting ( 95% )
Lifecycle

• Shared hosting ( 95% )
• VPS (Virtual Private Server) ( < 5% )
Lifecycle

• Shared hosting ( 95% )
• VPS (Virtual Private Server) ( < 5% )
• Dedicated Server ( < 2% )
Lifecycle

• Shared hosting ( 95% )
• VPS (Virtual Private Server) ( < 5% )
• Dedicated Server ( < 2% )
• 2 Dedicated Servers ( < 1% )
Lifecycle

• Shared hosting ( 95% )
• VPS (Virtual Private Server) ( < 5% )
• Dedicated Server ( < 2% )
• 2 Dedicated Servers ( < 1% )
• > 2 Dedicated Servers ( < 1% )
Upgrade!
Shared Hosting
Shared Hosting

• FTP access (maybe SSH/SFTP)
Shared Hosting

• FTP access (maybe SSH/SFTP)
• No server management overhead
Shared Hosting

• FTP access (maybe SSH/SFTP)
• No server management overhead
• Less control and fewer options
Shared Hosting

• FTP access (maybe SSH/SFTP)
• No server management overhead
• Less control and fewer options
• Cheap! ($4 - $20/month)
Shared Hosting
Shared Hosting

• Run the latest version of WordPress (easy)
Shared Hosting

• Run the latest version of WordPress (easy)
• http://wordpress.org/hosting/
Shared Hosting

• Run the latest version of WordPress (easy)
• http://wordpress.org/hosting/
• Plugins and Themes directory - http://
  wordpress.org/extend/
Shared Hosting
Shared Hosting

• WP Super Cache
Shared Hosting

• WP Super Cache
• 25 - 50x capacity/throughput increase
Shared Hosting

• WP Super Cache
• 25 - 50x capacity/throughput increase
• Digg, Slashdot,Yahoo Buzz
VPS
VPS
• Virtual Private Server
VPS
• Virtual Private Server
• Between shared and dedicated
VPS
• Virtual Private Server
• Between shared and dedicated
• Specific resources allocated to you (good
  and bad)
VPS
• Virtual Private Server
• Between shared and dedicated
• Specific resources allocated to you (good
  and bad)
• Usually have shell “root” access
VPS
• Virtual Private Server
• Between shared and dedicated
• Specific resources allocated to you (good
  and bad)
• Usually have shell “root” access
• $20 - $50 / month
VPS
VPS
• Run the latest version of WordPress
VPS
• Run the latest version of WordPress
• WP Super Cache
VPS
• Run the latest version of WordPress
• WP Super Cache
• PHP Opcode Cache (APC)
VPS
• Run the latest version of WordPress
• WP Super Cache
• PHP Opcode Cache (APC)
• WordPress persistent object cache
VPS

• Apache alternatives
• CDN
Apache + mod_php
1 request requiring php

• Using mod_php, php
  is loaded for every
  request even if not
  needed
• Most scaling
  problems are because
  of this
VPS
VPS

• Apache alternatives
VPS

• Apache alternatives
• CDN
VPS

• Apache alternatives
• CDN
• W3 Total Cache
VPS

• Apache alternatives
• CDN
• W3 Total Cache
• MySQL tweaking ( http://
  blog.mysqltuner.com/ )
Dedicated Server
Dedicated Server

• Full control
Dedicated Server

• Full control
• Lots of responsibility
Dedicated Server

• Full control
• Lots of responsibility
• Sysadmining required
Dedicated Server

• Full control
• Lots of responsibility
• Sysadmining required
• Can be expensive ($100 - $1000 /month)
2 Servers
2 Servers
• Relatively easy to implement
2 Servers
• Relatively easy to implement
• 1 web server, 1 database server
2 Servers
• Relatively easy to implement
• 1 web server, 1 database server
• Web + database on each
2 Servers
• Relatively easy to implement
• 1 web server, 1 database server
• Web + database on each
• Isolated resources
2 Servers
• Relatively easy to implement
• 1 web server, 1 database server
• Web + database on each
• Isolated resources
• Same as single server from an application
  perspective but now you have to worry
  about network bottlenecks
Server Farm
Server Farm

• HyperDB
Server Farm

• HyperDB
• Object cache with memcached backend
Server Farm

• HyperDB
• Object cache with memcached backend
• Can’t use file-based caches anymore
Server Farm

• HyperDB
• Object cache with memcached backend
• Can’t use file-based caches anymore
• Nananana...Batcache
Server Farm
Server Farm
• Load Balancer - nginx
Server Farm
• Load Balancer - nginx
• Web Server - nginx
Server Farm
• Load Balancer - nginx
• Web Server - nginx
• PHP - php-fpm (now an official PHP
  project!)
Server Farm
• Load Balancer - nginx
• Web Server - nginx
• PHP - php-fpm (now an official PHP
  project!)
• Database - Basic MySQL replication, leave
  all the complicated stuff to HyperDB.
Server Farm
Server Farm

• High availability using spread and
  wackamole
Server Farm

• High availability using spread and
  wackamole
• Scaling from 3 to 300 is relatively easy
  compared to scaling from 2 to 3.
WordPress.com

• ~ 850 servers in 3 datacenters
• ~ 350 web servers
• ~ 300 database servers
• ~ 60 memcached servers (800GB of RAM)
Real World Numbers

• APC
 • Empty cache - 33.5 MB RAM
 • Primed cache - 6.2 MB RAM
 • 60% reduction in CPU utilization
   • 210 8-core servers on WordPress.com
Scaling Tips
Scaling Tips
• Most (all) things you do to scale WordPress
  apply to any web app
Scaling Tips
• Most (all) things you do to scale WordPress
  apply to any web app
• If your bottleneck is the database,
  something is wrong
Scaling Tips
• Most (all) things you do to scale WordPress
  apply to any web app
• If your bottleneck is the database,
  something is wrong
• Measure twice, cut once, measure again
Scaling Tips
• Most (all) things you do to scale WordPress
  apply to any web app
• If your bottleneck is the database,
  something is wrong
• Measure twice, cut once, measure again
• Don’t optimize if you don’t need to
Questions?

More Related Content

ZIP
High Performance WordPress - WordCamp Jerusalem 2010
PPT
ServerBeach and WordPress BlogWorldExpo 2007
PPT
High Performance WordPress
PDF
SSDs are Awesome
KEY
Drupal High Availability High Performance 2012
PPTX
Optimizing Your WordPress Site
PPTX
Speeding Up WordPress sites
PPTX
A crash course in scaling wordpress
High Performance WordPress - WordCamp Jerusalem 2010
ServerBeach and WordPress BlogWorldExpo 2007
High Performance WordPress
SSDs are Awesome
Drupal High Availability High Performance 2012
Optimizing Your WordPress Site
Speeding Up WordPress sites
A crash course in scaling wordpress

What's hot (20)

PPTX
WordPress.org & Optimizing Security for your WordPress sites
PDF
Web agencies: An analysis of the OVH infrastructure to optimise your web proj...
PPTX
Caching 101
PPTX
Ithemes presentation
PPTX
Presentation1
PDF
WordCamp RVA 2011 - Performance & Tuning
PPTX
Optimizing WordPress (WordCamp Philly 2011)
PDF
Save Time by Managing WordPress from the Command Line
PDF
WP-CLI - WordCamp Miami 2015
PDF
High Performance - Joomla!Days NL 2009 #jd09nl
PPTX
Speed Up WordPress Websites - Part 1 - WordPress Cairo Meetup
PPT
Roy foubister (hosting high traffic sites on a tight budget)
PDF
Wordpress -> Middleman: Lesson learned in the 2-years since migrating
PDF
EasyEngine - Command-Line tool to manage WordPress Sites on Nginx
PDF
Isomorphic WordPress Applications with NodeifyWP
PPTX
WordPress + NGINX Best Practices with EasyEngine
PPTX
Best Practices for WordPress in Enterprise
PPTX
Anthony Somerset - Site Speed = Success!
PDF
Speeding up your WordPress Site - WordCamp Toronto 2015
PDF
Cdn slides
WordPress.org & Optimizing Security for your WordPress sites
Web agencies: An analysis of the OVH infrastructure to optimise your web proj...
Caching 101
Ithemes presentation
Presentation1
WordCamp RVA 2011 - Performance & Tuning
Optimizing WordPress (WordCamp Philly 2011)
Save Time by Managing WordPress from the Command Line
WP-CLI - WordCamp Miami 2015
High Performance - Joomla!Days NL 2009 #jd09nl
Speed Up WordPress Websites - Part 1 - WordPress Cairo Meetup
Roy foubister (hosting high traffic sites on a tight budget)
Wordpress -> Middleman: Lesson learned in the 2-years since migrating
EasyEngine - Command-Line tool to manage WordPress Sites on Nginx
Isomorphic WordPress Applications with NodeifyWP
WordPress + NGINX Best Practices with EasyEngine
Best Practices for WordPress in Enterprise
Anthony Somerset - Site Speed = Success!
Speeding up your WordPress Site - WordCamp Toronto 2015
Cdn slides
Ad

Similar to High Performance WordPress II (20)

PDF
WordPress hosting & Management: An overview
PPTX
Learn WordPress - Live Session 2 Slides
PDF
WordPress Performance & Scalability
PPTX
Robust WordPress Installation using L2MP Stack
PDF
Setting up a local WordPress development environment
PDF
Make WordPress Fly With Virtual Server Hosting - WordCamp Sydney 2014
PPTX
Moving to the Cloud: AWS, Zend, RightScale
PDF
Scaling WordPress
PDF
Cluster Fudge: Recipes for WordPress in the Cloud (WordCamp Austin 2014 Speaker)
PDF
Cluster Fudge: Recipes for WordPress in the Cloud (WordCamp Austin 2014 Speaker)
PDF
Linux advanced concepts - Part 2
ODP
MNPHP Scalable Architecture 101 - Feb 3 2011
PDF
What is Web Server & It's Types.pdf
PDF
Roshan Bhattarai: Scaling WordPress for high traffic sites
PPTX
Scaling wordpress for high traffic
PPSX
Best wordpress hosting
PDF
Liz Quilty – Security, Scaling & High End Hosting for WordPress sites
ODP
Scalable Architecture 101
PDF
Making WordPress Fly
PDF
MIVA Small Business Conference 2006
WordPress hosting & Management: An overview
Learn WordPress - Live Session 2 Slides
WordPress Performance & Scalability
Robust WordPress Installation using L2MP Stack
Setting up a local WordPress development environment
Make WordPress Fly With Virtual Server Hosting - WordCamp Sydney 2014
Moving to the Cloud: AWS, Zend, RightScale
Scaling WordPress
Cluster Fudge: Recipes for WordPress in the Cloud (WordCamp Austin 2014 Speaker)
Cluster Fudge: Recipes for WordPress in the Cloud (WordCamp Austin 2014 Speaker)
Linux advanced concepts - Part 2
MNPHP Scalable Architecture 101 - Feb 3 2011
What is Web Server & It's Types.pdf
Roshan Bhattarai: Scaling WordPress for high traffic sites
Scaling wordpress for high traffic
Best wordpress hosting
Liz Quilty – Security, Scaling & High End Hosting for WordPress sites
Scalable Architecture 101
Making WordPress Fly
MIVA Small Business Conference 2006
Ad

Recently uploaded (20)

PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
cuic standard and advanced reporting.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
KodekX | Application Modernization Development
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Electronic commerce courselecture one. Pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPT
Teaching material agriculture food technology
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Big Data Technologies - Introduction.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
Chapter 3 Spatial Domain Image Processing.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Dropbox Q2 2025 Financial Results & Investor Presentation
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
cuic standard and advanced reporting.pdf
Empathic Computing: Creating Shared Understanding
Review of recent advances in non-invasive hemoglobin estimation
KodekX | Application Modernization Development
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Reach Out and Touch Someone: Haptics and Empathic Computing
Electronic commerce courselecture one. Pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Teaching material agriculture food technology
Unlocking AI with Model Context Protocol (MCP)
Big Data Technologies - Introduction.pptx
Building Integrated photovoltaic BIPV_UPV.pdf

High Performance WordPress II