49
Clustering Clustering Servers Servers Chapter Seven

Clustering Servers Chapter Seven. Exam Objectives in this Chapter: Plan services for high availability Plan a high availability solution that uses clustering

Embed Size (px)

Citation preview

Page 1: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Clustering Clustering ServersServers

ChapterSeven

Page 2: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Exam Objectives in this Chapter: Plan services for high availability

Plan a high availability solution that uses clustering services

Plan a high availability solution that uses Network Load Balancing

Implement a cluster server Recover from cluster node failure

Manage Network Load Balancing. Tools might include the Network Load Balancing Manager and the WLBS cluster control utility

Page 3: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Lessons in this Chapter: Understanding Clustering Using Network Load Balancing Designing a Server Cluster

Page 4: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Understanding Clustering A cluster is a group of two or more servers

dedicated to running a specific application (or applications) and connected to provide fault tolerance and load balancing.

Clustering is intended for organizations running applications that must be available, making any server downtime unacceptable.

In a server cluster, each computer is running the same critical applications, so that if one server fails, the others detect the failure and take over at a moment’s notice. This is called failoverfailover.

Page 5: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Understanding Clustering When the failed node returns to service,

the other nodes take notice and the cluster begins to use the recovered node again. This is called failbackfailback.

Clustering capabilities are installed automatically in the Windows Server 2003 operating system.

Page 6: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Clustering Types Windows Server 2003 supports two

different types of clustering: Server clusters and Network Load Balancing (NLB).

Important Server clustering is intended to provide high

availability for applications, not data. Do not mistake server clustering for an alternative to data availability technologies, such as RAID (redundant array of independent disks) and regular system backups.

Page 7: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Server Clusters Server clusters are designed for

applications that have long-running in-memory states or large, frequently changing data sets.

These are called stateful applications, and include database servers such as Microsoft SQL Server, e-mail and messaging servers such as Microsoft Exchange, and file and print services.

Page 8: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Server Clusters In a server cluster, all the computers (called

nodes) are connected to a common data set, such as a shared SCSI bus or a storage area network.

Example of a simple two-node cluster:

Server ServerNAS

Page 9: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Server Clusters A server cluster has its own name and Internet

Protocol (IP) address, separate from those of the individual computers in the cluster.

Therefore, when a server failure occurs, there is no apparent change in functionality to the clients, which continue to send their requests to the same destination.

The passive node takes over the active role almost instantaneously, so there is no appreciable delay in performance.

Page 10: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Network Load Balancing Network Load BalancingNetwork Load Balancing (NLB) is another type

of clustering that provides high availability and high reliability, with the addition of high scalability as well.

NLB is intended for applications with relatively small data sets that rarely change (or may even be readonly), and that do not have long-running in-memory states.

These are called stateless applicationsstateless applications, and typically include Web, File Transfer Protocol (FTP), and virtual private network (VPN) servers.

Page 11: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Network Load Balancing and Replication Network Load Balancing is clearly not

suitable for stateful applications such as database and e-mail servers.

It is possible to replicate data between the servers in an NLB cluster, for example, to prevent administrators from having to copy modified Web pages to each server individually. However, this replication is an occasional event, not an ongoing occurrence.

Page 12: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Network Load Balancing and Replication Network Load Balancing provides

scalability in addition to availability and reliability, because all you have to do when traffic increases is add more servers to the cluster.

Page 13: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Exam Tip Be sure you understand the differences

between a server clusterserver cluster and a NetworkNetworkLoad Balancing clusterLoad Balancing cluster, including the hardware requirements, the difference between stateful and stateless applications, and the types of clusters supported by the various versions ofWindows Server 2003.

Page 14: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Designing a Clustering Solution Clustering can provide a solution that

protects against three different types of failures: Software failures Hardware failures Site failures

Page 15: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Estimating Availability Requirements The degree of availability you require depends on

a variety of factors The nature of the applications The size Location Distribution of your user base,

The amount of availability an organization requires for its applications can affect its clustering configuration in several ways, including The type of clustering you use The number of servers in the cluster The distribution of applications across the servers in the

cluster, and The locations of the servers

Page 16: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Scaling Clusters There are two basic methods of increasing

cluster performance, which are as follows: Scaling up

Adding random access memory (RAM) or level 2 (L2) cache memory, upgrading to faster processors, and installing additional processors are all ways to scale up a computer

Scaling out Adding servers to an existing cluster

Page 17: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Real World Scalability in the Real World

Note page 7-8

Page 18: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

How Many Clusters? If you want to deploy more than one

application with high availability, you must decide how many clusters you want to use.

Page 19: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Two Methods of Clustering Apps A cluster with two applicationsA cluster with two applications

Two separate clusters running two different Two separate clusters running two different applicationsapplications

App 1App 2

App 1App 2

App 1App 2

App 1App 2

App 1 App 1 App 2 App 2

Page 20: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Combining Clustering Technologies Two active notes sharing a single passive

node

NLB Cluster interacting with a server cluster

App 1App 1App 2 App 2

NLB Cluster

Server Cluster

Page 21: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Dispersing Clusters Deploying geographically dispersed clusters

enables applications to remain available in the event of a catastrophe that destroys a building or even a city.

Having cluster servers at different sites can also enable users to access applications locally, rather than having to communicate with a distant server over a relatively slow wide area network (WAN) connection.

Page 22: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Using Network Load Balancing Understanding Network Load Balancing

A Network Load Balancing cluster consists of up to 32 servers32 servers, referred to as hosts, each of which is running a duplicate copy of the application you want the cluster to provide to clients.

Network Load Balancing works by creating on each host a virtual network adaptervirtual network adapter that represents the cluster as a single entity.

