The document discusses optimizing WordPress for high performance. It provides recommendations for services installation including Nginx, PHP-FPM, APC, MySQL, and Memcached. It also gives configuration details for Nginx, PHP-FPM, APC, MySQL, and caching. Benchmarks show a significant performance increase when applying optimizations like APC caching. The presentation concludes by discussing scaling to larger implementations using load balancers, caching servers, and a master-slave database setup.
9. MySQL Configuration
/etc/mysql/my.cnf
key_buffer = 256M
sort_buffer_size = 4M
read_buffer_size = 4M
innodb_buffer_pool_size = 256M
innodb_log_buffer_size = 8M
tmp_table_size = 32M
max_heap_table_size = 32M
table_cache = 128
thread_cache = 64
query_cache_type = 1
query_cache_limit = 1M
query_cache_size = 32M
InnoDB - for tables with lots of reads and writes
mysqlreport - inspect important MySQL status values
Saturday, August 4, 12
10. Optimizing your
WordPress Install
‣ Keep it up to date
‣ Avoid unnecessary plugins
‣ Avoid slow plugins
http://wordpress.org/extend/plugins/p3-profiler
Saturday, August 4, 12
11. Caching
Memcached Object Cache
http://wordpress.org/extend/plugins/memcached/
WP Super Cache
http://wordpress.org/extend/plugins/wp-super-cache/
‣ Custom permalinks, like /%year/%monthnum%/%postname%/
‣ Enable all the recommended settings
Saturday, August 4, 12
12. Benchmarks
Virtual machine on a laptop, using Apache Benchmark (ab):
Without APC
11.07 REQUESTS/SEC
With APC
48.39 REQUESTS/SEC
With APC and Caching
16,140.70 REQUESTS/SEC
Saturday, August 4, 12
13. At a Larger Scale
INTERNET
Load Balancers
Web Servers Caching Servers Web Servers
Memcached
Master-Slave MySQL
Saturday, August 4, 12
14. Questions?
HIGH PERFORMANCE
WordPress
Saturday, August 4, 12
15. Iliya
Polihronov
Systems Wrangler
Automattic
polihronov.wordpress.com
slideshare.net/vnsavage
@vnsavage
Saturday, August 4, 12