提交 a6b5c4ec 编写于 作者: P Ping Xiao

[TD-6295]<test>: Update performace test script for perfMonitor

上级 ceeb22d6
...@@ -49,24 +49,18 @@ class taosdemoPerformace: ...@@ -49,24 +49,18 @@ class taosdemoPerformace:
def generateJson(self): def generateJson(self):
db = { db = {
"name": "%s" % self.insertDB, "name": "%s" % self.insertDB,
"drop": "yes", "drop": "yes"
"replica": 1
} }
stb = { stb = {
"name": "meters", "name": "meters",
"child_table_exists": "no",
"childtable_count": self.numOfTables, "childtable_count": self.numOfTables,
"childtable_prefix": "stb_", "childtable_prefix": "stb_",
"auto_create_table": "no",
"data_source": "rand",
"batch_create_tbl_num": 10, "batch_create_tbl_num": 10,
"insert_mode": "taosc", "insert_mode": "rand",
"insert_rows": self.numOfRows, "insert_rows": self.numOfRows,
"interlace_rows": 0, "batch_rows": 1000000,
"max_sql_len": 1024000, "max_sql_len": 1048576,
"disorder_ratio": 0,
"disorder_range": 1000,
"timestamp_step": 1, "timestamp_step": 1,
"start_timestamp": "2020-10-01 00:00:00.000", "start_timestamp": "2020-10-01 00:00:00.000",
"sample_format": "csv", "sample_format": "csv",
...@@ -100,11 +94,8 @@ class taosdemoPerformace: ...@@ -100,11 +94,8 @@ class taosdemoPerformace:
"user": "root", "user": "root",
"password": "taosdata", "password": "taosdata",
"thread_count": 10, "thread_count": 10,
"thread_count_create_tbl": 10, "thread_count_create_tbl": 4,
"result_file": "./insert_res.txt", "result_file": "./insert_res.txt",
"confirm_parameter_prompt": "no",
"insert_interval": 0,
"num_of_records_per_req": 30000,
"databases": [db] "databases": [db]
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册