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

Benjamin Mahler reassigned MESOS-9701:
--------------------------------------

    Assignee: Andrei Sekretenko

> Allocator's roles map should track reservations.
> ------------------------------------------------
>
>                 Key: MESOS-9701
>                 URL: https://issues.apache.org/jira/browse/MESOS-9701
>             Project: Mesos
>          Issue Type: Improvement
>          Components: allocation
>            Reporter: Benjamin Mahler
>            Assignee: Andrei Sekretenko
>            Priority: Major
>              Labels: resource-management
>
> Currently, the allocator's {{roles}} map only tracks roles that have 
> allocations or framework subscriptions:
> https://github.com/apache/mesos/blob/1.7.2/src/master/allocator/mesos/hierarchical.hpp#L531-L535
> And we separately track a map of total reservations for each role:
> https://github.com/apache/mesos/blob/1.7.2/src/master/allocator/mesos/hierarchical.hpp#L541-L547
> Confusingly, the {{roles}} map won't have an entry when there is a 
> reservation for a role but no allocations or frameworks subscribed. We should 
> ensure that the map has an entry when there are reservations. Also, we can 
> consolidate the reservation information and framework ids into the same map, 
> e.g.:
> {code}
> struct Role
> {
>   hashset<FrameworkID> frameworkIds;
>   ResourceQuantities totalReservations;
> };
> hashmap<string, Role> roles;
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to