Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mhmtszr/go-container-awareness
https://github.com/mhmtszr/go-container-awareness
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mhmtszr/go-container-awareness
- Owner: mhmtszr
- License: mit
- Created: 2024-02-10T22:02:18.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-02-10T22:34:23.000Z (11 months ago)
- Last Synced: 2024-10-31T23:22:32.026Z (2 months ago)
- Language: Go
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go Container Awareness [![GoDoc][doc-img]][doc] [![Build Status][ci-img]][ci] [![Go Report Card][go-report-img]][go-report]
**Go Container Awareness** is an open-source Go library that provides container awareness for CPU and memory limits, facilitating efficient resource management within containerized environments.
Automatically set `GOMEMLIMIT` to match Linux container memory quota(%90 of memory limit).
Automatically set `GOGC` off.
Automatically set `GOMAXPROCS` to match Linux container CPU quota.
## Installation
```go
import _ "github.com/mhmtszr/go-container-awareness"func main() {
...
}
```[doc-img]: https://godoc.org/github.com/mhmtszr/go-container-awareness?status.svg
[doc]: https://godoc.org/github.com/mhmtszr/go-container-awareness
[ci-img]: https://github.com/mhmtszr/go-container-awareness/actions/workflows/build-test.yml/badge.svg
[ci]: https://github.com/mhmtszr/go-container-awareness/actions/workflows/build-test.yml
[go-report-img]: https://goreportcard.com/badge/github.com/mhmtszr/go-container-awareness
[go-report]: https://goreportcard.com/report/github.com/mhmtszr/go-container-awareness