From 9b03b4adc4644a5d113d7f84535b73f0b3ea62c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=A5=96=E5=BB=BA?= Date: Wed, 27 Sep 2023 09:47:35 +0800 Subject: [PATCH] pinger: increase packet send interval (#3259) 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