Merge "Performance Improvement: Tune Resttemplate"
authorJoseph Keenan <joseph.keenan@est.tech>
Thu, 18 Aug 2022 11:23:19 +0000 (11:23 +0000)
committerGerrit Code Review <gerrit@onap.org>
Thu, 18 Aug 2022 11:23:19 +0000 (11:23 +0000)
cps-application/src/main/resources/application.yml
csit/plans/cps/test.properties
docker-compose/docker-compose.yml

index 6bbe80b..ea1b93b 100644 (file)
@@ -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
@@ -164,4 +171,4 @@ timers:
     locked-modules-sync:\r
         sleep-time-ms: 300000\r
     cm-handle-data-sync:\r
-        sleep-time-ms: 30000
\ No newline at end of file
+        sleep-time-ms: 30000\r
index 47bb43b..449aa93 100644 (file)
@@ -23,4 +23,7 @@ DMI_SERVICE_URL=http://$LOCAL_IP:$DMI_PORT
 DOCKER_REPO=nexus3.onap.org:10003
 
 CPS_VERSION=latest
-DMI_VERSION=1.2.0-SNAPSHOT-latest
\ No newline at end of file
+DMI_VERSION=1.2.0-SNAPSHOT-latest
+
+ADVISED_MODULES_SYNC_SLEEP_TIME_MS=2000
+CMHANDLE_DATA_SYNC_SLEEP_TIME_MS=2000
\ No newline at end of file
index 8d3a0a3..ca7795f 100644 (file)
@@ -49,8 +49,8 @@ services:
       notification.enabled: 'true'
       notification.async.executor.time-out-value-in-ms: 2000
       NOTIFICATION_DATASPACE_FILTER_PATTERNS: '.*'
-      TIMERS_ADVISED-MODULES-SYNC_SLEEP-TIME-MS: 2000
-      TIMERS_CM-HANDLE-DATA-SYNC_SLEEP-TIME-MS: 2000
+      TIMERS_ADVISED-MODULES-SYNC_SLEEP-TIME-MS: ${ADVISED_MODULES_SYNC_SLEEP_TIME_MS:-30000}
+      TIMERS_CM-HANDLE-DATA-SYNC_SLEEP-TIME-MS: ${CMHANDLE_DATA_SYNC_SLEEP_TIME_MS:-30000}
     restart: unless-stopped
     depends_on:
       - dbpostgresql