[td-255] change the min worker threads
This commit is contained in:
parent
9d2d061c15
commit
228ea8ae9c
|
@ -49,7 +49,7 @@ static taos_qset readQset;
|
|||
int32_t dnodeInitVnodeRead() {
|
||||
readQset = taosOpenQset();
|
||||
|
||||
readPool.min = (tsNumOfCores * 2) / 3;
|
||||
readPool.min = tsNumOfCores;
|
||||
readPool.max = tsNumOfCores * tsNumOfThreadsPerCore;
|
||||
if (readPool.max <= readPool.min * 2) readPool.max = 2 * readPool.min;
|
||||
readPool.readWorker = (SReadWorker *)calloc(sizeof(SReadWorker), readPool.max);
|
||||
|
|
Loading…
Reference in New Issue