automaxprocs: go.uber.org/automaxprocs Index | Examples | Files | Directories

package automaxprocs

import "go.uber.org/automaxprocs"

Package automaxprocs automatically sets GOMAXPROCS to match the Linux container CPU quota, if any.

Code:

package main

// Importing automaxprocs automatically adjusts GOMAXPROCS.
import _ "go.uber.org/automaxprocs"

// To render a whole-file example, we need a package-level declaration.
var _ = ""

func main() {}

Index

Examples

Package Files

automaxprocs.go

Directories

PathSynopsis
internal/cgroupsPackage cgroups provides utilities to access Linux control group (CGroups) parameters (CPU quota, for example) for a given process.
internal/runtime
maxprocsPackage maxprocs lets Go programs easily configure runtime.GOMAXPROCS to match the configured Linux CPU quota.

Package automaxprocs imports 2 packages (graph) and is imported by 3 packages. Updated 2018-12-30. Refresh now. Tools for package owners.