Webfarms: The Only Way To Host!
page 1 of 1
Published: 26 Feb 2004
Unedited - Community Contributed
Abstract
Networks can be configured to be so incredibly redundant now - for reasonable prices - that there is no excuse for a data center not to achieve five nines (99.999%) of availability.
by Web Team at ORCS Web
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 6996/ 9

Networks can be configured to be so incredibly redundant now (and for reasonable prices) that there is no excuse for a data center not to achieve five nines (99.999%) of availability.

But what about the servers and applications? Why spend so much time up front configuring the network to make sure it doesn't fail, and then deploy an application to a single server?

Sure, there are ways to make sure individual servers have some redundancy to minimize failures--things like RAID1, RAID5, or RAID10 (redundant array of inexpensive disks) which will protect against a disk drive failure (and I highly recommend this type of configuration for all production servers, preferably using hardware RAID vs. software RAID). But what happens if a file gets corrupt on the RAID array? Or a recent configuration change brings the application down? Or a newly released patch conflicts with other settings and causes problems? Well, in these situations the server will go down and the application(s) hosted on that server will be offline.

A good monitoring and alerting process will allow the system administrator to detect and address these issues quickly, but still there will be some level of downtime associated with the issue. And depending on the type of issue, even the best system administrator might not be able to immediately resolve the issue; it may take time, time during which your application is unavailable and you may be losing business due to the site interruption.

So, what can you do?

A great option (and one that has recently become more affordable) is to host your application on a webfarm. A webfarm consists of two or more web servers with the same configuration and that serve up the same content. There are special switches and processes involved that allow each of these servers to respond to a request to a single location. For example, say we have two servers, svr1.orcsweb.com and svr2.orcsweb.com, that have the 100%-same configuration and content. We could configure a special switch* to handle traffic that is sent to www.orcsweb.com and redirect the traffic to either of these nodes, depending on some routing logic. All clients visiting the main URL (in this case www.orcsweb.com) have no idea whether this is a single server or ten servers! The balancing between nodes is seamless and transparent.

[*Note: There is also software that could handle the routing process, but our experience and testing have shown that these types of solutions are generally not as scalable, fast, or efficient as the hardware switch solutions]

The routing logic can use a number of different options; the most common are:

  • Round-robin: Each node gets a request sent to it "in turn." So, node1 gets a request, then node2, then node1 again, and then node2 again.
  • Least Active: Whichever node shows to have the lowest number of current connections gets new connections sent to it. This is good to help keep the load balanced between the server nodes.
  • Fastest Reply: Whichever node replies faster is the one that gets new requests. This is also a good option--especially if there are nodes that might not be equal in performance. If one performs much better than the other, why not send more requests there?

In any of these scenarios the switch will also detect if a node were to fail. So, if svr1.orcsweb.com was taken offline for maintenance, or had a critical failure, the switch would detect that and only send traffic to svr2.orcsweb.com. And since the clients always access the site via the main URL (not the node names), they have no idea that one of the nodes is down--the application continues to serve client requests seamlessly.

Besides high-availability (continuing to satisfy requests during a failure), a webfarm also gives an application a higher level of scalability (the ability to handle more and more load). If load increased on the application to the point where performance started to degrade, more nodes could be added to the webfarm (again, without clients noticing), giving the ability to handle potentially unlimited levels of traffic (just keep adding nodes!).

Of course there are a lot of factors surrounding the proper support of a webfarm such as the switches, fail over between switches (don't let the switch be a single point-of-failure!), replication of content, synchronization of server changes, synchronization of application changes, etc., etc.. But a good system administrator (or experienced hosting company) can help address all of these issues for you.

By the way, I need to slip in a plug for a related service we offer: Webfarm hosting starts as low as $200/month! Check it out at: http://www.orcsweb.com/WebFarm.aspx

Hopefully this has been a good introduction to webfarms for you, and hopefully I've properly communicated enough of the benefits for you to consider this as a hosting option for yourself. With the rates now down to affordable levels - why not get this additional layer of protection?

Clustered hosting does require some consideration of how state is managed
within applications, which will be covered in a future article.

Happy hosting!

by Brad Kingsley is President and Founder of ORCS Web, Inc. - a company that provides managed hosting services for clients who develop and deploy their applications on Microsoft Windows platforms.



User Comments

Title: Web Farm   
Name: Bhuvaneswari R
Date: 2007-03-05 3:44:15 AM
Comment:
I am new to Web Farm Concept and this article really inspired me a lot. I have got a very good idea about web farm... Excellent article and i can give a score of 100 to this article. I also need explanation of this Web Farm with a practical example.I will be happy if i get tht too...
Title: Webfarms   
Name: Sajan
Date: 2005-10-02 11:38:51 AM
Comment:
Very good and informative as to what webfarm is and it benefits in hosting. Thanks again.
Title: Monitoring is key   
Name: Brad Kingsley
Date: 2004-11-23 11:32:02 AM
Comment:
Absolutely. Monitoring is key with a single server OR a webfarm. A properly configured load-balancing switch will drop a node from the webfarm if there are certain error types, but this can be tricky also -- you don't want to just confirm port 80 is responding because it could be sending error messages to clients :(

Brad
Title: What about Monitoring?   
Name: Jeff
Date: 2004-11-23 5:40:13 AM
Comment:
Web farms are a great idea and they do work and provide outstanding failover. Problems arise when something else fails...code changes, network failures etc. A more cost effective alternative to 10 servers is a redundant system with a monitoring service watching it. Monitoring services are becoming a must have tool for every online business

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-04-20 8:41:30 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search