“Developing Fast & Scalable Servers For WordPress” will focus on new technologies that power some of the Internet’s biggest WordPress-driven sites. Everything from alternative web servers to WordPress caching will be covered.
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Developing Fast & Scalable Servers For WordPress
1. Developing Fast & Scalable
Servers For WordPress
WordCamp Chicago
Saturday, July 30, 2011
2. ✤ TJ Stein
✤ (mt) Media Temple
✤ Working with WordPress since 2005
✤ @tj_stein
3. Going fast...
✤ Measuring performance
✤ Servers designed for WordPress
✤ Performance: a sign of quality
✤ Virtual Private Servers
✤ Responsibility vs. exibility
5. Going fast...
✤ Measuring performance
✤ Servers designed for WordPress
✤ Performance: a sign of quality
✤ Virtual Private Servers
✤ Responsibility vs. exibility
10. “Apache is like Microsoft Word, it has a
million options but you only need six.
Nginx does those six things, and it does ve
of them 50 times faster than Apache.”
– Chris Lea
11. Nginx
✤ As a load balancer...
✤ As a proxy...
✤ As a standalone web server...
12. Nginx Configuration Options
✤ Gzip static assets (jpg, css, javascript)
✤ Add expires headers
✤ Use `try_ les` instead of `if`
✤ Decrease keepalive_timeout
✤ Set worker_processes to # of CPUs
13.
14. PHP-FPM
✤ Process management
✤ Dynamic process spawning
✤ Slow request log
✤ No safe mode
✤ Integrates easily with Nginx
15.
16. PHP-FPM Configuration Options
✤ Choose recent OS (Ubuntu 11.04)
✤ Use Unix sockets, not TCP/IP
✤ Set your timezone
✤ Enable slow request log
17. Opcode Caching with APC
✤ Alternative PHP cache
✤ Cache stored in memory
✤ Easy to install
✤ Other options: eAccelerator & Xcache
18. MySQL Configuration Options
✤ Decouple MySQL & Nginx
✤ Watch slow queries
✤ MySQL Tuner & mysqlreport
✤ Disable InnoDB
19.
20.
21.
22. Varnish
✤ Extremely fast
✤ VCL can be tricky
✤ reads, lots of threads
✤ ESI - Edge Side Includes
✤ php-varnish