Install Guide

3 次のコマンドを実行して、HAProxy を設定します。
設定を編集する前に、sudo cp /etc/haproxy/haproxy.cfg /etc/haproxy/haproxy.cfg.original コマンドでオリジナルの設定をバックアップし
ます。
次に、sudo nano /etc/haproxy/haproxy.cfg コマンドで設定ファイルを編集します。
要件に基づいて、設定ファイルの次のセクションを編集してください。
Global セクションMaxconn <接続の最大数>
Frontend tcp-in: bind <HAProxy サーバの IP>:5172
Back end servers: server <サーバのエイリアス名> <Teradici デバイスプロキシサーバの IP>:5172
maxconn <Teradici デバイスプロキシサーバごとの最大接続数>
メモ: 高可用性を実現するには、合計クライアント容量を超えるバックエンドサーバを追加して、シームレスなフェールオーバーが行える
ようにします。
設定編集後、Ctrl + O でコマンドを保存します。
以下は、HAProxy 設定のサンプルです。
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
# IP には Linux プロキシマシンの IP を指定します。
bind 10.150.99.102:5172
90
ロードバランシングの設定