mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Use DefaultSamplesPerChunk in tsdb
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
This commit is contained in:
parent
905a0bd63a
commit
02e113d03f
|
@ -640,6 +640,9 @@ func validateOpts(opts *Options, rngs []int64) (*Options, []int64) {
|
||||||
if opts.HeadChunksWriteQueueSize < 0 {
|
if opts.HeadChunksWriteQueueSize < 0 {
|
||||||
opts.HeadChunksWriteQueueSize = chunks.DefaultWriteQueueSize
|
opts.HeadChunksWriteQueueSize = chunks.DefaultWriteQueueSize
|
||||||
}
|
}
|
||||||
|
if opts.SamplesPerChunk <= 0 {
|
||||||
|
opts.SamplesPerChunk = DefaultSamplesPerChunk
|
||||||
|
}
|
||||||
if opts.MaxBlockChunkSegmentSize <= 0 {
|
if opts.MaxBlockChunkSegmentSize <= 0 {
|
||||||
opts.MaxBlockChunkSegmentSize = chunks.DefaultChunkSegmentSize
|
opts.MaxBlockChunkSegmentSize = chunks.DefaultChunkSegmentSize
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue