Configuring the HAProxy load balancer for Confluence DC
The purpose of a load balancer is to efficiently distribute incoming network traffic between Confluence nodes in round robin cluster configuration. If you don't have a particular preference or policy for load balancers, you can use HAProxy, which is a popular open-source load balancer. Learn how to get up and running with HAProxy and see sample configurations that you can use as reference points for creating your own setup.
Before you begin
The content on this page relates to platforms which are not supported. Consequently, Atlassian Support cannot guarantee providing any support for it. Please be aware that this material is provided for your information only and using it is done so at your own risk.
Download and install HAProxy from http://www.haproxy.org/.
Make sure that you're using HAProxy 2.2.0 or newer for HTTP check and HTTPS support.
To check which version of HAProxy you use, run the following command:
haproxy --version
To configure HAProxy:
Review the contents of the
haproxy.cfg
file and customize it for your environment.The
haproxy.cfg
file is typically located at/etc/haproxy/haproxy.cfg
. See https://docs.haproxy.org/ for more information about configuring HAProxy. Refer to the examples of how to configure HAProxy in different scenarios:Once you have configured
haproxy.cfg
correctly for your environment, start thehaproxy
service according to the instructions appropriate for your operating system.