[#196] Support soft memory limit setting #202
Labels
No labels
P0
P1
P2
P3
good first issue
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-s3-gw#202
Loading…
Reference in a new issue
No description provided.
Delete branch ":feature/196-support_soft_memory_limit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
close #196
Signed-off-by: Roman Loginov r.loginov@yadro.com
@ -682,0 +687,4 @@
func (a *App) setRuntimeParameters(l *zap.Logger, cfg *viper.Viper) {
if len(os.Getenv("GOMEMLIMIT")) != 0 {
// default limit < yaml limit < app env limit < GOMEMLIMIT
l.Warn(logs.RuntimeSoftMemoryDefinedWithGOMEMLIMIT)
Can't we use logger from
a.log
?@ -550,0 +559,4 @@
| Parameter | Type | SIGHUP reload | Default value | Description |
|---------------------|-----------|---------------|---------------|--------------------------------------------------------------------------|
| `soft_memory_limit` | `size` | yes | 0 | Soft memory limit for the runtime. Zero or no value stands for no limit. If `GOMEMLIMIT` environment variable is set, the value from the configuration file will be ignored. |
Actually default is maxint64.
85cd9d9d7f
to2d9477927a
2d9477927a
to026946b796
@ -550,0 +558,4 @@
```
| Parameter | Type | SIGHUP reload | Default value | Description |
|---------------------|-----------|---------------|---------------|--------------------------------------------------------------------------|
Please reformat table
@ -185,6 +185,7 @@ There are some custom types used for brevity:
| `frostfs` | [Parameters of requests to FrostFS](#frostfs-section) |
| `resolve_bucket` | [Bucket name resolving configuration](#resolve_bucket-section) |
| `kludge` | [Different kludge configuration](#kludge-section) |
| `runtime` | [Runtime configuration](#runtime-section) |
Please, reformat table
026946b796
to25eb12da91
25eb12da91
to8eac5bcde3