Setup High-Availability Load Balancer with ‘HAProxy’ to Control Web Server Traffic..

Use Ansible playbook to Configure Reverse Proxy i.e. Haproxy and update it’s configuration file automatically on each time new Managed node (Configured With Apache Webserver) join the inventory.

Setup High-Availability Load Balancer with ‘HAProxy’ to Control Web Server Traffic
😉

ANSIBLE

If you want to learn about Ansible 👇go through this article which will give you crystal and clear idea about ANSIBLE .

HAProxy

HAProxy is free, open source, highly available, load balancer software written by Willy Tarreau in 2000. It is implemented in the C programming language. It is known for its high performance and is extremely reliable and secure. It supports both Layer 4 (TCP) and Layer 7 (HTTP) based application load balancing, and is released under the GPLv2 licence. Nginx is a Web server created by Igor Sysoev, and is also written in the C programming language. It can be used as a reverse proxy, mail proxy and as an HTTP cache. It was first released in 2004 and uses the 2-clause BSD licence.

Apache Web Server

Apache HTTP Server is a free and open-source web server that delivers web content through the internet. It is commonly referred to as Apache and after development, it quickly became the most popular HTTP client on the web. It’s widely thought that Apache gets its name from its development history and process of improvement through applied patches and modules but that was corrected back in 2000. It was revealed that the name originated from the respect of the Native American tribe for its resiliency and durability.

PHP

PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages.PHP is a widely-used, free, and efficient alternative to competitors such as Microsoft’s ASP.Start learning PHP now »
pip3 install ansible
vim /root/ip.txt
# create configuration file#command to create the directory
mkdir /etc/ansible
#to create the file inside the ansible directory
vim /etc/ansible/ansible.cfg
yum install sshpass
ansible --version
ansible all --list-hosts
ansible all -m ping

What is Ansible-playbook ?

# command to create a file 
vim /root/ansible-ws/haproxy/haproxy.yml
ansible-playbook -v filename.yml

THANKS FOR EVERYONE TO READ THIS ARTICLE !!🤗

--

--

I am an IT Enthusiast, who is passionate about exploring/learn all the latest technologies from research perspective.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jatin Lodhi

I am an IT Enthusiast, who is passionate about exploring/learn all the latest technologies from research perspective.