This section gives two examples of load balancer configuration, Apache web server (httpd) and HAProxy. These sample configuration files are meant only as examples for testing.
The following changes configure the Apache HTTP server (httpd) as a load balancer.
1. | Add following line to the end of the httpd.conf file: |
2. | Create the following two files in the /conf folder of your httpd server. |
• | mod-jk.conf: |
• | workers.properties: |
The following example is a configuration for the HAProxy load balancer. HAProxy is a high-performance, free and open source load balancer for Linux/x86 and Solaris/Sparc.
Edit the /etc/haproxy.cfg file as follows:
Recommended Comments
There are no comments to display.