Page 23: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Planning a Network Load Balancing Deployment NLB Network Design

InternetInternet

Internet router

Internet router

Firewall Firewall

Switch

Node Node Node Node

Page 24: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

NLB Operational Modes The servers that are going to be the hosts in your

NLB cluster do not require any special hardware. Installing a second network interface adapter

Two operational modes: unicast mode and multicast mode.

In unicast mode, Network Load Balancing replaces the MAC address of the physical network interface adapter in each server with the MAC address of the virtual adapter representing the cluster.

The Address Resolution Protocol (ARP) resolves both of the server’s IP addresses (the IP address originally assigned to the network interface adapter and the cluster IP address) to the single MAC address for the cluster.

Page 25: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

NLB and ARP ARP is a TCP/IP protocol that resolves IP addresses into MAC

or hardware addresses. To transmit to a particular IP address, a TCP/IP computer

must first discover the MAC address associated with that IP address, so that it can build a datalink layer protocol frame.

ARP functions by transmitting a broadcast message containing an IP address to the local network.

ARP requests that contain either its original IP address or the cluster IP address by sending a response containing the cluster MAC address.

Therefore, no computer on the network can transmit to the MAC address assigned for NLB server’s physical network interface adapter.

Page 26: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

NLB and ARP Because the network interface adapters of

all the servers in the cluster have the same MAC address, the cluster servers cannot communicate among themselves in the normal way, using their individual MAC addresses.

Note table 7-1 on page 18

Page 27: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

NLB Networking Important

A single computer running Windows Server 2003 cannot be a member of a Network Load Balancing cluster and a server cluster at the same time, because these two clustering solutions use network interface adapters in different ways.

If you want to deploy both an NLB cluster and a server cluster on your network, you must use separate servers for each cluster.

Page 28: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

NLB Networking Note

Because all the servers in the cluster are using the same cluster MAC address, transmitting the heartbeats is simply a matter of directing the packets to that address.

The servers don’t need to broadcast the heartbeat messages, reducing the impact of the cluster traffic on the network.

Page 29: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Deploying a Network Load Balancing Cluster The basic steps in deploying NLB for a cluster of

Web servers on a perimeter network are found on page 7-20.

Page 30: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Monitoring Network Load Balancing Using Network Load Balancing Manager

Page 31: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Monitoring Network Load Balancing Using Event Viewer

Page 32: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Using Nlb.exe A command line using a utility

Some of the program’s most useful parameters are as follows:

display drain port drainstop params

Example print out on pages 23 – 24. query queryport port

Page 33: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Exam Tip Be sure to understand that the NLB.EXENLB.EXE

and WLBS.EXEWLBS.EXE programs are one andthe same, with identical functions and parameters

Page 34: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Practice: Creating a Network Load Balancing Cluster

Exercise 1: Installing IIS Page 7-25

Exercise 2: Creating a Network Load Balancing Cluster

Page 7-26 Exercise 3: Testing the Cluster

Page 7-28

Page 35: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Designing a Server Cluster Designing a Server Cluster Deployment

Page 36: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Planning a Server Cluster Hardware Configuration Using SCSI Understanding SCSI Using Fibre Channel Fibre Channel Arbitrated Loop Fibre Channel Switched Fabric

Page 37: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Using SCSI

Server Server Storage Storage

Cluster using a SCSI bus

Page 38: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Fibre Channel Arbitrated Loop

Server Server

Storage Storage

Cluster using a Fibre Channel arbitrated Loop

Page 39: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Fibre Channel Switched Fabric

Storage Storage

Server Server Server Server

Fibre Channel Switch

Cluster using a Fibre Channel switched fabric

Page 40: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Creating an Application Deployment Plan Windows Server 2003 can host the

following two basic types of applications in a server cluster: Single-instance applications Multiple-instance applications

Page 41: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Deploying Multiple-Instance Applications Partitioning an application means that you

split the application’s functionality into separate instances and deploy each one on a separate cluster node.

Database

A to G H to L M to S T to Z

Server Server Server Server

Page 42: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Selecting a Quorum Model Server clusters running Windows Server

2003 support the following three types of quorum models: Definitions on page 7-38 Single-node cluster Single-quorum device cluster Majority node set cluster

Page 43: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Exam Tip Be sure to understand the differences

between the various quorum models supported by Windows Server 2003.

Page 44: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Creating a Server Cluster To create a new

cluster, you must have the following information available: The name of the

domain in which the cluster will be located

The host name to assign to the cluster

The static IP address to assign to the cluster

The name and password for a cluster service account

Page 45: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Creating a Server Cluster Some of the configuration tasks you can

perform in Cluster Administrator are as follows: Create resource groups Define resource dependencies Configure the cluster network role Configure failover relationships

Page 46: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Exam Tip It is a good idea to spend some time

exploring the Network Load Balancing Manager and Cluster Administrator applications. Learn the function of each parameter or setting in these two programs, using the online help for assistance.

Page 47: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Configuring Failover Policies Some of the failover policies you might

consider using are as follows: Failover pairs Hot-standby server N+I Failover ring Random

Page 48: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Practice: Creating a Single Node Cluster

Exercise 1: Creating a Server Cluster Page 7-42

Exercise 2: Creating a Cluster Resource Page 7-43

Exercise 3: Access the Server Cluster Page 7-44

Page 49: Clustering Servers Chapter Seven. Exam Objectives in this Chapter:  Plan services for high availability Plan a high availability solution that uses clustering

Summary Case Scenario Exercise

Page 7-46 Troubleshooting Lab

Page 7-48 Exam Highlights

Page 7-49 Key Points Key Terms