OpenBao Raft Autopilot: server stabilization and dead server cleanup

Autopilot controls when new Raft nodes gain voting rights, when unhealthy servers are removed and how many servers must remain for quorum. This page explains the decisions behind those settings and how to verify them.

On this page

Why OpenBao Raft Autopilot decides when a new node can vote

Autopilot is the part of OpenBao's Raft integration that decides which cluster members count toward quorum and when. According to the OpenBao HA docs, it keeps newly joined nodes as non-voters while they stabilize, promotes them to voters once they are healthy, and can remove servers it classifies as dead. If you are adding nodes to a running Raft cluster or recovering from a lost one, Autopilot determines whether a node that is not yet ready changes your failure tolerance. Teams need to understand this before the first expansion, not during an incident. Confirm the exact stabilization and cleanup behavior for your OpenBao version in the docs before you change anything in production.

Autopilot does not replace the other Raft decisions in this group. Sizing still determines how many voters you need, because a majority of voters sets how many failures the cluster can absorb. Backups still require tested Raft snapshots, since a healthy cluster can lose data through operator error or a bad change. Removing and replacing a failed peer is a manual procedure you should rehearse, and automated cleanup does not remove the need to check peers yourself. Treat Autopilot as a guard on membership changes, and keep your own runbooks for every case it cannot judge.

Non-voting nodes and read-serving standbys serve different purposes, and they can overlap. Since OpenBao 2.5.0, Raft standbys can serve read-only operations, so a node can add read capacity whether or not it holds a vote. Before you enable dead server cleanup or set a minimum quorum, write down which failure scenario each setting covers and who is notified when it acts, because these settings change membership without a person in the loop. Ask your team to define which nodes will be voters, which will serve reads, and how each one's state is checked after a join.

Autopilot settings and when each one fits

This table compares the Autopilot behaviors that govern how OpenBao Raft nodes join, get promoted and get removed, and what each one trades off. Read each row as a decision: the faster a behavior acts, the less time a briefly unreachable server has to recover before it is changed. The main takeaway is that every key name and default must be confirmed against the OpenBao version you run before you set it.

SettingWhat it controlsTrade-offWhen it fits
Server stabilization timeHow long a new non-voter must stay healthy before Autopilot considers promoting it to voterA longer window avoids promoting a node that flaps during join, but delays added fault toleranceClusters where nodes join over unstable networks or from slow disks, and where a short delay is acceptable
Promotion to voter after healthWhether healthy non-voters are automatically promoted to voting membersAutomatic promotion reduces manual steps, but a voter added during an incident changes quorum arithmeticStable clusters with a documented join procedure and monitoring that will notice a change in voter count
Dead server cleanupWhether Autopilot removes servers it considers failed from the Raft peer setFaster recovery from a lost node, but a server that is only partitioned for a while can be removed and must rejoinEnvironments with reliable monitoring and runbooks, and where automatic replacement is preferred over manual peer removal
Dead server cleanup disabledFailed servers stay in the peer list until an operator removes themOperators keep control of membership changes, but a dead node can stay counted and slow recoveryRegulated or change-controlled environments where every membership change must be approved and logged
Minimum quorumThe lowest number of healthy voters Autopilot will keep before it stops removing serversA higher floor protects availability during cleanup, but can block cleanup that would otherwise free a stuck clusterClusters of three or five voters where losing too many voters at once would be harder to recover from than a short stall
State APIExposes Autopilot health and server status for inspection and monitoringGives visibility without changing behavior, but only helps if someone watches the output and alerts on itAny production cluster, with alerts on unhealthy servers, unexpected voter counts and removals
Version-specific keys and defaultsExact configuration names, default values and API paths for your OpenBao releaseDefaults can change between minor lines, so copying settings from older guides can misconfigure a clusterAlways, before deployment: confirm each value in the OpenBao HA docs and release notes for the version you run

How a new node moves from non-voter to voter

