I’m following the directions here to install Discourse on a Digital Ocean server: How To Install Discourse on Ubuntu 16.04 | DigitalOcean
The guide says:
Note: Discourse requires a swap file if you are using 1GB of RAM. Although swap is generally recommended for systems utilizing traditional spinning hard drives, using swap with SSDs can cause issues with hardware degradation over time.
The Discourse FAQ lists the memory requirements as 1GB of RAM:
You can deploy our standard Discourse Docker container on any virtualized cloud server (digital ocean, amazon ec2, rackspace, azure) with 1GB RAM.
So I upgraded the Digital Ocean droplet to 2GB of RAM to be able to install without the swap. However, upon attempting to install I get the following message:
WARNING: Discourse requires at least 2GB of swap when running with 2GB of RAM
or less. This system does not appear to have sufficient swap space.
Without sufficient swap space, your site may not work properly, and future
upgrades of Discourse may not complete successfully.
ENTER to create a 2GB swapfile now, or Ctrl+C to exit
From Googling, it seems that in September the change was made to display this message when dealing with <= 2GB of RAM, rather than < 2GB RAM (if I’m reading that link correctly): FIX: make swap when mem is <= (not <) 2GB by pfaffman · Pull Request #290 · discourse/discourse_docker · GitHub
Is it currently possible to install Discourse on a 2GB RAM server without using a swapfile? If so, how?