-
-
Save m00zi/9e451dceed7002e508a19b16a5679221 to your computer and use it in GitHub Desktop.
Load balancing not working tried with balance roundrobin and balance leastconn in ftp-balancer-pool
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HAPROXY Config for FTP | |
# my apologies for the spacing | |
global | |
log 127.0.0.1 local0 info | |
chroot /var/lib/haproxy | |
user haproxy | |
group haproxy | |
defaults | |
log global | |
mode tcp | |
option tcplog | |
retries 3 | |
# This is for the initial connection and control traffic | |
frontend foxtrot-tango-papa-control | |
bind *:21 | |
default_backend ftp-balancer-pool | |
# Each of these frontends represent a server and its corresponding PASV ports we set | |
frontend foxtrot-tango-papa01 | |
bind *:1025-5000 | |
default_backend foxtrot_tango_papa01 | |
frontend foxtrot-tango-papa02 | |
bind *:1025-5000 | |
default_backend foxtrot_tango_papa02 | |
frontend foxtrot-tango-papa03 | |
bind *:1025-5000 | |
default_backend foxtrot_tango_papa03 | |
frontend foxtrot-tango-papa04 | |
bind *:1025-5000 | |
default_backend foxtrot_tango_papa04 | |
frontend foxtrot-tango-papa05 | |
bind *:1025-5000 | |
default_backend foxtrot_tango_papa05 | |
# Global backend for the ftp control traffic to find a server | |
backend ftp-balancer-pool | |
balance roundrobin | |
server foxtrot-tango-papa01 wan1.gbps.io:21 check | |
server foxtrot-tango-papa02 wan2.gbps.io:21 check | |
server foxtrot-tango-papa03 wan3.gbps.io:21 check | |
server foxtrot-tango-papa04 wan4.gbps.io:21 check | |
server foxtrot-tango-papa05 wan5.gbps.io:21 check | |
# Backends for each of our FTP servers | |
backend foxtrot_tango_papa01 | |
server foxtrot-tango-papa01 wan1.gbps.io | |
backend foxtrot_tango_papa02 | |
server foxtrot-tango-papa01 wan2.gbps.io | |
backend foxtrot_tango_papa03 | |
server foxtrot-tango-papa01 wan3.gbps.io | |
backend foxtrot_tango_papa04 | |
server foxtrot-tango-papa01 wan4.gbps.io | |
backend foxtrot_tango_papa05 | |
server foxtrot-tango-papa01 wan5.gbps.io |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment