Add black magic to minimize ping losses

This particular arping interval/count, along with forcing it to run in
the foreground, seems to minimize the packet loss when the primary
coordinator transitions. Through extensive testing, this value results
in the, consistently, least amount of loss: 1-2 pings, at an 0.025s ping
interval, return "TTL exceeded", with no other loss, and only when the
node the test VM is on is the one switching to secondary state. No other
combination of values here, nor tweaks to other parts of the code, seem
able to reduce this further, therefore this is likely the best
configuration possible.
This commit is contained in:
Joshua Boniface 2019-12-19 18:49:35 -05:00
parent 2fe808f812
commit b17b7bf22b
1 changed files with 2 additions and 3 deletions

View File

@ -119,11 +119,10 @@ def createIPAddress(ipaddr, cidrnetmask, dev):
)
)
run_os_command(
'arping -P -U -W 0.2 -c5 -i {dev} -S {ip} {ip}'.format(
'arping -P -U -W 0.02 -c 2 -i {dev} -S {ip} {ip}'.format(
dev=dev,
ip=ipaddr
),
background=True
)
)
# Remove IP address