wordpress: performance optimization and scaling - wordcamp las vegas 2011

14
Performance, Optimization & Scaling Sunday, December 18, 11

Upload: matt-martz

Post on 08-May-2015

1.740 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: WordPress: Performance Optimization and Scaling - WordCamp Las Vegas 2011

Performance, Optimization &

Scaling

Sunday, December 18, 11

Page 2: WordPress: Performance Optimization and Scaling - WordCamp Las Vegas 2011

Pete Mall

Slacking Contributing Developer

Consultant

[email protected]

Sunday, December 18, 11

Page 3: WordPress: Performance Optimization and Scaling - WordCamp Las Vegas 2011

Matt Martz

Slacking Contributing Developer

Senior Linux Systems Engineer

[email protected]

Sunday, December 18, 11

Page 4: WordPress: Performance Optimization and Scaling - WordCamp Las Vegas 2011

Caching Techniques

Disk vs Memory

Object vs Page

Opcode

Client Side

Sunday, December 18, 11

Page 5: WordPress: Performance Optimization and Scaling - WordCamp Las Vegas 2011

Shared Hosting

Disk Caching

Client Side Caching

Look for a host with Opcode caching

Sunday, December 18, 11

Page 6: WordPress: Performance Optimization and Scaling - WordCamp Las Vegas 2011

Planning to Scale

Technologies that work in multi server environments

File Storage

Database Sharding

Sunday, December 18, 11

Page 7: WordPress: Performance Optimization and Scaling - WordCamp Las Vegas 2011

Single Server

Opcode

Object Caching (APC vs Memcached)

Page Caching

Fragment Caching

Sunday, December 18, 11

Page 8: WordPress: Performance Optimization and Scaling - WordCamp Las Vegas 2011

2 Server

One Web Server

One Database Server

Database Server dual purpose with Memcached

Sunday, December 18, 11

Page 9: WordPress: Performance Optimization and Scaling - WordCamp Las Vegas 2011

Multi Server

Multiple Web Servers

Multiple Database Servers (HyperDB)

Memcached Servers

File Syncing (NFS, Replication?)

Sunday, December 18, 11

Page 10: WordPress: Performance Optimization and Scaling - WordCamp Las Vegas 2011

HyperDB

Split Reads and Writes

Sharding

Battle Tested ( WordPress.com)

Sunday, December 18, 11

Page 11: WordPress: Performance Optimization and Scaling - WordCamp Las Vegas 2011

nginx vs nginx + Apache

nginx + php-fpm (fastcgi)

nginx reverse proxy (caching?)

Apache + php (mod_php, suPHP?)

Sunday, December 18, 11

Page 12: WordPress: Performance Optimization and Scaling - WordCamp Las Vegas 2011

Batcache vs W3TC

More Advanced Caching Configuration

The Kitchen sink vs the toaster

Sunday, December 18, 11

Page 13: WordPress: Performance Optimization and Scaling - WordCamp Las Vegas 2011

Coding Best Practices

Optimize Code

Use the WordPress APIs

Transients - Use them

Object Cache

Don’t over Engineer

Sunday, December 18, 11

Page 14: WordPress: Performance Optimization and Scaling - WordCamp Las Vegas 2011

Q & A

Sunday, December 18, 11