mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-05-03 05:33:30 -04:00
Bump github.com/onsi/gomega from 1.34.2 to 1.35.0
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.34.2 to 1.35.0. - [Release notes](https://github.com/onsi/gomega/releases) - [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md) - [Commits](https://github.com/onsi/gomega/compare/v1.34.2...v1.35.0) --- updated-dependencies: - dependency-name: github.com/onsi/gomega dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
committed by
Ralf Haferkamp
parent
30f001e3c2
commit
7e5b189685
15
vendor/github.com/KimMachineGun/automemlimit/.gitignore
generated
vendored
15
vendor/github.com/KimMachineGun/automemlimit/.gitignore
generated
vendored
@@ -1,15 +0,0 @@
|
||||
# Binaries for programs and plugins
|
||||
*.exe
|
||||
*.exe~
|
||||
*.dll
|
||||
*.so
|
||||
*.dylib
|
||||
|
||||
# Test binary, built with `go test -c`
|
||||
*.test
|
||||
|
||||
# Output of the go coverage tool, specifically when used with LiteIDE
|
||||
*.out
|
||||
|
||||
# Dependency directories (remove the comment below to include it)
|
||||
# vendor/
|
||||
65
vendor/github.com/KimMachineGun/automemlimit/README.md
generated
vendored
65
vendor/github.com/KimMachineGun/automemlimit/README.md
generated
vendored
@@ -1,65 +0,0 @@
|
||||
# automemlimit
|
||||
|
||||
[](https://pkg.go.dev/github.com/KimMachineGun/automemlimit)
|
||||
[](https://goreportcard.com/report/github.com/KimMachineGun/automemlimit)
|
||||
[](https://github.com/KimMachineGun/automemlimit/actions/workflows/test.yml)
|
||||
|
||||
Automatically set `GOMEMLIMIT` to match Linux [cgroups(7)](https://man7.org/linux/man-pages/man7/cgroups.7.html) memory limit.
|
||||
|
||||
See more details about `GOMEMLIMIT` [here](https://tip.golang.org/doc/gc-guide#Memory_limit).
|
||||
|
||||
## Notice
|
||||
|
||||
Version `v0.5.0` introduces a fallback to system memory limits as an experimental feature when cgroup limits are unavailable. Activate this by setting `AUTOMEMLIMIT_EXPERIMENT=system`.
|
||||
You can also use system memory limits via `memlimit.FromSystem` provider directly.
|
||||
|
||||
This feature is under evaluation and might become a default or be removed based on user feedback.
|
||||
If you have any feedback about this feature, please open an issue.
|
||||
|
||||
## Installation
|
||||
|
||||
```shell
|
||||
go get github.com/KimMachineGun/automemlimit@latest
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
// By default, it sets `GOMEMLIMIT` to 90% of cgroup's memory limit.
|
||||
// This is equivalent to `memlimit.SetGoMemLimitWithOpts(memlimit.WithLogger(slog.Default()))`
|
||||
// To disable logging, use `memlimit.SetGoMemLimitWithOpts` directly.
|
||||
import _ "github.com/KimMachineGun/automemlimit"
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import "github.com/KimMachineGun/automemlimit/memlimit"
|
||||
|
||||
func init() {
|
||||
memlimit.SetGoMemLimitWithOpts(
|
||||
memlimit.WithRatio(0.9),
|
||||
memlimit.WithProvider(memlimit.FromCgroup),
|
||||
memlimit.WithLogger(slog.Default()),
|
||||
)
|
||||
memlimit.SetGoMemLimitWithOpts(
|
||||
memlimit.WithRatio(0.9),
|
||||
memlimit.WithProvider(
|
||||
memlimit.ApplyFallback(
|
||||
memlimit.FromCgroup,
|
||||
memlimit.FromSystem,
|
||||
),
|
||||
),
|
||||
)
|
||||
memlimit.SetGoMemLimit(0.9)
|
||||
memlimit.SetGoMemLimitWithProvider(memlimit.Limit(1024*1024), 0.9)
|
||||
memlimit.SetGoMemLimitWithProvider(memlimit.FromCgroup, 0.9)
|
||||
memlimit.SetGoMemLimitWithProvider(memlimit.FromCgroupV1, 0.9)
|
||||
memlimit.SetGoMemLimitWithProvider(memlimit.FromCgroupHybrid, 0.9)
|
||||
memlimit.SetGoMemLimitWithProvider(memlimit.FromCgroupV2, 0.9)
|
||||
}
|
||||
```
|
||||
13
vendor/github.com/KimMachineGun/automemlimit/automemlimit.go
generated
vendored
13
vendor/github.com/KimMachineGun/automemlimit/automemlimit.go
generated
vendored
@@ -1,13 +0,0 @@
|
||||
package automemlimit
|
||||
|
||||
import (
|
||||
"log/slog"
|
||||
|
||||
"github.com/KimMachineGun/automemlimit/memlimit"
|
||||
)
|
||||
|
||||
func init() {
|
||||
memlimit.SetGoMemLimitWithOpts(
|
||||
memlimit.WithLogger(slog.Default()),
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user