Sage-Bionetworks / sage-monorepo

Where OpenChallenges, Schematic, and other Sage open source apps are built
https://sage-bionetworks.github.io/sage-monorepo/
Apache License 2.0
21 stars 12 forks source link

[Story] Set max memory that containerized services can use #1248

Closed tschaffter closed 1 year ago

tschaffter commented 1 year ago

What projects is this story for?

OpenChallenges

As a user, I want

As a developer, I want to control the max amount of memory that containerized services can use so that I can deploy all the required component of the OpenChallenges stack without slowing down or crashing my development instance.

Description

Look at the memory usage of dockerized services with docker stats and update the docker compose file of each project of the stack so that the maximum about of memory is specified. Each container should ideally have a bit of extra room.

Acceptance criteria

Tasks

No response

Anything else?

No response

Have you linked this story to a GitHub Project?

tschaffter commented 1 year ago

Done mainly in #1302.

The total amount of memory used by the stack should ideally be smaller than 8 GB if we want to developed on GitHub codespace.

The total amount of memory required is 9.5 GB when using relatively large error margins to ensure that the container do not crash frequently because of the lack of memory. The max memory could be optimized in the future.