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 70a1352 commit 9b03b4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/pinger/ping.go
Expand Up @@ -196,7 +196,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
if err = pinger.Run(); err != nil {
klog.Errorf("failed to run pinger for destination %s: %v", podIP, err)
pingErr = err
Expand Down Expand Up @@ -247,7 +247,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
if err = pinger.Run(); err != nil {
klog.Errorf("failed to run pinger for destination %s: %v", addr, err)
return err
Expand Down

0 comments on commit 9b03b4a

Please sign in to comment.