how load balancer works ( ldirector )


________
| |
| client |
|________|
CIP=SGW=192.168.2.62 (eth0)
|
|
__________ |
| | | (Virtual IP=192.168.2.110, eth0:110) listening on port 25
| director |---|
| (suse) | |
|__________| | Director IP=192.168.2.24 (eth0)
|
|
-----------------------------------
| |
| |
Real IP=192.168.2.214(eth0) Real IP=192.168.2.230(eth0)
(VIP=192.168.2.110, lo:0) (VIP=192.168.2.110, lo:0)
______|______ ______|______
| | | |
| realserver | | realserver |
|____________| |____________|



on the LVS server
cat  /etc/ha.d/ldirectord.cf

quiescent=yes
checktimeout=10
checkinterval=30
autoreload=yes
logfile="/var/log/ldirectord.log"

virtual=192.168.2.110:25
        real=192.168.2.214:25 gate 9
        real=192.168.2.230:25 gate 8
        service=smtp
        protocol=tcp
        scheduler=wrr




No comments:

Other Articles

Enter your email address: