mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-07-08 17:32:13 -04:00
detectNumCPU sized nf_conntrack_max using github.com/google/cadvisor/lib machine topology. nf_conntrack_max is host-wide, so it must be sized from the node's CPU count, not runtime.NumCPU(): the latter honors the process cpuset and undercounts when kube-proxy runs under a static CPU policy, which is the behavior cadvisor worked around (kubernetes/kubernetes#99225). Use cpuset.NumCPU() from k8s.io/utils, which reads the node's online CPU count from /sys/devices/system/cpu/online, with a runtime.NumCPU() fallback. This drops the cadvisor dependency from pkg/proxy/conntrack and bumps k8s.io/utils to pick up cpuset.NumCPU. |
||
|---|---|---|
| .. | ||
| .import-restrictions | ||
| cleanup.go | ||
| cleanup_test.go | ||
| conntrack.go | ||
| conntrack_test.go | ||
| doc.go | ||
| fake.go | ||
| filter.go | ||
| filter_test.go | ||
| sysctls.go | ||
| sysctls_test.go | ||