Re: [lvs-users] Performance issues and optimization UDP LVS-NAT

To: Julian Anastasov <ja@xxxxxx>, lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [lvs-users] Performance issues and optimization UDP LVS-NAT
From: Marco Lorig <mlorig@xxxxxxx>
Date: Tue, 17 Mar 2020 14:57:58 +0100
Hi Julian

Am 17.03.2020 um 14:23 schrieb Julian Anastasov:
>       Yes, when nf_conntrack is used it would be better to
> set /proc/sys/net/ipv4/vs/conntrack to 1, as reported by different
> users, for example:
>       In this case, you have to increase nf_conntrack_max sysctl var
> to allow the desired number of conntracks to be created.
Ok, i will give it a try. nf_conntrack_max is set to 262144 (default?).
I would set it to 1024000. Do you have any recommondation for this
value? ip_vs_conn shows 18753 entries.

>       Another option is to use NOTRACK to disable nf conntracks just for
> the IPVS traffic:
> iptables -t raw -A PREROUTING -p tcp -d VIP --dport VPORT -j CT --notrack
> For local clients use -A OUTPUT -o lo

As we do not use any iptables rule or connection tracking (except for
ipvs) on the loadbalancer, could it be an option for performance
optimization to disable nf_conntrack (like ip_conntrack in the past) or
is it essentially needed for proper ipvs functionality?

Just an additional info: we use Intel X710 10Gbit NICs.


regards Marco

Please read the documentation before posting - it's available at: mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to

<Prev in Thread] Current Thread [Next in Thread>