Performance Improvement: Async Notification Pool Configuration 49/130349/2
authorToineSiebelink <toine.siebelink@est.tech>
Thu, 18 Aug 2022 07:50:06 +0000 (08:50 +0100)
committerToine Siebelink <toine.siebelink@est.tech>
Thu, 18 Aug 2022 10:18:33 +0000 (10:18 +0000)
Reduce threads available for notifications
 to allow more resources for module sync

Issue-ID: CPS-1199
Issue-ID: CPS-1126

Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: Iff56dd614ea0074a1b6aa08b81e324e2d0ce33c1

cps-application/src/main/resources/application.yml

index 6bbe80b..8083a97 100644 (file)
@@ -100,8 +100,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
@@ -164,4 +164,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