Is cgroup isolation for Discourse supported?


(Jaryd Malbin) #1

This might not be totally necessary but I’m wondering if I can limit how much physical memory the Discourse Docker container can utilize using LXC cgroups. I’m noticing a gradual memory leak on my server and am not 100% sure where it is at this point:

Pinning down the leak might be a bit easier if I can certifiably know that the Docker container is hard-limited by the kernel.

As a side note, the server is not currently live and has absolutely no traffic.


(Sam Saffron) #2

Its a docker feature and supported by docker, I see no reason you could not set up your server to limit memory a container is allowed to consume.


(Jaryd Malbin) #3

Sweet! I figured as much but thought that I’d ask anyway. Thanks @sam :slight_smile: