Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make automax to be a stand-alone package #139

Merged
merged 3 commits into from
Sep 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Most recent version is listed first.
## v0.0.9
- Add password hashing capabilities: https://github.com/komuw/ong/pull/137
- Simplify loadshedding implementation: https://github.com/komuw/ong/pull/138
- Make automax to be a stand-alone package: https://github.com/komuw/ong/pull/139

## v0.0.8
- Improve documentation.
Expand Down
4 changes: 2 additions & 2 deletions server/automax/automax.go → automax/automax.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type config struct {
cpuCgroupV2 string
}

// SetMem puts GOMEMLIMIT to match the Linux container memory quota (if any), returning an undo function.
// SetMem puts GOMEMLIMIT to match the linux container memory quota (if any), returning an undo function.
//
// It is a no-op in environments without a configured memory quota.
//
Expand All @@ -17,7 +17,7 @@ func SetMem(c ...config) func() {
return setMem(c...)
}

// SetCpu puts GOMAXPROCS to match the Linux container cpu quota (if any), returning an undo function.
// SetCpu puts GOMAXPROCS to match the linux container cpu quota (if any), returning an undo function.
//
// It is a no-op in environments without a configured cpu quota.
//
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (
"syscall"
"time"

"github.com/komuw/ong/automax"
ongErrors "github.com/komuw/ong/errors"
"github.com/komuw/ong/log"
"github.com/komuw/ong/server/automax"

"golang.org/x/sys/unix" // syscall package is deprecated
)
Expand Down