From f9e581907a63bded8ad739f14137dc9b2c46ce00 Mon Sep 17 00:00:00 2001 From: Brian Brazil Date: Thu, 5 Jan 2017 17:57:42 +0000 Subject: [PATCH] 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%. --- storage/local/persistence.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/local/persistence.go b/storage/local/persistence.go index 0c8c83ff1..9fbb3f1f5 100644 --- a/storage/local/persistence.go +++ b/storage/local/persistence.go @@ -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.