You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Guangya Liu (JIRA)" <ji...@apache.org> on 2016/12/04 03:15:58 UTC

[jira] [Created] (MESOS-6685) Update Role::Resources to correctly acount for multi-role frameworks

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)