high performance wordpress hosting on the cheap tortoise vs … · 2016-12-07 · high performance...
TRANSCRIPT
![Page 1: High performance WordPress hosting on the cheap Tortoise vs … · 2016-12-07 · High performance WordPress hosting on the cheap * Metronet My original setup ... Cost ~US$9 / month](https://reader034.vdocuments.net/reader034/viewer/2022050103/5f425f9ffbf0347ff571e0ec/html5/thumbnails/1.jpg)
Tortoise vs the hareHigh performance WordPress hosting on the cheap
![Page 2: High performance WordPress hosting on the cheap Tortoise vs … · 2016-12-07 · High performance WordPress hosting on the cheap * Metronet My original setup ... Cost ~US$9 / month](https://reader034.vdocuments.net/reader034/viewer/2022050103/5f425f9ffbf0347ff571e0ec/html5/thumbnails/2.jpg)
![Page 3: High performance WordPress hosting on the cheap Tortoise vs … · 2016-12-07 · High performance WordPress hosting on the cheap * Metronet My original setup ... Cost ~US$9 / month](https://reader034.vdocuments.net/reader034/viewer/2022050103/5f425f9ffbf0347ff571e0ec/html5/thumbnails/3.jpg)
Metronet*
My original setup
● Slow internet connection
● Multiple Hostgator shared accounts○ Cost ~US$9 / month each○ Got kicked off service
![Page 4: High performance WordPress hosting on the cheap Tortoise vs … · 2016-12-07 · High performance WordPress hosting on the cheap * Metronet My original setup ... Cost ~US$9 / month](https://reader034.vdocuments.net/reader034/viewer/2022050103/5f425f9ffbf0347ff571e0ec/html5/thumbnails/4.jpg)
Metronet*
An upgrade ...
● Fully managed VPS○ 1 GB RAM○ Immediate speed boost○ Hardware failure○ Failed backup
![Page 5: High performance WordPress hosting on the cheap Tortoise vs … · 2016-12-07 · High performance WordPress hosting on the cheap * Metronet My original setup ... Cost ~US$9 / month](https://reader034.vdocuments.net/reader034/viewer/2022050103/5f425f9ffbf0347ff571e0ec/html5/thumbnails/5.jpg)
Metronet*
Move to Norway
![Page 6: High performance WordPress hosting on the cheap Tortoise vs … · 2016-12-07 · High performance WordPress hosting on the cheap * Metronet My original setup ... Cost ~US$9 / month](https://reader034.vdocuments.net/reader034/viewer/2022050103/5f425f9ffbf0347ff571e0ec/html5/thumbnails/6.jpg)
Metronet*
Move to Norway
● Depressing to visit my own site ...
![Page 7: High performance WordPress hosting on the cheap Tortoise vs … · 2016-12-07 · High performance WordPress hosting on the cheap * Metronet My original setup ... Cost ~US$9 / month](https://reader034.vdocuments.net/reader034/viewer/2022050103/5f425f9ffbf0347ff571e0ec/html5/thumbnails/7.jpg)
Metronet*
Solution?
● Managed WordPress host?
![Page 8: High performance WordPress hosting on the cheap Tortoise vs … · 2016-12-07 · High performance WordPress hosting on the cheap * Metronet My original setup ... Cost ~US$9 / month](https://reader034.vdocuments.net/reader034/viewer/2022050103/5f425f9ffbf0347ff571e0ec/html5/thumbnails/8.jpg)
Metronet*
Unmanaged VPS
● Tried to setup
● Failed
● Tried again
● Tried again
● Gave up :(
● Solution?
![Page 9: High performance WordPress hosting on the cheap Tortoise vs … · 2016-12-07 · High performance WordPress hosting on the cheap * Metronet My original setup ... Cost ~US$9 / month](https://reader034.vdocuments.net/reader034/viewer/2022050103/5f425f9ffbf0347ff571e0ec/html5/thumbnails/9.jpg)
Metronet*
Stubbornness
● Hire expert :)
● Learn from expert :)
![Page 10: High performance WordPress hosting on the cheap Tortoise vs … · 2016-12-07 · High performance WordPress hosting on the cheap * Metronet My original setup ... Cost ~US$9 / month](https://reader034.vdocuments.net/reader034/viewer/2022050103/5f425f9ffbf0347ff571e0ec/html5/thumbnails/10.jpg)
Metronet*
Back to Linode :)
● US$20/month● Half the RAM of old server
● Minimal setup○ NGINX○ PHP○ Fast-cgi or PHP-FPM?○ APC
![Page 11: High performance WordPress hosting on the cheap Tortoise vs … · 2016-12-07 · High performance WordPress hosting on the cheap * Metronet My original setup ... Cost ~US$9 / month](https://reader034.vdocuments.net/reader034/viewer/2022050103/5f425f9ffbf0347ff571e0ec/html5/thumbnails/11.jpg)
Metronet*
APC and Batcache
● Avoid bloated caching plugins
● Batcache plugin○ Lean, mean
● APC plugin
● Hacking advanced-cache.php○ Mobile support
![Page 12: High performance WordPress hosting on the cheap Tortoise vs … · 2016-12-07 · High performance WordPress hosting on the cheap * Metronet My original setup ... Cost ~US$9 / month](https://reader034.vdocuments.net/reader034/viewer/2022050103/5f425f9ffbf0347ff571e0ec/html5/thumbnails/12.jpg)
Metronet*
CDN
● Content Delivery Network● Ideal for static files
● Used custom plugin● Alternatively ... WP Stack by Mark Jaquith
![Page 13: High performance WordPress hosting on the cheap Tortoise vs … · 2016-12-07 · High performance WordPress hosting on the cheap * Metronet My original setup ... Cost ~US$9 / month](https://reader034.vdocuments.net/reader034/viewer/2022050103/5f425f9ffbf0347ff571e0ec/html5/thumbnails/13.jpg)
Metronet*
Result
● 100/100 possible?
![Page 14: High performance WordPress hosting on the cheap Tortoise vs … · 2016-12-07 · High performance WordPress hosting on the cheap * Metronet My original setup ... Cost ~US$9 / month](https://reader034.vdocuments.net/reader034/viewer/2022050103/5f425f9ffbf0347ff571e0ec/html5/thumbnails/14.jpg)
Metronet*
Varnish caching?
![Page 15: High performance WordPress hosting on the cheap Tortoise vs … · 2016-12-07 · High performance WordPress hosting on the cheap * Metronet My original setup ... Cost ~US$9 / month](https://reader034.vdocuments.net/reader034/viewer/2022050103/5f425f9ffbf0347ff571e0ec/html5/thumbnails/15.jpg)
Metronet*
blitz.io
● Load testing servicehttp://blitz.io/
● Test with 50,000 concurrent users
![Page 16: High performance WordPress hosting on the cheap Tortoise vs … · 2016-12-07 · High performance WordPress hosting on the cheap * Metronet My original setup ... Cost ~US$9 / month](https://reader034.vdocuments.net/reader034/viewer/2022050103/5f425f9ffbf0347ff571e0ec/html5/thumbnails/16.jpg)
Metronet*
How much traffic?
ryanhellyer.net: ~270 page views per second, max load time = 700 ms
![Page 17: High performance WordPress hosting on the cheap Tortoise vs … · 2016-12-07 · High performance WordPress hosting on the cheap * Metronet My original setup ... Cost ~US$9 / month](https://reader034.vdocuments.net/reader034/viewer/2022050103/5f425f9ffbf0347ff571e0ec/html5/thumbnails/17.jpg)
Metronet*
Old and new comparison
Old: 29 page views per minute (server locked up under initial load)New: 270 page views per second
![Page 18: High performance WordPress hosting on the cheap Tortoise vs … · 2016-12-07 · High performance WordPress hosting on the cheap * Metronet My original setup ... Cost ~US$9 / month](https://reader034.vdocuments.net/reader034/viewer/2022050103/5f425f9ffbf0347ff571e0ec/html5/thumbnails/18.jpg)
Metronet*
Will Varnish allow more traffic?
● Bandwidth at 282 page views per second = ~54 Mbps
● Maximum bandwidth on Linode tested = ~60 Mbps max.
● Varnish would offer little increase in capacity● Potential decrease in load time
![Page 19: High performance WordPress hosting on the cheap Tortoise vs … · 2016-12-07 · High performance WordPress hosting on the cheap * Metronet My original setup ... Cost ~US$9 / month](https://reader034.vdocuments.net/reader034/viewer/2022050103/5f425f9ffbf0347ff571e0ec/html5/thumbnails/19.jpg)
Metronet*
Lean HTML?
konstruktors.com = ~700 page views per second
![Page 20: High performance WordPress hosting on the cheap Tortoise vs … · 2016-12-07 · High performance WordPress hosting on the cheap * Metronet My original setup ... Cost ~US$9 / month](https://reader034.vdocuments.net/reader034/viewer/2022050103/5f425f9ffbf0347ff571e0ec/html5/thumbnails/20.jpg)
Metronet*
MOAARRR power!!!
![Page 21: High performance WordPress hosting on the cheap Tortoise vs … · 2016-12-07 · High performance WordPress hosting on the cheap * Metronet My original setup ... Cost ~US$9 / month](https://reader034.vdocuments.net/reader034/viewer/2022050103/5f425f9ffbf0347ff571e0ec/html5/thumbnails/21.jpg)
Metronet*
Already using the solution!
● Pointing your primary domainat cloudfront will not work
● Doesn't support $_POST○ wp-admin will fail○ comments will fail
![Page 22: High performance WordPress hosting on the cheap Tortoise vs … · 2016-12-07 · High performance WordPress hosting on the cheap * Metronet My original setup ... Cost ~US$9 / month](https://reader034.vdocuments.net/reader034/viewer/2022050103/5f425f9ffbf0347ff571e0ec/html5/thumbnails/22.jpg)
Metronet*
How to avoid breaking site
● Seperate front and back domains
● http://cloudfront.ryanhellyer.net/http://clouddemo.ryanhellyer.net/
![Page 23: High performance WordPress hosting on the cheap Tortoise vs … · 2016-12-07 · High performance WordPress hosting on the cheap * Metronet My original setup ... Cost ~US$9 / month](https://reader034.vdocuments.net/reader034/viewer/2022050103/5f425f9ffbf0347ff571e0ec/html5/thumbnails/23.jpg)
Metronet*
Performance?
1500 page views per secondInitial page loads within 6 ms!!!!
![Page 24: High performance WordPress hosting on the cheap Tortoise vs … · 2016-12-07 · High performance WordPress hosting on the cheap * Metronet My original setup ... Cost ~US$9 / month](https://reader034.vdocuments.net/reader034/viewer/2022050103/5f425f9ffbf0347ff571e0ec/html5/thumbnails/24.jpg)
Metronet*
Comments?
● Set low Cloudfront expiry time● Submit comments form to other domain
○ Redirect user back to same page, with query var
● Disquis
![Page 25: High performance WordPress hosting on the cheap Tortoise vs … · 2016-12-07 · High performance WordPress hosting on the cheap * Metronet My original setup ... Cost ~US$9 / month](https://reader034.vdocuments.net/reader034/viewer/2022050103/5f425f9ffbf0347ff571e0ec/html5/thumbnails/25.jpg)
Metronet*
Advantages to Cloudfront
● Crazy fast load times ... 6 ms● Serves files from edge location
● Massive capacity
● Extremely cost-effective
![Page 26: High performance WordPress hosting on the cheap Tortoise vs … · 2016-12-07 · High performance WordPress hosting on the cheap * Metronet My original setup ... Cost ~US$9 / month](https://reader034.vdocuments.net/reader034/viewer/2022050103/5f425f9ffbf0347ff571e0ec/html5/thumbnails/26.jpg)
Metronet*
Ultimate test?
● Botnet attack
● Mission accomplished