From 16333080002e29f054c26672ddde2d9c1819f138 Mon Sep 17 00:00:00 2001 From: Ulric Qin Date: Thu, 14 Apr 2022 17:19:14 +0800 Subject: [PATCH] modify queue size --- etc/server.conf | 2 +- src/server/config/config.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/server.conf b/etc/server.conf index 8c651ffb..73d8325c 100644 --- a/etc/server.conf +++ b/etc/server.conf @@ -181,7 +181,7 @@ MaxIdleConnsPerHost = 10 [WriterOpt] # queue max size -QueueMaxSize = 10000000 +QueueMaxSize = 100000 # once pop samples number from queue QueuePopSize = 2000 # unit: ms diff --git a/src/server/config/config.go b/src/server/config/config.go index c050ec95..4bcef9ec 100644 --- a/src/server/config/config.go +++ b/src/server/config/config.go @@ -102,7 +102,7 @@ func MustLoad(fpaths ...string) { } if C.WriterOpt.QueueMaxSize <= 0 { - C.WriterOpt.QueueMaxSize = 10000000 + C.WriterOpt.QueueMaxSize = 100000 } if C.WriterOpt.QueuePopSize <= 0 {