In this recipe, you will learn the difference between POSIX isolators and containers. POSIX isolators are very basic and should not be used in production.
You need to have Mesos up and running. See the recipes of Chapter 1, Getting Started with Apache Mesos to get more information.
POSIX isolators are enabled by default for CPU and memory. To make this explicit, use:
echo "posix/cpu,posix/mem" > /etc/mesos-slave/isolation
POSIX isolators are not real isolators. They do not create proper containers that allow them to separate a process from the rest of the system using Linux kernel features. Instead, you should run tasks in separated processes and periodically check the resources they are using but do not limit them.