Install Guide

3 Execute the following commands to congure HAProxy:
Back up original conguration before editing, with the command sudo cp /etc/haproxy/haproxy.cfg /etc/haproxy/
haproxy.cfg.original
Now edit the conguration le with the command sudo nano /etc/haproxy/haproxy.cfg
In the conguration le edit the following sections as per the requirement:
Global section: Maxconn <maximum number of connections>
Frontend tcp-in: bind <HAProxy server IP>:5172
Back end servers: server <server alias name> <Teradici Device Proxy server IP>:5172
maxconn <maximum number of connections per Teradici Device Proxy server>
NOTE: For achieving high availability, administrator may add additional back end servers beyond the total number of
clients capacity to have seamless fail over.
After editing the conguration, save it with command Ctrl + O
The sample HAProxy conguration is provided as follows:
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
daemon
#maxconn is maximum allowed connections
maxconn 50000
defaults
log global
mode tcp
timeout connect 5000ms
timeout client 50000ms
timeout server 50000ms
errorfile 400 /etc/haproxy/errors/400.http
errorfile 403 /etc/haproxy/errors/403.http
errorfile 408 /etc/haproxy/errors/408.http
errorfile 500 /etc/haproxy/errors/500.http
errorfile 502 /etc/haproxy/errors/502.http
errorfile 503 /etc/haproxy/errors/503.http
errorfile 504 /etc/haproxy/errors/504.http
frontend tcp-in
#replace IP with IP of your Linux proxy machine
bind 10.150.99.102:5172
88
Conguring load balancing