Skip to content

Commit

Permalink
Run make docs
Browse files Browse the repository at this point in the history
Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com>
  • Loading branch information
fpetkovski committed Feb 8, 2023
1 parent 2f9e838 commit 6a9a7cd
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 35 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ We use *breaking :warning:* to mark changes that are not backward compatible (re
- [#5773](https://github.com/thanos-io/thanos/pull/5773) Store: Support disable cache index header file.
- [#5653](https://github.com/thanos-io/thanos/pull/5653) Receive: Allow setting hashing algorithm per tenant in hashrings config
- [#6074](https://github.com/thanos-io/thanos/pull/6074) *: Add histogram metrics `thanos_store_server_series_requested` and `thanos_store_server_chunks_requested` to all Stores.
- [#6074](https://github.com/thanos-io/thanos/pull/6074) *: Allow configuring series and chunk rate limits per `Series` request for all Stores.
- [#6074](https://github.com/thanos-io/thanos/pull/6074) *: Allow configuring series and sample limits per `Series` request for all Stores.

### Changed

Expand Down
11 changes: 7 additions & 4 deletions docs/components/query.md
Original file line number Diff line number Diff line change
Expand Up @@ -429,10 +429,13 @@ Flags:
that are always used, even if the health check
fails. Useful if you have a caching layer on
top.
--store.grpc.chunks-limit=0
The maximum chunks allowed for a single Series
request, The Series call fails if this limit is
exceeded. 0 means no limit.
--store.grpc.samples-limit=0
The maximum samples allowed for a single
Series request, The Series call fails if
this limit is exceeded. 0 means no limit.
NOTE: For efficiency the limit is internally
implemented as 'chunks limit' considering each
chunk contains a maximum of 120 samples.
--store.grpc.series-limit=0
The maximum series allowed for a single Series
request. The Series call fails if this limit is
Expand Down
11 changes: 7 additions & 4 deletions docs/components/receive.md
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,13 @@ Flags:
Path to YAML file with request logging
configuration. See format details:
https://thanos.io/tip/thanos/logging.md/#configuration
--store.grpc.chunks-limit=0
The maximum chunks allowed for a single Series
request, The Series call fails if this limit is
exceeded. 0 means no limit.
--store.grpc.samples-limit=0
The maximum samples allowed for a single
Series request, The Series call fails if
this limit is exceeded. 0 means no limit.
NOTE: For efficiency the limit is internally
implemented as 'chunks limit' considering each
chunk contains a maximum of 120 samples.
--store.grpc.series-limit=0
The maximum series allowed for a single Series
request. The Series call fails if this limit is
Expand Down
11 changes: 7 additions & 4 deletions docs/components/rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -453,10 +453,13 @@ Flags:
Works only if compaction is disabled on
Prometheus. Do it once and then disable the
flag when done.
--store.grpc.chunks-limit=0
The maximum chunks allowed for a single Series
request, The Series call fails if this limit is
exceeded. 0 means no limit.
--store.grpc.samples-limit=0
The maximum samples allowed for a single
Series request, The Series call fails if
this limit is exceeded. 0 means no limit.
NOTE: For efficiency the limit is internally
implemented as 'chunks limit' considering each
chunk contains a maximum of 120 samples.
--store.grpc.series-limit=0
The maximum series allowed for a single Series
request. The Series call fails if this limit is
Expand Down
11 changes: 7 additions & 4 deletions docs/components/sidecar.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,13 @@ Flags:
Works only if compaction is disabled on
Prometheus. Do it once and then disable the
flag when done.
--store.grpc.chunks-limit=0
The maximum chunks allowed for a single Series
request, The Series call fails if this limit is
exceeded. 0 means no limit.
--store.grpc.samples-limit=0
The maximum samples allowed for a single
Series request, The Series call fails if
this limit is exceeded. 0 means no limit.
NOTE: For efficiency the limit is internally
implemented as 'chunks limit' considering each
chunk contains a maximum of 120 samples.
--store.grpc.series-limit=0
The maximum series allowed for a single Series
request. The Series call fails if this limit is
Expand Down
25 changes: 9 additions & 16 deletions docs/components/store.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,36 +169,29 @@ Flags:
If true, Store Gateway will lazy memory map
index-header only once the block is required by
a query.
--store.grpc.chunks-limit=0
The maximum chunks allowed for a single Series
request, The Series call fails if this limit is
exceeded. 0 means no limit.
--store.grpc.downloaded-bytes-limit=0
Maximum amount of downloaded (either
fetched or touched) bytes in a single
Series/LabelNames/LabelValues call. The Series
call fails if this limit is exceeded. 0 means
no limit.
--store.grpc.samples-limit=0
The maximum samples allowed for a single
Series request, The Series call fails if
this limit is exceeded. 0 means no limit.
NOTE: For efficiency the limit is internally
implemented as 'chunks limit' considering each
chunk contains a maximum of 120 samples.
--store.grpc.series-limit=0
The maximum series allowed for a single Series
request. The Series call fails if this limit is
exceeded. 0 means no limit.
--store.grpc.series-max-concurrency=20
Maximum number of concurrent Series calls.
--store.grpc.series-sample-limit=0
Maximum amount of samples returned via a
single Series call. The Series call fails
if this limit is exceeded. 0 means no limit.
NOTE: For efficiency the limit is internally
implemented as 'chunks limit' considering
each chunk contains 120 samples (it's the max
number of samples each chunk can contain),
so the actual number of samples might be lower,
even though the maximum could be hit.
DEPRECATED: use store.grpc.chunks-limit.
--store.grpc.touched-series-limit=0
Maximum amount of touched series returned via
a single Series call. The Series call fails if
this limit is exceeded. 0 means no limit.
DEPRECATED: use store.grpc.series-limit.
--sync-block-duration=3m Repeat interval for syncing the blocks between
local and remote view.
--tracing.config=<content>
Expand Down
4 changes: 2 additions & 2 deletions pkg/store/limiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,14 @@ func NewChunksLimiterFactory(limit uint64) ChunksLimiterFactory {
}
}

// NewSeriesLimiterFactory makes a new NewSeriesLimiterFactory with a static limit.
// NewSeriesLimiterFactory makes a new SeriesLimiterFactory with a static limit.
func NewSeriesLimiterFactory(limit uint64) SeriesLimiterFactory {
return func(failedCounter prometheus.Counter) SeriesLimiter {
return NewLimiter(limit, failedCounter)
}
}

// NewBytesLimiterFactory makes a new NewSeriesLimiterFactory with a static limit.
// NewBytesLimiterFactory makes a new BytesLimiterFactory with a static limit.
func NewBytesLimiterFactory(limit units.Base2Bytes) BytesLimiterFactory {
return func(failedCounter prometheus.Counter) BytesLimiter {
return NewLimiter(uint64(limit), failedCounter)
Expand Down

0 comments on commit 6a9a7cd

Please sign in to comment.