mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guangya Liu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MESOS-6685) Update Role::Resources to correctly acount for multi-role frameworks
Date Sun, 04 Dec 2016 03:15:58 GMT
Guangya Liu created MESOS-6685:
----------------------------------

             Summary: Update Role::Resources to correctly acount for multi-role frameworks
                 Key: MESOS-6685
                 URL: https://issues.apache.org/jira/browse/MESOS-6685
             Project: Mesos
          Issue Type: Bug
            Reporter: Guangya Liu


With single role framework, when call the get role endpoint, the master will return resources
for this role with all of the resources for a framework who is using this role. But with multi-role
framework, the get role endpoint should only return resources used by one of the roles in
a multi-role framework.

{code}
  Resources resources() const
  {
    Resources resources;
    foreachvalue (Framework* framework, frameworks) {
      resources += framework->totalUsedResources;
      resources += framework->totalOfferedResources;
    }

    return resources;
  }
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message