OpenBao Raft cluster sizing: voters, quorum and non-voters

Three or five Raft voters decide how many OpenBao node failures a cluster survives, while non-voters add read capacity or remote copies without changing quorum.

On this page

How many Raft voters does an OpenBao cluster need?

Three or five voters is the decision, and it has to be made before the first initialization. Integrated storage (Raft) is one of the two HA backends OpenBao's HA documentation lists as officially supported, alongside PostgreSQL. In a Raft-backed cluster, one node is active and holds the state that serves requests, while the standby nodes replicate data and forward or redirect requests to the active node. Voters are the nodes that take part in Raft elections and commit writes, so the voter count sets how many nodes the cluster can lose before writes stop. Changing that layout after go-live is possible, but it adds procedural risk to a cluster that already holds secrets, so the layout belongs in the design review, not in a later tuning exercise.

Raft commits a write only when a majority of voters acknowledges it. With three voters, the majority is two, so the cluster tolerates one voter failure. With five voters, the majority is three, so it tolerates two. Four voters do not improve on three, since the majority rises to three and the cluster still tolerates only one failure, which is why teams usually pick three or five. Plan the voters across failure domains you can name, such as separate hosts, racks, availability zones or data centers, and confirm with your own platform team that a single domain failure leaves a majority in place. Also confirm the latency between voters that your chosen layout will carry, because every committed write waits on that quorum.

Non-voting nodes are a different tool. They receive replicated data but do not count toward the majority, so they add read capacity or a remote copy without changing how many failures the write quorum tolerates. Read scaling on standbys is covered in its own section and in the sibling topic on standby reads. Ask your engineers to record the voter list, the failure domain of each voter and the intended role of any non-voter in the design document before the first bao operator init runs, and check the current Raft and HA behavior against the OpenBao high availability documentation for the version you deploy.

Voter layouts and when each fits

This table compares Raft voter layouts for OpenBao on failure tolerance, write acknowledgment cost, operating load and fit for regulated environments. Read the failure tolerance column first, since it follows directly from majority arithmetic. The main takeaway is that voter count changes tolerance in steps, while non-voters add copies and read capacity without changing quorum.

LayoutFailure toleranceWrite and operating trade-offsFits when
Three votersMajority is two. Survives loss of one voter.Each write waits for two acknowledgments. Fewest nodes to patch, back up and monitor.Single-site installs where one node loss must not stop secrets service and the team accepts one-failure tolerance.
Five votersMajority is three. Survives loss of two voters.Each write waits for three acknowledgments. More inter-node traffic and more nodes to operate.Estates that must absorb planned maintenance on one node plus an unplanned failure, with voters in separate failure domains.
Two or four votersTwo voters tolerate no failure. Four voters tolerate one, the same as three.Even counts add a node without adding tolerance, so cost rises with no gain in failure tolerance.Rarely a good fit. Avoid unless a specific constraint forces an even count, and confirm the layout with your architect.
Three or five voters plus non-votersNon-voters do not count toward quorum, so tolerance stays set by the voter count.Non-voters receive replicated data and add nodes to run, monitor and patch. Confirm which requests each non-voter serves in your version.Read capacity or a remote copy is needed without changing failure tolerance. Confirm the read behavior before relying on it.
Single-node PebbleDB (contrast only)No high availability. The one node is a single point of failure.No replication or quorum to manage. One process to back up, restore and patch.Small or edge installs where an outage is acceptable. It cannot provide high availability, so it is not a cluster layout.

When non-voting nodes add read capacity or remote copies

Non-voting nodes sit outside the quorum calculation, so they can add capacity or copies without changing how many failures the voters can absorb. The cards below cover the cases where that separation is useful and the checks to make before relying on each one.

Horizontal reads on standby nodes

Since OpenBao 2.5.0, Raft standbys can serve read-only operations, so read traffic can be spread across nodes instead of landing only on the active node. Only some requests are served locally; writes and others are forwarded to the active node. Confirm which read paths your clients hit and how your load balancer routes them against the standby read documentation for your version.

HA docs

Standbys do not add write capacity

Adding a node that serves reads does nothing for write throughput, because every write still passes through the active node and must be committed by the voter majority. Size the voter set for failure tolerance, then size read capacity separately. Check write latency under load before assuming more nodes will help.

