uber-go/automaxprocs
Automatically set GOMAXPROCS to match Linux container CPU quota. observed · 2026-08-28
Health v2 · maintenance only
45/100
- Activity 50
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3407
- days_rel: 709
- days_push: 304
- n_releases_24m: 1
Adoption not part of the score
4847 stars · 176 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A Go library that automatically sets GOMAXPROCS to match the Linux container CPU quota (cgroup limits). It is imported for side effects with a single blank import and eliminates CPU throttling and tail-latency issues in containerized Go services.
Use cases
- fix high p99 latency in Go services running in Kubernetes
- stop CPU throttling for containerized Go apps
- automatically set GOMAXPROCS to match cgroup CPU quota
- tune Go runtime for containers with CPU limits
- reduce tail latency in Go microservices under CPU quotas
- optimize Go app performance in Docker with CPU limits
When to choose
- your Go service runs in containers (Docker/Kubernetes) with CPU limits
- you see CPU throttling or high tail latency in cgroup cpu.stat
- you want a zero-code, drop-in runtime fix via a blank import
When to avoid
- your Go programs run on bare metal or VMs without cgroup CPU quotas
- you run Go 1.25+ where the runtime already respects container CPU limits
- you need fine-grained manual control over GOMAXPROCS
Facets
library · maturity stable
concurrency configuration-management developer-tools performance cloud-computing developer-tools go gomaxprocs cgroup cpu-quota runtime-tuning go-library containers linux docker kubernetes
5 sources
- readme: https://github.com/uber-go/automaxprocs · fetched 2026-08-28 · dfb0e9ce9b01
- homepage: https://godoc.org/go.uber.org/automaxprocs · fetched 2026-08-29 · 313694197ba2
- site_page: https://pkg.go.dev/about · fetched 2026-08-29 · 757852027879
- site_page: https://pkg.go.dev/go.uber.org/automaxprocs · fetched 2026-08-29 · fb6e47403bd2
- site_page: https://go.dev/project · fetched 2026-08-29 · d5ca00bb378b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| uber-go/automaxprocs | main | 45 |
For agents
markdown · JSON · MCP: product_card(name="uber-go/automaxprocs")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem