From: danielhanrahan Date: Fri, 23 Feb 2024 10:19:23 +0000 (+0000) Subject: Limit max connections in DMI stub X-Git-Tag: 3.4.5~7^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=cps.git;a=commitdiff_plain;h=d7a5b1072fbb1525c5bd06cfe70387dada476770 Limit max connections in DMI stub 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 Change-Id: I6aaf43f721d6f2e6dcff45929fc9699e26980cdb --- diff --git a/dmi-plugin-demo-and-csit-stub/dmi-plugin-demo-and-csit-stub-service/src/main/resources/application.yml b/dmi-plugin-demo-and-csit-stub/dmi-plugin-demo-and-csit-stub-service/src/main/resources/application.yml index de097a67b..4f730edb9 100644 --- a/dmi-plugin-demo-and-csit-stub/dmi-plugin-demo-and-csit-stub-service/src/main/resources/application.yml +++ b/dmi-plugin-demo-and-csit-stub/dmi-plugin-demo-and-csit-stub-service/src/main/resources/application.yml @@ -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: