Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
Enable request forwarding so standby nodes can be healthy in the ELB,…
Browse files Browse the repository at this point in the history
… thus eliminating downtime when leader election occurs. (#46)
  • Loading branch information
fieldju authored May 31, 2017
1 parent 9effc2e commit a780ce1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion smaas-cf/smaas/vault-cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
HealthCheck=HealthCheck(
HealthyThreshold=2,
Interval=5,
Target="HTTPS:8200/v1/sys/health",
Target="HTTPS:8200/v1/sys/health?standbyok",
Timeout=2,
UnhealthyThreshold=2
),
Expand Down
11 changes: 11 additions & 0 deletions smaas-cf/smaas/vpc-and-base.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,17 @@
ToPort=8200
))

# Allow Vault server instances to talk to other Vault server instances on 8201
# Vault does internal communication by default on the port above the normal listening port, in this case 8201
template.add_resource(SecurityGroupIngress(
"VaultServerIngress8201",
GroupId=Ref(vault_server_sg),
SourceSecurityGroupId=Ref(vault_client_sg),
FromPort=8201,
IpProtocol="tcp",
ToPort=8201
))

# Allow Vault server instances to talk to other Vault server instances on 8200
template.add_resource(SecurityGroupIngress(
"VaultServerIngress8200",
Expand Down

0 comments on commit a780ce1

Please sign in to comment.