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: 张祖建 <[email protected]>
  • Loading branch information
zhangzujian authored Sep 27, 2023
1 parent 55f254e commit f203432
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 @@ -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 f203432

Please sign in to comment.