High availability cluster

摘自于维基百科

High-availability cluster
From Wikipedia, the free encyclopedia

High-availability clusters (also known as HA Clusters or Failover Clusters) are computer clusters that are implemented primarily for the purpose of improving the availability of services which the cluster provides. They operate by having redundant computers or nodes which are then used to provide service when system components fail. Normally, if a server with a particular application crashes, the application will be unavailable until someone fixes the crashed server. HA clustering remedies this situation by detecting hardware/software faults, and immediately restarting the application on another system without requiring administrative intervention, a process known as Failover. As part of this process, clustering software may configure the node before starting the application on it. For example, appropriate filesystems may need to be imported and mounted, network hardware may have to be configured, and some supporting applications may need to be running as well.

HA clusters are often used for critical databases, file sharing on a network, business applications, and customer services such as electronic commerce websites.

HA cluster implementations attempt to build redundancy into a cluster to eliminate single points of failure, including multiple network connections and data storage which is multiply connected via Storage area networks.

HA clusters usually use a heartbeat private network connection which is used to monitor the health and status of each node in the cluster. One subtle, but serious condition every clustering software must be able to handle is split-brain. Split-brain occurs when all of the private links go down simultaneously, but the cluster nodes are still running. If that happens, each node in the cluster may mistakenly decide that every other node has gone down and attempt to start services that other nodes are still running. Having duplicate instances of services may cause data corruption on the shared storage.
Node configurations
ha cluster

The most common size for an HA cluster is two nodes, since that’s the minimum required to provide redundancy, but many clusters consist of many more, sometimes dozens of nodes. Such configurations can sometimes be categorized into one of the following models:

* Active/Active — Traffic intended for the failed node is either passed onto an existing node or load balanced across the remaining nodes. This is usually only possible when the nodes utilize a homogeneous software configuration.
* Active/Passive — Provides a fully redundant instance of each node, which is only brought online when its associated primary node fails. This configuration typically requires the most amount of extra hardware.
* N+1 — Provides a single extra node that is brought online to take over the role of the node that has failed. In the case of heterogeneous software configuration on each primary node, the extra node must be universally capable of assuming any of the roles of the primary nodes it is responsible for. This normally refers to clusters which have multiple services running simultaneously; in the single service case, this degenerates to Active/Passive.
* N+M — In cases where a single cluster is managing many services, having only one dedicated failover node may not offer sufficient redundancy. In such cases, more than one (M) standby servers are included and available. The number of standby servers is a tradeoff between cost and reliability requirements.
* N-to-1 — Allows the failover standby node to become the active one temporarily, until the original node can be restored or brought back online, at which point the services or instances must be failed-back to it in order to restore High Availability.
* N-to-N — A combination of Active/Active and N+M clusters, N to N clusters redistribute the services or instances from the failed node among the remaining active nodes, thus eliminating (as with Active/Active) the need for a ‘standby’ node, but introducing a need for extra capacity on all active nodes.

The term Logical host or Cluster logical host is used to describe the network address which is used to access services provided by the cluster. This logical host identity is not tied to a single cluster node. It is actually a network address/hostname that is linked with the service(s) provided by the cluster. If a cluster node with a running database goes down, the database will be restarted on another cluster node, and the network address that the users use to access the database will be brought up on the new node as well so that users can access the database again.

Application Design Requirements
Not every application can run in a high-availability cluster environment, and the necessary design decisions need to be made early in the software design phase. In order to run in a high-availability cluster environment, an application must satisfy at least the following technical requirements:

* There must be a relatively easy way to start, stop, force-stop, and check the status of the application. In practical terms, this means the application must have a command line interface or scripts to control the application, including support for multiple instances of the application.
* The application must be able to use shared storage (NAS/SAN).
* Most importantly, the application must store as much of its state on non-volatile shared storage as possible. Equally important is the ability to restart on another node at the last state before failure using the saved state from the shared storage.
* Application must not corrupt data if it crashes or restarts from the saved state.

The last two criteria are critical to reliable functionality in a cluster, and are the most difficult to satisfy fully. Finally, licensing compliance must be observed.

Node reliability
HA clusters usually utilize all available techniques to make the individual systems and shared infrastructure as reliable as possible. These include:

* Disk mirroring so that failure of internal disks does not result in system crashes
* Redundant network connections so that single cable, switch, or network interface failures do not result in network outages
* Redundant Storage area network or SAN data connections so that single cable, switch, or interface failures do not lead to loss of connectivity to the storage
* Redundant electrical power inputs on different circuits, usually both or all protected by Uninterruptible power supply units, and redundant power supply units, so that single power feed, cable, UPS, or power supply failures do not lead to loss of power to the system.

These features help minimize the chances that the clustering failover between systems will be required. In such a failover, the service provided is unavailable for at least a little while, so measures to avoid failover are preferred.

HA Cluster products

There are many commercial implementations of High-Availability clusters for many operating systems.

Common clusters

These products are found extensively in commercial or research/academic use:

* UpSuite HA – Solaris and Linux
* Veritas Cluster Server – multi-platform
* Sun Cluster – Solaris only
* Netra High Availability Suite – Solaris and Linux
* OpenVMS – The original clustering OS – runs on VAX, Alpha and Itanium(2) only, still no EOL
* HP ServiceGuard for HP/UX and Linux
* Linux-HA — a commonly used free software HA package for the Linux OS.
* Red Hat Cluster Suite – Linux only
* High Availability Cluster Multiprocessing aka IBM HACMP for AIX
* Microsoft Cluster Server (MSCS) – Windows only
* Parallel Sysplex – unique to IBM mainframes
* IBM Tivoli System Automation – z/OS, AIX, Linux, Windows Server 2003

Other clusters

These cluster systems are less commonly found in production.

* TruCluster
* iCluster – for iSeries
* Novell Cluster Services for NetWare and Linux
* PRIMECLUSTER for Solaris and Linux
* OpenClovis ASP Open Source Solution
* openMOSIX Gentoo Linux
* GoAhead SelfReliant for Linux, Windows, VxWorks and Solaris
* SteelEye LifeKeeper for Linux and Windows
* RSF-1 for AIX, HP-UX, Linux, Solaris, OS X
* HA/FST – Open Source HA for Solaris (SPARC,x86)
* HA-OSCAR – High Availability Open Source Cluster Application * * OpenSSI for Linux
* EMC Corporation AutoStart for all platforms [1]
* VMware Infrastructure 3 (VI3) – High Availability for Virtual Servers
* NCache – Clustered object caching and Distributed ASP .NET Session State solution
* WanSyncHA – High Availability for MS platforms, based on real-time replication and automatic failover and failback

This entry was posted in 生活点滴 and tagged . Bookmark the permalink.

Leave a Reply

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