3G RAM + 1G Partition Swap - is it enough?

No problem at all to have multiple swap areas (or indeed multiple swap files)

I believe the biggest memory peak is during an upgrade - and the risk there is of the forum being down until you can get help.

It’s worthwhile also setting the overcommit to the more generous setting: you’ll find it’s already noted in your upgrade log, if you haven’t already adjusted it

WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add ‘vm.overcommit_memory = 1’ to /etc/sysctl.conf and then reboot or run the command ‘sysctl vm.overcommit_memory=1’ for this to take effect.

This has been mentioned many times before but there’s resistance to adding it to the standard Discourse installation recipe. It’s the kind of setting which can’t be done inside the docker image but has to be done on the host.

2 Likes