The diagram starts when a new node joins the Raft cluster as a non-voter. It stays there through the stabilization period, and only a node that remains healthy for that whole window is promoted to voter. A node that stays unhealthy is marked as unhealthy and then flagged as dead. Removal happens only if dead server cleanup is enabled and the minimum quorum setting still allows the cluster to keep enough voters. Check the state output at each decision point before you change any setting.

Autopilot decision path for promoting or removing a Raft node.

Which Autopilot settings fit fixed clusters and autoscaling nodes

Clusters on virtual machines or bare metal with stable hostnames and addresses are the most predictable case for dead server cleanup. A node that drops out usually returns under the same identity, and an operator can usually tell whether an outage is temporary or permanent. Cleanup is safer here because the voter set changes only after someone has reviewed the failure.

  • Cleanup risk is lower: Automatic removal of a failed server is reasonable when outages are short and well understood, and when maintenance windows are scheduled.
  • Minimum quorum sets the floor: Set the minimum number of servers the cluster must keep so cleanup cannot shrink a three-node cluster below the number your failure tolerance requires.
  • Stable identities simplify rejoin: A returning node with the same node ID and address can rejoin without manual peer removal.
  • Maintenance practice matters: Patching or rebooting hosts one at a time keeps the voter count predictable during planned work.

Confirm with the platform team how long reboots and patch windows last, and whether maintenance tooling drains a node before shutdown. Check the exact cleanup and minimum-quorum settings and their defaults in the OpenBao high availability docs for your release.

Configuring Autopilot on a Raft cluster step by step

This sequence turns on Autopilot in a Raft-backed OpenBao cluster so new nodes stabilize as non-voters before they count toward quorum, and dead servers are handled by a rule you chose. Each step ends with a check you can record before moving on.

  1. Confirm Raft storage and the running version

    Check that the server configuration uses an integrated storage (Raft) stanza, not PostgreSQL or PebbleDB, because Autopilot applies to Raft clusters. Run the version command on every node and confirm they all run the same release, using the OpenBao releases page to confirm the version line and any changes that affect Autopilot. Record the version and storage type for each node. The step is done when every node reports the same version and all nodes show Raft in their configuration.

  2. Review the Autopilot section of the HA docs

    Read the Autopilot material in the OpenBao high availability documentation and write down the exact configuration keys, where they are placed, and whether they apply on restart or on reload. Note the defaults the docs state for stabilization and dead server cleanup, and confirm them against your version rather than relying on memory or older Vault material. Have the platform owner and a security reviewer sign off on the list of settings you plan to change. The step is done when you have a written settings list that matches the docs for your version.

  3. Set Autopilot options on every node

    In a planned change window, add the stabilization, dead server cleanup, and minimum quorum settings to the server configuration on every node so the cluster behaves the same no matter which node becomes active. Keep the configuration files identical apart from node-specific addresses, and store them in version control with a reviewer. Confirm the change window was announced to the teams that depend on OpenBao. The step is done when the diff of each node's file matches the signed-off settings list and no unrelated values changed.

  4. Restart or reload nodes in the documented order

    Apply the new configuration using the restart or reload method the docs specify for each setting, one node at a time, and let each node rejoin before you move to the next. Check seal status and the active node after each restart, and stop if a node does not return to a healthy state. Keep a rollback copy of the previous configuration on each host. The step is done when all nodes report unsealed and the cluster has one active node with the expected standbys.

  5. Join a test node as a non-voter

    Bring up a test node with the same version and join it to the cluster so that Autopilot holds it as a non-voter while it stabilizes. Use the join method your cluster already uses, and do not add the node to any production load balancer pool during this step. Run the Raft peer list command to confirm the node appears and is marked as a non-voter. The step is done when the peer list shows the test node as non-voting and the voter count is unchanged from before the join.

  6. Check state before and after promotion

    Query the Autopilot state API before the test node is promoted, record its health, last contact, and stabilization status, and compare the voter count to your expected quorum. Wait until the state API reports the node as healthy and stable, then confirm promotion takes place without any manual vote change. After promotion, run the peer list again and check that the voter count matches your planned number of voters. The step is done when the before and after snapshots are saved and show the expected voter count.

  7. Decide on dead server cleanup and record the result

    Decide, with your platform and security owners, whether dead server cleanup stays enabled in production, using the minimum quorum you set in the docs as the guardrail for how many voters the cluster keeps. Test the decision on the test node by stopping it in a controlled way and confirming the state API reports it as failed and the cleanup rule behaves as documented. Store the final configuration, the state output, and the test notes in your change record. The step is done when the decision, the test result, and the stored evidence are all reviewed and approved.