Non-voters do not count toward quorum

A non-voter receives replicated log entries but is not counted when the cluster calculates a majority. Losing every non-voter leaves the quorum math unchanged, and adding one does not raise the number of voter failures you can survive. Keep the voter count at three or five and treat non-voters as extra copies or capacity, not as failure budget.

Remote copy in a second site

A non-voter in another data center or region keeps a replicated copy of cluster data without becoming part of the voter set, so cross-site latency does not slow commits. This is useful as a recovery source, but it is not an automatic failover target. Confirm how promotion to voter is performed, and rehearse it, before depending on the remote copy in a disaster.

Remote copy and backups together

A remote non-voter is a live replica, so it will reflect bad writes, deletions and corruption as quickly as the voters do. Keep separate Raft snapshots for point-in-time recovery, stored encrypted outside the cluster. Verify that your snapshot process still works when the non-voter is present and that restores are tested.

Confirm behavior for your version

Read scaling and consistency behavior depend on the OpenBao version in use, and clients may see stale data from a standby after a write. Before rollout, check the standby read and consistency documentation for your release, then test a write followed by a read through your actual load balancer path. Record the results as part of your sizing decision.

Standby read docs

How voters, non-voters and clients fit together

The diagram starts with client requests arriving at a load balancer, which routes them to the cluster. The active node handles writes and replicates them to the voting standbys, and a write only counts once a majority of voters has stored it. Non-voting nodes sit outside that quorum group and receive the same replicated data, so they can serve read-only requests or hold a remote copy without changing the majority. Check that the load balancer health checks match each node's role, and that only voters appear inside the quorum boundary.

Voters form the quorum, while non-voters receive replicated data outside the majority.

Sizing and building a Raft cluster step by step

This sequence takes a team from failure-domain planning to a verified OpenBao Raft cluster with the right number of voters, optional non-voters for read capacity or remote copies, and a tested failover before anything depends on it.

  1. Map failure domains and sites first

    Before choosing a node count, list the failure domains you actually have: separate hosts, racks, availability zones, data centers and any site that must survive on its own. Decide which domains must keep a majority of voters if one of them fails, and who owns each domain. The step is done when you have a written map that shows each planned node in a named domain and a named owner for each site. Ask your cloud or data center team to confirm that the domains are independent in power, network and storage, because two nodes on one hypervisor are one failure domain.

  2. Pick three or five voters

    Choose the voter count from the failure domain map. A Raft cluster commits writes only when a majority of voters agree, so three voters tolerate the loss of one voter and five tolerate the loss of two. Even counts add cost without adding failure tolerance, and a single-site cluster with two voters in one room gains nothing over one. Confirm the voter count against the OpenBao high availability documentation for your release, and record the decision with the reasoning, because the count is hard to change later without a planned change to the membership. The step is done when the voter list and the quorum arithmetic are agreed in writing.

  3. Prepare identical node configuration

    Build each voter with the same OpenBao release, a dedicated storage path on local disk with low latency, consistent TLS certificates and a stable address that other nodes can reach. Use the integrated storage configuration for Raft, give each node a unique node identifier and confirm that the seal method and unseal procedure match across nodes. Check that every node resolves its peers and that clocks are synchronized. The step is done when each node starts in a sealed, uninitialized state with the expected configuration and no node has a conflicting identifier or address.

  4. Configure join settings and form the cluster

    Configure retry_join stanzas, or the equivalent cloud auto-join or DNS discovery your environment uses, so each node can find the first voter and the others. Initialize one node, unseal it, then join the remaining voters and unseal each of them. Keep the join list short and explicit during early testing so a misconfigured peer is easy to spot. The step is done when every voter reports itself as a member of the same cluster and one node reports as active while the others report as standby. Use the dedicated join and auto-join page for the detailed settings.

  5. Verify voters before adding anything else

    Confirm the voter set with the peer-listing command and check that each voter has a healthy heartbeat, a matching applied index and a leader that is stable under normal load. Run a small write and read on the active node, then read the same key from a standby to confirm replication. Record the output as the baseline for later comparison. Do not add non-voters until this check passes on every voter, because a sick voter set makes every later change harder to diagnose. The step is done when the peer list shows the expected voters and the baseline write is visible on every node.

  6. Add non-voters only after the voters are healthy

    Add non-voting nodes when you need read capacity in a site, a remote copy of the data, or a node that can be promoted later without changing quorum. Non-voters receive replicated data but do not count toward the majority, so adding them does not raise write tolerance. Add them one at a time, wait for each to catch up, and confirm that the voter count and leader are unchanged. Confirm the read behavior for standby nodes in your release, because which requests standbys serve depends on the version. The step is done when each non-voter is listed as a non-voter, has caught up, and the voter set has not changed.

  7. Rehearse a failover test

    Stop the active node in a controlled window and confirm that a surviving voter becomes active and that writes succeed again. Then stop a second voter in a three-voter cluster to confirm that the cluster loses quorum and refuses writes, which proves the failure arithmetic you wrote down. Restart the nodes, confirm they rejoin and catch up, and check the peer list again. Also confirm that load balancers and clients follow the new active node. The step is done when failover, quorum loss and recovery have each been observed and written up, with the results kept with the cluster runbook.

  8. Take a snapshot and record the baseline

    Take a Raft snapshot once the cluster is stable, store it encrypted in a location outside the cluster, and test a restore in a separate environment before you rely on it. Record the final voter and non-voter list, the failure domain map and the verified failover results as the cluster baseline. Store the baseline with the runbook so that the next person adding a node can see the intended quorum. The step is done when a snapshot exists, a test restore has been completed, and the baseline document is approved by the cluster owner.

