Thank-you: that was exactly what we needed. By running
# ipvsadm --set 7200 0 0
Our timeouts have stopped, with a tolerance now of up to two hours.
Incidentally, I found this struct in
/usr/src/linux/net/ipv4/ipvs/ip_vs_conn.c. I changed the
IP_VS_S_ESTABLISHED to 60*60 instead of 15*60 (the default) and
recompiled, which changed the default timeout to 1 hour. Here's the
amended struct:
/*
* Timeout table[state]
*/
struct ip_vs_timeout_table vs_timeout_table = {
ATOMIC_INIT(0), /* refcnt */
0, /* scale */
{
[IP_VS_S_NONE] = 30*60*HZ,
[IP_VS_S_ESTABLISHED] = 60*60*HZ,
[IP_VS_S_SYN_SENT] = 2*60*HZ,
[IP_VS_S_SYN_RECV] = 1*60*HZ,
[IP_VS_S_FIN_WAIT] = 2*60*HZ,
[IP_VS_S_TIME_WAIT] = 2*60*HZ,
[IP_VS_S_CLOSE] = 10*HZ,
[IP_VS_S_CLOSE_WAIT] = 60*HZ,
[IP_VS_S_LAST_ACK] = 30*HZ,
[IP_VS_S_LISTEN] = 2*60*HZ,
[IP_VS_S_SYNACK] = 120*HZ,
[IP_VS_S_UDP] = 5*60*HZ,
[IP_VS_S_ICMP] = 1*60*HZ,
[IP_VS_S_LAST] = 2*HZ,
}, /* timeout */
};
Thanks once again - that problem was a production show-stopper for us.
Peter Liska
Joseph Mack wrote:
>
> LVS has its own timeouts
>
> http://www.linuxvirtualserver.org/Joseph.Mack/HOWTO/LVS-HOWTO-9.html#ss9.31
>
> Joe
> --
> Joseph Mack PhD, Senior Systems Engineer, Lockheed Martin
> contractor to the National Environmental Supercomputer Center,
> mailto:mack.joseph@xxxxxxx ph# 919-541-0007, RTP, NC, USA
>
> _______________________________________________
> LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
> or go to http://www.in-addr.de/mailman/listinfo/lvs-users
--
Peter Liska <pliska@xxxxxxxxxxxxxxx>
Manager, Systems Administration, Corporate IT
Digital View Ltd., Canada
http://www.digitalview.com
|