Load balancing OpenBao with sys/health status codes starts with the active node
A clustered OpenBao behind a load balancer has one node that accepts writes at any moment, so the balancer needs health probes that tell active, standby, sealed and uninitialized nodes apart. In OpenBao high availability, the active node holds a lock in the data store, and standby nodes forward or redirect requests to it. A probe that only checks whether a port answers treats every reachable node as healthy, which can send writes to a standby or keep routing traffic to a node that is sealed or was never initialized. Teams need this when more than one node sits behind a single address and clients cannot be pointed at the active node directly. Before writing any probe rule, confirm the status code each state returns through /sys/health in the documentation for your release, because the defaults and the options that change them are version-specific.
A health probe only tells the balancer what a node reports. It does not elect a new active node, speed up failover, repair a Raft quorum that has lost members, or unseal a node after a restart. Those outcomes depend on the storage backend you chose, the lock behavior of that backend and your runbook for sealed nodes. A standby that passes a probe can still hold data that trails the active node, so the read path needs its own decision about which requests may go to standbys, including whether the standbyok option applies to your probes. Configure each probe against the node's own address rather than the virtual IP it protects, and test failover in a non-production cluster by stopping the active node and confirming where traffic lands.
How health probes route traffic across OpenBao nodes
The diagram starts at the load balancer, which probes /sys/health on every OpenBao node in the cluster. The active node answers as the leader, standbys answer as standbys, and sealed or uninitialized nodes are marked unhealthy and removed from the pool. Client requests are then sent only to nodes the probe marks as eligible. Check that each probe status code matches the node role your balancer expects, because a standby that is not returning the code you assumed will be dropped from rotation.
Health probes decide which OpenBao nodes receive client traffic.
Which /sys/health settings fit each routing goal
This table maps common load balancer goals to the /sys/health behavior that supports them, covering active, standby, sealed and uninitialized nodes. Read each row as a decision: pick the setting that matches where the balancer should send traffic. Confirm the exact status codes for your OpenBao version in the API reference before writing probe rules, because the balancer matches on those values.
| Routing goal | Health query setting | When it fits |
|---|---|---|
| Send writes only to the active node | Default /sys/health response, no query options | Write paths need the active node. Probe for the active code and exclude all other states. |
| Include standbys in a read pool | standbyok=true | Read-heavy traffic can use standbys. Confirm which requests standbys serve in your version before routing reads. |
| Remove sealed nodes from rotation | Default sealed code, or sealedcode to override | Sealed nodes cannot serve requests. Confirm the default sealed code and whether your balancer treats it as a failure. |
| Keep uninitialized nodes out of service | Default uninitialized code, or uninitcode to override | New nodes should not receive traffic until initialized. Confirm the code your probe will see before first use. |
| Match codes to a specific balancer | activecode, standbycode, sealedcode, uninitcode | Use when the balancer only accepts certain status codes as healthy. Confirm parameter names in the API docs for your release. |
| Read from standbys on PostgreSQL storage | standbyok=true on a PostgreSQL-backed cluster | Standby reads on PostgreSQL were added in 2.7. Plan for replication lag before sending read-after-write traffic to standbys. |
| Keep health checks separate from client traffic | Dedicated probe path with known query options | Monitoring and load balancer probes should use the same settings, so one node is not both healthy and excluded. |
How to configure the probe and verify routing
This sequence takes a load balancer from assumed behavior to a verified configuration for OpenBao. The result is an active-only pool for writes, an optional read pool on standbys, and evidence that traffic moves to a new active node when the current one fails.
Confirm the version and storage backend
Run
bao versionagainst one node and read thestoragestanza in its configuration file to confirm the server version and whether the cluster uses integrated storage (Raft) or PostgreSQL. The read pool depends on this. Raft standbys can serve read-only operations from version 2.5.0, and PostgreSQL standbys from 2.7.0, so a cluster on an earlier version or a backend without this support needs only the active-only pool. Record the version and backend in the change ticket. Check: every node reports the same version and backend, so one probe design applies to all of them.Set the health probe path and expected codes
Point the probe at the health endpoint,
/v1/sys/health, and decide whether standbys should report as healthy by setting thestandbyokquery parameter. Look up the status code each node state returns for your exact version in the HA documentation, then write those codes into the probe rules for active, standby, sealed and uninitialized nodes. Confirm each code against the documentation rather than copying values from another product. Check: a manual request to each node, in each state you can reproduce in a lab, returns the code you recorded.Build the active-only pool
Create a backend pool that includes every node and uses the probe so that only the node reporting active passes. Set the probe interval and failure thresholds in the load balancer, and keep sealed and uninitialized nodes out of the pool even when they respond to requests. Send all write traffic and any client that must see its own writes immediately through this pool. Check: the load balancer's pool view shows exactly one healthy member, and a test write through the virtual address succeeds.
Add a read pool on standbys
If the cluster runs Raft at version 2.5.0 or later, or PostgreSQL at 2.7.0 or later, create a second pool that accepts standby nodes and still excludes sealed and uninitialized nodes. Configure its probe with the
standbyoksetting so standbys pass. Route only read-only workloads that tolerate slightly older data to this pool. Review the HA documentation to confirm which requests standbys serve and which they forward to the active node. Check: reads through the read pool return data, and a write sent to that pool still completes on the active node.Test failover by stopping the active node
In a maintenance window, stop the OpenBao service on the active node and watch the probe results for each remaining node. A standby should take over the active role, the active-only pool should move to the new active node, and the read pool should keep serving reads during the change. Note how long the write path is unavailable, using your load balancer's timestamps, so you have a baseline for alerting. Check: a write through the virtual address succeeds after failover, and the logs show a single active node.
Confirm sealed and uninitialized nodes leave the pools
In a test environment, seal one standby, then check its health response and its pool membership. If you can do so safely in a separate lab, repeat the test with a node that has not been initialized. A sealed or uninitialized node should fail its probe and drop out of both pools, then return to service after it is unsealed and healthy. Check: pool membership changes after each state change, and no client traffic reaches the sealed node during the test.
Record the configuration and retest after upgrades
Store the probe settings, pool definitions and expected codes in version control alongside the cluster runbook. Repeat the health checks and the failover test after each OpenBao upgrade, including minor releases such as 2.7.1, because probe responses and standby behavior depend on the version. Review the release notes for the version you run before you change any expected code. Check: the stored configuration matches the running load balancer, and the most recent test result is dated and attached to the runbook.
Routing writes and reads by deployment goal
Send all client traffic to the active node and keep standbys in reserve. This is the simplest pattern and a sensible starting point when read volume is modest or when every client should receive answers from the same node. The balancer needs one pool that contains all OpenBao nodes, and it must forward requests only to the node that reports itself active. Standbys stay healthy and ready to take over, but they do not serve client traffic in this design. Failover is driven by the active node's lock in the data store, so the balancer's job is to find the new active node quickly and stop sending traffic to any node that has lost leadership.
- Health check target: Probe the health endpoint on each node and route only to the node that reports active. Confirm the status codes for active, standby, sealed and uninitialized nodes in the OpenBao documentation for your version before you write rules.
- Failover window: Clients see a pause while a standby takes the lock. Force a failover in staging and measure what your applications experience during that window.
- Client retries: Configure clients to retry on connection errors and on responses from a node that is no longer active.
- Sealed nodes: A sealed node must leave the pool. Confirm which response the probe returns for a sealed node and whether your balancer treats it as out of service.
- Remaining standbys: Standbys stay idle for client traffic, so plan capacity for the active node alone.
Before go-live, check that the balancer removes a sealed or demoted node within the interval you measured in your failover test.
Standbys can serve read-only operations on Raft from OpenBao 2.5.0 and on PostgreSQL from 2.7.0. This allows a split: writes go to a pool containing only the active node, and reads go to a separate pool of standbys, which adds horizontal read capacity. The trade-off is consistency. A standby may lag behind the active node, so a read sent immediately after a write can return older data. The HA documentation describes which operations standbys serve, and you should use it to decide which read paths are safe to send to the standby pool.
- Two pools: Keep one pool for writes and for reads that must reflect the latest state, and a second pool for read paths that tolerate slightly older data.
- Version gates by backend: Raft standby reads require 2.5.0 or later and PostgreSQL standby reads require 2.7.0 or later. Confirm how a mixed-version cluster behaves before any rolling upgrade.
- Path-based routing: Route by request path and method, which requires a balancer that can match on request attributes, not only on node health.
- Forwarded requests: Some requests received by a standby are forwarded to the active node, so standby capacity does not cover every call.
- Read-after-write flows: An application that writes and then reads through the standby pool can see stale values. Send those flows to the active pool or design the application to tolerate a short lag.
Test the write-then-read sequences your applications use against the read pool before routing production reads there.
On Kubernetes, the balancer is usually a Service or an ingress controller inside the cluster, and health checks are kubelet readiness and liveness probes. The probe decides which pods stay in the Service endpoints, so it determines which OpenBao nodes clients can reach. A readiness probe that marks a standby as not ready removes it from the read path and from any capacity you planned for it. A liveness probe that restarts a sealed pod does not unseal it, so a sealed pod needs an unseal step that your team controls. Settle these decisions before you tune the chart values.
- Readiness versus liveness: Use readiness to control traffic. Use liveness only to catch processes that have stopped responding, and avoid liveness rules that restart a pod for a condition a restart cannot fix.
- Separate Services: If you run both patterns, create one Service for active traffic and another for read traffic, each backed by probes that match its role.
- Probe timing: Set probe intervals, timeouts and failure thresholds from the results of your failover tests rather than from chart defaults.
- Internal exposure: Keep the health endpoint on the cluster network and out of any public ingress. Limit access to the kubelet, the balancer and your monitoring.
- Network policy: Allow probe traffic from the components that need it and block other callers to the health endpoint.
After each restart, seal event and failover in a cluster you control, check the readiness state each role reports and confirm the Service endpoints match your intended design.
Security and operational risks of health-based routing
Health-based routing decides which OpenBao node serves each request, so a mistake in probes or pools can expose cluster details, serve stale data or take the service offline. The five risks below cover the endpoint, probe identity, read consistency, maintenance and the load balancer itself.
Exposure of the health endpoint
The health endpoint reports whether a node is initialized, sealed, active or standby, which gives an attacker a map of your cluster. Make only the probe networks able to reach /sys/health, including the load balancer subnet and monitoring hosts. Confirm which listener serves the path before you open firewall rules, check that public listeners do not expose it, and review these rules after every listener change. Verify the exact response behavior for your version in the HA documentation.
TLS and probe identity
Load balancers often verify backend certificates by default, and a probe that skips verification may accept a node it should not trust. Decide which CA the probe trusts, set the server name it sends, and use a dedicated probe identity if your platform supports client certificates. Test the probe against a sealed node and an unreachable node so you know how a failed handshake appears in your logs and alerts.
Stale reads from standbys
Since OpenBao 2.5.0, Raft standbys can serve read-only operations, and 2.7.0 extended this to PostgreSQL. A client that writes through the active node and reads back from a standby can receive older data for a short window. Send writes, and any read that must reflect a just-completed write, to the active node. Test your application with a write followed by an immediate read before you route its reads to standbys.
Sealed nodes during maintenance
A sealed node cannot serve secrets, so a probe that marks it unhealthy is working as intended. The risk comes from unsealing or restarting a node while it is still in the pool. Remove each node from the pool before sealing or restarting it, and return it only after it is unsealed and reports the expected role. Keep unseal material out of runbook text, and confirm with your platform team how your seal type behaves on restart.
The load balancer as a single point
The load balancer decides which nodes receive traffic, so a bad pool, an expired certificate on the balancer or a failed health check can make a healthy cluster look down. Give the balancer its own redundancy and monitoring, and alert when healthy backends fall below the minimum your cluster needs. Confirm what the balancer does when all backends fail, whether it keeps its last known pool or drops all traffic, and test both outcomes before an incident forces the question.
Questions teams ask before configuring OpenBao load balancing
How much effort does OpenBao load balancing setup take?
The effort depends on the node count, the storage backend you chose, the load balancer you already run and how many node states you need to test. Writing the probe is short work once the cluster is stable. Most of the effort goes into confirming how each node state maps to pool membership, testing failover and agreeing a change window with the team that owns the network. Ask any provider for a written scope that lists the balancer model, node count, backend and test cases, then ask for the timeline that follows from it. DeployOpen works fixed-scope, with scope, deliverables and timelines agreed in writing before work starts, so the quote follows from that written scope.
Can a standard load balancer health check OpenBao nodes?
In most cases, yes. A standard HTTP or HTTPS health check can call the /sys/health endpoint, but the check is only useful if you know what each response means. The endpoint reports separate states for active, standby, sealed and uninitialized nodes, and a balancer may treat some of those responses as failures by default. That can remove a healthy standby from a pool that was meant to include it. Confirm the status codes for your exact OpenBao version in the OpenBao high availability docs, then test each state against your balancer's rules before you send production traffic to it.
What changes when standby nodes serve read requests?
Read traffic can reach standbys, which changes pool design and what applications see. Since OpenBao 2.5.0, Raft standbys can serve read-only operations, and v2.7.0 extended this to PostgreSQL. Writes still go to the active node, and standbys forward or redirect requests they cannot serve. The main risk is staleness: a write followed by a read on another node may return older data. Before you route reads to standbys, confirm the consistency behavior for your version and decide which application paths can tolerate it. Keep write paths pinned to the active node unless testing shows otherwise.
What does our team need to provide for this work?
Plan to provide access and decisions from several owners before work starts. You will need:
- Access to the load balancer configuration, plus the people who approve changes to it.
- The storage backend in use, the node addresses and the TLS arrangements for probes.
- A test environment that matches production closely enough to exercise failover.
- A change window and rollback plan agreed with the operations team.
- A named owner for on-call alerts that fire when a node leaves the pool.
If your team cannot provide one of these, the scope and timeline should say so, because the test results depend on it.
Should our team or a partner configure the load balancer?
Your own team can do this work if it already runs the balancer, has OpenBao operating experience and has time to run failover tests against each node state. A partner is more useful when you need a written scope, documented test evidence and an independent review of the health rules before go-live. DeployOpen implements, hardens and documents self-hosted platforms inside your own infrastructure, so the work runs alongside your network and platform teams rather than replacing them. Ask whoever you choose to name the people doing the testing and the artifacts you will keep afterward.
What drives the cost of OpenBao load balancing work?
The main cost drivers are the number of clusters, the number of nodes per cluster, the balancer platform and how much access it requires, whether standbys will serve reads, and how deep the failover testing goes. Costs are mostly one-time for design, configuration and testing. Recurring costs appear when you upgrade OpenBao, because status behavior and read routing should be retested after each change, and when you buy ongoing support or continuous testing as a retainer. When you request a quote, ask for each component listed separately, along with the assumptions behind it, so you can see which items your own team could absorb.
Does a failover test prove the load balancer setup is correct?
A failover test proves the cases you ran, and only those. A useful test set covers stopping or sealing the active node, confirming that a standby takes over and that the pool updates, bringing an uninitialized or sealed node back into the cluster and checking that it rejoins the pool correctly. It should also cover standby read routing and the behavior of write requests during the switch. Record the expected result for each case before you run it, keep the output, and repeat the tests after any OpenBao upgrade, since new releases such as v2.7.0 can change behavior you depend on.
How DeployOpen scopes load balancer work for OpenBao
Load balancer work for OpenBao is scoped as a fixed-scope engagement with deliverables agreed in writing before any change is made to your load balancer or OpenBao configuration. The written scope names the load balancers and probes to be configured, the nodes and listeners in each pool, the health check paths and status codes that will be accepted, and the verification steps that prove routing behaves correctly during failover. A quote follows from that written scope, so the more precisely the inputs are defined up front, the less room there is for open questions to change the work later.
To scope the work, DeployOpen needs four inputs from your team: the cluster topology (node count, whether the storage backend is integrated Raft or PostgreSQL, and where each node runs), the load balancer product and version in use, the OpenBao version running on every node, and the network path between the load balancer, clients and the cluster, including any TLS termination point. Confirm the exact OpenBao version with your own environment before the scope is written, because the handling of standby reads and health responses depends on the release. Also confirm whether your load balancer can send a custom health check path and read the HTTP status code, since that determines which configuration options are available to you.
Ongoing support, upgrades and continuous testing are available as a retainer after the initial configuration is delivered. A retainer is useful when OpenBao is upgraded, when node counts change, or when the load balancer vendor changes its health check behavior, because each of those can alter which nodes receive traffic. Ask for the retainer terms in the quote as a separate line from the fixed-scope deliverables so that the one-time configuration work and the recurring support are easy to compare with your own team's effort. The quote itself is produced from the written scope, not from a standard price list.
How DeployOpen delivers OpenBao load balancing
DeployOpen plans and builds the load balancer layer for OpenBao inside your own infrastructure, starting from the health status codes your nodes actually return in each state. We test the routing rules against active, standby, sealed and uninitialized nodes before anything reaches production, and we document the result so your platform and security teams can review it.
How we scope
- Inventory every OpenBao node, its storage backend (Raft, PostgreSQL or PebbleDB) and the traffic each listener receives.
- Agree in writing which requests go to the active node and which may be served by standbys, with the consistency needs of each client.
- Define the probe configuration, failover expectations and acceptance tests, then set the fixed scope and deliverables before work starts.
How we build
- Configure health probes that map each node state to the intended in or out of rotation decision, including the standbyok option where chosen.
- Route read traffic to standbys only where the agreed design permits, and keep write and sensitive operations pinned to the active node.
- Test failover by taking nodes out of service, sealing a node and checking that probes and routing react as the design specifies.
How we hand over
- Deliver load balancer configuration, probe definitions and the routing matrix as versioned files you own and can review.
- Document the status code behavior observed in your environment, with the test results and the steps used to reproduce them.
- Walk your operations team through alert conditions, change procedures and the runbook for adding or removing a node.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, so routing can be rechecked when OpenBao versions change.
- Re-verify probe behavior after upgrades, since the status codes and standby read behavior depend on the server version you run.
- Ask any provider, including DeployOpen, to confirm in writing which health endpoint behavior and standby read options your OpenBao version supports.

