Scaling OpenBao reads with standby nodes: when your cluster needs it
Standby nodes can serve read-only operations on Raft clusters from OpenBao 2.5.0 onward and on PostgreSQL clusters from 2.7 onward, which gives you horizontal read scaling. If a growing number of applications, pods or agents fetch secrets from a single active node and that node's read load is becoming the constraint, standby read serving is the feature to evaluate. According to the OpenBao high availability docs, the cluster keeps one active node that holds the lock in the data store, while standby nodes take on read-only work. The active node still handles every write, so standby reads do not add write capacity. Teams with mostly write-heavy traffic, such as frequent dynamic credential issuance or lease renewals, should measure that write load before expecting standbys to relieve pressure.
Before you add standbys to a production cluster, confirm your server version and backend. Read serving on standbys is a 2.5.0 feature on Raft and was extended to PostgreSQL in 2.7, so a cluster on an earlier line will not gain it by adding nodes. Check the current release notes in the OpenBao releases list for any fixes to read serving in the version you plan to run. Measure where the load actually lands: a request rate per node from your audit or telemetry data will show whether the active node is saturated or whether the bottleneck is client connection handling, network latency or a single load balancer.
Standby reads are a capacity decision, not a fault tolerance one. Standbys already provide failover candidates in a healthy HA cluster, but adding them for read capacity also means more nodes to patch, monitor and keep in quorum on Raft. Plan the node count with your team's failure tolerance in mind, and confirm with your own test environment how many standbys your application traffic can use before latency rises. Routing reads to standbys also brings consistency questions, because a standby may briefly lag the active node, which the sections on request forwarding and read-after-write behavior address in detail.
How read and write requests flow through active and standby nodes
The diagram starts with a client sending a request to the load balancer, which distributes it across the OpenBao nodes. The active node holds the lock in the shared data layer, which is either Raft integrated storage or PostgreSQL. Standby nodes serve read-only operations from that same data, while writes and other non-read requests are forwarded to the active node. Check which health endpoint your load balancer uses to route traffic, and confirm which request types your version forwards.
Reads go to standbys, while writes and other requests reach the active node.
Which storage backend and node role fits your read pattern
This table compares Raft integrated storage and PostgreSQL as high availability backends for standby read scaling, and places PebbleDB and in-memory storage beside them. Read each row against your own read volume, failure tolerance and operations skills, then confirm the health and routing details before you commit.
| Option | Read scaling and minimum version | Fits when | Confirm before you build |
|---|---|---|---|
| Raft integrated storage | Raft standbys serve read-only operations from 2.5.0 | You want OpenBao to manage its own replicated storage and have skills to run Raft peers | Which read paths your clients call, and how your load balancer handles standby responses |
| PostgreSQL storage | Standbys serve read-only operations from 2.7 | You already run a highly available PostgreSQL service and prefer its backup and failover tooling | Your PostgreSQL version meets the project's minimum, and the lock and failover behavior matches your design |
| PebbleDB storage | No high availability, so no standby reads | A small or edge install where one node is acceptable and downtime is tolerable | Whether a single-node outage is an acceptable risk for your secrets workload |
| In-memory storage | No high availability and no durable storage | Testing or development only | Nothing in production; data does not persist across restarts |
| Active node | Handles all writes and forwards writes from standbys | The node that serves writes and holds the lock in the data store | Which requests your clients send to it and how you route them away from standbys |
| Standby node | Serves supported read-only operations locally and forwards or redirects others | Adding read capacity behind a load balancer on a supported backend | That the load balancer uses sys/health with the standbyok option for read traffic |
| Load balancer routing | Decides whether reads reach standbys at all | Read traffic should spread across nodes | Health check codes for active and standby nodes, and whether writes always reach the active node |
| Consistency needs | Standby reads can lag a recent write | Reads tolerate slight staleness, such as dashboards or cached lookups | Whether write-then-read flows need consistency headers from the Read-after-write consistency guide |
Which requests standbys serve and which the active node handles
Standby nodes can answer some read-only traffic, while writes and certain lease and token operations still belong to the active node. The cards below separate those paths so you can plan load balancing, client retry behavior and monitoring around the actual split.
Read-only operations on standbys
Since OpenBao 2.5.0, Raft standbys can serve read-only operations, and v2.7.0 extended this to PostgreSQL. Typical candidates are reads of key/value secrets and other read paths that do not change cluster state. Confirm the exact operation list against the OpenBao HA docs for the version you run, because the set of served paths is the basis for any read-scaling claim in your design.
OpenBao HA docsWrites always go to the active node
Any request that changes data, including secret writes, policy changes and mount changes, must reach the active node. A standby that receives such a request forwards it or redirects the client, depending on configuration. Plan your write path and capacity around one active node, because adding standbys does not add write throughput.
Lease and revocation operations
Lease renewal, lease revocation and bulk revocation change lease state and should be treated as active node work. Applications that renew leases frequently will generate forwarded traffic even when their secret reads are served elsewhere. Measure lease renewal volume in your environment before assuming that standbys absorb most of your load.
Forwarded and redirected requests
Standbys either forward a request to the active node or redirect the client to it. The behavior differs by request type and client settings, so the same application can see different latency and connection patterns on different paths. Test both forwarding and redirect handling with your client libraries and load balancer before production cutover.
Why retry logic depends on the split
A read that is served by a standby may return slightly older data than the active node has. A write that is forwarded may fail during a leader change, and clients that retry it blindly can duplicate effects. Your application retry rules should treat reads and writes differently and should match the operation list confirmed for your version.
Confirm the operation list before you design
The exact set of standby-served operations changed across releases, so a list copied from a blog post or an older version can mislead capacity planning. Before go-live, check the HA docs for your release, run a test against each operation class your applications use, and record which node served each request. Repeat this check on every upgrade.
OpenBao HA docsRead-after-write consistency and the headers clients use
A client that writes a secret and then reads it back can receive an older value if the read lands on a standby node. Standbys serve reads from their own copy of the data, and that copy can trail the active node for a short time after the active node has accepted a write. For a pipeline that rotates a credential and immediately reads it to configure a service, the result could be the previous value. This is illustrative, but it shows the decision you must make: identify which clients need read-after-write behavior, and decide whether they send their reads to the active node or use the consistency mechanisms described below. Most read-heavy clients, such as applications fetching a stable secret, rarely need that guarantee.
OpenBao 2.7 documents server-side consistent tokens and the X-Vault-Index header as the way a client can ask for an up-to-date read from a standby. The write response carries an index, and the client passes that index on later reads so the standby can confirm it has caught up before answering. Confirm the exact request and response behavior, including which operations support it and how a client should handle a read that cannot yet be satisfied, in the current OpenBao high availability documentation. Do not assume your client library passes these headers automatically. Check the library version you use and test a write-then-read sequence against a standby before relying on it.
Your planning should cover three checks. First, confirm that every component in the read path, including load balancers, proxies and any OpenBao Agent or client wrapper, forwards the headers unchanged. Second, decide which workloads stay on the active node for reads that must reflect recent writes, and which accept standby reads with possible lag. Third, add a test to your release process that writes a value and reads it back through the production path, so a regression in header handling appears before users see it. The sibling topic on read-after-write consistency covers the detailed behavior, and the load balancing topic covers how health checks decide which nodes receive traffic.
How to enable standby reads on an existing cluster
This sequence turns an existing OpenBao cluster into one where standby nodes serve eligible read-only requests, with each step confirmed before the next begins.
Confirm the running OpenBao version
The platform team checks the version on every node with the bao version command and compares it to the minimum for your backend: 2.5.0 or later for Raft, or 2.7.0 or later for PostgreSQL. Confirm the target line against the OpenBao releases page, where v2.7.1 is the latest patch release supplied for the 2.7 line and v2.6.4 covers the previous minor line. The step is complete when every node reports a version that meets the minimum for your backend. If any node is older, upgrade it before continuing, because mixed versions can behave differently for read routing.
Check the HA backend and lock configuration
Review each node's configuration file to confirm the storage stanza is integrated storage (Raft) or PostgreSQL and that the cluster uses the HA mode the project documents for that backend. For PostgreSQL, confirm the HA lock is in place and that all nodes point at the same database. Run bao status on the active node and check the HA Enabled and storage type fields. The step is complete when the output shows HA enabled with the expected backend and exactly one active node. Record any node whose configuration differs from the others.
Add standby nodes to the cluster
Start new OpenBao nodes with the same storage configuration as the existing cluster, then join them with bao operator raft join for Raft, or by pointing them at the shared PostgreSQL database for that backend. Unseal each new node using the same unseal method as the rest of the cluster. Confirm the join is accepted in the node logs and that the cluster membership list includes the new node. The step is complete when each new node appears as a member and reports as unsealed. Ask your team to confirm the exact join commands for your release in the official HA documentation before running them.
Verify each node's role through the health endpoint
Query the health endpoint on every node, for example with curl against /v1/sys/health, and read the status code returned. The default codes indicate whether a node is active, standby, sealed or uninitialized, so you can confirm one active node and the rest in standby. Use the same check from the load balancer network path to make sure it sees what you see. The step is complete when the cluster has one active node, the remaining nodes return standby codes, and no node is sealed. Keep this output as the baseline for later comparison.
Configure the load balancer to send reads to standbys
Update the load balancer so read-only traffic can reach standby nodes while writes continue to reach the active node. Set health probes to use the status codes you verified in the previous step, and review the standbyok option and how your load balancer classifies standby responses. Confirm with your network team which request paths and HTTP methods the balancer routes to each pool, because the set of read requests that standbys serve should be validated against the official HA documentation rather than assumed. The step is complete when a test read through the balancer is served by a standby node and a write is routed to the active node.
Test a write followed by a read
Write a test secret through the load balancer, then immediately read it back, repeating the read several times across different standby nodes. A stale result means the standby has not yet applied the write, which is the read-after-write behavior that the consistency headers in 2.7 address. Confirm with your team which consistency mechanism your version and backend support before relying on standby reads for application flows that need the latest value. The step is complete when the read returns the value just written in every test, or when you have documented the failure and the mitigation chosen. Delete the test secret afterward.
Record the configuration and monitor role changes
Save the final node list, load balancer rules, health probe settings and the verification outputs from each step in your change record. Add alerts for nodes that change role unexpectedly, for nodes that stop reporting standby codes and for lag between the active node and standbys. Plan a rehearsal of a failover on a non-production cluster so the team knows how traffic moves when the active node changes. The step is complete when the record is stored with the team's runbook and the alerts have been tested.
Security and operational risks of read-serving standbys
A standby that serves reads is still a full OpenBao node holding access to the data store, so it widens the set of places where trust, transport security, policy and logging must hold. The cards below cover the checks that connect those areas and the monitoring that shows when a standby is serving stale data.
Trust boundaries for each standby
Every standby is a node that can answer read requests, so each one belongs inside the same trust boundary you defined for the active node. Confirm which hosts run standbys, who administers them, and whether any standby sits in a network zone, region or cloud account with weaker controls than the active node. Treat a compromised standby as a compromised cluster member until you have confirmed otherwise.
OpenBao HA docsTLS between nodes and storage
Standbys forward or redirect requests to the active node and, depending on the backend, read from and coordinate through the data store. Review the TLS settings for node-to-node traffic and for every connection to PostgreSQL or the Raft peers, and confirm that certificates are validated rather than skipped. Restrict those ports with network policy so that only expected peers and load balancers can reach them.
Token and policy enforcement on reads
A read served by a standby must pass the same token and policy checks as a read served by the active node. Test this with tokens that have narrow policies, expired tokens and tokens revoked on the active node, and confirm that a standby rejects each one. Repeat the test after any change to auth methods, policies or namespaces, because those changes are where permission drift usually appears.
Audit logging across nodes
Audit devices record requests, and you need to know which node handled each one and whether every node writes to the audit path you expect. Enable at least one audit device, then send a known read to each standby and confirm the entry appears with the expected fields. Validate this behavior in your own environment and with your audit pipeline, because log collection can differ between nodes and between backends.
Monitoring replication lag and stale reads
A standby can return data that the active node has already changed, so you need a signal for how far behind a standby is. Track Raft applied index or PostgreSQL replication state where your backend exposes it, and alert when a standby falls behind a threshold you set. Pair this with a scripted write-then-read check against standbys so that stale reads are detected in testing before a client relies on them.
OpenBao HA docsHealth checks and routing exposure
Load balancers that send reads to standbys decide which nodes receive traffic, and a misconfigured probe can route sensitive requests to a node you did not intend to expose. Confirm which health status codes your probes accept and which node roles the load balancer may target. Document this routing as part of your access model so that changes to the probe are reviewed like changes to policy.
Questions teams ask before scaling OpenBao reads
Do standby reads reduce cost or operating effort for OpenBao?
Standby reads can reduce load on the active node, but they add work elsewhere, so the net effect depends on your setup. The main cost drivers are the number of standby nodes you run, the storage backend you choose, the load balancer configuration that routes read traffic, and the testing needed to prove that clients handle standby responses correctly. Raft standbys have been able to serve read-only operations since 2.5.0, and PostgreSQL support arrived in 2.7.0. Extra nodes add compute and monitoring, and PostgreSQL adds a database cluster you must operate. Ask any partner to show how each driver changes their quote.
How long does a standby read scaling rollout take?
The duration depends on your environment, so it has to be scoped before anyone commits to a date. The variables that matter most are whether you already run a supported Raft or PostgreSQL HA setup, how many clusters and load balancers are involved, how many client applications must be checked for consistency behavior, and how long your change windows are. A rollout that only adds non-voting capacity to a healthy Raft cluster is very different from moving read traffic on a PostgreSQL cluster that has never been load tested. Ask for a written scope with milestones and the assumptions behind each one.
What does our internal team need to provide for this work?
Your team needs to provide access and a set of planned windows for changes. Expect to supply administrative access to the OpenBao nodes, the load balancers that front them, and the backing store, plus a staging environment that resembles production. You will also need owners for client applications that read secrets, so that read behavior can be tested against real workloads. Load tests should run against standbys before any production traffic moves, and someone must be able to approve the change windows and rollback steps. Ask your provider to list each access item and each approval point in the written scope.
Can our team scale OpenBao reads without outside help?
Yes, a capable platform team can do this without a partner, provided it has experience running OpenBao HA, configuring health-check-based routing, and load testing secret-serving services. The parts that most often take longer than expected are consistency testing for applications that write and then read, and the load balancer behavior under failure. Review the documented HA behavior and the consistency guidance before you start, and decide who owns the ongoing monitoring. If your team has not operated OpenBao HA before, plan time to learn the cluster before changing read paths.
When is a partner worth bringing in for OpenBao read scaling?
A partner is worth considering when the team lacks hands-on HA experience, when secrets services support regulated workloads that cannot tolerate a failed change, or when the internal team is already committed to other projects. A partner can also add value by testing applications for stale reads, documenting the change and rollback plan, and handing over runbooks. Ask for a fixed-scope proposal that names deliverables, test evidence and the handover, so you can compare it with the cost of doing the work internally.
Does DeployOpen handle this work fully inside our infrastructure?
DeployOpen plans, implements, tests and documents self-hosted open-source platforms inside the client's own infrastructure, including cloud accounts, data centers and air-gapped networks. For standby read scaling, that means working in your environment on the node configuration, load balancer health checks, load testing and handover documentation. Engagements are fixed-scope, so the written scope states what is included, what your team provides and when the work is complete. DeployOpen does not issue audit reports or certifications, so any compliance evidence still needs an independent assessor.
What risks should we check before sending reads to standbys?
The main risk is that a client writes a secret and then reads it from a standby before the standby has caught up, which can return stale data. Other risks include health-check settings that route traffic to nodes that should not serve it, and load balancers that send writes to standbys if routing is misconfigured. Test read-after-write behavior for each client application, confirm which requests standbys forward to the active node, and rehearse a failover with the new routing in place. Confirm the consistency details against the current OpenBao documentation for your version before you finalize the design.
What to confirm with the vendor and your own environment
Before you commit to standby reads, confirm the exact behavior for your version and backend in the official high availability documentation and the release notes. The version boundary matters: Raft standbys serving read-only operations start at 2.5.0, while PostgreSQL read scaling is documented from 2.7.0. A cluster on an older line, or a Raft cluster that cannot move to a supported release, changes the design before any load test starts. Check the OpenBao high availability docs for the list of endpoints standbys answer locally, and confirm which requests are still forwarded to the active node in your release. Then compare that list with the request mix your applications actually send, not the mix you assume.
Next, confirm how your clients handle the consistency headers. A standby that serves a read can lag the active node, so a write followed by a read may return older data unless the client sends the header that asks for a consistent view and handles the index it gets back. Review every client path that writes and then reads: applications, OpenBao Agent or Proxy configurations, CI jobs, and any load balancer rules. Pin down which library versions set these headers, because a client that silently drops them will pass functional tests on an idle cluster and fail under real traffic. Treat the header behavior as something to prove in a test that writes and reads through a standby, not as a property you assume from the documentation.
Finally, decide how monitoring will detect stale reads before production traffic moves. Build a synthetic probe that writes a known value through the active node, reads it back through each standby, and alerts when the value or index is behind. Track the gap between the active node and each standby alongside the standard health and replication metrics, and set an alert threshold you can explain to the owners of the affected services. Load test with your own profile, including peak write bursts and token or lease renewal patterns, because read scaling only helps if the reads you move are the expensive ones. Record the results and rerun the same tests after every upgrade.
How DeployOpen scopes and delivers OpenBao read scaling
DeployOpen plans, implements, documents and supports self-hosted open-source platforms inside your own infrastructure, including OpenBao clusters. For standby read scaling, we start from your read traffic, your storage backend and the consistency needs of each client, then deliver a tested configuration your team can run.
How we scope
- Written, fixed-scope agreement covering which OpenBao cluster, storage backend and client groups are in scope
- Inventory of read-heavy clients, load balancer probes and the requests each one sends to standbys
- Decisions on Raft or PostgreSQL, consistency requirements and which routes must always reach the active node
How we build
- Configure health-check routing and standby read behavior in your environment, on the OpenBao version you approve
- Test which requests standbys serve, which are forwarded to the active node, and how stale reads appear
- Verify consistency header use for write-then-read flows, using the headers and tokens your clients will send
How we hand over
- Written runbook covering routing configuration, supported versions, failover checks and rollback steps
- Test results and client guidance documenting which read paths are safe to scale on standbys
- Knowledge transfer sessions so your platform and security teams can review and operate the setup
How we support
- Ongoing support, upgrades and continuous testing available as a retainer after handover
- Review of each new OpenBao release line before you change standby routing or consistency settings
- Retesting after cluster changes, new client types or infrastructure moves, scoped in writing

