To limit Discourse memory usage on a dedicated box, rjd22 is seeking a solution to prevent the Docker instance from using the full 32GB of memory. gerhard suggests using Docker’s -m option to limit memory, but notes that the launcher cannot do this out of the box.
To implement this, gerhard recommends editing the launcher script, specifically line 289, by adding the -m="4g" flag to limit the container to 4GB of memory, as per the Docker Documentation.
I’m hosting a discourse forum on one of my dedicaded server. The problem is that as it is now to can use the full 32GB memory that is on the dedicaded box (this already happened once).
What is the best way to edit the launcher or config file to limit how memory much the docker instance will use?
Docker allows limiting the memory with the -m option.
However, I don’t think that the launcher can do this out of the box at the moment. You’ll probably need to change it within the launcher script.