Refactor application configuration #40
This commit is contained in:
parent
e792a8427c
commit
73a399f426
@ -91,7 +91,7 @@ Run the following command:
|
||||
| MYSQL_MASTER_SERVICE_PASSWORD | password of master database | |
|
||||
| MYSQL_SLAVE_SERVICE_HOST | mysql slave host | |
|
||||
| MYSQL_SLAVE_SERVICE_PORT | mysql slave database port | default :3306 |
|
||||
|
||||
| MYSQL_DATABASE_NUM | It indicates the number of database | default :2 |
|
||||
## Nacos + Grafana + Prometheus
|
||||
Usage reference:[Nacos monitor-guide](https://nacos.io/zh-cn/docs/monitor-guide.html)
|
||||
|
||||
|
@ -7,7 +7,7 @@ nacos.cmdb.dumpTaskInterval=3600
|
||||
nacos.cmdb.eventTaskInterval=10
|
||||
nacos.cmdb.labelTaskInterval=300
|
||||
nacos.cmdb.loadDataAtStart=false
|
||||
db.num=2
|
||||
db.num=${MYSQL_DATABASE_NUM:2}
|
||||
db.url.0=jdbc:mysql://${MYSQL_MASTER_SERVICE_HOST}:${MYSQL_MASTER_SERVICE_PORT:3306}/${MYSQL_MASTER_SERVICE_DB_NAME}?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true
|
||||
db.url.1=jdbc:mysql://${MYSQL_SLAVE_SERVICE_HOST}:${MYSQL_SLAVE_SERVICE_PORT:3306}/${MYSQL_MASTER_SERVICE_DB_NAME}?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true
|
||||
db.user=${MYSQL_MASTER_SERVICE_USER}
|
||||
|
Loading…
Reference in New Issue
Block a user