You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Meng Zhu (JIRA)" <ji...@apache.org> on 2019/03/28 22:32:00 UTC
[jira] [Created] (MESOS-9688) Quota is not enforced properly when
subroles makes reservation.
Meng Zhu created MESOS-9688:
-------------------------------
Summary: Quota is not enforced properly when subroles makes reservation.
Key: MESOS-9688
URL: https://issues.apache.org/jira/browse/MESOS-9688
Project: Mesos
Issue Type: Bug
Components: allocation
Reporter: Meng Zhu
Note: the discussion here concerns quota enforcement for top-level role, setting quota on sublevel role is not supported.
If a subrole directly makes a reservation (note: *NOT* reservation refinement where the reservation is first made to the top role then refined to a subrole), the accounting of `roleConsumedQuota` will be off:
https://github.com/apache/mesos/blob/master/src/master/allocator/mesos/hierarchical.cpp#L1703-L1705
Specifically, in this formula:
`Consumed Quota = reservations + allocation - allocated reservations`
The `reservation` part does not take account of subrule's reservation (again, reservations made first to the top role "a" and then refined to "a/b" are fine).
The "allocation" and "allocated reservations" are both tracked in the sorter where the hierarchical relationship is considered -- allocations are added hierarchically.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)