Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
500a0ca5
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
500a0ca5
编写于
8月 09, 2022
作者:
S
Shengliang Guan
提交者:
GitHub
8月 09, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #15887 from taosdata/fix/mnode
enh: adjust the default value of supportVnodes parameters
上级
52a620fb
01b4e8bb
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
6 addition
and
6 deletion
+6
-6
source/common/src/tglobal.c
source/common/src/tglobal.c
+4
-0
tests/pytest/util/dnodes-random-fail.py
tests/pytest/util/dnodes-random-fail.py
+0
-3
tests/pytest/util/dnodes.py
tests/pytest/util/dnodes.py
+2
-3
未找到文件。
source/common/src/tglobal.c
浏览文件 @
500a0ca5
...
@@ -355,7 +355,11 @@ static int32_t taosAddSystemCfg(SConfig *pCfg) {
...
@@ -355,7 +355,11 @@ static int32_t taosAddSystemCfg(SConfig *pCfg) {
static
int32_t
taosAddServerCfg
(
SConfig
*
pCfg
)
{
static
int32_t
taosAddServerCfg
(
SConfig
*
pCfg
)
{
if
(
cfgAddDir
(
pCfg
,
"dataDir"
,
tsDataDir
,
0
)
!=
0
)
return
-
1
;
if
(
cfgAddDir
(
pCfg
,
"dataDir"
,
tsDataDir
,
0
)
!=
0
)
return
-
1
;
if
(
cfgAddFloat
(
pCfg
,
"minimalDataDirGB"
,
2
.
0
f
,
0
.
001
f
,
10000000
,
0
)
!=
0
)
return
-
1
;
if
(
cfgAddFloat
(
pCfg
,
"minimalDataDirGB"
,
2
.
0
f
,
0
.
001
f
,
10000000
,
0
)
!=
0
)
return
-
1
;
tsNumOfSupportVnodes
=
tsNumOfCores
*
2
;
tsNumOfSupportVnodes
=
TMAX
(
tsNumOfSupportVnodes
,
2
);
if
(
cfgAddInt32
(
pCfg
,
"supportVnodes"
,
tsNumOfSupportVnodes
,
0
,
4096
,
0
)
!=
0
)
return
-
1
;
if
(
cfgAddInt32
(
pCfg
,
"supportVnodes"
,
tsNumOfSupportVnodes
,
0
,
4096
,
0
)
!=
0
)
return
-
1
;
if
(
cfgAddInt32
(
pCfg
,
"maxShellConns"
,
tsMaxShellConns
,
10
,
50000000
,
0
)
!=
0
)
return
-
1
;
if
(
cfgAddInt32
(
pCfg
,
"maxShellConns"
,
tsMaxShellConns
,
10
,
50000000
,
0
)
!=
0
)
return
-
1
;
if
(
cfgAddInt32
(
pCfg
,
"statusInterval"
,
tsStatusInterval
,
1
,
30
,
0
)
!=
0
)
return
-
1
;
if
(
cfgAddInt32
(
pCfg
,
"statusInterval"
,
tsStatusInterval
,
1
,
30
,
0
)
!=
0
)
return
-
1
;
if
(
cfgAddInt32
(
pCfg
,
"minSlidingTime"
,
tsMinSlidingTime
,
10
,
1000000
,
0
)
!=
0
)
return
-
1
;
if
(
cfgAddInt32
(
pCfg
,
"minSlidingTime"
,
tsMinSlidingTime
,
10
,
1000000
,
0
)
!=
0
)
return
-
1
;
...
...
tests/pytest/util/dnodes-random-fail.py
浏览文件 @
500a0ca5
...
@@ -24,12 +24,9 @@ class TDSimClient:
...
@@ -24,12 +24,9 @@ class TDSimClient:
self
.
cfgDict
=
{
self
.
cfgDict
=
{
"numOfLogLines"
:
"100000000"
,
"numOfLogLines"
:
"100000000"
,
"numOfThreadsPerCore"
:
"2.0"
,
"locale"
:
"en_US.UTF-8"
,
"locale"
:
"en_US.UTF-8"
,
"charset"
:
"UTF-8"
,
"charset"
:
"UTF-8"
,
"asyncLog"
:
"0"
,
"asyncLog"
:
"0"
,
"anyIp"
:
"0"
,
"sdbDebugFlag"
:
"135"
,
"rpcDebugFlag"
:
"135"
,
"rpcDebugFlag"
:
"135"
,
"tmrDebugFlag"
:
"131"
,
"tmrDebugFlag"
:
"131"
,
"cDebugFlag"
:
"135"
,
"cDebugFlag"
:
"135"
,
...
...
tests/pytest/util/dnodes.py
浏览文件 @
500a0ca5
...
@@ -30,7 +30,6 @@ class TDSimClient:
...
@@ -30,7 +30,6 @@ class TDSimClient:
self
.
path
=
path
self
.
path
=
path
self
.
cfgDict
=
{
self
.
cfgDict
=
{
"numOfLogLines"
:
"100000000"
,
"numOfLogLines"
:
"100000000"
,
"numOfThreadsPerCore"
:
"2.0"
,
"locale"
:
"en_US.UTF-8"
,
"locale"
:
"en_US.UTF-8"
,
"charset"
:
"UTF-8"
,
"charset"
:
"UTF-8"
,
"asyncLog"
:
"0"
,
"asyncLog"
:
"0"
,
...
@@ -40,6 +39,7 @@ class TDSimClient:
...
@@ -40,6 +39,7 @@ class TDSimClient:
"udebugFlag"
:
"143"
,
"udebugFlag"
:
"143"
,
"jnidebugFlag"
:
"143"
,
"jnidebugFlag"
:
"143"
,
"qdebugFlag"
:
"143"
,
"qdebugFlag"
:
"143"
,
"supportVnodes"
:
"1024"
,
"telemetryReporting"
:
"0"
,
"telemetryReporting"
:
"0"
,
}
}
...
@@ -117,8 +117,6 @@ class TDDnode:
...
@@ -117,8 +117,6 @@ class TDDnode:
self
.
valgrind
=
0
self
.
valgrind
=
0
self
.
remoteIP
=
""
self
.
remoteIP
=
""
self
.
cfgDict
=
{
self
.
cfgDict
=
{
"walLevel"
:
"2"
,
"fsync"
:
"1000"
,
"monitor"
:
"0"
,
"monitor"
:
"0"
,
"maxShellConns"
:
"30000"
,
"maxShellConns"
:
"30000"
,
"locale"
:
"en_US.UTF-8"
,
"locale"
:
"en_US.UTF-8"
,
...
@@ -139,6 +137,7 @@ class TDDnode:
...
@@ -139,6 +137,7 @@ class TDDnode:
"qdebugFlag"
:
"143"
,
"qdebugFlag"
:
"143"
,
"numOfLogLines"
:
"100000000"
,
"numOfLogLines"
:
"100000000"
,
"statusInterval"
:
"1"
,
"statusInterval"
:
"1"
,
"supportVnodes"
:
"1024"
,
"telemetryReporting"
:
"0"
"telemetryReporting"
:
"0"
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录