What is clustered hosting?

By Joe Gardiner Tuesday, 11th May 2010

Clustered hosting is the newest way of hosting your website. A cluster is a group of computers or servers, whose combined computational power provides a service.

Clustered hosting involves spreading the website across multiple servers, like layers. In the CatN stack each layer does its own individual task, so one for web, one for databases, one for logging etc. This has one considerable advantage, if one server goes down the others won't.

On a traditional hosting server, all of the data is stored and run on a single layer, the main server. If thisĀ  server goes down, breaks, or just stops working then all of your website goes down with it. Nothing works, runs or displays. How can this be prevented? By separating hosting services across a cluster!

An obvious advantage to clustering is the even distribution of traffic across several servers, making it is less likely that a single server will go down due to overload, and improving performance as traffic is managed. Database activity is isolated from the web traffic, and so an increase in database computation has minimal effect on static content form a web server, and equally web traffic for dynamic content will have little effect on database performance.

This separation prevents errors on one section of the cluster from preventing other services. If an entire database service fails (unlikely with multiple nodes), visitors to your website will still see the static and dynamic content, but just be unable to access the database. You can use this to your advantage by displaying a notice letting them know that the database server is not functioning and to be patient while its being fixed. As you can imagine, this is a lot more informative than them seeing a 404 because the whole site has gone down from one error.

However, this separation is not infallible. If the front-end layer goes down (static and dynamic content servers), then no user info can be displayed. Its no good to the end user just having the database and back-end working when there is nothing to interact with it. Fortunately the clustered platform lends itself to stability with multiple nodes (servers) in each layer picking up the strain if single nodes fail. New nodes can replace failed units with no interruption to the service of your website.

In the CatN stack traffic is directed to the correct server using load balancing pairs and the .craccess and .htaccess files. The load balance pairs between service layers ensures even distribution of traffic, and the .craccess and .htaccess files enable requests to be passed between the static and dynamic layers in the stack.

These are vital elements of the stack which is why there is so much fuss - and even a complete guide - on setting these files up!

So the low down on clustered hosting. A cluster is the group of servers that make up the website. Each of these servers has a dedicated job - database/web/email etc. If one server goes down, the others don't go down with it.

Clustered hosting is a step forward into raising usability and isolating irritating down time. And now you should know what it is too! Its all good.


Posted in Clustered Computing | No Comments » twitter-follow facebook-follow rss-follow

Leave a Reply

Your email address will not be published. Required fields are marked *