Understanding resource allocation

Let's understand the resource location as follows: 

  • The Mesos master uses the resource allocation module to determine the type and quantity of resource offers to be made to frameworks.
  • Resource allocation modules are responsible for providing shared resources in a fair manner to competing frameworks.
  • Mesos has the dominant resource fairness (DRF) algorithm as its default resource allocation policy, which is far more suitable for most environments.
  • So, let's consider a case where the total resources available are 8 CPUs and 10 GB of memory. User 1 runs tasks that require 1 CPU and 3 GB of memory, and user 2 runs tasks that require 3 CPUs and 1 GB of memory. Let's understand the following concepts:
  • Dominant ...

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.