lib/writeconcurrencylimiter: improve docs for -maxConcurrentInserts command-line flag

This commit is contained in:
Aliaksandr Valialkin 2020-04-20 21:02:54 +03:00
parent b59f1f1504
commit f3e5722257

View File

@ -13,8 +13,9 @@ import (
) )
var ( var (
maxConcurrentInserts = flag.Int("maxConcurrentInserts", runtime.GOMAXPROCS(-1)*4, "The maximum number of concurrent inserts; see also -insert.maxQueueDuration") maxConcurrentInserts = flag.Int("maxConcurrentInserts", runtime.GOMAXPROCS(-1)*4, "The maximum number of concurrent inserts. Default value should work for most cases, "+
maxQueueDuration = flag.Duration("insert.maxQueueDuration", time.Minute, "The maximum duration for waiting in the queue for insert requests due to -maxConcurrentInserts") "since it minimizes the overhead for concurrent inserts. This option is tigthly coupled with -insert.maxQueueDuration")
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. // ch is the channel for limiting concurrent calls to Do.