Merge "Performance Improvement: Async Notification Pool Configuration"
authorJoseph Keenan <joseph.keenan@est.tech>
Fri, 19 Aug 2022 08:47:08 +0000 (08:47 +0000)
committerGerrit Code Review <gerrit@onap.org>
Fri, 19 Aug 2022 08:47:08 +0000 (08:47 +0000)
1  2 
cps-application/src/main/resources/application.yml

@@@ -46,13 -46,6 +46,13 @@@ spring
          password: ${DB_PASSWORD}\r
          driverClassName: org.postgresql.Driver\r
          initialization-mode: always\r
 +        hikari:\r
 +            minimumIdle: 5\r
 +            maximumPoolSize: 80\r
 +            idleTimeout: 120000\r
 +            connectionTimeout: 300000\r
 +            leakDetectionThreshold: 300000\r
 +            pool-name: CpsDatabasePool\r
  \r
      cache:\r
          type: caffeine\r
@@@ -107,8 -100,8 +107,8 @@@ notification
              enabled-dataspaces: ${NOTIFICATION_DATASPACE_FILTER_PATTERNS:""}\r
      async:\r
          executor:\r
-             core-pool-size: 10\r
-             max-pool-size: 100\r
+             core-pool-size: 2\r
+             max-pool-size: 10\r
              queue-capacity: 500\r
              wait-for-tasks-to-complete-on-shutdown: true\r
              thread-name-prefix: Async-\r