automaxprocs

自动设置 GOMAXPROCS 以匹配 Linux 容器的 CPU 配额。「Automatically set GOMAXPROCS to match Linux container CPU quota.」

Github stars Tracking Chart

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.

Overview

Name With Owneruber-go/automaxprocs
Primary LanguageGo
Program languageGo (Language Count: 3)
Platform
License:MIT License
Release Count9
Last Release Namev1.5.3 (Posted on 2023-07-19 13:57:59)
First Release Namev1.0.0 (Posted on )
Created At2017-05-05 04:21:40
Pushed At2024-02-13 19:23:15
Last Commit At2024-02-13 11:23:14
Stargazers Count3.8k
Watchers Count33
Fork Count147
Commits Count79
Has Issues Enabled
Issues Count29
Issue Open Count11
Pull Requests Count48
Pull Requests Open Count3
Pull Requests Close Count6
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private
To the top