How dead server cleanup and minimum quorum change failure tolerance

Dead server cleanup changes your failure tolerance because it removes a failed node from the Raft peer set, which lowers the number of voters that must agree. If the cluster keeps pruning dead servers without a floor, it can shrink step by step into a size where one more failure stops writes, even though every remaining node looks healthy. As an illustration, a cluster that started with five voters and lost two nodes could be pruned to three voters with no margin left. Before you enable cleanup, decide the smallest voter count you will accept and confirm the exact minimum quorum setting and its behavior in the OpenBao high availability docs.

The minimum quorum value should follow from the failure tolerance you designed, not from whatever the cluster happens to have after an outage. Work out that design on the Raft cluster sizing page first, then set the Autopilot floor to match it. Ask your team to confirm three points in a test cluster: whether cleanup only removes servers that have been unhealthy for a configured period, whether it ever removes a voter below the floor, and what it logs when it declines to act. Those answers decide whether automatic cleanup is a safety feature or a way to hide a shrinking cluster from your alerting.

Automation cleans up the peer list but does not restore lost capacity, so a node loss still needs an operator to finish the repair. Check membership with bao operator raft list-peers, confirm the cluster has the voter count you expect, remove the dead peer if it has not been removed, and join a replacement node so the cluster returns to its designed size. Treat any cluster that has lost a node as an incident to close, and alert on the state that shows a reduced voter count so the gap is visible until the replacement is in place. The step-by-step procedure belongs on the page for replacing a failed Raft node.

Security and operational risks to control with Autopilot

Autopilot changes cluster membership on its own, so the controls that matter are the ones around it: who can reach it, who can change it, and whether you can recover. The cards below cover the risks we see most often when teams turn on stabilization and dead server cleanup, and the control to put in place for each.

Unintended voter removal during partitions

Dead server cleanup removes a server it judges unhealthy. During a network partition, a healthy node on the far side can look dead from the active side, and cleanup can shrink the voter set at the moment you can least afford it. Before enabling cleanup, decide the minimum voter count you will accept and confirm that a partition leaves a majority on the side you expect. Test this on a staging cluster by isolating one node and reading the state output before and after.

OpenBao HA docs

Membership changes without change control

Promotions, demotions and removals made by Autopilot happen without a ticket, approval or named operator. When a quorum question comes up later, there is no record of which server left and why. Route membership changes through your normal change process, and keep the audit device and server logs that show each join and removal with timestamps. Ask your team to confirm where those logs are shipped and how long they are retained.

Settings that drift between nodes

Autopilot settings are applied from configuration, and a node with an older or different file can behave differently once it becomes the leader. Mismatched stabilization or cleanup values make the cluster harder to reason about during an incident. Keep the Raft and Autopilot stanzas in version-controlled configuration that is deployed to every node by the same pipeline, and compare the effective values on each node after every change.

State API exposed beyond trusted networks

The Autopilot state output reveals node addresses, versions, health and voter status, which is useful reconnaissance for anyone who can reach it. Limit access to the listener that serves it to administrators and monitoring hosts, and keep it off public load balancers. Confirm that the token used to read it has only the policy it needs and that the listener is bound to the interface you intend.

Monitoring without alerts

