From 534a0a32cddfb7204dcd8843da5f35783617f790 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Tue, 28 Jul 2020 11:49:50 +0800 Subject: [PATCH] [td-255] change the min worker threads --- src/dnode/src/dnodeVRead.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dnode/src/dnodeVRead.c b/src/dnode/src/dnodeVRead.c index 506cc0895b..8064f4d496 100644 --- a/src/dnode/src/dnodeVRead.c +++ b/src/dnode/src/dnodeVRead.c @@ -49,7 +49,7 @@ static taos_qset readQset; int32_t dnodeInitVnodeRead() { readQset = taosOpenQset(); - readPool.min = 32; + readPool.min = tsNumOfCores / 2; readPool.max = tsNumOfCores * tsNumOfThreadsPerCore; if (readPool.max <= readPool.min * 2) readPool.max = 2 * readPool.min; readPool.readWorker = (SReadWorker *)calloc(sizeof(SReadWorker), readPool.max); -- GitLab