cloud-sql-proxy
cloud-sql-proxy copied to clipboard
Auto configure GOMAXPROCS
Feature Description
We should either document this or do it automatically.
See https://www.riverphillips.dev/blog/go-cfs/ for details.
For a library solution, see https://github.com/uber-go/automaxprocs.
Go might just handle this for us: https://github.com/golang/go/issues/33803.
Sample code
No response
Alternatives Considered
No response
Additional Details
No response
Or just add this to our docs:
env:
- name: GOMAXPROCS
valueFrom:
resourceFieldRef:
resource: limits.cpu
https://www.ardanlabs.com/blog/2024/02/kubernetes-cpu-limits-go.html