Server cluster

Also known as: computer cluster

On this page 7

A server cluster is a group of independent servers, called nodes, that are connected by a network and coordinated by software so that they behave as a single system toward users and applications. In server fundamentals, the term covers several designs with different goals: keeping a service running when hardware fails, spreading load across many machines, or combining processing power for large computations. The synonym computer cluster is common in scientific and academic computing.

Clustering sits between a single dedicated server and a full data center architecture. It does not make individual machines more reliable; instead, it removes the single point of failure by ensuring that the loss of one node is absorbed by the others. The price is added complexity in networking, storage, state management and operations.

How a server cluster coordinates its nodes

A server cluster works by running cluster management software on every node that tracks membership, health and the placement of services. Nodes exchange heartbeat messages over one or more dedicated links, typically every one to a few seconds. When a node stops responding within the configured timeout, the remaining members declare it failed and restart its workloads elsewhere.

To avoid conflicting decisions, clusters rely on a quorum: an action is valid only when a majority of voting members agree. A three-node cluster tolerates one failure, a five-node cluster tolerates two. Consensus protocols such as Raft and Paxos implement this agreement in modern systems, while older high-availability stacks such as Pacemaker with Corosync use comparable voting logic.

When a failed node may still be partly alive, the cluster uses fencing, also called STONITH (shoot the other node in the head), to power it off or cut its storage access. Fencing is often performed through a baseboard management controller using IPMI or Redfish, or through a managed power distribution unit. Without fencing, two nodes can write to the same data at once and corrupt shared storage.

The following table lists the core building blocks that appear in almost every clustered design.

ComponentRole in the clusterTypical implementation
NodesRun the workloads and vote on membershipRack or blade servers, VMs
InterconnectCarries heartbeats and replication trafficRedundant Ethernet, InfiniBand
Cluster managerTracks health and moves servicesPacemaker, Kubernetes, Slurm
Shared or replicated storageKeeps data reachable after failoverSAN, Ceph, DRBD, database replication
Fencing mechanismIsolates a misbehaving nodeBMC power control, PDU outlets
Virtual IP or load balancerGives clients one stable addressKeepalived, HAProxy, hardware balancer
Core components of a server cluster

Types of server clusters

Server clusters are usually classified by their primary goal, and one installation may combine several types. The distinction matters because each type optimizes a different metric and fails in a different way.

Cluster typeMain goalTypical workloadKey metric
High-availability (failover)Keep a service runningDatabases, file services, ERPUptime, failover time
Load-balancingSpread requests across nodesWeb and API serversRequests per second
High-performance computingCombine compute powerSimulation, research, AI trainingFLOPS, job throughput
Storage clusterDistribute and protect dataObject and block storageCapacity, durability, IOPS
Container orchestrationSchedule many small servicesMicroservices, batch jobsPod density, recovery time
Main cluster types and their purpose

High-availability clusters run in two basic modes. In active-passive mode, a standby node waits idle and takes over only after a failure, which is simple but leaves capacity unused. In active-active mode, every node serves traffic, which improves utilization but requires the application to handle concurrent access to shared state.

A server cluster is often confused with neighboring ideas in server infrastructure. The comparison below shows where the boundaries lie.

ApproachWhat it combinesFailure behaviorMain difference from a cluster
Single dedicated serverOne physical machineService stops on failureNo redundancy at the node level
MainframeRedundant parts in one systemComponents fail over internallyScales up rather than out
Hyperconverged infrastructureCompute, storage and networkVMs restart on other nodesA packaged form of clustering
Server farmMany servers in one locationDepends on configurationNeed not share state or management
Grid computingLoosely coupled remote systemsTasks are resubmittedNodes are heterogeneous and distributed
How clustering differs from related approaches

The defining feature of a true cluster is shared management and a common view of state. A rack full of identical web servers behind a load balancer is a load-balancing cluster only when the nodes are monitored and orchestrated as one unit; otherwise it is simply a group of servers.

Designing and sizing a cluster

Good cluster design starts with the failure that must be survived and the acceptable recovery time. Architects usually apply an N+1 or N+2 capacity rule, which means the cluster must still carry full production load after losing one or two nodes.

  • Use an odd number of voting nodes, or add a lightweight witness, so that a network split cannot leave two equal halves.
  • Provide redundant interconnects on separate switches, because a single heartbeat link is itself a single point of failure.
  • Spread nodes across separate power feeds and racks, and across rooms or sites when the risk justifies it.
  • Decide where state lives: stateless application nodes scale easily, while databases need synchronous or asynchronous replication.
  • Test failover regularly, since an untested failover is an assumption, not a capability.

The table below maps common requirements to a sensible starting design.

RequirementRecommended designReason
Recovery within secondsActive-active with replicated stateNo restart of services is needed
Recovery within minutesActive-passive failover pairSimpler and cheaper to operate
Unpredictable traffic peaksLoad-balanced stateless nodesNodes can be added on demand
Large parallel calculationsHPC cluster with job schedulerWork is split across many cores
Survive loss of a siteStretched or multi-site clusterLatency limits synchronous replication
Decision guide for cluster design

Limitations and common failure modes

Clustering improves availability only when its own mechanisms are reliable. The most serious risk is split-brain, a state in which two partitions each believe they are the active cluster and both modify data. Quorum and fencing exist precisely to prevent it, so disabling fencing to fix a test problem is a dangerous shortcut.

Other frequent issues include shared storage as a hidden single point of failure, failover times longer than the application tolerates, configuration drift between nodes, and software bugs that fail on every node at the same moment. A cluster also adds operational cost: patching must follow a rolling update procedure, and staff need skills that a standalone server does not demand. Finally, synchronous replication over long distances adds latency of roughly one millisecond per 100 km of fiber round trip, which limits stretched designs.

Stripped to the essentials

A server cluster is a team of computers that work together and present themselves as one. If one computer breaks, the others notice within seconds and take over its work, so users usually see little or no interruption.

Think of a restaurant kitchen with several cooks instead of one. When a cook falls ill, the others share the orders and the restaurant stays open. The kitchen needs clear rules about who does what, and the cluster needs the same: coordination is the price of reliability.

Where it is applied

A regional hospital runs its patient record database on a two-node active-passive cluster with a small witness server in a third rack. Both database nodes sit on separate power feeds and connect through two independent network switches. The cluster manager checks heartbeats every second and treats a node as failed after five missed heartbeats.

During a routine night, the power supply of the active node fails. The witness and the passive node form a majority, the cluster fences the failed node through its BMC, mounts the replicated data and moves the virtual IP address. Clinical workstations reconnect automatically, and the record system is back in service after about 40 seconds. Technicians replace the power supply the next morning and add the node back without any further downtime.