Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
5526997d
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
5526997d
编写于
4月 22, 2022
作者:
G
gccgdb1234
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
docs: refine format of taosBenchmark page
上级
450e6726
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
149 addition
and
149 deletion
+149
-149
docs-cn/14-reference/05-taosbenchmark.md
docs-cn/14-reference/05-taosbenchmark.md
+149
-149
未找到文件。
docs-cn/14-reference/05-taosbenchmark.md
浏览文件 @
5526997d
...
@@ -65,87 +65,87 @@ taosBenchmark -f <json file>
...
@@ -65,87 +65,87 @@ taosBenchmark -f <json file>
```
json
```
json
{
{
"filetype"
:
"insert"
,
"filetype"
:
"insert"
,
"cfgdir"
:
"/etc/taos"
,
"cfgdir"
:
"/etc/taos"
,
"host"
:
"127.0.0.1"
,
"host"
:
"127.0.0.1"
,
"port"
:
6030
,
"port"
:
6030
,
"user"
:
"root"
,
"user"
:
"root"
,
"password"
:
"taosdata"
,
"password"
:
"taosdata"
,
"connection_pool_size"
:
8
,
"connection_pool_size"
:
8
,
"thread_count"
:
4
,
"thread_count"
:
4
,
"result_file"
:
"./insert_res.txt"
,
"result_file"
:
"./insert_res.txt"
,
"confirm_parameter_prompt"
:
"no"
,
"confirm_parameter_prompt"
:
"no"
,
"insert_interval"
:
0
,
"insert_interval"
:
0
,
"interlace_rows"
:
100
,
"interlace_rows"
:
100
,
"num_of_records_per_req"
:
100
,
"num_of_records_per_req"
:
100
,
"prepared_rand"
:
10000
,
"prepared_rand"
:
10000
,
"chinese"
:
"no"
,
"chinese"
:
"no"
,
"databases"
:
[
"databases"
:
[
{
{
"dbinfo"
:
{
"dbinfo"
:
{
"name"
:
"db"
,
"name"
:
"db"
,
"drop"
:
"yes"
,
"drop"
:
"yes"
,
"replica"
:
1
,
"replica"
:
1
,
"days"
:
10
,
"days"
:
10
,
"cache"
:
16
,
"cache"
:
16
,
"blocks"
:
8
,
"blocks"
:
8
,
"precision"
:
"ms"
,
"precision"
:
"ms"
,
"keep"
:
3650
,
"keep"
:
3650
,
"minRows"
:
100
,
"minRows"
:
100
,
"maxRows"
:
4096
,
"maxRows"
:
4096
,
"comp"
:
2
,
"comp"
:
2
,
"walLevel"
:
1
,
"walLevel"
:
1
,
"cachelast"
:
0
,
"cachelast"
:
0
,
"quorum"
:
1
,
"quorum"
:
1
,
"fsync"
:
3000
,
"fsync"
:
3000
,
"update"
:
0
"update"
:
0
},
},
"super_tables"
:
[
"super_tables"
:
[
{
{
"name"
:
"stb"
,
"name"
:
"stb"
,
"child_table_exists"
:
"no"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
100
,
"childtable_count"
:
100
,
"childtable_prefix"
:
"stb_"
,
"childtable_prefix"
:
"stb_"
,
"escape_character"
:
"yes"
,
"escape_character"
:
"yes"
,
"auto_create_table"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
5
,
"batch_create_tbl_num"
:
5
,
"data_source"
:
"rand"
,
"data_source"
:
"rand"
,
"insert_mode"
:
"taosc"
,
"insert_mode"
:
"taosc"
,
"non_stop_mode"
:
"no"
,
"non_stop_mode"
:
"no"
,
"line_protocol"
:
"line"
,
"line_protocol"
:
"line"
,
"insert_rows"
:
100000
,
"insert_rows"
:
100000
,
"childtable_limit"
:
10
,
"childtable_limit"
:
10
,
"childtable_offset"
:
100
,
"childtable_offset"
:
100
,
"interlace_rows"
:
0
,
"interlace_rows"
:
0
,
"insert_interval"
:
0
,
"insert_interval"
:
0
,
"partial_col_num"
:
0
,
"partial_col_num"
:
0
,
"disorder_ratio"
:
0
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"disorder_range"
:
1000
,
"timestamp_step"
:
10
,
"timestamp_step"
:
10
,
"start_timestamp"
:
"2020-10-01 00:00:00.000"
,
"start_timestamp"
:
"2020-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"sample_file"
:
"./sample.csv"
,
"use_sample_ts"
:
"no"
,
"use_sample_ts"
:
"no"
,
"tags_file"
:
""
,
"tags_file"
:
""
,
"columns"
:
[
"columns"
:
[
{
"type"
:
"INT"
,
"name"
:
"id"
},
{
"type"
:
"INT"
,
"name"
:
"id"
},
{
"type"
:
"DOUBLE"
,
"count"
:
10
},
{
"type"
:
"DOUBLE"
,
"count"
:
10
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
3
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
3
},
{
"type"
:
"BINARY"
,
"len"
:
32
,
"count"
:
6
}
{
"type"
:
"BINARY"
,
"len"
:
32
,
"count"
:
6
}
],
],
"tags"
:
[
"tags"
:
[
{
"type"
:
"TINYINT"
,
"count"
:
2
,
"max"
:
10
,
"min"
:
98
},
{
"type"
:
"TINYINT"
,
"count"
:
2
,
"max"
:
10
,
"min"
:
98
},
{
{
"type"
:
"BINARY"
,
"type"
:
"BINARY"
,
"len"
:
16
,
"len"
:
16
,
"count"
:
5
,
"count"
:
5
,
"values"
:
[
"beijing"
,
"shanghai"
]
"values"
:
[
"beijing"
,
"shanghai"
]
}
}
]
]
}
}
]
]
}
}
]
]
}
}
```
```
...
@@ -158,41 +158,41 @@ taosBenchmark -f <json file>
...
@@ -158,41 +158,41 @@ taosBenchmark -f <json file>
```
json
```
json
{
{
"filetype"
:
"query"
,
"filetype"
:
"query"
,
"cfgdir"
:
"/etc/taos"
,
"cfgdir"
:
"/etc/taos"
,
"host"
:
"127.0.0.1"
,
"host"
:
"127.0.0.1"
,
"port"
:
6030
,
"port"
:
6030
,
"user"
:
"root"
,
"user"
:
"root"
,
"password"
:
"taosdata"
,
"password"
:
"taosdata"
,
"confirm_parameter_prompt"
:
"no"
,
"confirm_parameter_prompt"
:
"no"
,
"databases"
:
"db"
,
"databases"
:
"db"
,
"query_times"
:
2
,
"query_times"
:
2
,
"query_mode"
:
"taosc"
,
"query_mode"
:
"taosc"
,
"specified_table_query"
:
{
"specified_table_query"
:
{
"query_interval"
:
1
,
"query_interval"
:
1
,
"concurrent"
:
3
,
"concurrent"
:
3
,
"sqls"
:
[
"sqls"
:
[
{
{
"sql"
:
"select last_row(*) from stb0 "
,
"sql"
:
"select last_row(*) from stb0 "
,
"result"
:
"./query_res0.txt"
"result"
:
"./query_res0.txt"
},
},
{
{
"sql"
:
"select count(*) from stb00_1"
,
"sql"
:
"select count(*) from stb00_1"
,
"result"
:
"./query_res1.txt"
"result"
:
"./query_res1.txt"
}
}
]
]
},
},
"super_table_query"
:
{
"super_table_query"
:
{
"stblname"
:
"stb1"
,
"stblname"
:
"stb1"
,
"query_interval"
:
1
,
"query_interval"
:
1
,
"threads"
:
3
,
"threads"
:
3
,
"sqls"
:
[
"sqls"
:
[
{
{
"sql"
:
"select last_row(ts) from xxxx"
,
"sql"
:
"select last_row(ts) from xxxx"
,
"result"
:
"./query_res2.txt"
"result"
:
"./query_res2.txt"
}
}
]
]
}
}
}
}
```
```
...
@@ -205,39 +205,39 @@ taosBenchmark -f <json file>
...
@@ -205,39 +205,39 @@ taosBenchmark -f <json file>
```
json
```
json
{
{
"filetype"
:
"subscribe"
,
"filetype"
:
"subscribe"
,
"cfgdir"
:
"/etc/taos"
,
"cfgdir"
:
"/etc/taos"
,
"host"
:
"127.0.0.1"
,
"host"
:
"127.0.0.1"
,
"port"
:
6030
,
"port"
:
6030
,
"user"
:
"root"
,
"user"
:
"root"
,
"password"
:
"taosdata"
,
"password"
:
"taosdata"
,
"databases"
:
"db"
,
"databases"
:
"db"
,
"confirm_parameter_prompt"
:
"no"
,
"confirm_parameter_prompt"
:
"no"
,
"specified_table_query"
:
{
"specified_table_query"
:
{
"concurrent"
:
1
,
"concurrent"
:
1
,
"interval"
:
0
,
"interval"
:
0
,
"restart"
:
"yes"
,
"restart"
:
"yes"
,
"keepProgress"
:
"yes"
,
"keepProgress"
:
"yes"
,
"sqls"
:
[
"sqls"
:
[
{
{
"sql"
:
"select * from stb00_0 ;"
,
"sql"
:
"select * from stb00_0 ;"
,
"result"
:
"./subscribe_res0.txt"
"result"
:
"./subscribe_res0.txt"
}
}
]
]
},
},
"super_table_query"
:
{
"super_table_query"
:
{
"stblname"
:
"stb0"
,
"stblname"
:
"stb0"
,
"threads"
:
1
,
"threads"
:
1
,
"interval"
:
10000
,
"interval"
:
10000
,
"restart"
:
"yes"
,
"restart"
:
"yes"
,
"keepProgress"
:
"yes"
,
"keepProgress"
:
"yes"
,
"sqls"
:
[
"sqls"
:
[
{
{
"sql"
:
"select * from xxxx where ts > '2021-02-25 11:35:00.000' ;"
,
"sql"
:
"select * from xxxx where ts > '2021-02-25 11:35:00.000' ;"
,
"result"
:
"./subscribe_res1.txt"
"result"
:
"./subscribe_res1.txt"
}
}
]
]
}
}
}
}
```
```
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录