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, 2020 in Linux Administration by akhtar
• 38,260 points
918 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, 2020 by MD
• 95,460 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, 2020 in Linux Administration by akhtar
• 38,260 points
1,043 views
0 votes
1 answer

How to configure yum in RedHat system?

Hi@akhtar, By default, RedHat has one ISO file. ...READ MORE

answered Jul 28, 2020 in Linux Administration by MD
• 95,460 points
2,161 views
0 votes
1 answer

How to configure Gmail in centos7 to send notifications to specific email id's ?

Hi@Shashl, You can use python script in your ...READ MORE

answered Oct 5, 2020 in Linux Administration by MD
• 95,460 points
1,242 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
5,453 views
+2 votes
1 answer
+2 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
• 58,020 points
2,715 views
+1 vote
1 answer

How to configure NFS server in Linux?

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

answered May 27, 2020 in Linux Administration by MD
• 95,460 points
996 views
0 votes
1 answer

How to configure FTP server in Linux System?

Hi@akhtar, You need to install vsftpd software in ...READ MORE

answered Jul 9, 2020 in Linux Administration by MD
• 95,460 points
953 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP