HAProxy & Webserver
This Post is all about HAProxy and Webserver configuration using Ansible.
So, What is HAProxy?
HAProxy is free, open source software that provides a high availability load balancer and proxy server for TCP and HTTP-based applications that spreads requests across multiple servers.
- Description
In this task we need to install HAProxy on one system and then we need to use this as LoadBalancer for Webserver running in other systems/server.
This all is automated using ansible
Ansible YAML file for HAProxy
The main focus in this is about modifying the config file in which we need to provide the port number for LB and also for backend servers.
Installing httpd in webservers(backend)
Copying content for website
finally starting service (httpd)
A video of complete demonstration is below