mirror of
https://github.com/prometheus/prometheus
synced 2024-12-27 00:53:12 +00:00
Make index queue bigger. (#2322)
When a large Prometheus starts up fresh it can take many minutes to warmup and clear out the index queue. A larger queue means less blocking, bigger batches and cuts down startup time by ~50%.
This commit is contained in:
parent
c9f4aea8e2
commit
f9e581907a
@ -68,7 +68,7 @@ const (
|
||||
|
||||
indexingMaxBatchSize = 1024 * 1024
|
||||
indexingBatchTimeout = 500 * time.Millisecond // Commit batch when idle for that long.
|
||||
indexingQueueCapacity = 1024 * 16
|
||||
indexingQueueCapacity = 1024 * 256
|
||||
)
|
||||
|
||||
var fpLen = len(model.Fingerprint(0).String()) // Length of a fingerprint as string.
|
||||
|
Loading…
Reference in New Issue
Block a user