Security and operational considerations for cluster layout

Voter count only protects you if the voters fail independently, can talk to each other securely, and can be recovered. The cards below cover the layout, transport, backup, key custody and monitoring decisions that sit around a Raft sizing choice. Confirm each setting against the documentation for the exact OpenBao version you run.

Spread voters across failure domains

A majority only tolerates failures if the lost nodes do not take the quorum with them. Place voters on separate hosts, racks, hypervisors or availability zones, so that one power, network or storage event cannot remove more than the tolerated number. Three voters in one rack give you three copies of the same risk. Ask your platform team to map each node to a failure domain before you finalize the voter count, and confirm how your cloud or hypervisor handles anti-affinity.

OpenBao HA docs

Encrypt peer traffic with TLS

Raft nodes exchange replicated log entries and cluster coordination traffic, and that traffic carries the data you are protecting. Issue certificates for every node, configure TLS on the cluster listener and API address, and verify that each peer rejects unencrypted or unknown connections. Confirm the exact listener and certificate options in the configuration reference for your version, and test a rotation before go-live so renewal does not become an outage.

Protect Raft snapshots as secrets

A Raft snapshot contains the replicated storage state, so a copy in the wrong place exposes the same data as the live cluster. Store snapshots encrypted, restrict who can read or restore them, and keep them in a location outside the failure domain of the cluster itself. Snapshot restore is also a recovery control, so test it on a separate environment. The companion page on Raft snapshots covers the commands and automation.

Assign unseal key custody per node

Each node needs access to the unseal process after a restart, so the custody model affects how quickly a voter returns to service. Decide who holds the key shares or seal material, where they are stored, and how a replacement node is unsealed during an incident. Do not let all shares sit with one administrator or one host. Confirm which seal method your version supports and document the ceremony that your operators will run at 2 a.m.

Monitor peer health and membership

A voter that is down or lagging reduces your margin before any outage is visible to users. Track the list of Raft peers, which nodes are voters, which are non-voters, and how far each follower lags the leader. Alert when the voter count drops below the level you planned for, and when a node stops responding or reports stale membership. Confirm the exact operator commands and metric names for your version in the operations documentation before you build dashboards.

Questions buyers ask about OpenBao Raft sizing

Are three Raft voters enough for an OpenBao cluster?

For many production clusters, three voters is the starting point, because Raft needs a majority of voters to commit writes. With three voters, the cluster keeps quorum if one voter fails, but a second failure stops writes until a voter returns or is replaced. Whether three is enough depends on how quickly your team can replace a failed node, whether your three voters sit in separate failure domains, and how much downtime your secrets consumers can tolerate. Confirm the voter placement and recovery expectations against the OpenBao high availability docs before you commit.

