The process is created in the same cgroup as the parent process, which is
the cgroup the Mesos slave creates for the executor and configures
according to the executor's resource limits.

Permissions are set so processes cannot be moved up the cgroup hierarchy
(which would bypass the executor resource limits) but it is possible for
the executor (or other process) to create additional cgroups and thereby
change how its resources are subdivided.

On Mon, Jan 12, 2015 at 10:00 AM, Timothy Chen <[email protected]> wrote:

> Hi Joe,
>
> Yes the processes you open through python is still under the same
> cgroup, unless you explicitly move or create a new one.
>
> Tim
>
> On Mon, Jan 12, 2015 at 9:23 AM, Joe Stein <[email protected]> wrote:
> > Hi, if I have a python script (lets call that process X) and Mesos
> launches
> > X.  Within X I then open a sub process that does an open (lets call the
> > process it opens Y).
> >
> > Question: does Mesos cgroup isolation still wrap both X and Y?
> Basically I
> > want to confirm that if I setup the CPU for lets say 8 core then both X
> and
> > Y will be bound by my value of 8 and not just X.
> >
> > Thanks in advance!
> >
> > /*******************************************
> >  Joe Stein
> >  Founder, Principal Consultant
> >  Big Data Open Source Security LLC
> >  http://www.stealth.ly
> >  Twitter: @allthingshadoop <http://www.twitter.com/allthingshadoop>
> > ********************************************/
>

Reply via email to