From 772df6f17be4cd01ec692577177494a5dc40ccb9 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 6ae250ce518..d0228cd6592 100644 --- a/pkg/pinger/ping.go +++ b/pkg/pinger/ping.go @@ -153,7 +153,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", @@ -199,7 +199,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",