Re: Setting IPVS/LVS timeout in Keepalived

Paul Robert Marino <[email protected]>
Newsgroups gmane.linux.keepalived.devel
Message-ID <CAPJdpdDyZ+Re4iTd8vGc32SD84da+0FztuzOhcn2mb+KpKbiYQ@mail.gmail.com>
On Red Hat I would put that in /etc/sysconfig/keepalived even though
thats a kludge as well its at least a little cleaner.


On Thu, Dec 12, 2013 at 6:25 AM, Ville Törhönen <[email protected]> wrote:
> 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
> _______________________________________________
> Keepalived-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/keepalived-devel

------------------------------------------------------------------------------
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.