Why not run four Raft voters?

Four voters usually add cost without adding failure tolerance. A majority of four is three, so the cluster still survives only one node failure, the same as a three-voter cluster, while every write must be acknowledged by more nodes. The extra node adds hardware, certificates, patching and monitoring with no gain in fault tolerance. An even voter count is mainly worth considering only when a specific placement constraint requires it, and that case should be reviewed with the people who own your network and data center layout.

What does moving to five voters add in nodes and operations?

Five voters tolerate two simultaneous voter failures while keeping quorum, which matters when a node failure can coincide with planned maintenance or when an outage can take out a whole site. The added cost is two more servers or virtual machines, two more TLS identities, two more patch cycles, two more backup targets to verify, and more Raft membership changes to rehearse. Every extra voter also slightly increases replication work for each write. Ask for a written list of what each additional node needs in compute, storage, network paths and on-call coverage before you decide.

Do non-voting nodes count toward quorum?

No. Non-voters receive replicated log data but do not vote in elections and are not counted when the cluster decides whether a write is committed. This means you can add non-voters for read capacity or a copy in a remote location without changing the failure tolerance that your voter count gives you. The trade-off is that a non-voter is not a source of fault tolerance for writes, so it does not replace a voter. Check the current behavior and read-serving rules in the OpenBao high availability docs for your version.

How long does a Raft cluster rollout take and what drives the timing?

No fixed duration applies because the timing depends on your environment. The main drivers are the number of nodes, whether the infrastructure already exists, how many network segments and failure domains the voters span, the certificate and identity model, how many clients must be repointed, and whether the team wants a rehearsed snapshot restore before go-live. A quote should show the schedule as phases tied to the written scope, with the test and cutover steps listed separately. Ask for the assumptions behind each phase so you can see which ones change if your environment differs.

What does the work need from our own team?

Expect to provide access and decisions rather than hands-on operation. Your team typically supplies the target infrastructure and accounts, network rules between nodes and clients, DNS and load balancer changes, certificate authority or TLS process, identity provider settings for login, and named owners for approvals and change windows. Your security team should confirm the unseal and key custody approach and who holds recovery material. Your operations team should be available for the cutover window and for the first on-call handover. Ask the provider to list these inputs in the scope so gaps surface before work starts.

Can our own team size and deploy the cluster without a partner?

Yes, if your team has experience with Raft consensus, TLS, Linux service operations and OpenBao configuration, and can run the restore and node replacement procedures under pressure. The risk lies less in the first build than in the failure cases: a lost voter, a split network, an expired certificate or a bad snapshot. Compare an internal build against a partner quote by checking who will rehearse failure scenarios, who documents the runbooks, and who supports the first upgrade. DeployOpen plans, implements, hardens, backs up, documents and supports self-hosted platforms in infrastructure you control, and most engagements are fixed-scope with the scope agreed in writing before work starts.

How DeployOpen scopes an OpenBao Raft cluster

DeployOpen plans and implements OpenBao Raft clusters inside your own infrastructure, whether that is your cloud accounts, data centers or an air-gapped network. The sizing decisions in this topic, including how many voting nodes to run, where non-voters sit and which nodes take snapshots or reads, become the first items in a written scope. Before any work starts, the scope, deliverables and timelines are agreed in writing, so your security, platform and compliance teams can review the same design and the same acceptance criteria that the engineers will build against.

A useful scope for a Raft cluster names the node count and placement, the retry_join or other discovery method, the seal and storage configuration, the monitoring of /sys/health and peer state, the snapshot schedule and the restore rehearsal. It also records which failure scenarios are tested and what evidence is handed over, such as configuration files, runbooks and test logs. Ask any provider to show how a voter loss, a non-voter loss and a full site outage are each handled in the written scope. Quotes follow from that written scope rather than from a fixed price list, so the same questions are the right basis for comparing bids.

Engagements can continue after go-live through retainers for support, upgrades and recurring testing of the cluster, including retests after changes to node count or network layout. DeployOpen prepares systems, configuration and evidence that your assessors can review, but it does not issue audit reports, attestations or certifications. Those come from independent auditors and certification bodies, so confirm early which evidence your auditor expects from the cluster.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.