Rebuilt on golang:1.25 expecting the runtime to see the 2 CPU limit. The pod still logs gomaxprocs=32 numcpu=32 and nr_throttled climbs a few thousand per run. Workers 16 to 4 only took 9 min to 7. What am I missing? Thanks.
FROM golang:1.25 AS build
...
RUN CGO_ENABLED=0 go build -o /manifestd .
module github.com/maxlab/manifestd
go 1.23.0
resources:
requests:
cpu: "1"
limits:
cpu: "2"
No GOMAXPROCS in the pod env, and nothing in the code calls runtime.GOMAXPROCS with a value. The same binary takes about 2.5 min on my MacBook.