change default paramete
This commit is contained in:
parent
7942a9bfd1
commit
8ecc327cbd
|
@ -650,7 +650,7 @@ static int32_t taosAddServerCfg(SConfig *pCfg) {
|
||||||
tsNumOfSnodeWriteThreads = tsNumOfCores / 4;
|
tsNumOfSnodeWriteThreads = tsNumOfCores / 4;
|
||||||
tsNumOfSnodeWriteThreads = TRANGE(tsNumOfSnodeWriteThreads, 2, 4);
|
tsNumOfSnodeWriteThreads = TRANGE(tsNumOfSnodeWriteThreads, 2, 4);
|
||||||
|
|
||||||
tsQueueMemoryAllowed = tsTotalMemoryKB * 1024 * 0.2;
|
tsQueueMemoryAllowed = tsTotalMemoryKB * 1024 * 0.1;
|
||||||
tsQueueMemoryAllowed = TRANGE(tsQueueMemoryAllowed, TSDB_MAX_MSG_SIZE * 10LL, TSDB_MAX_MSG_SIZE * 10000LL);
|
tsQueueMemoryAllowed = TRANGE(tsQueueMemoryAllowed, TSDB_MAX_MSG_SIZE * 10LL, TSDB_MAX_MSG_SIZE * 10000LL);
|
||||||
|
|
||||||
// clang-format off
|
// clang-format off
|
||||||
|
@ -916,7 +916,7 @@ static int32_t taosUpdateServerCfg(SConfig *pCfg) {
|
||||||
|
|
||||||
pItem = cfgGetItem(pCfg, "rpcQueueMemoryAllowed");
|
pItem = cfgGetItem(pCfg, "rpcQueueMemoryAllowed");
|
||||||
if (pItem != NULL && pItem->stype == CFG_STYPE_DEFAULT) {
|
if (pItem != NULL && pItem->stype == CFG_STYPE_DEFAULT) {
|
||||||
tsQueueMemoryAllowed = totalMemoryKB * 1024 * 0.2;
|
tsQueueMemoryAllowed = totalMemoryKB * 1024 * 0.1;
|
||||||
tsQueueMemoryAllowed = TRANGE(tsQueueMemoryAllowed, TSDB_MAX_MSG_SIZE * 10LL, TSDB_MAX_MSG_SIZE * 10000LL);
|
tsQueueMemoryAllowed = TRANGE(tsQueueMemoryAllowed, TSDB_MAX_MSG_SIZE * 10LL, TSDB_MAX_MSG_SIZE * 10000LL);
|
||||||
pItem->i64 = tsQueueMemoryAllowed;
|
pItem->i64 = tsQueueMemoryAllowed;
|
||||||
pItem->stype = stype;
|
pItem->stype = stype;
|
||||||
|
|
|
@ -36,7 +36,7 @@ void Testbase::InitLog(const char* path) {
|
||||||
tstrncpy(tsLogDir, path, PATH_MAX);
|
tstrncpy(tsLogDir, path, PATH_MAX);
|
||||||
|
|
||||||
taosGetSystemInfo();
|
taosGetSystemInfo();
|
||||||
tsQueueMemoryAllowed = tsTotalMemoryKB * 0.2;
|
tsQueueMemoryAllowed = tsTotalMemoryKB * 0.1;
|
||||||
if (taosInitLog("taosdlog", 1, false) != 0) {
|
if (taosInitLog("taosdlog", 1, false) != 0) {
|
||||||
printf("failed to init log file\n");
|
printf("failed to init log file\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue