Reputation: 26468
I understand Mesos architecture at a high level, but I'm not clear about the OS level techniques used to implement resources allocation. For example, Mesos offers a framework 1 CPU and 400MB memory, and another framework 2 CPUs and 1GB memory, how is this actually implemented at OS level?
Upvotes: 1
Views: 134
Reputation: 398
tl;dr: Mesos itself doesn't "allocate" any resources at the OS-level. The resources are still allocated by the OS, although Mesos can use OS-level primitives like cgroups to ensure that a task doesn't use more resources than it should.
--isolation='cgroups/cpu,cgroups/mem'
, cgroups will be used to throttle the CPU appropriately, and to kill the task if it tries to exceed its memory allocation.Upvotes: 1