cloud-sql-proxy icon indicating copy to clipboard operation
cloud-sql-proxy copied to clipboard

Auto configure GOMAXPROCS

Open enocom opened this issue 2 years ago • 1 comments

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

enocom avatar Nov 09 '23 18:11 enocom

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

enocom avatar Feb 22 '24 03:02 enocom