Limit max connections in DMI stub 55/137355/2
authordanielhanrahan <daniel.hanrahan@est.tech>
Fri, 23 Feb 2024 10:19:23 +0000 (10:19 +0000)
committerdanielhanrahan <daniel.hanrahan@est.tech>
Fri, 23 Feb 2024 12:25:23 +0000 (12:25 +0000)
DMI plugin in a real deployment could only handle a limited number
of parallel connections. From CPS-1968 of testing in a realistic
deployment, 25 max connections is chosen as a reasonable default.
This allows us to simulate rate limiting with DMI stub.

Functionality has been verified by changing the max connections and
registering 5000 CM-handles. It takes:
- 120 seconds with 8 max DMI connections
- 80 seconds with 16 max DMI connections

Issue-ID: CPS-2117
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I6aaf43f721d6f2e6dcff45929fc9699e26980cdb

dmi-plugin-demo-and-csit-stub/dmi-plugin-demo-and-csit-stub-service/src/main/resources/application.yml

index de097a6..4f730ed 100644 (file)
@@ -1,5 +1,5 @@
 #  ============LICENSE_START=======================================================
-#  Copyright (C) 2023 Nordix Foundation
+#  Copyright (C) 2023-2024 Nordix Foundation
 #  ================================================================================
 #  Licensed under the Apache License, Version 2.0 (the "License");
 #  you may not use this file except in compliance with the License.
@@ -17,6 +17,9 @@
 #  ============LICENSE_END=========================================================
 server:
     port: 8092
+    jetty:
+        threads:
+            max: 25
 
 rest:
     api: