Configure haproxy using ansible

  • firstly all these different web servers have different IP hence if the user want to connect to them the he would have to remember all these IP address which is not practical since some websites have thousands of servers.
  • not all web servers are busy at all times and the user would have to check the traffic on different web servers before connecting. Again this is not a very time-efficient way of managing things.

What’s a load balancer?

Let’s automate this process

  1. Download and install the haproxy software
  2. Configure the haproxy configuration file
  3. Limit the firewall which might hamper the connection of the webservers to the load balancer
  4. Start the haproxy services.

1. Install the haproxy software

2. Create the configuration file





Tech enthusiast

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

A brief history of the Python programming language

Computer Shop Barkingside

Barkingside Computer Shop

From iWorkBetter ™ to iCodeBetter ™

An Introduction Of HMS Location Kit using Ionic Framework ( Cross Platform )

SQL Exercises 3 — Wildcard & Special Operators

Set up MAMP php on macOS

A Product Manager’s Review of Deep Learning Specialization by

A Minimal and Configurable Terminal Setup

Terminal setup

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
Arjun Chauhan

Arjun Chauhan

Tech enthusiast

More from Medium

NGINX monitoring commands

The Jenkins — Part 5

Create a High Available solution for MySQL.

Getting Started With Kubernetes