Skip to content

Commit

Permalink
Reduce Sleep
Browse files Browse the repository at this point in the history
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 <bpickard@redhat.com>
  • Loading branch information
bpickard22 committed Sep 18, 2024
1 parent 2ec4f5b commit 12e3b13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/reconciler/iploop.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 12e3b13

Please sign in to comment.