Skip to content

Commit

Permalink
Merge pull request #73 from Project-OMOTES/59-set-hard-resource-limit…
Browse files Browse the repository at this point in the history
…s-on-worker-containers

59: Add hardware limits for workers.
  • Loading branch information
lfse-slafleur committed Sep 13, 2024
2 parents 5356761 + 070be8f commit 0f3c679
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@ services:
restart: unless-stopped
deploy:
replicas: 2
resources:
limits:
cpus: '4'
memory: 4gb
memswap_limit: 4gb
networks:
- omotes
environment: &grow_worker_env
Expand Down Expand Up @@ -172,6 +177,11 @@ services:
restart: unless-stopped
deploy:
replicas: 2
resources:
limits:
cpus: '4'
memory: 4gb
memswap_limit: 4gb
networks:
- omotes
environment:
Expand Down

0 comments on commit 0f3c679

Please sign in to comment.