Przeglądaj źródła

调整数据库配置

tobey 2 lat temu
rodzic
commit
60c6f14220
1 zmienionych plików z 12 dodań i 21 usunięć
  1. 12 21
      bem-center-monitor-service.yml

+ 12 - 21
bem-center-monitor-service.yml

@@ -1,18 +1,17 @@
 spring:
   datasource:
-    name: mydb
-    url: ${public.datasource.parkdb.url}
-    username: ${public.datasource.parkdb.center-monitor-service.username}
-    password: ${public.datasource.parkdb.center-monitor-service.password}
-    # 使用druid数据源
-    type: com.alibaba.druid.pool.DruidDataSource
-    driver-class-name: com.mysql.jdbc.Driver
     druid:
+      name: mydb
+      url: ${public.datasource.parkdb.url}
+      username: ${public.datasource.parkdb.cpmp-service.username}
+      password: ${public.datasource.parkdb.cpmp-service.password}
+      type: com.alibaba.druid.pool.DruidDataSource
+      driver-class-name: com.mysql.jdbc.Driver
       filters: stat
-      maxActive: 20
-      initialSize: 1
+      maxActive: 200
+      initialSize: 20
       maxWait: 60000
-      minIdle: 1
+      minIdle: 20
       timeBetweenEvictionRunsMillis: 60000
       minEvictableIdleTimeMillis: 300000
       validationQuery: select 'x'
@@ -20,7 +19,7 @@ spring:
       testOnBorrow: false
       testOnReturn: false
       poolPreparedStatements: true
-      maxOpenPreparedStatements: 20
+      maxOpenPreparedStatements: 100
   redis:
     open: true  # 是否开启redis缓存  true开启   false关闭
     database: 0
@@ -71,10 +70,10 @@ ribbon:
 
 logging:
   level:
-    org.springframework: WARN
+    org.springframework: DEBUG
     cn.akeparking.zbcloud: DEBUG
     org.spring.springboot.dao: DEBUG
-    org.apache.kafka: ERROR
+    org.apache.kafka: DEBUG
 
 # freeswitch
 freeswitch:
@@ -90,11 +89,3 @@ prms-init-enVironment-gun-url: http://testprms.yidianting.xin/api/public/ytj_cam
 ezviz:
   appKey: c9603efcdf654e478dd713e9fe06aa4e
   appSecret: ec92186e0824f51fc3359aeabe6d7d79
-
-logging:
-  level:
-    org.springframework: DEBUG
-    cn.akeparking.zbcloud: DEBUG
-    cn.akeparking.zbcloud.parkconfig.dao: DEBUG
-    org.spring.springboot.dao: DEBUG
-    org.apache.kafka: DEBUG