summaryrefslogtreecommitdiffstats
path: root/dmi-plugin-demo-and-csit-stub
diff options
context:
space:
mode:
authordanielhanrahan <daniel.hanrahan@est.tech>2024-02-23 10:19:23 +0000
committerdanielhanrahan <daniel.hanrahan@est.tech>2024-02-23 12:25:23 +0000
commitd7a5b1072fbb1525c5bd06cfe70387dada476770 (patch)
tree55467b98b1cda33fdecf4ae490c93307beeca301 /dmi-plugin-demo-and-csit-stub
parent79bb5dafbed0e6dd779276ac80ae5549a834bcf5 (diff)
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
Diffstat (limited to 'dmi-plugin-demo-and-csit-stub')
-rw-r--r--dmi-plugin-demo-and-csit-stub/dmi-plugin-demo-and-csit-stub-service/src/main/resources/application.yml5
1 files changed, 4 insertions, 1 deletions
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 de097a67b4..4f730edb96 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: