mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Rukletsov (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (MESOS-6184) Health checks should use a general mechanism to enter namespaces of the task.
Date Thu, 22 Dec 2016 15:06:58 GMT

     [ https://issues.apache.org/jira/browse/MESOS-6184?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alexander Rukletsov updated MESOS-6184:
---------------------------------------
    Sprint: Mesosphere Sprint 44, Mesosphere Sprint 46, Mesosphere Sprint 47  (was: Mesosphere
Sprint 44, Mesosphere Sprint 46, Mesosphere Sprint 47, Mesosphere Sprint 48)

> Health checks should use a general mechanism to enter namespaces of the task.
> -----------------------------------------------------------------------------
>
>                 Key: MESOS-6184
>                 URL: https://issues.apache.org/jira/browse/MESOS-6184
>             Project: Mesos
>          Issue Type: Improvement
>            Reporter: haosdent
>            Assignee: haosdent
>            Priority: Blocker
>              Labels: health-check, mesosphere
>
> To perform health checks for tasks, we need to enter the corresponding namespaces of
the container. For now health check use custom clone to implement this
> {code}
>   return process::defaultClone([=]() -> int {
>     if (taskPid.isSome()) {
>       foreach (const string& ns, namespaces) {
>         Try<Nothing> setns = ns::setns(taskPid.get(), ns);
>         if (setns.isError()) {
>           ...
>         }
>       }
>     }
>     return func();
>   });
> {code}
> After the childHooks patches merged, we could change the health check to use childHooks
to call {{setns}} and make {{process::defaultClone}} private again.  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message