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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.