Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
慢慢CG
TDengine
提交
947ad27e
T
TDengine
项目概览
慢慢CG
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
947ad27e
编写于
8月 05, 2020
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/develop' into feature/os
上级
acdb8dca
a896c60f
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
52 addition
and
26 deletion
+52
-26
minidevops/run.sh
minidevops/run.sh
+6
-13
src/client/src/tscServer.c
src/client/src/tscServer.c
+2
-1
src/mnode/src/mnodeDnode.c
src/mnode/src/mnodeDnode.c
+44
-12
未找到文件。
minidevops/run.sh
浏览文件 @
947ad27e
#!/bin/bash
#set -x
LP
=
`
pwd
`
#echo $LP
docker
rm
-f
`
docker ps
-a
-q
`
docker network
rm
minidevops
docker network create
--ip-range
172.15.1.255/24
--subnet
172.15.1.1/16 minidevops
#docker run -d --net="host" --pid="host" -v "/:/host:ro" quay.io/prometheus/node-exporter --path.rootfs=/host
docker run
-d
--net
minidevops
--ip
172.15.1.11
-v
$LP
/grafana:/var/lib/grafana/plugins
-p
3000:3000 grafana/grafana
#docker run -d --net minidevops --ip 172.15.1.11 -v /Users/tom/Documents/minidevops/grafana:/var/lib/grafana/plugins -p 3000:3000 grafana/grafana
docker run
-d
--net
minidevops
--ip
172.15.1.11
-v
$(
pwd
)
/grafana:/var/lib/grafana/plugins
-p
3000:3000 grafana/grafana
TDENGINE
=
`
docker run
-d
--net
minidevops
--ip
172.15.1.6
-p
6030:6030
-p
6020:6020
-p
6031:6031
-p
6032:6032
-p
6033:6033
-p
6034:6034
-p
6035:6035
-p
6036:6036
-p
6037:6037
-p
6038:6038
-p
6039:6039
-p
6040:6040
-p
6041:6041
-h
'172.15.1.6'
tdengine/tdengine:2.0.0.0
`
docker
cp
/etc/localtime
$TDENGINE
:/etc/localtime
docker run
-d
--net
minidevops
--ip
172.15.1.6
-p
6030:6030
-p
6020:6020
-p
6031:6031
-p
6032:6032
-p
6033:6033
-p
6034:6034
-p
6035:6035
-p
6036:6036
-p
6037:6037
-p
6038:6038
-p
6039:6039
-p
6040:6040
-p
6041:6041
-h
'172.15.1.6'
tdengine/tdengine:2.0.0.0
BLMPROMETHEUS
=
`
docker run
-d
--net
minidevops
--ip
172.15.1.7
-v
$(
pwd
)
/taos:/etc/taos
-p
10203:10203 tdengine/blm_prometheus:2.0.0.0
-tdengine-name
172.15.1.6
-tdengine-api-port
6041
`
docker run
-d
--net
minidevops
--ip
172.15.1.7
-v
$(
pwd
)
/taos:/etc/taos
-p
10203:10203 tdengine/blm_prometheus:2.0.0.0
-tdengine-name
172.15.1.6
-tdengine-api-port
6041
BLMPTELEGRAF
=
`
docker run
-d
--net
minidevops
--ip
172.15.1.8
-p
10202:10202 tdengine/blm_telegraf:2.0.0.0
-host
172.15.1.6
`
docker run
-d
--net
minidevops
--ip
172.15.1.8
-p
10202:10202 tdengine/blm_telegraf:2.0.0.0
-host
172.15.1.6
docker run
-d
--net
minidevops
--ip
172.15.1.9
-v
$LP
/prometheus:/etc/prometheus
-p
9090:9090 prom/prometheus
#docker run -d --net minidevops --ip 172.15.1.9 -v /Users/tom/Documents/minidevops/prometheus:/etc/prometheus -p 9090:9090 prom/prometheus
docker run
-d
--net
minidevops
--ip
172.15.1.9
-v
$(
pwd
)
/prometheus:/etc/prometheus
-p
9090:9090 prom/prometheus
docker run
-d
--net
minidevops
--ip
172.15.1.10
-v
$LP
/telegraf:/etc/telegraf
-p
8092:8092
-p
8094:8094
-p
8125:8125 telegraf
#docker run -d --net minidevops --ip 172.15.1.10 -v /Users/tom/Documents/minidevops/telegraf:/etc/telegraf -p 8092:8092 -p 8094:8094 -p 8125:8125 telegraf
docker run
-d
--net
minidevops
--ip
172.15.1.10
-v
$(
pwd
)
/telegraf:/etc/telegraf
-p
8092:8092
-p
8094:8094
-p
8125:8125 telegraf
sleep
10
...
...
src/client/src/tscServer.c
浏览文件 @
947ad27e
...
...
@@ -1999,7 +1999,8 @@ int tscProcessUseDbRsp(SSqlObj *pSql) {
return
0
;
}
int
tscProcessDropDbRsp
(
SSqlObj
*
UNUSED_PARAM
(
pSql
))
{
int
tscProcessDropDbRsp
(
SSqlObj
*
pSql
)
{
pSql
->
pTscObj
->
db
[
0
]
=
0
;
taosCacheEmpty
(
tscCacheHandle
);
return
0
;
}
...
...
src/mnode/src/mnodeDnode.c
浏览文件 @
947ad27e
...
...
@@ -331,18 +331,50 @@ static void mnodeProcessCfgDnodeMsgRsp(SRpcMsg *rpcMsg) {
}
static
bool
mnodeCheckClusterCfgPara
(
const
SClusterCfg
*
clusterCfg
)
{
if
(
clusterCfg
->
numOfMnodes
!=
htonl
(
tsNumOfMnodes
))
return
false
;
if
(
clusterCfg
->
enableBalance
!=
htonl
(
tsEnableBalance
))
return
false
;
if
(
clusterCfg
->
mnodeEqualVnodeNum
!=
htonl
(
tsMnodeEqualVnodeNum
))
return
false
;
if
(
clusterCfg
->
offlineThreshold
!=
htonl
(
tsOfflineThreshold
))
return
false
;
if
(
clusterCfg
->
statusInterval
!=
htonl
(
tsStatusInterval
))
return
false
;
if
(
clusterCfg
->
maxtablesPerVnode
!=
htonl
(
tsMaxTablePerVnode
))
return
false
;
if
(
clusterCfg
->
maxVgroupsPerDb
!=
htonl
(
tsMaxVgroupsPerDb
))
return
false
;
if
(
0
!=
strncasecmp
(
clusterCfg
->
arbitrator
,
tsArbitrator
,
strlen
(
tsArbitrator
)))
return
false
;
if
(
0
!=
strncasecmp
(
clusterCfg
->
timezone
,
tsTimezone
,
strlen
(
tsTimezone
)))
return
false
;
if
(
0
!=
strncasecmp
(
clusterCfg
->
locale
,
tsLocale
,
strlen
(
tsLocale
)))
return
false
;
if
(
0
!=
strncasecmp
(
clusterCfg
->
charset
,
tsCharset
,
strlen
(
tsCharset
)))
return
false
;
if
(
clusterCfg
->
numOfMnodes
!=
htonl
(
tsNumOfMnodes
))
{
mError
(
"
\"
numOfMnodes
\"
[%d - %d] cfg parameters inconsistent"
,
clusterCfg
->
numOfMnodes
,
htonl
(
tsNumOfMnodes
));
return
false
;
}
if
(
clusterCfg
->
enableBalance
!=
htonl
(
tsEnableBalance
))
{
mError
(
"
\"
balance
\"
[%d - %d] cfg parameters inconsistent"
,
clusterCfg
->
enableBalance
,
htonl
(
tsEnableBalance
));
return
false
;
}
if
(
clusterCfg
->
mnodeEqualVnodeNum
!=
htonl
(
tsMnodeEqualVnodeNum
))
{
mError
(
"
\"
mnodeEqualVnodeNum
\"
[%d - %d] cfg parameters inconsistent"
,
clusterCfg
->
mnodeEqualVnodeNum
,
htonl
(
tsMnodeEqualVnodeNum
));
return
false
;
}
if
(
clusterCfg
->
offlineThreshold
!=
htonl
(
tsOfflineThreshold
))
{
mError
(
"
\"
offlineThreshold
\"
[%d - %d] cfg parameters inconsistent"
,
clusterCfg
->
offlineThreshold
,
htonl
(
tsOfflineThreshold
));
return
false
;
}
if
(
clusterCfg
->
statusInterval
!=
htonl
(
tsStatusInterval
))
{
mError
(
"
\"
statusInterval
\"
[%d - %d] cfg parameters inconsistent"
,
clusterCfg
->
statusInterval
,
htonl
(
tsStatusInterval
));
return
false
;
}
if
(
clusterCfg
->
maxtablesPerVnode
!=
htonl
(
tsMaxTablePerVnode
))
{
mError
(
"
\"
maxTablesPerVnode
\"
[%d - %d] cfg parameters inconsistent"
,
clusterCfg
->
maxtablesPerVnode
,
htonl
(
tsMaxTablePerVnode
));
return
false
;
}
if
(
clusterCfg
->
maxVgroupsPerDb
!=
htonl
(
tsMaxVgroupsPerDb
))
{
mError
(
"
\"
maxVgroupsPerDb
\"
[%d - %d] cfg parameters inconsistent"
,
clusterCfg
->
maxVgroupsPerDb
,
htonl
(
tsMaxVgroupsPerDb
));
return
false
;
}
if
(
0
!=
strncasecmp
(
clusterCfg
->
arbitrator
,
tsArbitrator
,
strlen
(
tsArbitrator
)))
{
mError
(
"
\"
arbitrator
\"
[%s - %s] cfg parameters inconsistent"
,
clusterCfg
->
arbitrator
,
tsArbitrator
);
return
false
;
}
if
(
0
!=
strncasecmp
(
clusterCfg
->
timezone
,
tsTimezone
,
strlen
(
tsTimezone
)))
{
mError
(
"
\"
timezone
\"
[%s - %s] cfg parameters inconsistent"
,
clusterCfg
->
timezone
,
tsTimezone
);
return
false
;
}
if
(
0
!=
strncasecmp
(
clusterCfg
->
locale
,
tsLocale
,
strlen
(
tsLocale
)))
{
mError
(
"
\"
locale
\"
[%s - %s] cfg parameters inconsistent"
,
clusterCfg
->
locale
,
tsLocale
);
return
false
;
}
if
(
0
!=
strncasecmp
(
clusterCfg
->
charset
,
tsCharset
,
strlen
(
tsCharset
)))
{
mError
(
"
\"
charset
\"
[%s - %s] cfg parameters inconsistent."
,
clusterCfg
->
charset
,
tsCharset
);
return
false
;
}
return
true
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录