[
https://issues.apache.org/jira/browse/MESOS-2884?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14591087#comment-14591087
]
Kapil Arya commented on MESOS-2884:
-----------------------------------
Instead of creating a LinuxIsolator class, I added the `int namespaces()`
directly to Isolator class. By default, it returns '0' and thus allows for a
simplified approach. By creating LinuxIsolator, we would then have a
complicated lookup logic in MesosContainerizer to first figure out the subclass
type and then call namespaces() on it.
RRs:
1. https://reviews.apache.org/r/35585/
2. https://reviews.apache.org/r/35586/
> Allow isolators to specify required namespaces
> ----------------------------------------------
>
> Key: MESOS-2884
> URL: https://issues.apache.org/jira/browse/MESOS-2884
> Project: Mesos
> Issue Type: Task
> Components: isolation
> Reporter: Kapil Arya
> Assignee: Kapil Arya
>
> Currently, the LinuxLauncher looks into SlaveFlags to compute the namespaces
> that should be enabled when launching the executor. This means that a custom
> Isolator module doesn't have any way to specify dependency on a set of
> namespaces.
> The proposed solution is to extend the Isolator interface to also export the
> namespaces dependency. This way the MesosContainerizer can directly query all
> loaded Isolators (inbuilt and custom modules) to compute the set of
> namespaces required by the executor. This set of namespaces is then passed on
> to the LinuxLauncher.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)