WormBase / caltech-curation-services

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

Add swap to the AWS instances #66

Closed valearna closed 9 months ago

valearna commented 10 months ago

Currently there's no swap on the ubuntu-based AWS instances. We would like to add it to be able to ssh into the instances even when they are out of memory.

https://repost.aws/knowledge-center/ec2-memory-swap-file

valearna commented 10 months ago

@raymond91125 @chris-grove I've added 2G of swap to caltech-curation (prod). The reason why swap is not enabled by default in AWS is that disk operations cost money and too much swapping might result in unexpected costs. In our specific deployment we are using gp3 as disk type and we are not charged by IO under 3,000 IOPS. I'll monitor the instance to make sure we are using swap only when really needed. I'm not adding swap to dev for now but we can discuss whether we want to add it there too.