HAProxy demo with Vagrant
+
| http/https
|
+-----------+-----------+
| |
| HA proxy |
| |
+------+-----------+----+
http/https | | http/https
+-------------+---+ +---+--------------+
| | | |
| httpd | | httpd |
| | | |
+-----------------+ +------------------+
(graph created with asciiflow)
This demo features a HAProxy HTTP load balancer and two Apache httpd servers on CentOS 7.
Virtualization: libvirt / KVM
vagrant-libvirt
vagrant-cachier
Generate certificates and keys with CloudFlare SSL
$ ./init-pki.sh
Create and provision virtual machines with Vagrant
$ vagrant up
Visit https://balancer-1/ and
https://balancer-1/haproxy-status in
your browser.