LVS+Keepalived 实现socket连接,socket client无法连接lvs?
VIP:10.5.5.105
LVS-Master:10.5.5.106
LVS-Backup:10.5.5.107
RS1:10.5.5.13(window)
RS2:10.5.5.123(window)
socket 端口4000
我RS使用sockettool调试助手。lvs我用的是rr RD模式。
以下是keepalived.conf信息
首先是lvs_master:
! Configuration File for keepalived
global_defs {
router_id 10.5.5.106 MASTER
}
vrrp_instance VI_1 {
state MASTER
interface eno16777984
virtual_router_id 50
priority 100
advert_int 1
authentication {
auth_type PASS
auth_pass 1111
}
virtual_ipaddress {
10.5.5.105
}
}
virtual_server 10.5.5.105 4000 {
delay_loop 6
lb_algo rr
lb_kind DR
persistence_timeout 0
protocol TCP
real_server 10.5.5.13 4000 {
weight 1
}
real_server 10.5.5.123 4000 {
weight 1
}
}
这是lvs_backup的keepalived.conf:
! Configuration File for keepalived
global_defs {
router_id 10.5.5.107 BACKUP
}
vrrp_instance VI_1 {
state BACKUP
interface eno16777984
virtual_router_id 50
priority 50
advert_int 1
authentication {
auth_type PASS
auth_pass 1111
}
virtual_ipaddress {
10.5.5.105
}
}
virtual_server 10.5.5.105 4000 {
delay_loop 6
lb_algo rr
lb_kind DR
persistence_timeout 0
protocol TCP
real_server 10.5.5.13 4000 {
weight 1
}
real_server 10.5.5.123 4000 {
weight 1
}
}
问题一:用sockettool在连接Tcp Server时出现Asynchronous socket error 10053 ,我的想法,把健康检测(check tcp{}) 删了。
问题二:用sockettool连接Tcp Client时连接不上(
)
我在cmd中telnet 10.5.5.105 4000 提示:
在linux系统中防火墙关闭了,但是找不到端口。
以上问题,或者是我理解不到位,求指教 +Q1269353244
网友评论