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)
commitd7a5b1072fbb1525c5bd06cfe70387dada476770
tree55467b98b1cda33fdecf4ae490c93307beeca301
parent79bb5dafbed0e6dd779276ac80ae5549a834bcf5
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 <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