Hi Clarke, You can take a look at the framework for docker here https://github.com/apache/mesos/blob/master/src/examples/docker_no_executor_framework.cpp
All of the resource limitations for a docker task should be defined in the framework. Thanks, Guangya On Wed, Sep 23, 2015 at 9:33 PM, Clarke, Trevor <[email protected]> wrote: > When a framework accepts an offer and starts a docker task, how does mesos > enforce the task's allocated cpus? Is CPU share used and scaled > appropriately? Are cpu sets explicitly specified to limit execution to the > allocated cpus? Is there a way for a process in the docker container to > determine how many cpus it has been allocated? (so it can adjust fan-out > size, etc. for optimal execution) > > > This message and any enclosures are intended only for the addressee. > Please > notify the sender by email if you are not the intended recipient. If you > are > not the intended recipient, you may not use, copy, disclose, or distribute > this > message or its contents or enclosures to any other person and any such > actions > may be unlawful. Ball reserves the right to monitor and review all > messages > and enclosures sent to or from this email address. >

