squeeze maximum performance from your hosting platform
DESCRIPTION
The presentation covers useful insights and benchmark tests on how the performance (and security) of PHP/MySQL based applications can be significantly improved through different tweaks done at server administration level (Linux/Apache). It also examines several different types of hosting platforms: dedicated, virtual/cloud and shared, and how they can influence the CMS application speed and security.A presentation delivered by SiteGround CEO at CMS Expo - Chicago, May 8-10 2012.TRANSCRIPT
![Page 1: Squeeze Maximum Performance from your Hosting Platform](https://reader034.vdocuments.us/reader034/viewer/2022052601/5598c90d1a28ab3b568b468b/html5/thumbnails/1.jpg)
Squeeze Maximum Performance from your Hosting Platform
Tenko Nikolov
CEO at SiteGround.com
![Page 2: Squeeze Maximum Performance from your Hosting Platform](https://reader034.vdocuments.us/reader034/viewer/2022052601/5598c90d1a28ab3b568b468b/html5/thumbnails/2.jpg)
Why I love this car?
![Page 3: Squeeze Maximum Performance from your Hosting Platform](https://reader034.vdocuments.us/reader034/viewer/2022052601/5598c90d1a28ab3b568b468b/html5/thumbnails/3.jpg)
What is behind server performance?
![Page 4: Squeeze Maximum Performance from your Hosting Platform](https://reader034.vdocuments.us/reader034/viewer/2022052601/5598c90d1a28ab3b568b468b/html5/thumbnails/4.jpg)
Let’s discuss the speed
• Invest in hardware
Test at least 3 different hardware setups before proceeding.
Always benchmark performance and reliability
Add more RAM and use it on maximum capacity
![Page 5: Squeeze Maximum Performance from your Hosting Platform](https://reader034.vdocuments.us/reader034/viewer/2022052601/5598c90d1a28ab3b568b468b/html5/thumbnails/5.jpg)
Speed – Cont’d
• Install RAM caching mechanismsMemcache and APC/Eaccellerator
• Install reverse proxyNginX or Varnish
• Virtualization always makes things slowerResources are shared and at the same time
are lost for the Virtual OS too!
![Page 6: Squeeze Maximum Performance from your Hosting Platform](https://reader034.vdocuments.us/reader034/viewer/2022052601/5598c90d1a28ab3b568b468b/html5/thumbnails/6.jpg)
Speed – Cont’d
• Tweak your software to run fasterUse fast & secure PHP like FastCGIMove PHP binaries into RAMMove MySQL to a different hard drive. Use RAID
or SSD for lightning fast performance. If using just one app, tweak MySQL for it! Keep log files separate and small in sizeMove TMP to RAM Avoid creating unneeded I/O, use CDN if possible
![Page 7: Squeeze Maximum Performance from your Hosting Platform](https://reader034.vdocuments.us/reader034/viewer/2022052601/5598c90d1a28ab3b568b468b/html5/thumbnails/7.jpg)
Security & Speed?
• Security and Performance don’t come hand in hand, but some things usually help both sides:
Latest OS
Late version of the Linux Kernel
Secure firewall, strong monitoring of access, OS and system files
![Page 8: Squeeze Maximum Performance from your Hosting Platform](https://reader034.vdocuments.us/reader034/viewer/2022052601/5598c90d1a28ab3b568b468b/html5/thumbnails/8.jpg)
Performance needs Security
Isolate accounts!
![Page 9: Squeeze Maximum Performance from your Hosting Platform](https://reader034.vdocuments.us/reader034/viewer/2022052601/5598c90d1a28ab3b568b468b/html5/thumbnails/9.jpg)
99.9% uptime is achievable!
• Invest in integrating a monitoring and automated reaction system.
• Keep your server load level at minimum at all times.
• If you start overloading your server, its either time to upgrade or to tweak further!
![Page 10: Squeeze Maximum Performance from your Hosting Platform](https://reader034.vdocuments.us/reader034/viewer/2022052601/5598c90d1a28ab3b568b468b/html5/thumbnails/10.jpg)
Why every second counts?
Features Zenoss Nagios Our monitoring(1H Guardian)
Services check interval
10 sec 1 min 0.5 sec
Automated reaction
Plugins Plugins Built-in
Automatic load balancing*
NO NO Built-in
Real time status & availability reports
Yes, updates every 1 minute
Yes, updates every 1 minute
YES, updates every 10 seconds
![Page 11: Squeeze Maximum Performance from your Hosting Platform](https://reader034.vdocuments.us/reader034/viewer/2022052601/5598c90d1a28ab3b568b468b/html5/thumbnails/11.jpg)
Uptime – Cont’d
• Spread the server resources wisely
Never allow a single user to use all of the server resources at any given time. Limit and throttle if limits are reached and prevent overloads.
Whenever there’s a resource problem, react within seconds and not within minutes or hours.
![Page 12: Squeeze Maximum Performance from your Hosting Platform](https://reader034.vdocuments.us/reader034/viewer/2022052601/5598c90d1a28ab3b568b468b/html5/thumbnails/12.jpg)
The big Question: which platform?
DEDICATED VPS
SHARED
CLOUD
![Page 13: Squeeze Maximum Performance from your Hosting Platform](https://reader034.vdocuments.us/reader034/viewer/2022052601/5598c90d1a28ab3b568b468b/html5/thumbnails/13.jpg)
The common understanding
![Page 14: Squeeze Maximum Performance from your Hosting Platform](https://reader034.vdocuments.us/reader034/viewer/2022052601/5598c90d1a28ab3b568b468b/html5/thumbnails/14.jpg)
The picture CAN be different!
![Page 15: Squeeze Maximum Performance from your Hosting Platform](https://reader034.vdocuments.us/reader034/viewer/2022052601/5598c90d1a28ab3b568b468b/html5/thumbnails/15.jpg)
Let’s prove this
![Page 16: Squeeze Maximum Performance from your Hosting Platform](https://reader034.vdocuments.us/reader034/viewer/2022052601/5598c90d1a28ab3b568b468b/html5/thumbnails/16.jpg)
But what if we add cache?
![Page 17: Squeeze Maximum Performance from your Hosting Platform](https://reader034.vdocuments.us/reader034/viewer/2022052601/5598c90d1a28ab3b568b468b/html5/thumbnails/17.jpg)
Some key takes
• Shared can be a good platform contrary to the common belief, but not always the right one
• If you need custom setup/deep customizations & have a big website -> go for VPS/dedicated
• Dedicated/VPS & Cloud can perform better for you if you KNOW how to tweak them
![Page 18: Squeeze Maximum Performance from your Hosting Platform](https://reader034.vdocuments.us/reader034/viewer/2022052601/5598c90d1a28ab3b568b468b/html5/thumbnails/18.jpg)
Your turn to ask
Image courtesy to Flickr user WingedWolf: http://is.gd/4ycgJq