ipvsadm生效后并发量一大就死掉了(附lvs.cf)(已解决)

Nov 14 10:50:35 poof nanny[25084]: CONNECT to 192.168.6.13:8008 timed out
> Nov 14 10:50:35 poof nanny[25084]: shutting down 192.168.6.13:8008 due
> to connection failure
> Nov 14 10:50:35 poof nanny[25114]: CONNECT to 192.168.6.13:80 timed out
> Nov 14 10:50:35 poof nanny[25114]: shutting down 192.168.6.13:80 due to
> connection failure
> Nov 14 10:50:47 poof nanny[25114]: CONNECT to 192.168.6.13:80 timed out
> Nov 14 10:50:52 poof nanny[25084]: making 192.168.6.13:8008 available
> Nov 14 10:50:59 poof nanny[25114]: making 192.168.6.13:80 available
> Nov 14 10:55:16 poof ucd-snmp[27282]: Connection from 216.187.127.21
> Nov 14 10:55:17 poof last message repeated 3 times
> Nov 14 10:55:30 poof nanny[25077]: READ to 192.168.6.14:80 timed out
> Nov 14 10:55:30 poof nanny[25077]: shutting down 192.168.6.14:80 due to
> connection failure
> Nov 14 10:55:30 poof nanny[25115]: READ to 192.168.6.14:80 timed out
> Nov 14 10:55:30 poof nanny[25115]: shutting down 192.168.6.14:80 due to
> connection failure
> Nov 14 10:55:30 poof nanny[25101]: READ to 192.168.6.14:80 timed out
> Nov 14 10:55:30 poof nanny[25101]: shutting down 192.168.6.14:80 due to
> connection failure
> Nov 14 10:55:31 poof nanny[25100]: READ to 192.168.6.13:80 timed out
> Nov 14 10:55:31 poof nanny[25100]: shutting down 192.168.6.13:80 due to
> connection failure
> Nov 14 10:55:37 poof sshd(pam_unix)[25349]: session opened for user leia
> by (uid=0)
> Nov 14 10:55:37 poof sshd(pam_unix)[25349]: session closed for user leia
> Nov 14 10:55:40 poof nanny[25077]: READ returned error 104:Connection
> reset by peer
> Nov 14 10:55:40 poof nanny[25115]: READ returned error 104:Connection
> reset by peer
> Nov 14 10:55:40 poof nanny[25101]: READ returned error 104:Connection
> reset by peer
> Nov 14 10:55:43 poof nanny[25100]: READ returned error 104:Connection
> reset by peer
> Nov 14 10:55:43 poof nanny[25114]: READ returned error 104:Connection
> reset by peer
> Nov 14 10:55:43 poof nanny[25114]: shutting down 192.168.6.13:80 due to
> connection failure
> Nov 14 10:55:43 poof nanny[25073]: READ returned error 104:Connection
> reset by peer
> Nov 14 10:55:43 poof nanny[25073]: shutting down 192.168.6.13:80 due to
> connection failure
> Nov 14 10:55:46 poof nanny[25113]: READ to 192.168.6.12:80 timed out
> Nov 14 10:55:46 poof nanny[25113]: shutting down 192.168.6.12:80 due to
> connection failure
> Nov 14 10:55:47 poof nanny[25099]: READ to 192.168.6.12:80 timed out
> Nov 14 10:55:47 poof nanny[25099]: shutting down 192.168.6.12:80 due to
> connection failure
> Nov 14 10:55:47 poof nanny[25072]: READ to 192.168.6.12:80 timed out
> Nov 14 10:55:47 poof nanny[25072]: shutting down 192.168.6.12:80 due to
> connection failure
> Nov 14 10:55:58 poof nanny[25113]: READ to 192.168.6.12:80 timed out
> Nov 14 10:55:59 poof nanny[25072]: READ to 192.168.6.12:80 timed out
> Nov 14 10:56:02 poof nanny[25099]: READ to 192.168.6.12:80 timed out
> Nov 14 10:56:07 poof nanny[25113]: READ returned error 104:Connection
> reset by peer
> Nov 14 10:56:08 poof nanny[25072]: READ returned error 104:Connection
> reset by peer
> Nov 14 10:56:08 poof pulse[25064]: Terminating due to signal 15
> Nov 14 10:56:08 poof lvs[25068]: shutting down due to signal 15
> Nov 14 10:56:08 poof lvs[25068]: shutting down virtual service
> sebulba_http_122
> Nov 14 10:56:08 poof nanny[25072]: Terminating due to signal 15
> Nov 14 10:56:08 poof nanny[25073]: Terminating due to signal 15
> Nov 14 10:56:08 poof nanny[25077]: Terminating due to signal 15
> Nov 14 10:56:08 poof lvs[25068]: shutting down virtual service
> sebulba_vadmin_122
> Nov 14 10:56:08 poof nanny[25083]: Terminating due to signal 15
> Nov 14 10:56:08 poof nanny[25084]: Terminating due to signal 15
> Nov 14 10:56:08 poof nanny[25089]: Terminating due to signal 15
> Nov 14 10:56:08 poof lvs[25068]: shutting down virtual service
> sebulba_http_123
> Nov 14 10:56:08 poof nanny[25099]: Terminating due to signal 15
> Nov 14 10:56:08 poof nanny[25100]: Terminating due to signal 15
> Nov 14 10:56:08 poof nanny[25101]: Terminating due to signal 15
> Nov 14 10:56:08 poof lvs[25068]: shutting down virtual service
> sebulba_vadmin_123
> Nov 14 10:56:08 poof nanny[25103]: Terminating due to signal 15
> Nov 14 10:56:08 poof nanny[25106]: Terminating due to signal 15
> Nov 14 10:56:08 poof nanny[25107]: Terminating due to signal 15
> Nov 14 10:56:08 poof lvs[25068]: shutting down virtual service
> sebulba_http_124
> Nov 14 10:56:08 poof nanny[25113]: Terminating due to signal 15
> Nov 14 10:56:08 poof nanny[25114]: Terminating due to signal 15
> Nov 14 10:56:08 poof nanny[25115]: Terminating due to signal 15
> Nov 14 10:56:09 poof lvs[25068]: shutting down virtual service
> sebulba_vadmin_124
> Nov 14 10:56:09 poof nanny[25117]: Terminating due to signal 15
> Nov 14 10:56:09 poof nanny[25118]: Terminating due to signal 15Nov 14
> 10:56:09 poof lvs[25068]: shutting down virtual service lumiva_pop_130
> Nov 14 10:56:09 poof nanny[25126]: Terminating due to signal 15
> Nov 14 10:56:09 poof nanny[25127]: Terminating due to signal 15
> Nov 14 10:56:09 poof lvs[25068]: shutting down virtual service
> lumiva_smtp_25
> Nov 14 10:56:09 poof nanny[25130]: Terminating due to signal 15
> Nov 14 10:56:09 poof nanny[25131]: Terminating due to signal 15
> Nov 14 10:56:09 poof pulse: pulse shutdown succeeded
> Nov 14 10:56:09 poof pulse[25434]: STARTING PULSE AS MASTER
> Nov 14 10:56:09 poof pulse: pulse startup succeeded

