Skip to content

[feature] Automatically set GOMAXPROCS to match Linux container CPU quota in runtime #24

@gaocegege

Description

@gaocegege

Is this a BUG REPORT or FEATURE REQUEST?:

/kind feature

What happened:

It will be huge overhead for CPU bound tasks if GOMAXPROCS does not match CPU hard limit in K8s. Maybe we can use https://github.com/uber-go/automaxprocs to auto configure it.

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions