Note on 1-2GB server size (PR #9994)

It’s not obvious upon reading this that during Digitalocean’s setup routine, a 1-2GB server size will cause a swap file to be created, which is bad practice on SSDs and can lead to hardware degradation. Choosing 3+ GB, at least for Digitalocean servers, is recommended.

GitHub

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

This is not the case, swap is allowed on cloud hosts. It is largely an insurance policy. Otherwise the minute you go one byte over memory used the out of memory reaper will kill the process.

On Fri, Jun 5, 2020 at 4:45 PM zyphlar notifications@github.com wrote:

It’s not obvious upon reading this that during Digitalocean’s setup routine, a 1-2GB server size will cause a swap file to be created, which is bad practice on SSDs and can lead to hardware degradation. Choosing 3+ GB, at least for Digitalocean servers, is recommended.

You can view, comment on, or merge this pull request online at:

Note on 1-2GB server size by zyphlar · Pull Request #9994 · discourse/discourse · GitHub Commit Summary

  • Note on 1-2GB server size

File Changes

Patch Links:

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/discourse/discourse/pull/9994, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALTWVMNAQXVIRY7ZCY3XBTRVF7PZANCNFSM4NVKP7BA .

I didn’t say it wasn’t allowed, I said it wasn’t recommended. Digitalocean explicitly discourages it, and in following their recommendation I had to delete/recreate my server a few times to get the right settings:

On Fri, Jun 5, 2020, 9:27 PM Jeff Atwood notifications@github.com wrote:

Closed #9994 https://github.com/discourse/discourse/pull/9994.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/discourse/discourse/pull/9994#event-3414142620, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAL2MTPU5O3F3HBTNKTZILRVHAU5ANCNFSM4NVKP7BA .