Closed jeroen closed 2 years ago
Maybe invest in some better monitoring as well, similar to @colinfay https://twitter.com/_ColinFay/status/1357681042472247297
Added 4GB swap with swapiness=10
as in: https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-20-04
E.g. https://github.com/r-universe/certe-medical-epidemiology/actions/runs/1538751408/attempts/1
The actual error in this case is:
But it is probably caused by a crash earlier on. nginx starts giving a lot of
[error] recv() failed
Server runs out of memory but it is unclear to me what is taking up so much memory.
The kern.log shows that mongo takes 700m and node 500m, which is more than I would expect, but the server has 4gb.
Perhaps also part of the problem is that these servers don't have any swap, that is probably one way to mitigate this