Skip to content
Automatically set GOMAXPROCS to match Linux container CPU quota.
Go Makefile Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.build Use a codecov-compatible test script Aug 8, 2017
internal Use floor(quota) rather than ceil(quota) Feb 16, 2018
maxprocs Fix "%d" being used with strings (#17) May 2, 2019
.codecov.yml Add a code coverage configuration Aug 8, 2017
.gitignore Use a codecov-compatible test script Aug 8, 2017
.travis.yml
CHANGELOG.md Prepare to release v1.2.0 Feb 23, 2018
CODE_OF_CONDUCT.md Add code of conduct Aug 7, 2017
CONTRIBUTING.md Add a contribution guide Aug 7, 2017
LICENSE Add .gitignore and license Mar 10, 2017
Makefile make: Work with newer Go versions Apr 30, 2019
README.md README: Switch to travis-ci.com for badge Apr 30, 2019
automaxprocs.go Fix example rendering Nov 10, 2017
example_test.go Fix example rendering Nov 10, 2017
glide.lock Unset $GOMAXPROCS during tests (#4) Aug 9, 2017
glide.yaml Unset $GOMAXPROCS during tests (#4) Aug 9, 2017

README.md

automaxprocs GoDoc Build Status Coverage Status

Automatically set GOMAXPROCS to match Linux container CPU quota.

Installation

go get -u go.uber.org/automaxprocs

Quick Start

import _ "go.uber.org/automaxprocs"

func main() {
  // Your application logic here.
}

Development Status: Stable

All APIs are finalized, and no breaking changes will be made in the 1.x series of releases. Users of semver-aware dependency management systems should pin automaxprocs to ^1.

Contributing

We encourage and support an active, healthy community of contributors — including you! Details are in the contribution guide and the code of conduct. The automaxprocs maintainers keep an eye on issues and pull requests, but you can also report any negative conduct to oss-conduct@uber.com. That email list is a private, safe space; even the automaxprocs maintainers don't have access, so don't hesitate to hold us to a high standard.


Released under the MIT License.

You can’t perform that action at this time.