Bookmarks

Active-active and active-passive schemes

active-active, active-passive

A redundancy approach in which a service is carried by two or more nodes or sites at the same time: when one fails, the rest pick up its share without calling up a standby.

Also: active/active, active/passive, active-active, active-passive

checked 9 Nov

All terms

In active-active, every node of the cluster works and takes load: losing one does not take the service down, it only shrinks the safety margin. The paired active-passive scheme keeps a spare node or site running, but idle until a failure — this is how most database clusters are built, and the “primary data centre plus standby” setup.

How the schemes differ

AspectActive-activeActive-passive
Who worksevery node carries loadthe primary serves, the standby waits
Service when a node failscontinues, but capacity dropscontinues after the switch to the standby
Total capacityadds up from all nodesequals the capacity of one node
Complexityneeds request distribution and shared statesimpler, but switching takes time

What it takes to keep both nodes active

  • Request distribution: a load balancer, anycast, or DNS handing out the addresses of all nodes.
  • Shared state: sessions, cache and data either live in shared storage or are replicated between nodes.
  • Split-brain protection: a quorum or witness so that two severed nodes cannot each decide at the same moment that they are in charge.
  • Client-side retries: after a node fails, some requests arrive twice, and operations must not break when run a second time.

Where each scheme is used

  • Stateless services — web frontends and APIs: every replica behind the load balancer is active, and a node is drained and brought back without any switching.
  • Databases: most often active-passive — one node takes writes while the rest replicate it and wait to be promoted; multi-master clusters where every node takes writes remain a niche solution because of conflicts and lock contention.
  • Quorum stores such as etcd inside Kubernetes: nodes act as a single cluster, but a write is committed only once a majority has acknowledged it — losing a majority stops writes.
  • Networks: VRRP keeps a virtual IP address on a single primary router — that is active-passive; routing across several equal links, on the other hand, is active-active.
  • Disaster recovery: the standby site either waits (active-passive) or also serves traffic (active-active) — the second option costs more, but the site is already warm.

Sources

the term is written from these pages

Verified 9 Nov

Not to be confused with

what it is mixed up with and how it differs

  • load balancer

    A load balancer distributes requests between replicas, while active-active is a redundancy scheme: each replica covers for the others.

  • failover

    Failover is the switch to a standby itself: in active-passive it is needed at every failure, while in active-active the load is picked up by nodes that are already running.

In depth in the references

where the topic is covered in detail