Setting IPVS/LVS timeout in Keepalived

Ville Törhönen <[email protected]>
Newsgroups gmane.linux.keepalived.devel
Message-ID <[email protected]>
Hello.

Is it possible to configure IPVS/LVS timeout values in the Keepalived 
configuration file? By default the TCP timeout values in the kernel LVS 
tables are as follows:

- TCP sessions: 900 seconds
- TCP sessions after receiving a FIN packet: 120 seconds
- UDP packets: 300 seconds

These values can be modified via 'ipsetadm --set', for e.g.

$ ipvsadm --set 3600 120 300

As expected, these modifications are not persistent and they are lost 
after system restart. If the current LVS configuration is printed out 
with 'ipsetadm-save -n', the timeout values aren't included. This makes 
it impossible to reload the timeout values with the ipvsadm init script.

This has been discussed several times in the lvs-users mailing list. It 
has always come to a conclusion that LVS/IPVS is a framework and that 
the management application should do the configuring. I know that there 
are other ways to implement this, such as setting the timeout value in 
/etc/rc.local, but it's obviously a nasty kludge.

Thanks,
Ville

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.