/terraform-metal-bare-metal-cluster

A load balancing and high availability demo on Packet bare metal servers.

Primary LanguageHCL

Load Balancing and High Availability Demo with Haproxy and Keepalived

A load balancing and high availability demo on Equinix Metal bare metal servers. This terraform module will create a cluster of 2 webservers and 2 load balancers in Active-Passive mode. The webservers are in full layer 2 mode and connect to the haproxy load balancers which are in hybrid networking mode. Haproxy uses a Equinix Metal Elastic IP which is announced through BGP with Bird and Keepalived ensures that Haproxy or the Master is healthy. If the Master breaks, then the role switches to the Backup node which happens in a couple of seconds.

LB-HA

To run this demo, you will need to have Terraform installed. The following commands will deploy the full cluster:

terraform init
terraform apply

If you're interesting in manually deploying this cluster, we have a guide on how to do so [here](FIX URL/master/guides/load-balancing-and-high-availability.md).