Skip to main content
In this guide, you’ll configure performance replication between two Vault clusters—a primary and a secondary. After completing these steps, any changes made on the primary will automatically mirror to the secondary. What You’ll Achieve:
  1. Enable performance replication on the primary cluster
  2. Generate a secondary-token for bootstrapping
  3. Activate the secondary cluster
  4. Verify replication health
  5. Demonstrate configuration propagation

Prerequisites

  • Both clusters must be initialized and unsealed.
  • Vault CLI installed and pointing to the correct VAULT_ADDR.

1. Enable Performance Replication on the Primary

  1. Authenticate to the primary cluster
  2. Turn on performance replication
Enabling primary replication will make Vault briefly unavailable. Plan for a short maintenance window.

2. Generate a Secondary Bootstrap Token

Create a wrapped token to securely initialize the secondary:
Example output:
Copy the wrapping_token to use in the next step.

3. Activate the Secondary Cluster

  1. Authenticate to the secondary cluster
  2. Enable performance replication on the secondary using the wrapped token
Vault will be unavailable until the initial sync and setup tasks complete.

4. Verify Replication Status

On the secondary cluster, confirm health and connectivity:
Expected fields: A ready state with stream-wal indicates that performance replication is healthy.

5. Demonstrate Configuration Propagation

Make a change on the primary to prove replication works:
  1. On the primary, enable the userpass auth method and create a user:
  2. Within seconds, log in on the secondary using that user:
Success confirms that auth methods, users, and policies (along with future secrets engines, audit devices, KV data, etc.) propagate automatically.

Watch Video