Skip to content

Commit

Permalink
pinger: increase packet send interval (#3259)
Browse files Browse the repository at this point in the history
Signed-off-by: 张祖建 <zhangzujian.7@gmail.com>
  • Loading branch information
zhangzujian committed Sep 27, 2023
1 parent a98b4b1 commit 3858fbe
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 @@ -191,7 +191,7 @@ func pingPods(config *Configuration) error {
pinger.Timeout = 1 * time.Second
pinger.Debug = true
pinger.Count = 3
pinger.Interval = 1 * time.Millisecond
pinger.Interval = 100 * time.Millisecond
pinger.Run()
stats := pinger.Statistics()
klog.Infof("ping pod: %s %s, count: %d, loss count %d, average rtt %.2fms",
Expand Down Expand Up @@ -237,7 +237,7 @@ func pingExternal(config *Configuration) error {
pinger.Timeout = 5 * time.Second
pinger.Debug = true
pinger.Count = 3
pinger.Interval = 1 * time.Millisecond
pinger.Interval = 100 * time.Millisecond
pinger.Run()
stats := pinger.Statistics()
klog.Infof("ping external address: %s, total count: %d, loss count %d, average rtt %.2fms",
Expand Down

0 comments on commit 3858fbe

Please sign in to comment.