[Systems] Docker resource limits

Sam P. sam at sam.today
Sat Jul 18 07:21:04 EDT 2015


Hi Samuel,

I had a little hack on the docker resource limits.  I attempted to start
using the --memory and --cpu-quota flag with docker-compose, however that
is not supported via compose because it is not supported through the python
api wrapper.  So I made a little tool that just runs the docker command
from arguments in a yml file [1].

I've added resource limits to the containers with around 128m of ram and
10% cpu.  (parsoid got 512m because that is what it was using!)

I am yet to add resource limits to discourse (got to do that via the
discourse launcher) or kafka (I'm using a docker-compose script to run
kafka with zookeeper) or cadvisor.

Also, cadvisor is consistently using ~10% cpu (even when I'm not looking at
it).   It is stays in about the top 3 processes when viewing it in htop.
Maybe this is something to look into.  (It also stresses out firefox, so
I'm starting to enjoy "docker stats")

Anyway, the infra is now in place to look into further using docker!

Thanks,
Sam

[1]  https://github.com/sugarlabs-infra/container.yml
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/private/systems/attachments/20150718/90882f4b/attachment.html>


More information about the Systems mailing list