设为首页收藏本站

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 769|回复: 0

The UltraMonkey Solution - Load Balance on Linux

[复制链接]
发表于 2012-7-19 07:13:20 | 显示全部楼层 |阅读模式
本帖最后由 demo 于 2012-7-19 23:18 编辑

Ultra Monkey is a project to create load balanced and highly available services on a local area network using Open Source components on the Linux operating system,including heartbeat and ldirectord from the Linux-HA project.

Configuation example
Now we're going to using UltraMonkey to contruct a highly-available VS/NAT web cluster with two load balancers and three web servers. The topology is illustrated in the following figure.  In the example,virtual IP address and gateway IP address are 10.23.8.80 and 172.18.1.254, which are floating between the two load balancers (LD1and LD2), and the ip addresses of three real servers are 172.18.1.11,172.18.1.12 and 172.18.1.13 respectively.

The configuration files of UltraMonkey are the same at LD1 and LD2. The configuration files for above examples are as follows:
/etc/ha.d/ha.cf:
logfacility     local0
keepalive 2
deadtime 10
warntime 10
initdead 10
nice_failback on
udpport 694
bcast   eth1
node    ld1
node    ld2

/etc/ha.d/haresources:
ld1 IPaddr::10.23.8.80/24/eth1 IPaddr::172.18.1.254/24/\
eth1 ldirectord::ldirectord.cf

/etc/ha.d/ldirectord.cf:
checktimeout=10
checkinterval=2
autoreload=no
logfile="local0"
quiescent=yes

virtual=10.23.8.80:80
        fallback=127.0.0.1:80
        real=172.18.1.11:80 masq
        real=172.18.1.12:80 masq
        real=172.18.1.13:80 masq
        service=http
        request="index.html"
        receive="Test Page"
        scheduler=wlc
        persistent=600
        protocol=tcp
        checktype=negotiate

http://www.linuxvirtualserver.org/docs/ha/ultramonkey.html

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|BC Morning Website ( Best Deal Inc. 001 )  

GMT-8, 2025-8-25 15:13 , Processed in 0.014200 second(s), 17 queries .

Supported by Best Deal Online X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表