[td-255] change the min worker threads

This commit is contained in:
Haojun Liao 2020-07-28 11:49:50 +08:00
parent 11a6492406
commit 534a0a32cd
1 changed files with 1 additions and 1 deletions

View File

@ -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);