Enabling POSIX isolators
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.
Getting ready
You need to have Mesos up and running. See the recipes of Chapter 1, Getting Started with Apache Mesos to get more information.
How to do it....
POSIX isolators are enabled by default for CPU and memory. To make this explicit, use:
echo "posix/cpu,posix/mem" > /etc/mesos-slave/isolation
How it works...
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.