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

Command tasks lead to a mixing of revocable / non-revocable cpus and memory within the container.

    XMLWordPrintableJSON

Details

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

    Description

      Due to the hack here, where we add a small set of resources into the command executor:

      ExecutorInfo Slave::getExecutorInfo(
          const FrameworkID& frameworkId,
          const TaskInfo& task)
      {
        if (task.has_command()) {
          ...
      
          // XXX: These are always non-revocable.
      
          // Add an allowance for the command executor. This does lead to a
          // small overcommit of resources.
          executor.mutable_resources()->MergeFrom(
              Resources::parse(
                "cpus:" + stringify(DEFAULT_EXECUTOR_CPUS) + ";" +
                "mem:" + stringify(DEFAULT_EXECUTOR_MEM.megabytes())).get());
        }
        ...
      }
      

      The obvious extension here would be to make these revocable, but would be great to remove this hack entirely.

      Seems to originate in r/22251 from MESOS-1417.

      FYI idownes jieyu

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bmahler Benjamin Mahler
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: