这是10线程在执行插入操作
{
"filetype": "insert",
"cfgdir": "/etc/taos",
"host": "127.0.0.1",
"port": 6030,
"user": "root",
"password": "taosdata",
"thread_count": 10,
"create_table_thread_count": 10,
"confirm_parameter_prompt": "no",
"num_of_records_per_req": 10000,
"prepared_rand": 10000,
"chinese": "no",
"escape_character": "yes",
"continue_if_fail": "no",
"databases": [
{
"dbinfo": {
"name": "vehicle_db",
"drop": "yes",
"vgroups": 4,
"precision": "ms"
},
"super_tables": [
{
"name": "vehicle_data",
"child_table_exists": "no",
"childtable_count": 100000,
"childtable_prefix": "v",
"auto_create_table": "yes",
"batch_create_tbl_num": 100,
"data_source": "rand",
"insert_mode": "taosc",
"non_stop_mode": "no",
"line_protocol": "line",
"insert_rows": 10000,
"childtable_limit": 0,
"childtable_offset": 0,
"interlace_rows": 0,
"insert_interval": 0,
"partial_col_num": 0,
"timestamp_step": 1000,
"start_timestamp": "2025-01-01 00:00:00.000",
"sample_format": "csv",
"sample_file": "./sample.csv",
"use_sample_ts": "no",
"tags_file": "",
"columns": [
{
"type": "TIMESTAMP",
"count": 1
},
{
"type": "FLOAT",
"name": "speed",
"count": 1,
"min": 0,
"max": 120
},
{
"type": "INT",
"name": "direction",
"count": 1,
"min": 0,
"max": 359
},
{
"type": "FLOAT",
"name": "altitude",
"count": 1,
"min": 0,
"max": 5000
},
{
"type": "FLOAT",
"name": "fuel",
"count": 1,
"min": 0,
"max": 100
},
{
"type": "TINYINT",
"name": "status",
"count": 1,
"min": 0,
"max": 2
}
],
"tags": [
{
"type": "BINARY",
"name": "vehicle_id",
"len": 20
},
{
"type": "BINARY",
"name": "vehicle_type",
"len": 10,
"values": [
"car",
"truck",
"bus"
]
},
{
"type": "BINARY",
"name": "region",
"len": 10,
"values": [
"north",
"south",
"east",
"west"
]
}
]
}
]
}
]
}