You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Benjamin Mahler (JIRA)" <ji...@apache.org> on 2019/04/03 17:49:00 UTC

[jira] [Assigned] (MESOS-9688) Quota is not enforced properly when subroles have reservations.

     [ https://issues.apache.org/jira/browse/MESOS-9688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Mahler reassigned MESOS-9688:
--------------------------------------

    Assignee: Benjamin Mahler

> Quota is not enforced properly when subroles have reservations.
> ---------------------------------------------------------------
>
>                 Key: MESOS-9688
>                 URL: https://issues.apache.org/jira/browse/MESOS-9688
>             Project: Mesos
>          Issue Type: Bug
>          Components: allocation
>            Reporter: Meng Zhu
>            Assignee: Benjamin Mahler
>            Priority: Critical
>              Labels: resource-management
>
> 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, 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 `reservations` part does not account subrole's reservation to its ancestors. If a reservation is made directly for role "a/b", its reservation is accounted only for "a/b" but not for "a". Similarly, if a top role ( "a") reservation is refined to a subrole ("a/b"), the current code first subtracts the reservation from "a" and then track that under "a/b".
> We should make it hierarchical-aware.
> 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)