Skip to content

Commit

Permalink
fix: alleviate ping lost
Browse files Browse the repository at this point in the history
We still don't know the root cause of why ping will lost packet. It seems that lager timeout and interval can alleviate the symptom.
  • Loading branch information
oilbeater committed Feb 1, 2020
1 parent 632bbc5 commit 8edd022
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/pinger/ping.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ func pingNodes(config *Configuration) {
return
}
pinger.SetPrivileged(true)
pinger.Timeout = 1 * time.Second
pinger.Timeout = 30 * time.Second
pinger.Count = 3
pinger.Interval = 1 * time.Millisecond
pinger.Interval = 100 * time.Millisecond
pinger.Debug = true
pinger.Run()
stats := pinger.Statistics()
Expand Down

0 comments on commit 8edd022

Please sign in to comment.