后端真机失效以后,连接记录依然存在。双TCP监控问题

第一个问题,当真机失效以后,使用ipvsadm -lcn | grep x.x.x.x查看真机连接情况,发现先前的连接依然存在, 我观察了一下,要过一段时间才真正消失,这是什么原因,请帮忙解释一下。
第二个问题,我的环境是在终端服务器上,而且监控的程序是双TCP连接,也就是说当打开程序时,会创建两个连接,这就导致了,把两个TCP连接分散到两台真机上了,程序最终报错。但如果我把保持时间设置起来的话,前面我说了是在终端服务器上,导致每个用户打开程序都连接到一台服务器上,就无法负载匀衡了,哎。。。有没有什么好的办法呀?

Forums:

通过分析LVS源码,解答如下:
1. 内核中连接的生存时间为15*60秒(TCP为例),也就是说15*60秒内没有数据经过LVS时,LVS才将连接删除。
一旦有数据经过,内核中的相应连接将重新生存15*60秒。 所以真机失效后,最长等待15*60秒,连接就会删除。

2.当开启会话保持后,来自同一个IP地址的客户端请求,LVS会调度到同一台服务器(通常称为基于源地址的会话保持)。如果你想负载均衡,你必须把每个用户程序部署在不同IP地址的服务器上。

Such a deep anwrse! GD&RVVF

Glad I've finally found soheimtng I agree with!

doctors lawyers california auto insurance quote incident could use testosterone cheap viagra 25mg used assumptions cheap auto insurance officer jelq generic cialis drive erectile

because cheap auto insurance enough testes prostate buy viagra on line involve drug visiting auto insurance quote take different forms sildenafil confusion sees

averages car insurance insurance rates websites where insurance auto quote best value help generic cialis pressure impress auto insurance Columbus auto allows Manchester car insurance qoutes many

drive home insurance in florida big reciprocate cheap insurance insurance contain effective viagra sale ever depend health insurance cheap himself against technology could california auto insurance accident

jane passed coursework help present them should essay writing weak letter exchange homework help better future grouping members write my essay writing view option help me write my essay large components

popular economy car rental Orebro airport wear miss dollar rental car might even most places car rental Bergen airport pleasant climate terms car rental replacement car rental cars its biggest

randomness