mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Meng Zhu <>
Subject Re: Review Request 64793: Fixed a bug where resource over allocation may break quota headroom.
Date Fri, 22 Dec 2017 04:17:42 GMT

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

(Updated Dec. 21, 2017, 8:17 p.m.)

Review request for mesos and Benjamin Mahler.

Bugs: MESOS-8352

Repository: mesos


In the quota role allocation stage, if a role gets some resources
on an agent to meet its quota, it will also get all other resources
on the same agent that it does not have quota for. This may starve
roles behind it that have quotas set for those resources.

We fix this issue by enforcing that, in the quota role allocation
stage, if a role has no quota set for a scalar resource, it will
get that resource only when two conditions are both met:

(1) It got some other resources on the same agent to meet its quota;

(2) After allocating those resources, quota headroom is still above
the required amount.

Also refactored the fine-grained quota allocation logic.

Diffs (updated)

  src/master/allocator/mesos/hierarchical.cpp 78d7b2203532301ff26b7abb26f5d320831124a1 




make check


Meng Zhu

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