Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-9107

mesos-execute cannot use reserved resources

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Accepted
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      mesos-execute cannot be used to run tasks on reserved resources, e.g., and invocation

      $ mesos-execute \
          --resources=disk(some/role):32;cpus:0.1;mem:32 \
          --command=true \
          --name=<NAME> \
          --role=some/role \
          --master=<MASTER>
      

      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

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

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bbannier Benjamin Bannier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: