[
https://issues.apache.org/jira/browse/MESOS-922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13890196#comment-13890196
]
Niklas Quarfot Nielsen commented on MESOS-922:
----------------------------------------------
We should be able to start working on this ticket in parallel with the
in-flight containerizer patch set and perhaps discuss different approaches.
I guess the first exercise is to identify the current dependencies:
1) (Should be trivial) launchExecutor() should probably be renamed to
launchTask() including the existing logic but take and pass a task info to
containerizer->launch().
2) (A bit more complicated) Both first and second half of runTask() depends on
access to the executor info.
We could consider adding a containerizer API call to get the right executor
info from a task info e.g. Containerizer::prepareExecutorInfo(TaskInfo), or
have Containerizer::launch() return a Future<ExecutorInfo>. Or perhaps a
different approach, removing/moving the dependencies in slave all-together into
the Containerizer.
Thoughts?
> Containerizer to support launching tasks by TaskInfo
> ----------------------------------------------------
>
> Key: MESOS-922
> URL: https://issues.apache.org/jira/browse/MESOS-922
> Project: Mesos
> Issue Type: Improvement
> Components: isolation
> Reporter: Ian Downes
> Fix For: 0.18.0
>
>
> Currently the slave runs tasks by using an existing executor or by launching
> a new executor. When a task's TaskInfo doesn't specify the executor with an
> ExecutorInfo (has a CommandInfo instead) the slave will create an
> ExecutorInfo specifying the mesos-command executor.
> The decision on how to launch a task could instead be delegated to the
> containerizer and the TaskInfo would be passed unmodifed. This would have the
> following advantages:
> 1) The containerizer can decide on the executor to run the task, either the
> mesos-executor or a specialized executor appropriate for the containerization
> implementation. Furthermore, the containerizer can allocate appropriate
> additional resources for the executor.
> 2) The containerizer can see the task's resources and can allocate these when
> the executor is launched. This is useful for such containerizer
> implementations as KVM where it is harder to dynamically adjust a
> containerized executor's resources. This is most applicable when the executor
> will only run a single task.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)