How it works...

At startup, the Mesos agent performs checks and sets resources to default values that are detected by the system. These resources are then overridden with the value provided by the users.

Let's look at a quick demo of how you can define resources in your Mesos slave. This is our Mesos cluster:

Currently, the leader is mesos-master3. If we look into agents, we can see that there is no agent registered as of now, so all the Mesos slave agents are in a stopped state. Let's check the resources. Here, the resources are 0, because there are no agents registered providing info to the Mesos cluster. Let's quickly start all three Mesos ...

Get Learn Apache Mesos now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.