Skip to content

Commit

Permalink
Merge branch 'main' into chore/adding-go-memlimit
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolastakashi committed Mar 23, 2024
2 parents eab1db8 + deb615f commit ef98c6f
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 42 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ We use *breaking :warning:* to mark changes that are not backward compatible (re
### Changed

- [#7123](https://github.com/thanos-io/thanos/pull/7123) Rule: Change default Alertmanager API version to v2.
- [##7222](https://github.com/thanos-io/thanos/pull/7123) Automatic detection of memory limits and configure GOMEMLIMIT to match.
- [#7222](https://github.com/thanos-io/thanos/pull/7123) Automatic detection of memory limits and configure GOMEMLIMIT to match.

### Removed

Expand Down
2 changes: 1 addition & 1 deletion cmd/thanos/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ type goMemLimitConfig struct {

func (gml *goMemLimitConfig) registerFlag(cmd extkingpin.FlagClause) *goMemLimitConfig {
cmd.Flag("enable-auto-gomemlimit",
"Enable go runtime to automatically limit memory consumption by compact component. This is an experimental feature.").
"Enable go runtime to automatically limit memory consumption.").
Default("false").BoolVar(&gml.enableAutoGoMemlimit)

cmd.Flag("auto-gomemlimit.ratio",
Expand Down
3 changes: 1 addition & 2 deletions docs/components/compact.md
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,7 @@ Flags:
e.g it is not possible to render all samples for
a human eye anyway
--enable-auto-gomemlimit Enable go runtime to automatically limit memory
consumption by compact component. This is an
experimental feature.
consumption.
--hash-func= Specify which hash function to use when
calculating the hashes of produced files.
If no function has been specified, it does not
Expand Down
3 changes: 1 addition & 2 deletions docs/components/query-frontend.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,7 @@ Flags:
Supported values are: 'snappy' and ” (disable
compression).
--enable-auto-gomemlimit Enable go runtime to automatically limit memory
consumption by compact component. This is an
experimental feature.
consumption.
-h, --help Show context-sensitive help (also try
--help-long and --help-man).
--http-address="0.0.0.0:10902"
Expand Down
3 changes: 1 addition & 2 deletions docs/components/query.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,7 @@ Flags:
The ratio of reserved GOMEMLIMIT memory to the
detected maximum container or system memory.
--enable-auto-gomemlimit Enable go runtime to automatically limit memory
consumption by compact component. This is an
experimental feature.
consumption.
--endpoint=<endpoint> ... Addresses of statically configured Thanos
API servers (repeatable). The scheme may be
prefixed with 'dns+' or 'dnssrv+' to detect
Expand Down
3 changes: 1 addition & 2 deletions docs/components/receive.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,7 @@ Flags:
The ratio of reserved GOMEMLIMIT memory to the
detected maximum container or system memory.
--enable-auto-gomemlimit Enable go runtime to automatically limit memory
consumption by compact component. This is an
experimental feature.
consumption.
--grpc-address="0.0.0.0:10901"
Listen ip:port address for gRPC endpoints
(StoreAPI). Make sure this address is routable
Expand Down
3 changes: 1 addition & 2 deletions docs/components/rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,7 @@ Flags:
detected maximum container or system memory.
--data-dir="data/" data directory
--enable-auto-gomemlimit Enable go runtime to automatically limit memory
consumption by compact component. This is an
experimental feature.
consumption.
--eval-interval=1m The default evaluation interval to use.
--for-grace-period=10m Minimum duration between alert and restored
"for" state. This is maintained only for alerts
Expand Down
3 changes: 1 addition & 2 deletions docs/components/sidecar.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ Flags:
The ratio of reserved GOMEMLIMIT memory to the
detected maximum container or system memory.
--enable-auto-gomemlimit Enable go runtime to automatically limit memory
consumption by compact component. This is an
experimental feature.
consumption.
--grpc-address="0.0.0.0:10901"
Listen ip:port address for gRPC endpoints
(StoreAPI). Make sure this address is routable
Expand Down
5 changes: 1 addition & 4 deletions docs/components/store.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ Flags:
cases use Prometheus + sidecar. Ignored if
--no-cache-index-header option is specified.
--enable-auto-gomemlimit Enable go runtime to automatically limit memory
consumption by compact component. This is an
experimental feature.
consumption.
--grpc-address="0.0.0.0:10901"
Listen ip:port address for gRPC endpoints
(StoreAPI). Make sure this address is routable
Expand Down Expand Up @@ -381,8 +380,6 @@ While the remaining settings are **optional**:
The `redis` index cache allows to use [Redis](https://redis.io) as cache backend. This cache type is configured using `--index-cache.config-file` to reference the configuration file or `--index-cache.config` to put yaml config directly:

```yaml mdox-exec="go run scripts/cfggen/main.go --name=cacheutil.RedisClientConfig"
# command-line-arguments
ld: warning: ignoring duplicate libraries: '-lproc'
type: REDIS
config:
addr: ""
Expand Down
36 changes: 12 additions & 24 deletions docs/components/tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ Flags:
The ratio of reserved GOMEMLIMIT memory to the
detected maximum container or system memory.
--enable-auto-gomemlimit Enable go runtime to automatically limit memory
consumption by compact component. This is an
experimental feature.
consumption.
-h, --help Show context-sensitive help (also try
--help-long and --help-man).
--log.format=logfmt Log format to use. Possible options: logfmt or
Expand Down Expand Up @@ -126,8 +125,7 @@ Flags:
The ratio of reserved GOMEMLIMIT memory to the
detected maximum container or system memory.
--enable-auto-gomemlimit Enable go runtime to automatically limit memory
consumption by compact component. This is an
experimental feature.
consumption.
-h, --help Show context-sensitive help (also try
--help-long and --help-man).
--log.format=logfmt Log format to use. Possible options: logfmt or
Expand Down Expand Up @@ -238,8 +236,7 @@ Flags:
Disable UI/API admin operations like marking
blocks for deletion and no compaction.
--enable-auto-gomemlimit Enable go runtime to automatically limit memory
consumption by compact component. This is an
experimental feature.
consumption.
-h, --help Show context-sensitive help (also try
--help-long and --help-man).
--http-address="0.0.0.0:10902"
Expand Down Expand Up @@ -372,8 +369,7 @@ Flags:
or compactor is ignoring the deletion because
it's compacting the block at the same time.
--enable-auto-gomemlimit Enable go runtime to automatically limit memory
consumption by compact component. This is an
experimental feature.
consumption.
-h, --help Show context-sensitive help (also try
--help-long and --help-man).
--id=ID ... Block IDs to verify (and optionally repair)
Expand Down Expand Up @@ -447,8 +443,7 @@ Flags:
The ratio of reserved GOMEMLIMIT memory to the
detected maximum container or system memory.
--enable-auto-gomemlimit Enable go runtime to automatically limit memory
consumption by compact component. This is an
experimental feature.
consumption.
--exclude-delete Exclude blocks marked for deletion.
-h, --help Show context-sensitive help (also try
--help-long and --help-man).
Expand Down Expand Up @@ -501,8 +496,7 @@ Flags:
The ratio of reserved GOMEMLIMIT memory to the
detected maximum container or system memory.
--enable-auto-gomemlimit Enable go runtime to automatically limit memory
consumption by compact component. This is an
experimental feature.
consumption.
-h, --help Show context-sensitive help (also try
--help-long and --help-man).
--log.format=logfmt Log format to use. Possible options: logfmt or
Expand Down Expand Up @@ -574,8 +568,7 @@ Flags:
--compaction-min=1 Only blocks with at least this compaction level
will be replicated.
--enable-auto-gomemlimit Enable go runtime to automatically limit memory
consumption by compact component. This is an
experimental feature.
consumption.
-h, --help Show context-sensitive help (also try
--help-long and --help-man).
--http-address="0.0.0.0:10902"
Expand Down Expand Up @@ -690,8 +683,7 @@ Flags:
Number of goroutines to use when downsampling
blocks.
--enable-auto-gomemlimit Enable go runtime to automatically limit memory
consumption by compact component. This is an
experimental feature.
consumption.
--hash-func= Specify which hash function to use when
calculating the hashes of produced files.
If no function has been specified, it does not
Expand Down Expand Up @@ -769,8 +761,7 @@ Flags:
detected maximum container or system memory.
--details=DETAILS Human readable details to be put into marker.
--enable-auto-gomemlimit Enable go runtime to automatically limit memory
consumption by compact component. This is an
experimental feature.
consumption.
-h, --help Show context-sensitive help (also try
--help-long and --help-man).
--id=ID ... ID (ULID) of the blocks to be marked for
Expand Down Expand Up @@ -857,8 +848,7 @@ Flags:
Defaults to true, for user to double check. (:
Pass --no-dry-run to skip this.
--enable-auto-gomemlimit Enable go runtime to automatically limit memory
consumption by compact component. This is an
experimental feature.
consumption.
--hash-func= Specify which hash function to use when
calculating the hashes of produced files.
If no function has been specified, it does not
Expand Down Expand Up @@ -934,8 +924,7 @@ Flags:
The ratio of reserved GOMEMLIMIT memory to the
detected maximum container or system memory.
--enable-auto-gomemlimit Enable go runtime to automatically limit memory
consumption by compact component. This is an
experimental feature.
consumption.
-h, --help Show context-sensitive help (also try
--help-long and --help-man).
--label=key="value" ... External labels to add to the uploaded blocks
Expand Down Expand Up @@ -994,8 +983,7 @@ Flags:
The ratio of reserved GOMEMLIMIT memory to the
detected maximum container or system memory.
--enable-auto-gomemlimit Enable go runtime to automatically limit memory
consumption by compact component. This is an
experimental feature.
consumption.
-h, --help Show context-sensitive help (also try
--help-long and --help-man).
--log.format=logfmt Log format to use. Possible options: logfmt or
Expand Down

0 comments on commit ef98c6f

Please sign in to comment.