summaryrefslogtreecommitdiffhomepage
path: root/control/controlhttp/controlhttpserver/controlhttpserver.go
diff options
context:
space:
mode:
authorDaniel Pañeda <daniel.paneda@clickhouse.com>2026-03-04 17:51:01 +0100
committerJordan Whited <jwhited0917@gmail.com>2026-03-04 16:30:12 -0800
commitd58bfb8a1b519afffa6796d16f49b9de7c4fef8e (patch)
treef818360b5b6ad8e2ca0321fb24dbbcfa2f160289 /control/controlhttp/controlhttpserver/controlhttpserver.go
parent26951a1cbbabdcc09782007b3dce38ed82dfe585 (diff)
downloadtailscale-d58bfb8a1b519afffa6796d16f49b9de7c4fef8e.tar.xz
tailscale-d58bfb8a1b519afffa6796d16f49b9de7c4fef8e.zip
net/udprelay: use GOMAXPROCS instead of NumCPU for socket count
runtime.NumCPU() returns the number of CPUs on the host, which in containerized environments is the node's CPU count rather than the container's CPU limit. This causes excessive memory allocation in pods with low CPU requests running on large nodes, as each socket's packetReadLoop allocates significant buffer memory. Use runtime.GOMAXPROCS(0) instead, which is container-aware since Go 1.25 and respects CPU limits set via cgroups. Fixes #18774 Signed-off-by: Daniel Pañeda <daniel.paneda@clickhouse.com>
Diffstat (limited to 'control/controlhttp/controlhttpserver/controlhttpserver.go')
0 files changed, 0 insertions, 0 deletions