Skip to content

Commit a2f346d

Browse files
liuhangbinhorms
authored andcommitted
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 749c42b ("ipvs: reduce sync rate with time thresholds"). Signed-off-by: Hangbin Liu <[email protected]> Signed-off-by: Simon Horman <[email protected]>
1 parent 864e91c commit a2f346d

File tree

1 file changed

+31
-9
lines changed

1 file changed

+31
-9
lines changed

Documentation/networking/ipvs-sysctl.txt

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -185,15 +185,37 @@ secure_tcp - INTEGER
185185
The value definition is the same as that of drop_entry and
186186
drop_packet.
187187

188-
sync_threshold - INTEGER
189-
default 3
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.
188+
sync_threshold - vector of 2 INTEGERs: sync_threshold, sync_period
189+
default 3 50
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 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.
197219

198220
snat_reroute - BOOLEAN
199221
0 - disabled

0 commit comments

Comments
 (0)