summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhalil.cakal <halil.cakal@est.tech>2025-02-07 14:41:39 +0000
committerhalil.cakal <halil.cakal@est.tech>2025-02-07 14:41:44 +0000
commit85b8a41a73b8384012c082c077167d2709ef9680 (patch)
tree212d4ed0ccb9036440dde551a1dfe61684b7ee8d
parent63a448c3e5a907566f953bc2ae91f62bf68bc73d (diff)
Disallow docker-compose to use swap space
- if swap memory is active on any host, the docker-compose will add it on top of JVM process memory. This will exceed the total memory reservation of the container, eventually cause restart. - swap limit can not be lower than the total memory limit, thus given 3G. this will disallow docker-compose to use swap space Issue-ID: CPS-2628 Change-Id: I01bd4a1fd3f4e894fe8236bbc38cd7718fb0b6fb Signed-off-by: halil.cakal <halil.cakal@est.tech>
-rw-r--r--docker-compose/docker-compose.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/docker-compose/docker-compose.yml b/docker-compose/docker-compose.yml
index 2573e3280c..8e42bc58be 100644
--- a/docker-compose/docker-compose.yml
+++ b/docker-compose/docker-compose.yml
@@ -82,6 +82,7 @@ services:
limits:
cpus: '3'
memory: 3G
+ memswap_limit: 3G
nginx:
container_name: ${NGINX_CONTAINER_NAME:-nginx-loadbalancer}