From 12e3b1336d65a211377ccad9597ab2ee0ecf2ed1 Mon Sep 17 00:00:00 2001 From: Benjamin Pickard Date: Tue, 17 Sep 2024 21:56:31 -0400 Subject: [PATCH] Reduce Sleep during the reconcilation loop we check to see if we have any orphaned Ips, and during this we currently have a 1.5 second sleep. I ran some tests and found a decent perf improvement by dropping this by half, but removing it completely caused issues Signed-off-by: Benjamin Pickard --- pkg/reconciler/iploop.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/reconciler/iploop.go b/pkg/reconciler/iploop.go index 7e6c840d2..bff359ef3 100644 --- a/pkg/reconciler/iploop.go +++ b/pkg/reconciler/iploop.go @@ -118,7 +118,7 @@ func (rl ReconcileLooper) isOrphanedIP(podRef string, ip string) bool { logging.Debugf("Pod now has IP annotation while in Pending") return true } - time.Sleep(time.Duration(500) * time.Millisecond) + time.Sleep(time.Duration(250) * time.Millisecond) } } isFound = isIpOnPod(podToMatch, podRef, ip)