Querying the state API by hand shows the cluster at one moment. Without alerts on a node that stays non-voting, a missing voter, or a change in the server count, a problem can persist for days before anyone looks. Set alerts on the number of voters, the health of each server and any unexpected removal, and send them to the team that owns the cluster. Test each alert by stopping a non-critical node in staging.

Backups before enabling cleanup

Cleanup changes the cluster, and a bad removal sequence can leave you with no quorum to recover from. Take a Raft snapshot and store it encrypted and off the cluster before you change Autopilot settings, and confirm that you have rehearsed a restore. Record the snapshot identifier in the change ticket so the rollback point is known during an incident.

Questions teams ask before configuring Autopilot

How much work is it to configure and verify Autopilot in an existing OpenBao cluster?

The work is mostly verification, not configuration. Autopilot settings sit in the Raft configuration, so the change itself is small, but confirming how each node joins, how long new nodes stay non-voting, and what the cluster does when a node drops out takes careful testing. Effort rises with the number of nodes, the number of environments that must be tested (staging, production, disaster recovery), and whether a maintenance window is needed to change settings on a live cluster. Ask any partner for a written scope that lists each test case and the environments it covers, so you can compare it with your own estimate.

Can our internal team configure Autopilot without outside help?

Yes, if your team already runs Raft clusters and has a rehearsed restore process. The skills needed are reading the OpenBao high availability documentation, testing node joins in a non-production cluster, and reading the state API output during a failure. Teams without that experience often underestimate the failure tests, such as stopping a node, watching the cluster's voter count, and confirming quorum holds. An outside partner can take on the test plan and evidence, or review your work, while your staff keep ownership of the production cluster.

What does the work need from our side?

Plan for four inputs: access to every OpenBao node and the configuration each one uses, a maintenance window for changes and failure tests, read access to monitoring so the state API output and node health can be checked during tests, and a rehearsed restore from a recent Raft snapshot in a separate environment. Without the restore rehearsal, a failed test on a production-like cluster can turn into an outage. Also name an owner who can approve removal of a dead server, because that action changes the voter set.

What drives the cost and effort of Autopilot work up?

Three factors add the most effort. Number of sites matters because each site adds network paths, latency cases and failure scenarios to test. Kubernetes integration matters because pod restarts, StatefulSet behavior and persistent volume handling can cause nodes to leave and rejoin the cluster in ways a bare-metal test would not show. Compliance evidence needs matter because you may have to keep configuration records, test results and change approvals for an assessor, which adds documentation work. Ask for each of these to be priced or scoped separately in any quote.

Does Autopilot replace backups or cluster sizing decisions?

No. Autopilot manages how nodes are promoted to voters and how dead servers are removed from the peer set. It does not protect against data loss from corruption, operator error or a lost cluster, so you still need tested Raft snapshots stored outside the cluster. It also does not decide how many voters you need. Choosing three or five voters, and understanding what a majority means for failure tolerance, is a separate design decision that should be made before Autopilot settings are chosen.

What should we confirm about our OpenBao version before starting?

Confirm the exact version running on every node, and that all nodes run the same version before you change Autopilot settings. Check the OpenBao releases page for the release notes of your version and of any version you plan to upgrade to, because Autopilot behavior and the state API output can change between releases. Also confirm the storage backend is integrated Raft, since Autopilot applies to Raft clusters, and check the OpenBao high availability documentation for the options your version supports. Record the version in your change request so the test results can be tied to it.

How do we monitor Autopilot after it is configured?

Poll the Raft state through the state API on a schedule, and alert on changes in voter count, non-voter count, unhealthy nodes and the presence of a dead server. The state API output is the source of truth for what Autopilot is doing, so record it during every failure test and keep the baseline output for comparison. Assign an owner for alerts, and agree in advance which events require a human decision, such as removing a server, rather than letting automation act on its own. Confirm the exact fields and their meaning against your version's documentation before building dashboards on them.

