LVS 虚拟服务器相关实验

17课时
454学过
8分

2. 实验:实现LVS与RS之间添加路由器的 LVS-NAT

3. 实验:实现单网络 LVS-DR

课程评价 (0)

请对课程作出评价:
0/300

学员评价

暂无精选评价
1分钟

Ldirectord 配置文件示例

checktimeout=3

checkinterval=1

autoreload=yes

logfile=”/var/log/ldirectord.log” #日志文件

quiescent=no #down时yes权重为0,no为删除

virtual=5 #指定VS的FWM或IP:port

real=172.16.0.7:80 gate 2

real=172.16.0.8:80 gate 1

fallback=127.0.0.1:80 gate #sorry server

service=http

scheduler=wrr

checktype=negotiate

checkport=80

request=”index.html”

receive=”test Ldirectord”

重启ldirectord服务,将自动生成LVS规则

systemctl start ldirectord

默认情况下,当有一台RS服务器宕机时,LVS还将继续调度,启动ldirectord服务后,当某台RS服

务器**宕机后,LVS将不再继续调度至该台服务器**