Tweak queue defaults
@@ -365,10 +365,10 @@ func ParseFlags(name, desc string, build *BuildInfo) (*Config, error) {
flag.BoolVar(&config.RaftShutdownOnRemove, "raft-remove-shutdown", false, "Shutdown Raft if node removed")
flag.BoolVar(&config.RaftNoFreelistSync, "raft-no-freelist-sync", false, "Do not sync Raft log database freelist to disk")
flag.StringVar(&config.RaftLogLevel, "raft-log-level", "INFO", "Minimum log level for Raft module")
- flag.IntVar(&config.WriteQueueCap, "write-queue-capacity", 1024, "Write queue capacity")
+ flag.IntVar(&config.WriteQueueCap, "write-queue-capacity", 512, "Write queue capacity")
flag.IntVar(&config.WriteQueueBatchSz, "write-queue-batch-size", 64, "Write queue batch size")
+ flag.DurationVar(&config.WriteQueueTimeout, "write-queue-timeout", 50*time.Millisecond, "Write queue timeout")
flag.BoolVar(&config.WriteQueueTx, "write-queue-tx", false, "Use a transaction when writing from queue")
- flag.DurationVar(&config.WriteQueueTimeout, "write-queue-timeout", 100*time.Millisecond, "Write queue timeout")
flag.IntVar(&config.CompressionSize, "compression-size", 150, "Request query size for compression attempt")
flag.IntVar(&config.CompressionBatch, "compression-batch", 5, "Request batch threshold for compression attempt")
flag.StringVar(&config.CPUProfile, "cpu-profile", "", "Path to file for CPU profiling information")
