WormBase / caltech-curation-services

Modular curation services for Caltech WormBase data
1 stars 0 forks source link

Limit the amount of memory each docker-compose service can use #65

Closed valearna closed 9 months ago

valearna commented 10 months ago

Acedb queries can make the instance run out of memory. We need to limit the amount of ram the docker container can use to avoid freezing the instance.

https://stackoverflow.com/questions/42345235/how-to-specify-memory-cpu-limit-in-docker-compose-version-3

valearna commented 10 months ago

I'm having second thoughts about this. Now that we have swap on prod, the instance is not going to become frozen if containers use too much ram. Limiting the amount of ram may be too restrictive and if we change ram size we need to change the limit as well. Any thoughts @raymond91125 @azurebrd ?

azurebrd commented 10 months ago

I really don't know. I'll defer to you both more sysadmin people. @valearna and @raymond91125 . But if we just move intensive things to dev, it should be fine. I think if they're just acedb queries, @raymond91125 's script to update acedb should be able to maintain dev up to date, we'd just have to check that works with Chris G and Wen

valearna commented 9 months ago

We decided to enable swap on dev and avoid limiting docker containers.