Skip to content

Commit

Permalink
Add Vault example to the traffic shaping section.
Browse files Browse the repository at this point in the history
Add a small section to the Traffic Shaping documentation detailing how to use Fabio to route traffic for Vault to the active node.

Ref: https://twitter.com/jrasell/status/1100724689767485440
  • Loading branch information
jrasell authored Jul 24, 2019
1 parent 8494d3f commit 5ba8c8b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/content/feature/traffic-shaping.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,12 @@ publishing the same prefix.
route weight service-b www.kjca.dev/auth/ weight 0.05 tags "version-15,dc-fra"
```

### Vault Example

[Vault](https://www.vaultproject.io) is a tool by [HashiCorp](https://www.hashicorp.com/) for managing secrets and protecting sensitive data. When running in HA mode, Vault will have a single active node which is responsible for responding the API requests. Fabio can be used to ensure traffic is routed to the correct server via traffic shaping.

The following command will allocate 100% of traffic to `vault.company.com` to the instance of `vault` which is registered with the tag `active`.

```
route weight vault vault.company.com weight 1.00 tags "active"
```

0 comments on commit 5ba8c8b

Please sign in to comment.