- 论坛徽章:
- 0
|
192.168.0.3和192.168.0.5都可以直接访问,倘若关闭Director Server上的pulse服务,在Director Server上也可访问VIP,日志没有报错信息,但可以看到192.168.0.3:80 available之类的信息。wireshark可以在Real Server上抓到客户端访问http的tcp包。
重启pulse过程中日志如下:
Apr 2 21:25:59 osnagios pulse[16349]: Terminating due to signal 15
Apr 2 21:25:59 osnagios lvs[16416]: shutting down due to signal 15
Apr 2 21:25:59 osnagios lvs[16416]: shutting down virtual service www.nxist.com
Apr 2 21:25:59 osnagios nanny[16425]: Terminating due to signal 15
Apr 2 21:25:59 osnagios nanny[16426]: Terminating due to signal 15
Apr 2 21:25:59 osnagios avahi-daemon[3847]: Withdrawing address record for 192.168.0.1 on eth0.
Apr 2 21:26:00 osnagios pulse[16549]: STARTING PULSE AS MASTER
Apr 2 21:26:10 osnagios pulse[16549]: partner dead: activating lvs
Apr 2 21:26:10 osnagios lvs[16606]: starting virtual service www.nxist.com active: 80
Apr 2 21:26:10 osnagios nanny[16610]: starting LVS client monitor for 192.168.0.1:80
Apr 2 21:26:10 osnagios nanny[16610]: [ active ] making 192.168.0.3:80 available
Apr 2 21:26:10 osnagios lvs[16606]: create_monitor for www.nxist.com/osnode1.nxist.com running as pid 16610
Apr 2 21:26:10 osnagios nanny[16612]: starting LVS client monitor for 192.168.0.1:80
Apr 2 21:26:10 osnagios lvs[16606]: create_monitor for www.nxist.com/osnode2.nxist.com running as pid 16612
Apr 2 21:26:10 osnagios avahi-daemon[3847]: Registering new address record for 192.168.0.1 on eth0.
Apr 2 21:26:10 osnagios avahi-daemon[3847]: Withdrawing address record for 192.168.0.1 on eth0.
Apr 2 21:26:10 osnagios avahi-daemon[3847]: Registering new address record for 192.168.0.1 on eth0.
Apr 2 21:26:10 osnagios avahi-daemon[3847]: Withdrawing address record for 192.168.0.1 on eth0.
Apr 2 21:26:10 osnagios avahi-daemon[3847]: Registering new address record for 192.168.0.1 on eth0.
Apr 2 21:26:10 osnagios nanny[16612]: [ active ] making 192.168.0.5:80 available
Apr 2 21:26:15 osnagios pulse[16614]: gratuitous lvs arps finished
在10.1.1.2上telnet 192.168.0.1 80,监控到如下信息:
Every 0.1s: ipvsadm -L Mon Apr 2 21:36:58 2012
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress ort Scheduler Flags
-> RemoteAddress ort Forward Weight ActiveConn InActConn
TCP 192.168.0.1:http rr
-> 192.168.0.5:http Route 1 0 1
-> 192.168.0.3:http Route 1 0 1
注:lvs负载均衡器的eth1:10.1.1.1,访问客户IP10.1.1.2,10.1.1.2可以ping同192.168.0.3及192.168.0.5 |
|