serial_no = 293
primary = 216.187.127.118
primary_private = 192.168.6.11
service = lvs
backup_active = 1
backup = 216.187.127.117
backup_private = 192.168.6.10
heartbeat = 1
heartbeat_port = 539
keepalive = 6
deadtime = 15
network = direct
nat_nmask = 255.255.255.255
reservation_conflict_action = preempt
debug_level = NONE

virtual sebulba_http_122 {
active = 1
address = 216.187.127.122 eth0:1
vip_nmask = 255.255.255.0
port = 80
send = "GET / HTTP/1.0\r\n\r\n"
expect = "HTTP"
load_monitor = none
scheduler = wlc
protocol = tcp
timeout = 6
reentry = 15
quiesce_server = 0
server motti {
address = 192.168.6.12
active = 1
weight = 1
}
server gragra {
address = 192.168.6.13
active = 1
weight = 1
}
server koon {
address = 192.168.6.14
active = 1
weight = 1
}
}

virtual sebulba_http_123 {
active = 1
address = 216.187.127.123 eth0:2
vip_nmask = 255.255.255.0
port = 80
send = "GET / HTTP/1.0\r\n\r\n"
expect = "HTTP"
load_monitor = none
scheduler = wlc
protocol = tcp
timeout = 6
reentry = 15
quiesce_server = 0
server motti {
address = 192.168.6.12
active = 1
weight = 1
}
server gragra {
address = 192.168.6.13
active = 1
weight = 1
}
server koon {
address = 192.168.6.14
active = 1
weight = 1
}
}

virtual sebulba_http_124 {
active = 1
address = 216.187.127.124 eth0:3
vip_nmask = 255.255.255.0
port = 80
send = "GET / HTTP/1.0\r\n\r\n"
expect = "HTTP"
load_monitor = none
scheduler = wlc
protocol = tcp
timeout = 6
reentry = 15
quiesce_server = 0
server motti {
address = 192.168.6.12
active = 1
weight = 1
}
server gragra {
address = 192.168.6.13
active = 1
weight = 1
}
server koon {
address = 192.168.6.14
active = 1
weight = 1
}
}

最后发现配置好后尽然又加入了ipvsadm的问题

Forums:

我一开始就没用vs/nat模式

直接用的vs/dr

用了2个公网IP : 负载调度器站一个 ,, 出口网关(路由器站了一个)

内部real server 使用内网IP

目前功能实现了。打算边学习边实施。

强烈要求楼主吧问题解决的方法帖出来。