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>
```
json
{
"filetype"
:
"insert"
,
"cfgdir"
:
"/etc/taos"
,
"host"
:
"127.0.0.1"
,
"port"
:
6030
,
"user"
:
"root"
,
"password"
:
"taosdata"
,
"connection_pool_size"
:
8
,
"thread_count"
:
4
,
"result_file"
:
"./insert_res.txt"
,
"confirm_parameter_prompt"
:
"no"
,
"insert_interval"
:
0
,
"interlace_rows"
:
100
,
"num_of_records_per_req"
:
100
,
"prepared_rand"
:
10000
,
"chinese"
:
"no"
,
"databases"
:
[
{
"dbinfo"
:
{
"name"
:
"db"
,
"drop"
:
"yes"
,
"replica"
:
1
,
"days"
:
10
,
"cache"
:
16
,
"blocks"
:
8
,
"precision"
:
"ms"
,
"keep"
:
3650
,
"minRows"
:
100
,
"maxRows"
:
4096
,
"comp"
:
2
,
"walLevel"
:
1
,
"cachelast"
:
0
,
"quorum"
:
1
,
"fsync"
:
3000
,
"update"
:
0
},
"super_tables"
:
[
{
"name"
:
"stb"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
100
,
"childtable_prefix"
:
"stb_"
,
"escape_character"
:
"yes"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
5
,
"data_source"
:
"rand"
,
"insert_mode"
:
"taosc"
,
"non_stop_mode"
:
"no"
,
"line_protocol"
:
"line"
,
"insert_rows"
:
100000
,
"childtable_limit"
:
10
,
"childtable_offset"
:
100
,
"interlace_rows"
:
0
,
"insert_interval"
:
0
,
"partial_col_num"
:
0
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
10
,
"start_timestamp"
:
"2020-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"use_sample_ts"
:
"no"
,
"tags_file"
:
""
,
"columns"
:
[
{
"type"
:
"INT"
,
"name"
:
"id"
},
{
"type"
:
"DOUBLE"
,
"count"
:
10
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
3
},
{
"type"
:
"BINARY"
,
"len"
:
32
,
"count"
:
6
}
],
"tags"
:
[
{
"type"
:
"TINYINT"
,
"count"
:
2
,
"max"
:
10
,
"min"
:
98
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
5
,
"values"
:
[
"beijing"
,
"shanghai"
]
}
]
}
]
}
]
"filetype"
:
"insert"
,
"cfgdir"
:
"/etc/taos"
,
"host"
:
"127.0.0.1"
,
"port"
:
6030
,
"user"
:
"root"
,
"password"
:
"taosdata"
,
"connection_pool_size"
:
8
,
"thread_count"
:
4
,
"result_file"
:
"./insert_res.txt"
,
"confirm_parameter_prompt"
:
"no"
,
"insert_interval"
:
0
,
"interlace_rows"
:
100
,
"num_of_records_per_req"
:
100
,
"prepared_rand"
:
10000
,
"chinese"
:
"no"
,
"databases"
:
[
{
"dbinfo"
:
{
"name"
:
"db"
,
"drop"
:
"yes"
,
"replica"
:
1
,
"days"
:
10
,
"cache"
:
16
,
"blocks"
:
8
,
"precision"
:
"ms"
,
"keep"
:
3650
,
"minRows"
:
100
,
"maxRows"
:
4096
,
"comp"
:
2
,
"walLevel"
:
1
,
"cachelast"
:
0
,
"quorum"
:
1
,
"fsync"
:
3000
,
"update"
:
0
},
"super_tables"
:
[
{
"name"
:
"stb"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
100
,
"childtable_prefix"
:
"stb_"
,
"escape_character"
:
"yes"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
5
,
"data_source"
:
"rand"
,
"insert_mode"
:
"taosc"
,
"non_stop_mode"
:
"no"
,
"line_protocol"
:
"line"
,
"insert_rows"
:
100000
,
"childtable_limit"
:
10
,
"childtable_offset"
:
100
,
"interlace_rows"
:
0
,
"insert_interval"
:
0
,
"partial_col_num"
:
0
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
10
,
"start_timestamp"
:
"2020-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"use_sample_ts"
:
"no"
,
"tags_file"
:
""
,
"columns"
:
[
{
"type"
:
"INT"
,
"name"
:
"id"
},
{
"type"
:
"DOUBLE"
,
"count"
:
10
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
3
},
{
"type"
:
"BINARY"
,
"len"
:
32
,
"count"
:
6
}
],
"tags"
:
[
{
"type"
:
"TINYINT"
,
"count"
:
2
,
"max"
:
10
,
"min"
:
98
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
5
,
"values"
:
[
"beijing"
,
"shanghai"
]
}
]
}
]
}
]
}
```
...
...
@@ -158,41 +158,41 @@ taosBenchmark -f <json file>
```
json
{
"filetype"
:
"query"
,
"cfgdir"
:
"/etc/taos"
,
"host"
:
"127.0.0.1"
,
"port"
:
6030
,
"user"
:
"root"
,
"password"
:
"taosdata"
,
"confirm_parameter_prompt"
:
"no"
,
"databases"
:
"db"
,
"query_times"
:
2
,
"query_mode"
:
"taosc"
,
"specified_table_query"
:
{
"query_interval"
:
1
,
"concurrent"
:
3
,
"sqls"
:
[
{
"sql"
:
"select last_row(*) from stb0 "
,
"result"
:
"./query_res0.txt"
},
{
"sql"
:
"select count(*) from stb00_1"
,
"result"
:
"./query_res1.txt"
}
]
},
"super_table_query"
:
{
"stblname"
:
"stb1"
,
"query_interval"
:
1
,
"threads"
:
3
,
"sqls"
:
[
{
"sql"
:
"select last_row(ts) from xxxx"
,
"result"
:
"./query_res2.txt"
}
]
}
"filetype"
:
"query"
,
"cfgdir"
:
"/etc/taos"
,
"host"
:
"127.0.0.1"
,
"port"
:
6030
,
"user"
:
"root"
,
"password"
:
"taosdata"
,
"confirm_parameter_prompt"
:
"no"
,
"databases"
:
"db"
,
"query_times"
:
2
,
"query_mode"
:
"taosc"
,
"specified_table_query"
:
{
"query_interval"
:
1
,
"concurrent"
:
3
,
"sqls"
:
[
{
"sql"
:
"select last_row(*) from stb0 "
,
"result"
:
"./query_res0.txt"
},
{
"sql"
:
"select count(*) from stb00_1"
,
"result"
:
"./query_res1.txt"
}
]
},
"super_table_query"
:
{
"stblname"
:
"stb1"
,
"query_interval"
:
1
,
"threads"
:
3
,
"sqls"
:
[
{
"sql"
:
"select last_row(ts) from xxxx"
,
"result"
:
"./query_res2.txt"
}
]
}
}
```
...
...
@@ -205,39 +205,39 @@ taosBenchmark -f <json file>
```
json
{
"filetype"
:
"subscribe"
,
"cfgdir"
:
"/etc/taos"
,
"host"
:
"127.0.0.1"
,
"port"
:
6030
,
"user"
:
"root"
,
"password"
:
"taosdata"
,
"databases"
:
"db"
,
"confirm_parameter_prompt"
:
"no"
,
"specified_table_query"
:
{
"concurrent"
:
1
,
"interval"
:
0
,
"restart"
:
"yes"
,
"keepProgress"
:
"yes"
,
"sqls"
:
[
{
"sql"
:
"select * from stb00_0 ;"
,
"result"
:
"./subscribe_res0.txt"
}
]
},
"super_table_query"
:
{
"stblname"
:
"stb0"
,
"threads"
:
1
,
"interval"
:
10000
,
"restart"
:
"yes"
,
"keepProgress"
:
"yes"
,
"sqls"
:
[
{
"sql"
:
"select * from xxxx where ts > '2021-02-25 11:35:00.000' ;"
,
"result"
:
"./subscribe_res1.txt"
}
]
}
"filetype"
:
"subscribe"
,
"cfgdir"
:
"/etc/taos"
,
"host"
:
"127.0.0.1"
,
"port"
:
6030
,
"user"
:
"root"
,
"password"
:
"taosdata"
,
"databases"
:
"db"
,
"confirm_parameter_prompt"
:
"no"
,
"specified_table_query"
:
{
"concurrent"
:
1
,
"interval"
:
0
,
"restart"
:
"yes"
,
"keepProgress"
:
"yes"
,
"sqls"
:
[
{
"sql"
:
"select * from stb00_0 ;"
,
"result"
:
"./subscribe_res0.txt"
}
]
},
"super_table_query"
:
{
"stblname"
:
"stb0"
,
"threads"
:
1
,
"interval"
:
10000
,
"restart"
:
"yes"
,
"keepProgress"
:
"yes"
,
"sqls"
:
[
{
"sql"
:
"select * from xxxx where ts > '2021-02-25 11:35:00.000' ;"
,
"result"
:
"./subscribe_res1.txt"
}
]
}
}
```
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录