Explorar el Código

Update default connection pooling - lower to half from default values

Monte Cillo Co hace 8 años
padre
commit
68465168ba
Se han modificado 1 ficheros con 5 adiciones y 2 borrados
  1. 5 2
      application.yml

+ 5 - 2
application.yml

@@ -12,10 +12,13 @@ spring:
   datasource:
     platform : postgres
     driverClassName: com.edb.Driver
-    connectionTimeout: 10000
-    maxPoolSize: 20
     test-on-borrow: true
     validation-query: SELECT 1
+    hikari:
+      maximumPoolSize: 5 # default 10; since microservice with more than 1 instance, we set this lower
+      connectionTimeout: 10000 # 10s; default 30s
+      idleTimeout: 300000 # 5m; default 10 mins
+      maxLifetime: 900000 # 15m; default 30 mins
   redis:
     host: redis.marathon.l4lb.thisdcos.directory
   rabbitmq: