Why Choose Integrated Storage (Raft)

- Raft Protocol: Leader election and data replication ported from Consul directly into Vault.
- High Availability: A 3–5 node cluster tolerates up to two node failures, since each node holds a full data copy.
- Simplified Operations: No separate Consul cluster to provision, monitor, or troubleshoot.
- Built-in Snapshots: Automated data retention snapshots; Enterprise users can leverage the Vault 1.6+ snapshot agent.
- Official Support: HashiCorp fully supports both Integrated Storage (Raft) and Consul backends in Enterprise.
Deployment Topology
This diagram shows five Vault nodes (A–E) forming a Raft cluster communicating over TCP port 8201:
| Component | Description |
|---|---|
| Nodes A–E | Vault servers forming the Raft cluster |
| Port 8201 | Inter-node Raft communication |
| Local Disk | Persists replicated Vault data |
Vault Configuration Example
Below is a sample HCL file for a Vault node with integrated storage. Make sure eachnode_id is unique across the cluster:
The
retry_join block supports various providers (AWS, Azure, GCP) or static IP/hostname lists. Adjust to your environment.Joining and Managing the Raft Cluster
Auto-joining via AWS
Vault nodes configured with theretry_join block will discover and join the leader automatically based on AWS tags.
Manual Join
When auto-join isn’t available, add followers manually:<leader_node_address> with your leader’s Vault API endpoint.
Run the join command only on standby nodes. Do not execute it on the leader to avoid election issues.
Viewing Cluster Membership
List Raft peers and their voting status:| Field | Description |
|---|---|
| Node | Identifier of the Vault Raft peer |
| Address | Raft port for inter-node communication (8201) |
| State | Current role: leader or follower |
| Voter | Indicates Raft vote participation (true/false) |
Conclusion
By configuring Vault with its integrated Raft storage backend, you gain:- A clear, multi-node topology without external dependencies.
- An HCL configuration template for integrated storage with AWS KMS sealing.
- Commands for automatic and manual cluster enrollment.
- Techniques to monitor and list your Raft peers.