{"canonical_url":"https://engineer.company/glossary/quorum/","content_markdown":"# Quorum\n\n## What it is\n\nA quorum is the number of members whose participation a distributed system\nrequires before it accepts a particular decision. In a majority-based system, a\ngroup of five members can form a quorum with three. The group can keep making\nthe decisions that require a majority while two members are unavailable,\nprovided the remaining members can communicate and meet the protocol's other\nconditions.\n\nThe overlap between majorities is important. Two sets of three chosen from the\nsame five have at least one member in common. A consensus protocol uses such\noverlap together with an election rule, log rules and recorded state. That\ncombination gives the system a way to agree on a history even though individual\nmembers may lose contact or restart. The number alone describes the\nparticipation threshold. The protocol specifies who can vote, how members record\ndecisions and how they learn the most recent committed state.\n\nSome systems use quorums for leader elections or committing log entries. Others\nexpose configurable participation requirements for reading and writing\nreplicated data. Identify the particular operation and guarantee before\ncomparing counts. A read using a local copy and a read that must confirm a\ncurrent leader can have different availability and freshness properties even in\nthe same deployment.\n\n## Why it matters\n\nConsider a five-member service divided by a network failure into groups of three\nand two. The group of three can potentially continue making majority decisions.\nThe other group can have healthy processes and still lack enough members to do\nso. An application needs to recognise the difference between a running machine\nand an available decision-making service. A check that reaches one process might\ngive a green result while requests that need agreement are timing out.\n\nPlacement matters as much as membership count. Three members on a single host or\nin a single failure domain can disappear together. The system might have five\ntotal processes and still lose the ability to decide after one machine fails.\nChoose where members run based on the failures the service is expected to\nsurvive. Even sizing can also be surprising. Both three and four voting members\ncan tolerate one loss under majority rules, while adding a fifth to a healthy\nfour-member configuration changes the failure tolerance.\n\nA quorum design should state what happens to users during loss of agreement. A\ncatalogue might show an explicitly stale copy for browsing, while operations\nthat change persistent state can wait or fail with a defined status. Decide\nwhich paths require current decisions and what evidence the user receives if the\nservice cannot make one. Test that rule from the normal application entry point.\n\n## What it looks like in practice\n\nCreate an illustrative five-member coordination service and take one member\noffline during a workload. Check that new operations still complete, with\nevidence that the service is recording the accepted history on a quorum. Take a\nsecond member offline and repeat. Now isolate one of the remaining members from\nthe other two and verify that requests needing a majority reach the prescribed\nunavailable outcome. Record what clients see, including retries and deadlines.\n\nTry the same test with a partition that leaves a majority together while an\nisolated member still has its local data. Probe both paths through the client\nthe application actually uses. A stale read can appear healthy if it returns\nimmediately from a local copy. The service should give that result a clear\nmeaning so a caller can choose between a permitted historical view and an\noperation that needs confirmation of a current leader or another quorum.\n\nRestore connectivity and observe how the members catch up. Verify that a client\ncan find a service instance able to answer the required kind of query. A rolling\ndeployment can use the same exercise before taking a host out for maintenance.\nCount the available members and identify where they run. A healthy count with\nevery survivor in one remaining failure domain should influence whether another\nplanned change starts.\n\nEngineer's\n[backup and restore-test case study](/portfolio/backups-that-have-actually-been-restored/)\ndocuments an automated workflow with distinct backup and restore signals and a\nbyte comparison for a known file. It provides a helpful model for evidence.\nReplicated membership and recovery of a copy also need distinct checks. In this\nexample majority participation tells us whether current decisions can proceed. A\nrecovery exercise tells us what usable data can be recovered under a different\nclass of failure.\n\n## Where it goes wrong\n\nAn operator can replace a voting member while the system is already close to\nlosing its majority. Changing which members count can raise the votes needed or\nleave the group without enough participants to finish the change. Follow the\nprotocol's membership procedure and check its current availability before\nscheduling another restart. Exercise configuration changes and actual node\nfailures separately.\n\nA participant can also report success too early. If a system returns before an\noperation reaches its required durable decision, a reconnect can reveal that the\nclient saw a tentative result. Examine what the product guarantees after\nacknowledgement. Test a lost reply, a leader change and a recovered member. Give\nusers a way to distinguish a confirmed result from an uncertain outcome.\n\nLastly, design for total loss of the decision-making group. A forced recovery\nwith fewer surviving members can require a different procedure and may lose some\nacknowledged or recent work depending on the system and its available records.\nDocument the data decisions and which person can authorise recovery. The regular\ndrill should leave a clear count of available voting members and a verified\noperation. The recovery drill should establish the scope of data that can be\nrestored.\n\n## Further reading\n\n- [The Raft consensus paper](https://raft.github.io/raft.pdf). Defines election\n  and replicated-log rules built around majority agreement.\n- [The etcd FAQ](https://etcd.io/docs/v3.6/faq/). Explains majority sizing and\n  membership trade-offs.\n- [The etcd guide to failures](https://etcd.io/docs/v3.6/op-guide/failures/).\n  Describes how failures change availability and recovery options.\n\n\u003chttps://engineer.company/glossary/quorum/\u003e\n","date_modified":"2026-11-25T07:18:46Z","description":"Follow a majority decision in a five-member system and see what each group can do during a partition.","formats":{"gemtext":"https://engineer.company/glossary/quorum/index.gmi","gopher":"https://engineer.company/glossary/quorum/gophermap","html":"https://engineer.company/glossary/quorum/","json":"https://engineer.company/glossary/quorum/index.json","markdown":"https://engineer.company/glossary/quorum/index.md","pdf":"https://engineer.company/glossary/quorum/index.pdf"},"kind":"page","language":"en","title":"What is a quorum?","url":"https://engineer.company/glossary/quorum/","version":1}