Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/en/14-reference/01-components/01-taosd.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) |
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/14-reference/01-components/01-taosd.md
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ charset 的有效值是 UTF-8。
- 类型:整数
- 默认值:CPU 核数的 2 倍 + 5
- 最小值:0
- 最大值:4096
- 最大值:1024
- 动态修改:仅在企业版支持通过 SQL 修改,立即生效。
- 支持版本:从 v3.1.0.0 版本开始引入

Expand Down
2 changes: 1 addition & 1 deletion source/common/src/tglobal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
4 changes: 2 additions & 2 deletions tests/system-test/0-others/show.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading