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 Bannier (JIRA)" <ji...@apache.org> on 2018/07/23 15:54:00 UTC

[jira] [Created] (MESOS-9107) mesos-execute cannot use reserved resources

Benjamin Bannier created MESOS-9107:
---------------------------------------

             Summary: mesos-execute cannot use reserved resources
                 Key: MESOS-9107
                 URL: https://issues.apache.org/jira/browse/MESOS-9107
             Project: Mesos
          Issue Type: Bug
            Reporter: Benjamin Bannier


{{mesos-execute}} cannot be used to run tasks on reserved resources, e.g., and invocation
{code}
$ mesos-execute \
    --resources=disk(some/role):32;cpus:0.1;mem:32 \
    --command=true \
    --name=<NAME> \
    --role=some/role \
    --master=<MASTER>
{code}

will not be able to use {{disk}} resources reserved to {{some/role}}.

This is due to the way {{mesos-execute}} performs its offer matching, e.g., as of {{9af920c75d1}}

{code}
if (!launched && offered.toUnreserved().contains(requiredResources)) {
{code}

Any reservations are stripped from offers before matching against the required resources.

We should update {{mesos-execute}} so it can make use of reserved resources.



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