From 996bfc8ad47af649a1fc35a11b018fea7c4e8b97 Mon Sep 17 00:00:00 2001 From: Sebastiaan la Fleur Date: Wed, 3 Jul 2024 15:49:30 +0200 Subject: [PATCH 1/3] 59: Add hardware limits for workers. --- docker-compose.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index ab7675a..6c25195 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -127,6 +127,10 @@ services: restart: unless-stopped deploy: replicas: 2 + resources: + limits: + cpus: '4' + memory: 4gb networks: - omotes environment: &grow_worker_env @@ -170,6 +174,10 @@ services: restart: unless-stopped deploy: replicas: 2 + resources: + limits: + cpus: '4' + memory: 4gb networks: - omotes environment: From d28ca68e8e6d8af9903b1888d270f21028d6b56d Mon Sep 17 00:00:00 2001 From: Sebastiaan la Fleur Date: Fri, 13 Sep 2024 11:45:34 +0200 Subject: [PATCH 2/3] 59: Add memswap limit to workers to disable swap. --- docker-compose.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 6c25195..d02a666 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -131,6 +131,7 @@ services: limits: cpus: '4' memory: 4gb + memswap_limit: 4gb networks: - omotes environment: &grow_worker_env @@ -178,6 +179,7 @@ services: limits: cpus: '4' memory: 4gb + memswap_limit: 4gb networks: - omotes environment: From fdfb92eef8b913387be5fc72ac79742eb25e6999 Mon Sep 17 00:00:00 2001 From: Sebastiaan la Fleur Date: Fri, 13 Sep 2024 17:05:43 +0200 Subject: [PATCH 3/3] 59: Add feature to CHANGELOG. --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e010a4..8ea563b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,3 +50,6 @@ This version uses the following models: inactivity. After 48 hours, we assume the SDK is not interested in the result of a job anymore. * start_time, end_time and timestep parameters are now all submitted with a simulator workflow job submission. +* 59: Add hardware limits for workers. by lfse-slafleur in + https://github.com/Project-OMOTES/omotes-system/pull/73 + * Workers now all have a 4GB memory limit to prevent OOM on the host machine.