A hospital's patient records service runs on an active-passive cluster. A board failed on the active node, the standby node took over automatically, and users noticed nothing.
Staying in service: clusters and multiple sites
Some services cannot stop even for the hours a recovery site would take to start. They are built so that when one computer fails, or one whole site, another is already running and takes over the work. The tools are clusters, load balancers and, at the largest scale, multiple processing sites. No technical background is assumed, and a security professional needs the subject to judge when the expense is justified and what it still leaves unprotected.
By the end of this unit you will be able to:
- Explain what a cluster and a load balancer do
- Tell apart active-passive and active-active arrangements
- Explain failover and failback
- Explain what multiple processing sites are and how they differ from a recovery site
- Explain why high availability does not replace backups
A spare server, still in its box
An illustrative example
A cinema chain sells tickets online from one server. One Friday at six the server's cooling fan fails and bookings stop for two hours. The managing director buys a second, identical server so that it cannot happen again. It is kept in its box in the store room.
Eight months later the first server fails on a Saturday evening. A technician drives in, unpacks the spare, connects it and loads the latest backup. Bookings return after ninety minutes.
What would have to be different about the second server for customers not to notice the failure at all?
A cluster: several computers delivering one service
A cluster is a group of computers, each called a node, that work together to deliver one service. Users see a single service at a single address. When a node fails, the others carry on.
The nodes keep watch on one another. Each sends the others a regular signal called a heartbeat. When a node's heartbeat stops, the rest conclude that it has failed and take over its work.
A node can only take over work if it has the data. Either every node reads and writes the same shared storage, or each change made on one node is copied to the others. That copying is called replication.
, the design aim of keeping a service up for a very high share of the time, is reached by removing single points of failure. A cluster removes the server as one.
Active-passive and active-active
| Point | Active-passive | Active-active |
|---|---|---|
| What the nodes do | One does all the work. The other waits, switched on and kept up to date | All nodes share the work at the same time |
| When one fails | The waiting node takes over after a short pause | The remaining nodes absorb the failed node's share |
| Cost of the spare | The standby is paid for and sits idle | Every node must keep room to spare |
| Everyday picture | A pilot and a co-pilot | Two checkouts open in a shop |
Active-active only protects a service if the survivors can carry everything. Two nodes that each run at 80% of their capacity cannot survive the loss of one, because the survivor would be asked for 160%. In a pair, each node normally runs at no more than half.
Common misconception
“A service that runs on two servers will survive the failure of one.”
Only if the remaining server can carry the whole load. The two must also not depend on the same single part, such as one power circuit or one network switch.
Load balancers share the work
A load balancer is a device or program that receives every request for a service and passes each one to one of several servers behind it. It spreads the work evenly. It also checks each server's health and stops sending requests to one that has stopped answering.
A load balancer in front of three servers gives users one address to visit. A server can fail, or be taken out for repair, and users notice nothing as long as the other two can carry the work.
The load balancer must not become the new single point of failure. Load balancers are therefore installed in pairs, one ready to take over from the other.
Load balancing and clustering are often used together and are different things. Load balancing shares many separate requests among servers that each do the same job. Clustering makes several machines behave as one system.
Failover and failback
Failover is the transfer of a service from a failed component to its backup component. Automatic failover needs no person. Manual failover waits for someone to decide and act, which is slower and sometimes safer.
Failback is the return of the service to the original component once it has been repaired and tested.
After a failover the service is running on its spare, with no spare behind it. Users see nothing wrong, and the service is one failure away from stopping. The repair is urgent for that reason.
A standby that has never taken over may not work when asked. Its settings may have fallen behind those of the active node, or its copy of the data may be stale. Failover is therefore tested, often by failing over on purpose during planned maintenance.
Multiple processing sites
A cluster in one building is lost with the building. The same idea can be applied to whole sites.
With multiple processing sites an organisation runs its normal work in two or more of its own sites at the same time. Each site is able to take on the others' work. No site is set aside as the . All of them are in daily use.
A bank in two cities
A bank processes payments in data centres in two cities. Each handles half the customers and is built to handle all of them. Every payment recorded in one is copied to the other. When one city loses power, the load balancers send every customer to the other centre, and service continues.
- Each site keeps enough spare capacity to absorb another site's work.
- Data is replicated between the sites, so each holds a current copy.
- The sites are far enough apart that one flood, storm or power failure cannot reach both.
- The network can redirect users to a working site without their doing anything.
The arrangement has one large advantage over a recovery site that stands waiting: every site is proven every day, because every site is in use. Its cost is the idle capacity and the constant copying of data.
Availability is not recovery
| Arrangement | Protects against | Does not protect against |
|---|---|---|
| Duplicate parts, such as RAID | Failure of one part | Loss of the whole server |
| A cluster in one site | Failure of one server | Loss of the site |
| Multiple processing sites | Loss of a whole site | Damage to data, which is copied to every site |
| A recovery site | Loss of the primary site | The downtime while it is started |
| A backup | Deletion, corruption and ransomware | The downtime while it is restored |
Replication copies a mistake as quickly as it copies everything else. A file deleted by accident, or scrambled by ransomware, is deleted or scrambled on every node and at every site within moments. A backup made earlier is the only way back.
High availability is expensive. It is chosen for the few services whose is shorter than any recovery site could meet, and it is added to backups, never substituted for them.
A question, worked through
An online ticket seller runs its booking service on two servers behind a pair of load balancers in one data centre. Each server normally runs at about 85% of its capacity. The business has stated one requirement for the service: it must continue without interruption if one server fails. A security professional is asked to review the design against that requirement.
Which finding matters MOST for the stated requirement?
Decide on your answer, then open the reasoning
- The requirement is narrow: no interruption when one server fails. The finding to report first is the one that defeats that requirement.
- Rule out d: unencrypted data is a confidentiality weakness. It has no bearing on whether the service survives a failed server.
- Rule out c: an untested load balancer pair is a real gap, but the requirement concerns the failure of a server, and the load balancers are already paired.
- Between a and b: both are real weaknesses. Option b concerns the loss of the whole site, which the requirement does not mention.
- Option a defeats the requirement directly. A survivor already at 85% cannot take on another 85%, so one failure would overload the service. That is the finding to report first, with b noted as a separate risk.
Answer: A. Each server runs too near its limit to absorb the other's load
Choosing between good answers
- The requirement is to survive the failure of a server without interruption
- choose a cluster or load-balanced servers with automatic failover. A recovery site is too slow for this.
- The requirement is to survive the loss of a whole site without interruption
- choose multiple processing sites or a mirrored site. A cluster in one building does not meet it.
- Servers share work and the question gives how busy each is
- check that the survivors could carry the full load. If not, the redundancy is only apparent.
- Data has been corrupted, deleted or encrypted by an attacker
- choose restoring from a backup. Replicas and standby nodes hold the same damage.
- High availability is proposed for a system that can be down for days
- prefer the cheaper recovery option that meets the stated target.
Check your understanding
4 questions on this unit, easiest first. Confirm an answer to see the reasoning for it, then the right answer, the other options and the rule to reuse. Your answers are kept in this browser and feed readiness and review.
These questions are drafts that no named reviewer has approved yet.
Question 1 of 4
What to remember
- A cluster is several nodes delivering one service. Active-passive keeps one node waiting, and active-active shares the work among all.
- A load balancer shares requests among servers and stops using one that has failed.
- Failover moves a service to its spare. Failback returns it to the repaired original.
- Multiple processing sites run the organisation's normal work in two or more sites at once, each able to take the others' load.
- Redundancy only works if the survivors have the capacity and share no single point of failure.
- Replication copies damage as fast as data, so high availability never replaces backups.
Say it from memory
What are multiple processing sites, and how do they differ from a recovery site that stands waiting?
The organisation runs its normal work in two or more of its own sites at the same time. Each site has spare capacity and a current copy of the data, so it can take on another site's work. A recovery site waits unused until a disaster. With multiple processing sites every site is in daily use, so each is proven every day and the loss of one causes little or no interruption. The cost is idle capacity and constant replication.
How do clusters and load balancers keep a service available, and what are active-passive, active-active, failover and failback?
A cluster is several nodes delivering one service. A load balancer shares requests among servers and stops using one that fails. Active-passive keeps one node waiting. Active-active shares the work, so each survivor must have room for the whole load. Failover moves the service to its spare. Failback returns it to the repaired original.
How do the nodes of a cluster know one has failed, and how can a surviving node take over its work?
Each node sends the others a regular signal called a heartbeat. When a node's heartbeat stops, the rest conclude it has failed and take over its work. They can do so only with the data: every node uses the same shared storage, or each change is copied to the others by replication.
Why are load balancers installed in pairs, and how does load balancing differ from clustering?
So that the load balancer does not become the new single point of failure: one is ready to take over from the other. Load balancing shares many separate requests among servers that each do the same job. Clustering makes several machines behave as one system.
Why is the repair urgent after a failover, and why is failover tested?
After a failover the service runs on its spare with no spare behind it, one failure away from stopping. A standby that has never taken over may not work: its settings may lag the active node or its data be stale. So failover is tested, often on purpose during planned maintenance.
Why does high availability not replace backups?
Replication copies a mistake as quickly as everything else. A file deleted by accident or scrambled by ransomware is deleted or scrambled on every node and at every site within moments. A backup made earlier is the only way back, so high availability is added to backups, never substituted for them.
Sources
- NIST SP 800-34 Rev. 1: Contingency Planning Guide for Federal Information Systems, NISTHigh availability as redundancy and failover built in to remove single points of failure, extended to an alternate location. Two identical production systems at separate locations, each built for the full workload with data continuously synchronised. High availability as no replacement for backups, because corruption can spread through it.
- ISACA Glossary, ISACAFailover as the transfer of service from an incapacitated primary component to its backup component.
- SNIA Dictionary, Storage Networking Industry AssociationReplication between a primary and a secondary site.