请教lvs 一直显示SYN_RECV
我现在的情况是:单台LVS,用的NAT,后端是两台NGINX,我的LVS刚刚搭完,LVS状态一直显示SYN_RECV,InActConn是在增加,但是没有正确的连接数,当我用VIP访问的时候,LVS上有不正确的连接数,而NGINX根本就没有收到80请求,我单独访问后面的两台NGINX都是可以的,我也在两台NGINX加路由呀,加网关都试了,结果还是一样,这个名称就是我的QQ,也可以加我QQ指点我,所以请教各位大神,帮小弟看下,我的配置如下:
! Configuration File for keepalived
vrrp_instance VI_1 {
state MASTER
interface eth0
virtual_router_id 51
priority 100
advert_int 1
authentication {
auth_type PASS
auth_pass 1111
}
virtual_ipaddress {
172.16.237.123
}
}
virtual_server 172.16.237.123 80 {
nat_mask 255.255.255.0
delay_loop 6
lb_algo rr
lb_kind NAT
persistence_timeout 50
protocol TCP
real_server 172.16.237.141 80 {
weight 1
TCP_CHECK {
connect_timeout 3
nb_get_retry 3
delay_before_retry 3
connect_port 80
}
}
real_server 172.16.237.142 80 {
weight 1
TCP_CHECK {
connect_timeout 3
nb_get_retry 3
delay_before_retry 3
connect_port 80
}
}
}
用VIP访问的时候就显示:
IPVS connection entries
pro expire state source virtual destination
TCP 00:47 NONE 172.16.237.1:0 172.16.237.123:80 172.16.237.142:80
TCP 00:57 SYN_RECV 172.16.237.1:55332 172.16.237.123:80 172.16.237.142:80
TCP 00:57 SYN_RECV 172.16.237.1:55333 172.16.237.123:80 172.16.237.142:80
TCP 00:57 SYN_RECV 172.16.237.1:55341 172.16.237.123:80 172.16.237.142:80
- 1280895171's blog
- Log in or register to post comments
- 7754 reads