diff --git a/docs/en/14-reference/01-components/01-taosd.md b/docs/en/14-reference/01-components/01-taosd.md index d4ef0b2fc230..306d5a8013b9 100644 --- a/docs/en/14-reference/01-components/01-taosd.md +++ b/docs/en/14-reference/01-components/01-taosd.md @@ -188,7 +188,7 @@ The effective value of charset is UTF-8. | Parameter Name | Supported Version | Dynamic Modification | Description | | -------------------------- | ----------------- | ---------------------------------- | ------------------------------------------------------------ | -| supportVnodes | | Supported, effective immediately | Maximum number of vnodes supported by a dnode, range 0-4096, default value is twice the number of CPU cores + 5 | +| supportVnodes | | Supported, effective immediately | Maximum number of vnodes supported by a dnode, range 0-1024, default value is twice the number of CPU cores + 5 | | numOfCommitThreads | | Supported, effective after restart | Maximum number of commit threads, range 1-1024, default value 4 | | numOfCompactThreads | | Supported, effective after restart | Maximum number of commit threads, range 1-16, default value 2 | | numOfMnodeReadThreads | | Supported, effective after restart | Number of Read threads for mnode, range 0-1024, default value is one quarter of the CPU cores (not exceeding 4) | diff --git a/docs/zh/14-reference/01-components/01-taosd.md b/docs/zh/14-reference/01-components/01-taosd.md index 2803e0abc4d6..14651bd7a094 100644 --- a/docs/zh/14-reference/01-components/01-taosd.md +++ b/docs/zh/14-reference/01-components/01-taosd.md @@ -747,7 +747,7 @@ charset 的有效值是 UTF-8。 - 类型:整数 - 默认值:CPU 核数的 2 倍 + 5 - 最小值:0 -- 最大值:4096 +- 最大值:1024 - 动态修改:仅在企业版支持通过 SQL 修改,立即生效。 - 支持版本:从 v3.1.0.0 版本开始引入 diff --git a/source/common/src/tglobal.c b/source/common/src/tglobal.c index 61f45f987e82..fb1dffb2530e 100644 --- a/source/common/src/tglobal.c +++ b/source/common/src/tglobal.c @@ -928,7 +928,7 @@ static int32_t taosAddServerCfg(SConfig *pCfg) { // clang-format off TAOS_CHECK_RETURN(cfgAddDir(pCfg, "dataDir", tsDataDir, CFG_SCOPE_SERVER, CFG_DYN_SERVER, CFG_CATEGORY_LOCAL)); TAOS_CHECK_RETURN(cfgAddFloat(pCfg, "minimalDataDirGB", 2.0f, 0.001f, 10000000, CFG_SCOPE_SERVER, CFG_DYN_NONE, CFG_CATEGORY_LOCAL)); - TAOS_CHECK_RETURN(cfgAddInt32(pCfg, "supportVnodes", tsNumOfSupportVnodes, 0, 4096, CFG_SCOPE_SERVER, CFG_DYN_ENT_SERVER, CFG_CATEGORY_LOCAL)); + TAOS_CHECK_RETURN(cfgAddInt32(pCfg, "supportVnodes", tsNumOfSupportVnodes, 0, 1024, CFG_SCOPE_SERVER, CFG_DYN_ENT_SERVER, CFG_CATEGORY_LOCAL)); TAOS_CHECK_RETURN(cfgAddString(pCfg, "encryptAlgorithm", tsEncryptAlgorithm, CFG_SCOPE_SERVER, CFG_DYN_NONE, CFG_CATEGORY_GLOBAL)); TAOS_CHECK_RETURN(cfgAddString(pCfg, "encryptScope", tsEncryptScope, CFG_SCOPE_SERVER, CFG_DYN_NONE,CFG_CATEGORY_GLOBAL)); diff --git a/tests/system-test/0-others/show.py b/tests/system-test/0-others/show.py index e6fa7bf16b41..96b1ffd51fcb 100644 --- a/tests/system-test/0-others/show.py +++ b/tests/system-test/0-others/show.py @@ -273,8 +273,8 @@ def test_show_variables(self): tdSql.error(f'ALTER LOCAL "{var}" "{error_val}"') var = 'supportVnodes' - expect_val = 1240 ## 1.211111 * 1024 - sql = f'ALTER DNODE 1 "{var}" "1.211111k"' + expect_val = 1024 + sql = f'ALTER DNODE 1 "{var}" "1024"' tdSql.execute(sql, queryTimes=1) val = int(self.get_variable(var, False)) if val != expect_val: