Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ipvs: fix sync_threshold description and add sync_refresh_period, sync_retries

Fix sync_threshold description which should have two values. Also add
sync_refresh_period and sync_retries based on commit 749c42b620a9
("ipvs: reduce sync rate with time thresholds").

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: Simon Horman <horms@verge.net.au>

authored by

Hangbin Liu and committed by
Simon Horman
a2f346d8 864e91ca

+30 -8
+30 -8
Documentation/networking/ipvs-sysctl.txt
··· 185 185 The value definition is the same as that of drop_entry and 186 186 drop_packet. 187 187 188 - sync_threshold - INTEGER 189 - default 3 188 + sync_threshold - vector of 2 INTEGERs: sync_threshold, sync_period 189 + default 3 50 190 190 191 - It sets synchronization threshold, which is the minimum number 192 - of incoming packets that a connection needs to receive before 193 - the connection will be synchronized. A connection will be 194 - synchronized, every time the number of its incoming packets 195 - modulus 50 equals the threshold. The range of the threshold is 196 - from 0 to 49. 191 + It sets synchronization threshold, which is the minimum number 192 + of incoming packets that a connection needs to receive before 193 + the connection will be synchronized. A connection will be 194 + synchronized, every time the number of its incoming packets 195 + modulus sync_period equals the threshold. The range of the 196 + threshold is from 0 to sync_period. 197 + 198 + When sync_period and sync_refresh_period are 0, send sync only 199 + for state changes or only once when pkts matches sync_threshold 200 + 201 + sync_refresh_period - UNSIGNED INTEGER 202 + default 0 203 + 204 + In seconds, difference in reported connection timer that triggers 205 + new sync message. It can be used to avoid sync messages for the 206 + specified period (or half of the connection timeout if it is lower) 207 + if connection state is not changed since last sync. 208 + 209 + This is useful for normal connections with high traffic to reduce 210 + sync rate. Additionally, retry sync_retries times with period of 211 + sync_refresh_period/8. 212 + 213 + sync_retries - INTEGER 214 + default 0 215 + 216 + Defines sync retries with period of sync_refresh_period/8. Useful 217 + to protect against loss of sync messages. The range of the 218 + sync_retries is from 0 to 3. 197 219 198 220 snat_reroute - BOOLEAN 199 221 0 - disabled