提交 5526997d 编写于 作者: G gccgdb1234

docs: refine format of taosBenchmark page

上级 450e6726
...@@ -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.
先完成此消息的编辑!
想要评论请 注册