Download presentation
Presentation is loading. Please wait.
Published byKinga Szczepaniak Modified over 5 years ago
1
Speed is key My personal quest for a faster website
But handling load most important Extra load = slower speed My personal quest for a faster website
3
Land of the worlds crappiest internet!
4
1 TB data transfer/month = 10 million page views/month
$10/mnth -> Managed VPS - no caching - seemed fine
6
Move to Norway
7
Realised lack of caching was a problem ~5 page views/sec via ApacheBench
9
Static caching
10
Use faster software Nginx? HHVM?
11
~40,000 registered users in one day
Less pages = easier to cache ~40,000 registered users in one day
14
Persistent object caching
Query count … ~20 -> ~4 * AKA fragment caching Discuss WP cache API
15
Why is WordPress slow? Backs compatibility Not all hosts have good
caching backends. Managed hosts Static caching Needs more knowledge than most people realise
16
Userful caching backends
In memory cache Memcached APC Redis Disk based More capacity
19
Extra steps Use external services for dynamic stuff Disqus comments
Spam protection Fail2Ban SPDY protocol Block wp-login.php Offline caching Weed out bad plugins Multilingual plugins
20
Measuring page speed Pingdom Google Page Speed Yahoo! YSlow GT Metrix
Caching has almost no effect on these. Measure individual page speed instead of ability to handle traffic.
21
Measuring ability to handle load
Apache Bench Siege Blitz.io
22
Performance monitoring over time
1 = APC out of RAM 2 = Halved RAM. Added https. Used Nginx static cache and Redis. Swedish company. Outages due to stupidity.
23
reverse proxy “Website Offline, No Cached Version Available”
24
CDN all the things! 1500 page views per second
Initial page loads within 6 ms!!!!
25
Take home message … Caching is hard
26
https://geek.hellyer.kiwi/presentations/ @ryanhellyer
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.