moby / ipvs

IPVS networking for containers (package derived from moby/libnetwork)
Apache License 2.0
92 stars 36 forks source link

kube-proxy ipvs mode cpu too hight #35

Open zhaogaolong opened 1 month ago

zhaogaolong commented 1 month ago

hi:

Recently, it was found that the CPU usage of kube-proxy is high in ipvs mode, and the method of doCmdWithRespone found to be ipvs through pprof has a large latency, and I don't know if there is a solution.

K8S version: 1.21.14 kernel: 5.10.x IPVS version: v1.2.1

pprof :

图片
andrewsykim commented 1 month ago

K8S version: 1.21.14

This is a very old version of Kubernetes, I suggest trying to upgrade. I don't recall the details, but we resolve several performance issues in the kube-proxy IPVS implementation several years ago.

zhaogaolong commented 1 month ago

Thank you for your response.

see that the moby/ipvs v1.1.0 version used by kubernetes v1.27.x, does it mean that k8s needs to be upgraded to version v1.27.x or above? @andrewsykim