app/vminsert: increase default value for -insert.maxQueueDuration from 30s to 60s

This should help catching up with high ingestion rate after VictoriaMetrics restart.
This commit is contained in:
Aliaksandr Valialkin 2020-01-18 14:38:30 +02:00
parent 257e61195a
commit 227cf53ef9

View File

@ -14,7 +14,7 @@ import (
var (
maxConcurrentInserts = flag.Int("maxConcurrentInserts", runtime.GOMAXPROCS(-1)*4, "The maximum number of concurrent inserts; see also `-insert.maxQueueDuration`")
maxQueueDuration = flag.Duration("insert.maxQueueDuration", 30*time.Second, "The maximum duration for waiting in the queue for insert requests due to `-maxConcurrentInserts`")
maxQueueDuration = flag.Duration("insert.maxQueueDuration", time.Minute, "The maximum duration for waiting in the queue for insert requests due to `-maxConcurrentInserts`")
)
// ch is the channel for limiting concurrent calls to Do.