mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guangya Liu" <>
Subject Re: Review Request 41769: Made allocator traverse all roles for quota allocation.
Date Tue, 19 Jan 2016 10:00:44 GMT

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

(Updated 一月 19, 2016, 10 a.m.)

Review request for mesos, Alexander Rukletsov, Joris Van Remoortere, Klaus Ma, and Neil Conway.

Bugs: MESOS-4411

Repository: mesos

Description (updated)

This patch include two parts:
1) If there are some `non-active roles` in front of active roles after `quotaRoleSorter`,
when the allocator encounter a `non-active role`, the allocator should not `break` but `continue`
to allocate Quota for other active roles to make sure other roles can get its quotaed resources.
2) If some role's quota reach its guaranteed value, the allocator should handle another role
but not break. Take the following case: role1 has quota 5 and got 5, role2 has quota 100 and
got 50, the role1 will be put in front of role2 by the `quotaRoleSorter`, if allocator `break`
when found role1 is satisfied, then role2 will never get its quotaed resources.


  src/master/allocator/mesos/hierarchical.cpp 72e69a0f42dd724713f2a7a75f1b92ef16eb5569 
  src/tests/hierarchical_allocator_tests.cpp 9362dd306497ba01e0f387c3862456cdcac6f863 


Testing (updated)

make check
GLOG_v=2  ./bin/  --gtest_filter="HierarchicalAllocatorTest.*" --verbose --gtest_repeat=100


Guangya Liu

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