mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Meng Zhu <>
Subject Review Request 69603: Extended `min_allocatable_resources` flag to cover non-scalar resources.
Date Thu, 20 Dec 2018 07:00:01 GMT

This is an automatically generated e-mail. To reply, visit:

Review request for mesos and Benjamin Mahler.

Bugs: MESOS-9324

Repository: mesos


The master flag `min_allocatable_resources` currently only supports
scalar resources. Sometimes it is desirable to control the quantities
of non-scalar resources in the offer as well, for example, to
ensure offers always contain port resources.

This patch extended the flag to cover non-scalar resources.
For `RANGES` and `SET` type resources, their quantities are the
number of different instances in the range or set. For example,
`range:[1-5]` has a quantity of 5 and `set:{a,b}` has a quantity of 2.

This patch also updated affected tests and modified the existing
test for `min_allocatable_resources` to cover the updated use cases.


  docs/configuration/ 83b83b0b7a41f982c8680cee21f0971a0877e49e 
  include/mesos/allocator/allocator.hpp 2a6849bf698f171fc31c84165bd574b8f4f846ea 
  src/master/allocator/mesos/hierarchical.cpp cc8ab919aedb33cf424edfdb622ca13a2cc8ff0f 
  src/master/flags.cpp f9b68bcd5668160a7e90d6569f69f2713df802fe 
  src/master/master.cpp b4faf2b077a0288ba36195b7a21402932489d316 
  src/tests/hierarchical_allocator_benchmarks.cpp 527a25d1414882012f3906370bd1a2a7b40a92f2

  src/tests/hierarchical_allocator_tests.cpp a3a6d7bb956a6d16f01e2c312d69f704fcbe9ddd 
  src/tests/master_allocator_tests.cpp 9dbab1822ea83ac912a56eb3196060c648a2a672 



make check


Meng Zhu

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message