You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve stale IP recycling in AntreaIPAM controller (#7538)
When a Node is deleted, the CNI DEL command may not be invoked for Pods
running on that Node. As a result, antrea-agent cannot release their IPs,
leaving stale entries in the IPPool. To mitigate this, increase the IP
recycle interval from 10 minutes to 1 minute.
Additionally, add a benchmark test for the IP recycle function and refine
its implementation based on benchmark results to reduce memory allocations
and improve cleanup performance.
Signed-off-by: Lan Luo <[email protected]>
klog.InfoS("IPPool contains stale IPAddress for Pod that no longer exists", "IPPool", ipPool.Name, "Namespace", address.Owner.Pod.Namespace, "Pod", address.Owner.Pod.Name)
klog.V(2).InfoS("IPPool contains stale IP address for Pod that no longer exists", "IPPool", ipPool.Name, "Namespace", address.Owner.Pod.Namespace, "Pod", address.Owner.Pod.Name)
// This entry refers to StatefulSet that no longer exists
211
-
klog.InfoS("IPPool contains stale IPAddress for StatefulSet that no longer exists", "IPPool", ipPool.Name, "Namespace", address.Owner.StatefulSet.Namespace, "StatefulSet", address.Owner.StatefulSet.Name)
216
+
klog.V(2).InfoS("IPPool contains stale IP address for StatefulSet that no longer exists", "IPPool", ipPool.Name, "Namespace", address.Owner.StatefulSet.Namespace, "StatefulSet", address.Owner.StatefulSet.Name)
0 commit comments