Parcourir la source

Chore: configure pooling size

wudi il y a 4 ans
Parent
commit
b056c264e3
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      src/main/resources/application-prod.properties

+ 4 - 1
src/main/resources/application-prod.properties

@@ -4,4 +4,7 @@ debug=false
 spring.datasource.driverClassName = org.postgresql.Driver
 spring.datasource.driverClassName = org.postgresql.Driver
 spring.datasource.url = jdbc:postgresql://hgprecn-cn-2r428a8it006-cn-shanghai-vpc.hologres.aliyuncs.com:80/galaxy_new?useUnicode=true&useSSL=false
 spring.datasource.url = jdbc:postgresql://hgprecn-cn-2r428a8it006-cn-shanghai-vpc.hologres.aliyuncs.com:80/galaxy_new?useUnicode=true&useSSL=false
 spring.datasource.username = LTAI5t8TZysKUFex7CVamCDj
 spring.datasource.username = LTAI5t8TZysKUFex7CVamCDj
-spring.datasource.password = ibLOdbZUPm0tpIDfnZ7spOuRY4k09o
+spring.datasource.password = ibLOdbZUPm0tpIDfnZ7spOuRY4k09o
+spring.datasource.hikari.minimum-idle=8
+spring.datasource.hikari.maximum-pool-size=16
+spring.datasource.initialization-mode=always