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:
Brian Brazil 2017-01-05 17:57:42 +00:00 committed by GitHub
parent c9f4aea8e2
commit f9e581907a

View File

@ -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.