Posts Tagged ‘Hosting’


Using Amazon CloudFront with WordPress and WordPress MU

January 16th, 2009 by Glenn

Amazon has recently set up a new service called CloudFront, and this week James enabled it for OM4 websites.

Everyone likes web pages that load fast, and one of the factors that determines how fast pages load is the ‘hops’ that are involved in getting all the parts of the web page from the server to the browser.

If your server is in the US and your visitor is in Europe, the page takes longer to load because there are longer (and more) hops involved.

CloudFront has some magic technology that automatically distributes web files across high speed Amazon storage servers in Europe, the US, Japan and Hong Kong. So web files get served from fast locations close to your region.

We are currently using CloudFront for WordPress (and WordPress MU) files that never change. As we extend our use of CloudFront, we will place images and PDFs out in the cloud as well. Dynamic content will come from the core server, and the larger media files will be served from high speed content servers close to the visitor.

Amazon can serve larger files far more efficiently than our servers, and cope with much larger traffic spikes. We already host media in high demand on S3, but until now it has only had one geographical location, not the large number of ‘edge’ servers available with CloudFront.

Hopefully Amazon will extend CloudFront to video soon so we can host video on it as well, although many of our clients like using YouTube to serve video.

Testing results

The initial tests James ran mostly showed a 5-10% reduction in page load times just by offloading the static WordPress files to CloudFront. The one anomaly was when testing our US server by simulating a visitor from a nearby data centre – in that test using the CDN took 3 ms longer rather than 5-10% less.

An OM4 US website

US site loaded from US:
Before: 92.933 [ms]
After: 95.525 [ms]
Result: Slight increase, but this is simulating a visitor in Dallas accessing a web page from another datacentre in Dallas.

US site loaded from Australia:
Before: 728.042 [ms]
After: 687.844 [ms]
Result: 6% decrease in load time

Australian website

OM4.com.au (Brisbane server) loaded from a Sydney VPS:
Before: 223.972 [ms]
After: 200.033 [ms]
Result: 10% decrease in page loading times

OM4.com.au loaded from a US server:
Before: 934.519 [ms]
After: 884.088 [ms]
Result: ~5% decrease in page loading times

We already use Amazon S3 to replicate backups off our production servers. So we really like being able to add this new Amazon service to our platform to make it all go faster.

Amazon really have their act together.


4 Options for Linux Website Hosting

August 2nd, 2008 by Glenn

We host all our OM4 websites on Linux and take care of all the technical details (so our clients don’t have to). Small business owners really should not try and do hosting themselves, in my view. There are too many variables.

That said, if you are interested in hosting your own website on Linux, before you go looking for a hosting provider you have a few options to consider. You’ll find your choice of hosting provider will vary a lot depending on which option is best for you.

Shared Hosting

This is the cheapest by far. A hosting provider gives you access – along with an unknown number of other customers – to an account on a Linux server. You generally get Cpanel access to your account, and install/manage your software. Some hosting providers have 1 click installation options for popular software, which makes setting up and upgrading a lot easier.

There are a few drawbacks with shared hosting. If you have any non-standard requirements (for example, specific configuration for your DNS, or changes to PHP/MySQL parameters) your hosting provider may not have any way of letting you make the changes. It is a shared host after all.

Because sites are shared, if a hacker compromises one shared account, depending on how well the hosting provider has setup the server, it can make it easier for a hacker to look across into other accounts. Like yours.

If your site is in any way successful at pulling traffic (for example, you write a blog post that hits the front page of Digg), you could well find your hosting provider just drops you. It happens more often than you might think. Look at it from the hosting provider’s perspective. You can cram lots of low traffic sites onto a server … then one of them pops its head above the wall by using a lot of system resources (which stops them cramming more customers onto that host). $10 says they apply the good old shoot first ask questions later policy.

Virtual Private Server

A virtual private server gives you the equivalent of your own Linux server. VPS software such as Virtuozzo or Xen segments the server.

Because you have root access to your own server, you have full control over your configuration. You probably won’t get 1 click installers, so you need more technical skills to set one up and maintain it. You get a lot more control over security, but you also have to do the work to keep it secure.

Typically your VPS won’t be shared by as many customers (although that changes according to host), so you are less likely to be pinged for using too much in the way of resources. But it is still fundamentally a shared plan, so you do need to watch out.

Dedicated Server

This is your own Linux server. Like a VPS, unless you have arrangements in place you will need to do a lot more setup and management yourself, so technical skills are important.

This is a relatively expensive option, but you get a lot of control.

If scaling up from a single dedicated server to multiple servers is something you are worried about, then first of all ask yourself, is it really a problem? It is common to worry about scaling issues that never present themselves in real life.

One strategy for making it easier to administer a dedicated server is to implement your own VPS on the dedicated server. Backing up and moving a VPS image from one physical server to another can mean you are able to move servers a lot more easily. So you can start with a smaller capacity server and upgrade to a newer (higher capacity one) later with out too much trouble.

EC2

The most interesting of the 4 options for Linux hosting is Amazon’s Elastic Compute Cloud (EC2). We haven’t done this ourselves, so instead I’ll point you to Mike Brittain’s article.

Getting your LAMP servers via EC2 seems like a great idea. We use Amazon’s Simple Storage Service (S3) for our high capacity web resources, as well as backup. It is impressive, and very cost effective. I have no reason to doubt that EC2 will work equally as well. Right now we are pretty Ok for computing resource, but this will be top of our list for a look when we need more.


OM4 Server Upgrade

June 24th, 2008 by Glenn

James is in the process of updating the server platform for Australian sites. This site is already upgraded, and the speed increase is really noticeable. Together with the Dashboard update, everything zips along.