mirror of
https://github.com/prometheus/prometheus.git
synced 2025-02-21 03:16:00 -08:00
Merge remote-tracking branch 'mine/fix-default-samples-per-chunk' into zenador/sync-upstream-22-may-2023
This commit is contained in:
commit
dd172440e5
|
@ -684,6 +684,9 @@ func validateOpts(opts *Options, rngs []int64) (*Options, []int64) {
|
|||
if opts.HeadChunksWriteQueueSize < 0 {
|
||||
opts.HeadChunksWriteQueueSize = chunks.DefaultWriteQueueSize
|
||||
}
|
||||
if opts.SamplesPerChunk <= 0 {
|
||||
opts.SamplesPerChunk = DefaultSamplesPerChunk
|
||||
}
|
||||
if opts.MaxBlockChunkSegmentSize <= 0 {
|
||||
opts.MaxBlockChunkSegmentSize = chunks.DefaultChunkSegmentSize
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue