From ce3bb43297e61be9290a45dd7d125d39cea3007b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=A5=96=E5=BB=BA?= Date: Tue, 26 Sep 2023 11:27:42 +0800 Subject: [PATCH] pinger: increase packet send interval MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 张祖建 --- pkg/pinger/ping.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/pinger/ping.go b/pkg/pinger/ping.go index 9a211056ef2..944f305d518 100644 --- a/pkg/pinger/ping.go +++ b/pkg/pinger/ping.go @@ -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 @@ -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