Limits to confirm in your OpenBao version and environment

Autopilot behavior is tied to the exact OpenBao release, the storage backend and the network your nodes run on. The cards below list what to confirm in your own environment before you set thresholds, enable cleanup or write monitoring rules.

Confirm Autopilot option names and defaults

Autopilot settings, their names and their defaults can differ between release lines, so check them against the documentation for the exact version you run. The releases in circulation include v2.7.0 (September 23, 2026), v2.7.1 (October 1, 2026) and v2.6.4 for the previous minor line. Read the defaults for stabilization and cleanup in your version before you copy any value from an older guide or from this page.

HA docs

Confirm integrated storage is in use

Autopilot manages Raft membership, so it applies only when the cluster uses integrated storage (Raft). A cluster on PostgreSQL uses a different HA model, and Raft peer settings do not govern its failover. Check the storage stanza on every node, because a mixed configuration during a migration will give inconsistent membership behavior.

Storage backends

Map the state API to your monitoring tool

The Autopilot state output lists each server's health, voter status and last contact, but the field names and nesting are version-specific. Confirm which fields your version returns, then map them to alerts in your monitoring system. Test the mapping against a deliberately stopped non-production node so you know that a failed health check reaches the on-call queue.

Confirm network and latency across sites

Stabilization and health thresholds assume a certain round-trip time and packet loss between nodes. If nodes span sites or availability zones, measure latency and loss between each pair during normal and peak load. A threshold that suits a single data center can mark healthy remote nodes as unhealthy, or keep a truly failed node in the voter set too long.

Confirm behavior during rolling upgrades

During an upgrade, nodes run different binaries for a period, and a node restarted for an upgrade can look like a failed server to cleanup logic. Confirm in the release notes for your target version how Autopilot handles nodes that are temporarily unavailable, and decide whether cleanup should be paused for the upgrade window. Record the procedure in your change plan.

Confirm the restore path for removed servers

If dead server cleanup removes a server that later returns, that node must rejoin with a clean identity and sync from the cluster, not resume its old membership. Confirm the exact steps in your version, including how the returning node rejoins and whether its data directory must be cleared. Rehearse this in a test cluster before you rely on cleanup in production.

How DeployOpen scopes and delivers OpenBao Raft Autopilot work

DeployOpen plans, builds, documents and supports OpenBao in infrastructure you control, so Autopilot settings are chosen against your node count, failure domains and monitoring rather than copied from a generic example. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

How we scope

  • Review the current Raft topology, node count, failure domains and join method before recommending any Autopilot settings.
  • Agree in writing whether server stabilization, dead server cleanup and minimum quorum are in or out of the fixed scope.
  • Confirm which monitoring stack will read the Autopilot state API and who receives alerts when a node is flagged.
  • Record the upgrade plan and rollback expectations so Autopilot behavior is tested against the OpenBao version you run.

How we build

  • Configure Autopilot for stabilization so new nodes join as non-voters until they report healthy, then promote them under your settings.
  • Test dead server cleanup in a staging cluster with simulated node loss before deciding whether it runs in production.
  • Verify the minimum quorum value against your voter count so cleanup cannot remove more nodes than your failure tolerance allows.
  • Script checks against the state API so health, voter and non-voter status can be read on a schedule and during incidents.

How we hand over

  • Deliver the final Autopilot configuration, the rationale for each setting and the test results from the staging rehearsal.
  • Document the runbook for a node that stays non-voting, a node that Autopilot removes and a manual recovery path.
  • Walk your platform and security teams through the state API output so they can interpret it without DeployOpen present.
  • Provide written evidence of configuration and tests so your compliance and security reviewers can assess the setup.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, covering Autopilot reviews after each OpenBao upgrade.
  • Retest Autopilot behavior after changes to node count, storage, network or the monitoring stack that reads its state.
  • Ask any partner for a written quote that lists the Autopilot tests, environments and handover items included in the scope.

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.