/etc/init.d/lvsdr-basic
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
VIP=192.168.1.150
RIP1=192.168.1.151
RIP2=192.168.1.152
###########################
# ifconfig a
#
#/sbin/ifconfig eth0:0 $VIP broadcast $VIP netmask 255.255.255.255 up
#
############################
/sbin/route add -host $VIP dev eth0:0
echo "1" > /proc/sys/net/ipv4/ip_forward
jason
周五, 2007-06-08 17:28
Permalink
不启用持久连接,LVS
不启用持久连接,LVS似乎做不到哟
wensong
周日, 2007-06-17 15:37
Permalink
针对所描述的应用情
针对所描述的应用情形,我们一般推荐使用persistent选项和wlc或wrr调度方法。有什么道理不能用--persistent选项吗?
另外,可以考虑使用sh调度方法,不过它有它的限制,请参见:
knewsticker
周二, 2007-06-26 03:10
Permalink
如果用了--persistent选项 ,那同一个IP上的所有客户端会被负载到同一台realserver 上
如果用了--persistent选项 ,那同一个IP上的所有客户端(端口不同)会被负载到同一台realserver 上,我现在想做的是能让同一个IP上的不同客户端能连接不同的realserver
aayyooh
周五, 2007-07-20 08:20
Permalink
发错了
发错了
gunguymadman
周五, 2007-09-28 06:47
Permalink
lvs_heartbeat+ldirectord 客户端adsl猫负载均衡拨号上网 经常无法登陆 或无法退出
由于是双猫负载上网 公网ip经常换 so 到lvs的session 经常导致不对
请问如何解决
2- 修改haresources文件
abfront1 IPaddr::192.168.1.150 lvsdr-basic ldirectord
ha.cf
debugfile /var/log/ha-debug
logfile /var/log/ha-log
logfacility local0
deadtime 20
initdead 20
bcast eth1 在eth1上发送心跳广播
mcast eth1 225.0.0.1 694 1 0
auto_failback on
node centos1
node centos2
ping_group group1 192.168.1.151 192.168.1.152
respawn root /usr/lib/heartbeat/ipfail
apiauth ipfail gid=root uid=root
ldirectord.cf
virtual=192.168.1.150:80
real=192.168.1.151:80 gate
real=192.168.1.152:80 gate
service=http // 服务名称http
request="test.html" // lvs服务器测试代码
receive="Test" //
scheduler=sh // 按照source hash 调度
protocol=tcp
/etc/init.d/lvsdr-basic
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
VIP=192.168.1.150
RIP1=192.168.1.151
RIP2=192.168.1.152
###########################
# ifconfig a
#
#/sbin/ifconfig eth0:0 $VIP broadcast $VIP netmask 255.255.255.255 up
#
############################
/sbin/route add -host $VIP dev eth0:0
echo "1" > /proc/sys/net/ipv4/ip_forward
谢谢 ,有什么不清楚的配置 我再补充
Anonymous (没有被验证)
周三, 2014-03-05 08:38
Permalink
gsoOEBxKgftBzz
This was so helpful and easy! Do you have any areilcts on rehab?
Anonymous (没有被验证)
周三, 2014-03-05 18:32
Permalink
cDuIqpwQQnHQfvbrLU
You colu'ndt pay me to ignore these posts!
Anonymous (没有被验证)
周五, 2014-05-09 14:03
Permalink
vOoNZwsuLtovWVf
cheapairflights.com blood pressure impotence searchonlinecolleges.net best auto insurance cheap online viagra
Anonymous (没有被验证)
周四, 2014-11-13 13:22
Permalink
lSAIgTeXlNys
impotence cure natural online degree bachelor buy levitra car insurance 24 hour auto insurance