CmHandle registration/module sync watchdog performance improvment
[cps.git] / cps-application / src / main / resources / application.yml
index af886a1..56515df 100644 (file)
@@ -1,6 +1,6 @@
 #  ============LICENSE_START=======================================================\r
 #  Copyright (C) 2021 Pantheon.tech\r
-#  Modifications Copyright (C) 2021 Bell Canada\r
+#  Modifications Copyright (C) 2021-2022 Bell Canada\r
 #  Modifications Copyright (C) 2021-2022 Nordix Foundation\r
 #  ================================================================================\r
 #  Licensed under the Apache License, Version 2.0 (the "License");\r
@@ -45,7 +45,13 @@ spring:
         username: ${DB_USERNAME}\r
         password: ${DB_PASSWORD}\r
         driverClassName: org.postgresql.Driver\r
-        initialization-mode: always\r
+        hikari:\r
+            minimumIdle: 5\r
+            maximumPoolSize: 80\r
+            idleTimeout: 60000\r
+            connectionTimeout: 120000\r
+            leakDetectionThreshold: 2000\r
+            pool-name: CpsDatabasePool\r
 \r
     cache:\r
         type: caffeine\r
@@ -82,19 +88,26 @@ spring:
 \r
     jackson:\r
       default-property-inclusion: NON_NULL\r
+      serialization:\r
+        FAIL_ON_EMPTY_BEANS: false\r
+    sql:\r
+      init:\r
+        mode: ALWAYS\r
 app:\r
     ncmp:\r
         async-m2m:\r
             topic: ${NCMP_ASYNC_M2M_TOPIC:ncmp-async-m2m}\r
+    lcm:\r
+        events:\r
+            topic: ${LCM_EVENTS_TOPIC:ncmp-events}\r
 \r
 notification:\r
+    enabled: true\r
     data-updated:\r
-        enabled: false\r
         topic: ${CPS_CHANGE_EVENT_TOPIC:cps.data-updated-events}\r
         filters:\r
             enabled-dataspaces: ${NOTIFICATION_DATASPACE_FILTER_PATTERNS:""}\r
     async:\r
-        enabled: false\r
         executor:\r
             core-pool-size: 2\r
             max-pool-size: 10\r
@@ -156,4 +169,12 @@ dmi:
 \r
 timers:\r
     advised-modules-sync:\r
-        sleep-time-ms: 30000
\ No newline at end of file
+        sleep-time-ms: 5000\r
+    locked-modules-sync:\r
+        sleep-time-ms: 300000\r
+    cm-handle-data-sync:\r
+        sleep-time-ms: 30000\r
+\r
+modules-sync-watchdog:\r
+    async-executor:\r
+        parallelism-level: 10
\ No newline at end of file