Skip to content

Commit

Permalink
change default config value (#371)
Browse files Browse the repository at this point in the history
* change default config value

* spotless
  • Loading branch information
l2280212 committed Sep 7, 2023
1 parent b6103ab commit 38f4a44
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion configuration/conf/config.properties
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@

############## 被测系统为Influxdb 2.x时扩展参数 ########
# influxdb ORG名
# INFLUXDB_ORG=admin
# INFLUXDB_ORG=company1

################### 操作时间配置 #########################
# 时间戳间隔,即生成的数据两个时间戳之间的固定长度(如果定长生成),非正常速率
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public class Config {

// 被测试系统是Influxdb2.x时的参数
/** the org name of influxdb */
private String INFLUXDB_ORG = "admin";
private String INFLUXDB_ORG = "company1";

// Operation 相关参数
/**
Expand Down
12 changes: 6 additions & 6 deletions influxdb-2.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ Notice, default config of influxdb2 is not support too many write in a short tim
1. visit http://{ip}:8086/ to set up user
1. username: admin
2. password: 12345678
3. org: admin
4. bucket: admin

3. Initial Organization Name: company1
4. Initial Bucket Name: test
![img.png](https://github.com/thulab/iot-benchmark/assets/38746920/cc6612a5-8a42-4e21-a609-c80e632da1fc)
# config
1. This is [Demo config](config.properties)
2. This is [config.yaml for InfluxDB v2.0](config.yaml), more details: https://docs.influxdata.com/influxdb/v2.7/reference/config-options/
Expand All @@ -23,9 +23,9 @@ Notice, default config of influxdb2 is not support too many write in a short tim
2. PORT=8086
3. USERNAME=admin(same with username in http://{ip}:8086/)
4. PASSWORD=12345678(same with password in http://{ip}:8086/)
5. DB_NAME=admin(same with bucket in http://{ip}:8086/)
6. INFLUXDB_ORG=admin(same with org in http://{ip}:8086/)
7. TOKEN(can be found at http://{ip}:8086/) .
5. DB_NAME=test(same with Initial Bucket Name in http://{ip}:8086/)
6. INFLUXDB_ORG=company1(same with Initial Organization Name in http://{ip}:8086/)
7. TOKEN(can be found at http://{ip}:8086/)
![image](https://user-images.githubusercontent.com/34939716/149779954-29d9485d-d750-4313-ab45-2e4aaff9c7e8.png)
![image](https://user-images.githubusercontent.com/34939716/149780004-fc430061-5e4a-4ea2-8cbc-730cb6e518e0.png)

Expand Down
6 changes: 3 additions & 3 deletions influxdb-2.0/config.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ HOST=127.0.0.1
# 端口列表,需要和HOST数量一致,保持一一对应。如果有多个端口则使用英文逗号进行分割。
PORT=8086
# 所有被测数据库的用户名,如果为多个数据库,则要求保持一致
USERNAME=root
USERNAME=admin
# 所有被测数据库的密码,如果为多个数据库,则要求保持一致
PASSWORD=root
PASSWORD=12345678
# 即将被测试写入的数据库的名称
DB_NAME=test
# 数据库连接认证Token,InfluxDB 2.0使用
TOKEN=token

############## 被测系统为Influxdb 2.x时扩展参数 ########
# influxdb ORG名
INFLUXDB_ORG=admin
INFLUXDB_ORG=company1

0 comments on commit 38f4a44

Please sign in to comment.