From 86b5cee2920672726bd66df0775198f57f29b8cc Mon Sep 17 00:00:00 2001 From: sourabh_sourabh Date: Thu, 8 Sep 2022 12:35:04 +0100 Subject: CmHandle registration/module sync watchdog performance improvment - Tuned CPS DB parameters - Removed deprecated CPS DB parameter - Modified module sync watch logic - Added aditional logs - Removed logic to get FragmentEntities as stream - Removed detaching of fragment entity as it was causing NCMP to break with an exception "SQLSTATE(08006)" Issue-ID: CPS-1126 Signed-off-by: sourabh_sourabh Change-Id: I0bde11895f754602dece132efde701d82b377f12 --- cps-application/src/main/resources/application.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'cps-application/src') diff --git a/cps-application/src/main/resources/application.yml b/cps-application/src/main/resources/application.yml index 9b6f41ec23..56515df776 100644 --- a/cps-application/src/main/resources/application.yml +++ b/cps-application/src/main/resources/application.yml @@ -45,13 +45,12 @@ spring: username: ${DB_USERNAME} password: ${DB_PASSWORD} driverClassName: org.postgresql.Driver - initialization-mode: always hikari: minimumIdle: 5 maximumPoolSize: 80 - idleTimeout: 120000 - connectionTimeout: 300000 - leakDetectionThreshold: 300000 + idleTimeout: 60000 + connectionTimeout: 120000 + leakDetectionThreshold: 2000 pool-name: CpsDatabasePool cache: @@ -91,6 +90,9 @@ spring: default-property-inclusion: NON_NULL serialization: FAIL_ON_EMPTY_BEANS: false + sql: + init: + mode: ALWAYS app: ncmp: async-m2m: -- cgit 1.2.3-korg