How to set up load balancing on CentOS 7 / Redhat 7 Linux using Apache.



This tutorial will show you how to configure active active load balancing on CentOs 7 (Linux) using Apache.

This tutorial will also work on Redhat 7 (RHEL 7)

This tutorial will show you how to configure two CentOs web servers so you can check that your load balancing is working.

It will then show you how to configure Apache to load balance the two web servers.

The commands that you need to follow along with the tutorial can be found here:

How to set up load balancing on CentOS 7 / Redhat 7 using Apache

In order to follow along with this tutorial you will need to have CentOS 7 installed. You can do so by following this tutorial:

You will also need to have Apache installed, a tutorial on how to do so can be found here:

If you liked this video please subscribe by clicking here:

https://www.youtube.com/channel/UCkDvK72aPFRnv0GnpuV97ig

source
centos 7

Devin BARTON

Devin BARTON

I am an avid Linux lover and open source enthusiast. I use Ubuntu and believe in sharing knowledge. Apart from Linux, I love classic detective mysteries.

15 thoughts on “How to set up load balancing on CentOS 7 / Redhat 7 Linux using Apache.

  • Avatar
    September 13, 2020 at 1:39 pm
    Permalink

    hi, this is perfectly delivered. Thanks man! I have a question. is it practical to have two instances of backend on my single server, and a balancer between them on the same server? I am really new in this. Thanks in advance.

    Reply
  • Avatar
    September 13, 2020 at 1:39 pm
    Permalink

    Thanks for the video. I'm having a problem. After following your steps, when I try accessing the load-balancer via IP address or resolvable name, I get a message that reads: "The server is temporarily unable to service your request due to maintenance downtime or capacity problems…". What could be the issue here? Thanks again.

    Reply
  • Avatar
    September 13, 2020 at 1:39 pm
    Permalink

    do you install apache on all three servers (the load balancer, web server 1, and web server 2)???

    Reply
  • Avatar
    September 13, 2020 at 1:39 pm
    Permalink

    Hey, I have doubts about port 80. I installed Apache on Centos 8. I allowed http conections on the firewall, Is this the same as opening port 80? Will port 8080 be open? Thanks

    Reply
  • Avatar
    September 13, 2020 at 1:39 pm
    Permalink

    must all of the enp0s3, eth01, eth0s, etc, must they all have different IP addresses? I cannot get different IP addresses for each VM.

    Reply
  • Avatar
    September 13, 2020 at 1:39 pm
    Permalink

    I got an error message. How are your 3 VMs setup, network wise?…all of mine are set to bridged connections with the same gateway…could that be the problem? im new to all of this, lol. the exact error is "Service Unavailable The server is temporarily unable to your service request due to maintenance downtime or capacity problems. Please try again later." I can connect to both servers individually but not through the Load balancer

    Reply
  • Avatar
    September 13, 2020 at 1:39 pm
    Permalink

    Hi thanks for the video! This balancer works with jboss instead apache webservers? I mean, this Apache balancer to balance 2 jboss AS servers..

    Reply
  • Avatar
    September 13, 2020 at 1:39 pm
    Permalink

    Great job!! Do you know how to configure the module mod_proxy_hcheck that checks whether one of the pages is down?

    Reply

Leave a Reply