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.

Main metrics

Overview
Name With Owneruber-go/automaxprocs
Primary LanguageGo
Program languageGo (Language Count: 3)
Platform
License:MIT License
所有者活动
Created At2017-05-05 04:21:40
Pushed At2024-09-23 17:49:02
Last Commit At2024-09-23 10:47:22
Release Count10
Last Release Namev1.6.0 (Posted on 2024-09-23 10:48:46)
First Release Namev1.0.0 (Posted on )
用户参与
Stargazers Count4.6k
Watchers Count34
Fork Count165
Commits Count81
Has Issues Enabled
Issues Count33
Issue Open Count12
Pull Requests Count50
Pull Requests Open Count5
Pull Requests Close Count6
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private