You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. The corresponding appropriate version of the database, such as Apache IoTDB 2.0
61
62
62
-
####**How to Obtain**
63
+
###2.2**How to Obtain**
63
64
64
65
-**B****inary package****:** Visit https://github.com/thulab/iot-benchmark/releases to download the installation package. Extract the compressed file into a desired folder for use.
-**Compile the latest IoTDB Session package:** Download the IoTDB source code from https://github.com/apache/iotdb/tree/rc/2.0.1 and run the following command in the root directory to compile the latest IoTDB Session package:
69
+
-**Compile the latest IoTDB Session package:** Download the IoTDB source code from https://github.com/apache/iotdb/tree/rc/2.0.5 and run the following command in the root directory to compile the latest IoTDB Session package:
- **Compile the IoT-benchmark test package:** Download the source code from https://github.com/thulab/iot-benchmark and run the following commandin the root directory to compile the Apache IoTDB 2.0 test package:.
75
+
- **Compile the IoT-benchmark test package:** Download the source code from https://github.com/thulab/iot-benchmark and run the following commandin the root directory to compile the Apache IoTDB 2.0 test package:.
The directory structure of the test package is shown below. The test configuration file is `conf/config.properties`, and the test startup scripts are `benchmark.sh` (Linux & MacOS) and `benchmark.bat` (Windows). The detailed usage of the files is shown in the table below.
1. Modify the configuration file (conf/config.properties) according to test requirements. For example, to test Apache IoTDB 2.0, set the following parameter:
4. Upon completion, review the results and analyze the test process.
129
130
130
-
####
131
-
132
-
#### **Results Interpretation**
131
+
### 2.5 **Results Interpretation**
133
132
134
133
All test log files are stored in the `logs` folder, whiletest results are saved in the `data/csvOutput` folder. For example, the following result matrix illustrates the test outcome:
135
134
@@ -147,16 +146,14 @@ All test log files are stored in the `logs` folder, while test results are saved
147
146
148
147
## 3. **Main** **Parameters**
149
148
150
-
#### IoTDB Service Model
149
+
### 3.1 IoTDB Service Model
151
150
152
151
The `IoTDB_DIALECT_MODE` parameter supports two modes: `tree` and `table`. The default value is `tree`.
153
152
154
153
- **For IoTDB 2.0 and later versions**, the `IoTDB_DIALECT_MODE` parameter must be specified, and only one mode can be setfor each IoTDB instance.
155
154
- **IoTDB_DIALECT_MODE = table:**
156
155
- The number of devices must be an integer multiple of the number of tables.
157
156
- The number of tables must be an integer multiple of the number of databases.
158
-
- **IoTDB_DIALECT_MODE = tree:**
159
-
- The number of devices must be greater than or equal to the number of databases.
160
157
161
158
Key Parameters for IoTDB Service Model
162
159
@@ -167,7 +164,7 @@ Key Parameters for IoTDB Service Model
167
164
| SENSOR_NUMBER | Integer |`10`| Controls the number of attribute columns in the table model. |
168
165
| IoTDB_TABLE_NUMBER | Integer |`1`| Specifies the number of tables when using the table model. |
169
166
170
-
#### **Working** **M****ode**
167
+
### 3.2 **Working** **Mode**
171
168
172
169
The `BENCHMARK_WORK_MODE` parameter supports four operational modes:
173
170
@@ -185,7 +182,7 @@ Mode configurations are shown in the following below:
185
182
| Single database correctness write mode | verificationWriteMode | Writes datasets for correctness verification. |`FILE_PATH` and `DATA_SET`|
186
183
| Single database correctness query mode | verificationQueryMode | Queries datasets to verify correctness. |`FILE_PATH` and `DATA_SET`|
187
184
188
-
#### **Server** **Connection** **Information**
185
+
### 3.3 **Server** **Connection** **Information**
189
186
190
187
Once the working mode is specified, the following parameters must be configured to inform IoT-benchmark of the target time-series database:
191
188
@@ -199,7 +196,7 @@ Once the working mode is specified, the following parameters must be configured
199
196
| DB_NAME | String |`test`| Name of the target time-series database. |
@@ -217,7 +214,7 @@ Once the working mode is specified, the following parameters must be configured
217
214
| LOOP | Integer |`86400`| Total number of write operations: Each type of operation will be divided according to the proportion defined by `OPERATION_PROPORTION`|
218
215
| OPERATION_PROPORTION | Character |`1:0:0:0:0:0:0:0:0:0:0`| Ratio of operation types (write:Q1:Q2:...:Q10). |
@@ -231,7 +228,7 @@ Once the working mode is specified, the following parameters must be configured
231
228
| LOOP | Integer |`10`| Total number of query operations: Each type of operation will be divided according to the proportion defined by `OPERATION_PROPORTION`|
232
229
| OPERATION_PROPORTION | Character |`0:0:0:0:0:0:0:0:0:0:1`| Ratio of operation types (`write:Q1:Q2:...:Q10`). |
@@ -246,7 +243,7 @@ Once the working mode is specified, the following parameters must be configured
246
243
| Q9 | Descending Range Query |`select v1 from root.sg.d1 where time>? and time<? order by time desc`|
247
244
| Q10 | Descending Range with Filter |`select v1 from root.sg.d1 where time>? and time<? and v1 >? order by time desc`|
248
245
249
-
#### **Test process and test result persistence**
246
+
### 3.7 **Test process and test result persistence**
250
247
251
248
IoT-benchmark currently supports persisting the test process and test results through configuration parameters.
252
249
@@ -279,9 +276,9 @@ IoT-benchmark currently supports persisting the test process and test results th
279
276
2. Stores the test results after test completion.
280
277
3. Created if it does not exist.
281
278
282
-
#### Automation Script
279
+
### 3.8 Automation Script
283
280
284
-
##### One-Click Script Startup
281
+
#### One-Click Script Startup
285
282
286
283
The `cli-benchmark.sh` script allows one-click startup of IoTDB, IoTDB Benchmark monitoring, and IoTDB Benchmark testing. However, please note that this script will clear all existing data in IoTDB during startup, so use it with caution.
287
284
@@ -298,7 +295,7 @@ The `cli-benchmark.sh` script allows one-click startup of IoTDB, IoTDB Benchmark
298
295
1. Check test-related logs in the `logs` folder.
299
296
2. Check monitoring-related logs in the `server-logs` folder.
300
297
301
-
##### Automatic Execution of Multiple Tests
298
+
#### Automatic Execution of Multiple Tests
302
299
303
300
Single tests are often insufficient without comparative results. Therefore, IoT-benchmark provides an interface forexecuting multiple testsin sequence.
304
301
@@ -328,13 +325,13 @@ Then the test process with 3 LOOP parameters of 10, 20, and 50 is executed in se
328
325
329
326
- Changed parameters persist across subsequent tests unless explicitly reset.
330
327
331
-
1. **Start the Test:** After configuring the `routine` file, start multi-test execution using the following command
328
+
2. **Start the Test:** After configuring the `routine` file, start multi-test execution using the following command
332
329
333
330
```Bash
334
331
> ./rep-benchmark.sh
335
332
```
336
333
337
-
2. Test results will be displayed in the terminal.
0 commit comments