I am experimenting with Mesos + Marathon and starting simple by creating a little "app" consisting of a shell script looping infinitely logging a message once every 5 seconds. When I provision that app I can allocate various memory and CPU resources which leads me to my question:
If Marathon is spawning a shell script directly then how can it limit that scripts resource usage? That script could do and launch anything to consume all available resources.
I understand that Docker or some other isolation mechanism will limit what a process can do but I have not configured this (explicitly). Is it creating some kind of container on the fly without me having to explicitly configure one? I am testing on OS X.