Investigate "out of memory" errors
What we know
- When trying to start the new reconciliation service with
docker-compose up
I get scary errors which contain this part:
starting container process caused "process_linux.go:424: container init caused "process_linux.go:407: running prestart hook 0 caused \"error running hook: exit status 2, stdout: , stderr: fatal error: runtime: out of memory
- Htop seems to confirm that we're indeed running out of RAM with wdqs service using more than half;
- We're currently using a DEV1-M instance with 4GB of RAM to run
wikibase-docker
containers; -
Official doc states
wikibase-docker
requires "at least 4GB of memory".
Possible Solutions
Upgrade server
- Using a bigger instance such as the 8 GB DEV1-L (meaning: reinstalling everything & importing data again from scratch).
Deploy on Kubernetes
cf #8 (closed)
Deploy on WBStack managed service
- using https://www.wbstack.com/