quorum witness

term

networkingcloud

Kept in this browser · My desk

A voting member that holds no data, placed in a third location so that a cluster split between two sites can still form a majority.

Two sites cannot keep a majority through the loss of the larger one, whatever the number of members, because the survivors are always at most half. A witness supplies the deciding vote: Microsoft's failover clustering requires one for a two-node cluster, strongly recommends one for three or four nodes and calls it unnecessary from five, and its dynamic witness toggles its own vote to keep the total odd. Google's Spanner places a witness replica in each region of a dual-region configuration. The witness must sit in its own failure domain, or it fails with the site it was meant to arbitrate.

Arithmetic. With 2/2 members in two sites the majority is 3 and losing either site leaves 2; with a witness in a third place the layout is 2/2/1, the majority still 3, and losing either data site leaves 3. With five members split 3/2 across two sites, losing the larger site leaves 2 of 5 and no quorum. Implementations. Microsoft documents file share and cloud witnesses and a dynamic quorum that, with an even number of nodes and no witness, zeroes one node's vote automatically. Spanner's dual-region configuration has two read-write replicas and one witness in each region and requires at least two voting replicas in each region for a write quorum; losing a region means failing over to a single-region quorum. etcd recommends odd cluster sizes because an odd size guarantees a majority partition. Limits. A witness breaks ties; it does not hold data, cannot serve reads and adds latency only for the votes it casts. Clusters of firewalls and load balancers use the same idea with dedicated heartbeat links and tie-breakers, covered in the series part on stateful clusters.

Also known as: witness, witness replica, tiebreaker, tie-breaker, file share witness, cloud witness, testemunha

← Back to Q Back to the glossary