mirror of
https://github.com/prometheus/prometheus.git
synced 2025-02-21 03:16:00 -08:00
Improve chunkMaxBatchSize doc comment
This commit is contained in:
parent
582af1618c
commit
14796bdb60
|
@ -67,8 +67,9 @@ const (
|
||||||
chunkHeaderFirstTimeOffset = 1
|
chunkHeaderFirstTimeOffset = 1
|
||||||
chunkHeaderLastTimeOffset = 9
|
chunkHeaderLastTimeOffset = 9
|
||||||
chunkLenWithHeader = chunkLen + chunkHeaderLen
|
chunkLenWithHeader = chunkLen + chunkHeaderLen
|
||||||
chunkMaxBatchSize = 62 // Max no. of chunks to load or write in one batch.
|
chunkMaxBatchSize = 62 // Max no. of chunks to load or write in
|
||||||
// Note that 62 is the largest number of chunks that fit into 64kiB on disk.
|
// one batch. Note that 62 is the largest number of chunks that fit
|
||||||
|
// into 64kiB on disk because chunkHeaderLen is added to each 1k chunk.
|
||||||
|
|
||||||
indexingMaxBatchSize = 1024 * 1024
|
indexingMaxBatchSize = 1024 * 1024
|
||||||
indexingBatchTimeout = 500 * time.Millisecond // Commit batch when idle for that long.
|
indexingBatchTimeout = 500 * time.Millisecond // Commit batch when idle for that long.
|
||||||
|
|
Loading…
Reference in a new issue