From 3975eef51d3f7888471c7c89a69d3c65338924c4 Mon Sep 17 00:00:00 2001 From: zyyang Date: Tue, 7 Jun 2022 13:47:46 +0800 Subject: [PATCH] other: change blance default value to 0 in 2.6 --- packaging/cfg/taos.cfg | 2 +- src/common/src/tglobal.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/cfg/taos.cfg b/packaging/cfg/taos.cfg index 7d77a0b23e..1918a4c469 100644 --- a/packaging/cfg/taos.cfg +++ b/packaging/cfg/taos.cfg @@ -52,7 +52,7 @@ keepColumnName 1 # telemetryReporting 1 # enable/disable load balancing -# balance 1 +# balance 0 # role for dnode. 0 - any, 1 - mnode, 2 - dnode # role 0 diff --git a/src/common/src/tglobal.c b/src/common/src/tglobal.c index 616c5fba89..cc0e6b0e97 100644 --- a/src/common/src/tglobal.c +++ b/src/common/src/tglobal.c @@ -164,7 +164,7 @@ bool tsdbForceCompactFile = false; // compact TSDB fileset int32_t tsdbWalFlushSize = TSDB_DEFAULT_WAL_FLUSH_SIZE; // MB // balance -int8_t tsEnableBalance = 1; +int8_t tsEnableBalance = 0; int8_t tsAlternativeRole = 0; int32_t tsBalanceInterval = 300; // seconds int32_t tsOfflineInterval = 3; // seconds -- GitLab