...
This document describes how to install HAProxy after the upgrade from 3.10.x to 4.0.x.
Author: Marc Cirauqui
Install HAProxy
Before you begin: check that you have the epel-release package installed. Otherwise HAProxy might not be available or it might be an old version.
Code Block |
---|
# yum -y install haproxy |
Configure HAProxy
The configuration to use depends on your architecture.
Running websockify on each Remote Services server
If you have multiple datacenters and are running websockify on each Remote Services server, you will need to define the backend for each server. Use the following model for the /etc/haproxy/haproxy.cfg file and make the changes described below.
...
When you have all the acl and use_backend lines, as well as the backend blocks for all the datacenters, restart the haproxy daemon to start routing requests.
Running one default websockify daemon
If you have multiple datacenters with ESXi hosts and you can allow access to all hosts in all datacenters, then you could use the following configuration with a single default websockify daemon.
...