Home > SQL Server Tips > Microsoft SQL Server > Why cluster?
SQL Server Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

MICROSOFT SQL SERVER

Why cluster?


Buck Woody
09.21.2004
Rating: -2.67- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


There are two types of clustering in SQL Server: load balancing and failover. This short article from InformIT's SQL Server Reference Guide examines the reasons for clustering and some of the system requirements.

Load Balancing Cluster

In a true load-balancing cluster, all servers (called "nodes") act as one. The single group of computers is called a quorum. A computer or software service called the "quorum manager" creates the illusion of a single server to the outside world. The quorum manager passes processing requests off to one or more server(s). This sharing of work produces a very powerful virtual computer. If one of the nodes leaves the cluster, the quorum manager just hands the work to another server.

While this type of clustering sounds pretty cool, SQL Server doesn't do it (yet). Sorry about that, it just doesn't! It's OK, though, read on.

Failover Clustering

Failover clustering is fairly easy to set up, and provides high safety for your environment. In failover clustering, there are two servers with a single storage system between them. The servers establish a signal between them that acts as a heartbeat and should one not hear the other, the second node takes over the identity of the first. All of this is pretty seamless to the consumer of the data. Depending on how tolerant the application is to connection timeouts, your users may not even notice!

SQL Server 7 and 2000 both handle this type of cluster. As a matter of fact, SQL Server has two modes of this type of cluster: Active/Active and Active/Passive. Let's take a look.

Active/Active

In this type of failover cluster, each server acts on its own, and can also handle the other server's failure. Let's say you have two servers (nodes) in the cluster named ServerA and ServerB. The cluster itself is known by another name, say Cluster1. Users can address Cluster1 or ServerB. Should ServerA go belly-up, ServerB becomes Cluster1 and ServerB. It just chugs along with two identities.

An Active/Active cluster can have four nodes participating, and up to 16 instances. We'll cover instances in another tutorial in greater depth, but an instance can be thought of as another installation of SQL Server running on a system. In ODBC connections and other connection types, it is addressed by the name of the server and then the name of the instance, like this: SERVERNAMEINSTANCENAME instead of just the SERVERNAME that you're used to using.

Active/Passive

In Active/Passive, the Cluster is the only box known to the outside world. The others "stand by" and are activated only if you do it manually or the first box fails.

Why Cluster?

You may think that the only reason to cluster is for safety. After all, I've already said that SQL Server doesn't do true load-balancing, so why else would you do it? Other than the obvious high-availability benefits, you can also manually fail over a system to the second node, upgrade a service pack on the first node, fail it back over, and then upgrade the second. This might not sound very important, but if you're in a shop that doesn't allow any downtime, it's priceless.

Requirements

No matter what configurations of failover clustering you choose, there are some caveats. First, you need the Enterprise version of SQL Server. You can also do it with a development edition, but we'll stay with the commercial versions for this tutorial.

You're going to need Microsoft Clustering Services (MSCS) installed. That's another whole topic outside the scope of this tutorial, but here's the link for Microsoft's clustering home page to help you get started with that. The long and short of the OS requirement is that you need Windows 2000 Enterprise or Datacenter edition, or the equivalent Windows 2003 Server installs. Windows 2003 Server changes things quite a bit, so make sure you bone up on that site if you're planning to run your cluster on that operating system.

You'll need two network cards in each server. Now technically this isn't really a requirement, but since the servers are going to need a heartbeat between them it's best if they don't have to share that resource. Next, you're going to need a disk to share between the servers. Microsoft calls this a "shared SCSI bus". Most people use a SAN here, but even if you've never read the Hardware Compatibility List before, you'll have to follow it now. Microsoft has been moving that link around a bit, so make sure you search for Cluster and Hardware Compatibility List if that link doesn't work. Your hard drive must be on here or don't expect everything to go well.

You can read more about the steps needed to install a cluster at Microsoft's Support Center.


Read more about administering SQL Server at InformIT's SQL Server Reference Guide.


Rate this Tip
To rate tips, you must be a member of SearchSQLServer.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
Microsoft SQL Server
SQL Server errors, failures and other problems fixed from the trenches
SQL Server consolidation: Why it's an optimization technique
Can you shrink your SQL Server database to death?
Using SQL Server datetime functions GETDATE, DATENAME and DATEPART
Tuning SQL Server performance via memory and CPU processing
Get SQL Server log shipping functionality without Enterprise Edition
SQL Server 2008 backup compression pros and cons
How to use SQL Server 2008 hierarchyid data type
Tuning SQL Server performance via disk arrays and disk partitioning
Should you upgrade to SQL Server 2005 or SQL Server 2008?

SQL Server clustering
SQL Server errors, failures and other problems fixed from the trenches
Upgrade Active/Active cluster to SQL Server 2005 and Windows 2003
SQL Server backups using SAN database snapshots
Setting up SQL Server clusters on a SAN
SQL Server Blog Watch
SQL Server cluster design: One big cluster vs. small clusters
FAQ: SQL Server comparison features
SQL Server consolidation: Why, when and how to consolidate SQL Servers
Active/Active clusters in SQL Server
Avoiding SQL Server Sprawl with the PolyServe Database Utility

SQL Server availability
Get SQL Server log shipping functionality without Enterprise Edition
Monitor database mirroring and replication after a SQL Server upgrade
Upgrade live applications to SQL Server 2005 for high availability
SQL Server high availability when upgrading to SQL Server 2005
Tutorial: Migrating to SANs from local SQL Server disk storage
How to restore SQL Server database to transition server during upgrade
SQL Server memory configurations for procedure cache and buffer cache
Upgrade Active/Active cluster to SQL Server 2005 and Windows 2003
SQL Server backups using SAN database snapshots
Tips for moving from SQL Server local disk storage to SANs
SQL Server availability Research

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.

HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2005 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts