Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
43abbcbf
TDengine
项目概览
taosdata
/
TDengine
大约 2 年 前同步成功
通知
1192
Star
22018
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看板
提交
43abbcbf
编写于
12月 07, 2021
作者:
X
xywang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[TD-11377]<feature>: added a parameter for k8s
上级
439b7377
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
23 addition
and
0 deletion
+23
-0
src/common/inc/tglobal.h
src/common/inc/tglobal.h
+1
-0
src/common/src/tglobal.c
src/common/src/tglobal.c
+11
-0
src/dnode/src/dnodeVnodes.c
src/dnode/src/dnodeVnodes.c
+11
-0
未找到文件。
src/common/inc/tglobal.h
浏览文件 @
43abbcbf
...
@@ -42,6 +42,7 @@ extern int8_t tsArbOnline;
...
@@ -42,6 +42,7 @@ extern int8_t tsArbOnline;
extern
int64_t
tsArbOnlineTimestamp
;
extern
int64_t
tsArbOnlineTimestamp
;
extern
int32_t
tsDnodeId
;
extern
int32_t
tsDnodeId
;
extern
int64_t
tsDnodeStartTime
;
extern
int64_t
tsDnodeStartTime
;
extern
int8_t
tsDnodeNopLoop
;
// common
// common
extern
int
tsRpcTimer
;
extern
int
tsRpcTimer
;
...
...
src/common/src/tglobal.c
浏览文件 @
43abbcbf
...
@@ -47,6 +47,7 @@ int64_t tsArbOnlineTimestamp = TSDB_ARB_DUMMY_TIME;
...
@@ -47,6 +47,7 @@ int64_t tsArbOnlineTimestamp = TSDB_ARB_DUMMY_TIME;
char
tsEmail
[
TSDB_FQDN_LEN
]
=
{
0
};
char
tsEmail
[
TSDB_FQDN_LEN
]
=
{
0
};
int32_t
tsDnodeId
=
0
;
int32_t
tsDnodeId
=
0
;
int64_t
tsDnodeStartTime
=
0
;
int64_t
tsDnodeStartTime
=
0
;
int8_t
tsDnodeNopLoop
=
0
;
// common
// common
int32_t
tsRpcTimer
=
300
;
int32_t
tsRpcTimer
=
300
;
...
@@ -622,6 +623,16 @@ static void doInitGlobalConfig(void) {
...
@@ -622,6 +623,16 @@ static void doInitGlobalConfig(void) {
cfg
.
unitType
=
TAOS_CFG_UTYPE_NONE
;
cfg
.
unitType
=
TAOS_CFG_UTYPE_NONE
;
taosInitConfigOption
(
cfg
);
taosInitConfigOption
(
cfg
);
cfg
.
option
=
"dnodeNopLoop"
;
cfg
.
ptr
=
&
tsDnodeNopLoop
;
cfg
.
valType
=
TAOS_CFG_VTYPE_INT8
;
cfg
.
cfgType
=
TSDB_CFG_CTYPE_B_CONFIG
;
cfg
.
minValue
=
0
;
cfg
.
maxValue
=
1
;
cfg
.
ptrLength
=
0
;
cfg
.
unitType
=
TAOS_CFG_UTYPE_NONE
;
taosInitConfigOption
(
cfg
);
cfg
.
option
=
"balance"
;
cfg
.
option
=
"balance"
;
cfg
.
ptr
=
&
tsEnableBalance
;
cfg
.
ptr
=
&
tsEnableBalance
;
cfg
.
valType
=
TAOS_CFG_VTYPE_INT8
;
cfg
.
valType
=
TAOS_CFG_VTYPE_INT8
;
...
...
src/dnode/src/dnodeVnodes.c
浏览文件 @
43abbcbf
...
@@ -222,6 +222,17 @@ static void dnodeProcessStatusRsp(SRpcMsg *pMsg) {
...
@@ -222,6 +222,17 @@ static void dnodeProcessStatusRsp(SRpcMsg *pMsg) {
if
(
clusterId
[
0
]
!=
'\0'
)
{
if
(
clusterId
[
0
]
!=
'\0'
)
{
dnodeSetDropped
();
dnodeSetDropped
();
dError
(
"exit zombie dropped dnode"
);
dError
(
"exit zombie dropped dnode"
);
// warning: only for k8s!
while
(
tsDnodeNopLoop
)
{
dInfo
(
"Nop loop"
);
#ifdef WINDOWS
Sleep
(
100
);
#else
usleep
(
100000
);
#endif
}
exit
(
EXIT_FAILURE
);
exit
(
EXIT_FAILURE
);
}
}
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录