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

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