6. WordPress.com
Launched in August 2005
~13.5 million sites and 16 million users today
Over 2 billion HTTP requests per day
7. WordPress.com
Launched in August 2005
~13.5 million sites and 16 million users today
Over 2 billion HTTP requests per day
Billions of MySQL queries per month
8. WordPress.com
Launched in August 2005
~13.5 million sites and 16 million users today
Over 2 billion HTTP requests per day
Billions of MySQL queries per month
500TB of bandwidth per week
23. Client Side Performance
80%+ of the total load time
Tools
YSlow - http://developer.yahoo.com/yslow/
24. Client Side Performance
80%+ of the total load time
Tools
YSlow - http://developer.yahoo.com/yslow/
Page Speed - http://code.google.com/speed/
page-speed/
46. Server Side Performance
Tools
MySQL Slow query log
http://www.maatkit.org/doc/mk-query-digest.html
Strace / lsof / gdb
47. Server Side Performance
Tools
MySQL Slow query log
http://www.maatkit.org/doc/mk-query-digest.html
Strace / lsof / gdb
Many times plugins are the culprit.
50. As a User
Make sure you are running the latest WordPress!
51. As a User
Make sure you are running the latest WordPress!
Constant performance improvements being made.
Many from things found on WordPress.com
52. As a User
Make sure you are running the latest WordPress!
Constant performance improvements being made.
Many from things found on WordPress.com
Show a reasonable number of posts per page. 10-25
seems to be good
53. As a User
Make sure you are running the latest WordPress!
Constant performance improvements being made.
Many from things found on WordPress.com
Show a reasonable number of posts per page. 10-25
seems to be good
Monitor site performance
57. As a Sysadmin
Opcode cache (APC)
Caching plugins (Batcache, WP super cache)
Make sure you are running the latest PHP
58. As a Sysadmin
Opcode cache (APC)
Caching plugins (Batcache, WP super cache)
Make sure you are running the latest PHP
HipHop
59. As a Sysadmin
Opcode cache (APC)
Caching plugins (Batcache, WP super cache)
Make sure you are running the latest PHP
HipHop
Apache + mod_php < Nginx + php-fpm.
71. 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
73. As a Developer
Only perform write operations when needed. Example
is flushing rewrite rules on every page load
74. As a Developer
Only perform write operations when needed. Example
is flushing rewrite rules on every page load
Use WordPress functions when possible.
78. Scaling Tips
Most things you do to scale WordPress apply to
any web app
79. Scaling Tips
Most things you do to scale WordPress apply to
any web app
If your bottleneck is the database, something is
wrong
80. Scaling Tips
Most 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
81. Scaling Tips
Most 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