How to configure Haproxy load balancer?

0 votes

Hi Guys,

I have my web server in docker container. But when more traffic comes to my page, it is not able to handle the traffic. So I want to implement load balancing concept using Haproxy.

How can I do that?

Apr 22 in Linux Administration by akhtar
• 10,580 points
13 views

1 answer to this question.

0 votes

Hi@akhtar,

Yes you can implement load balancing concept using Haproxy. Use the below given steps.

  • Install Haproxy software.

$ yum install haproxy
  • Open /etc/haproxy/haproxy.conf and set front end and back end ip.

  • Start service of Haproxy.

$ systemctl start haproxy

$ systemctl enable haproxy
  • Stop firewall.

$ systemctl stop firewalld

Hope this will help.

answered Apr 22 by MD
• 23,050 points

Related Questions In Linux Administration

0 votes
1 answer

How to configure SSH server in RHEL/CentOS?

Hi@MD, To configure SSH server to your system, ...READ MORE

answered Mar 30 in Linux Administration by akhtar
• 10,580 points
40 views
0 votes
1 answer

How to display a simple list of all disks, like this /dev/sda /dev/sdb ?

You can list all the disk in ...READ MORE

answered Jul 12, 2018 in Linux Administration by DearestOne
• 200 points
368 views
0 votes
1 answer

How to increase Swap Memory in CentOS 7?

Follow the below steps and procedures: Prerequisites Must have ...READ MORE

answered Oct 5, 2018 in Linux Administration by Frankie
• 9,810 points
3,700 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 57,530 points
538 views
+1 vote
1 answer

How to configure NFS server in Linux?

Hi@akhtar, To configure NFS server in your system, ...READ MORE

answered 6 days ago in Linux Administration by MD
• 23,050 points
29 views
0 votes
1 answer

How to install python-poster in RedHat?

Hi@akhtar, To install python-poster in RedHat/CentOs, you can ...READ MORE

answered Feb 11 in Linux Administration by MD
• 23,050 points
74 views