You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Alexander Rukletsov (JIRA)" <ji...@apache.org> on 2016/09/23 11:44:20 UTC

[jira] [Updated] (MESOS-6184) Change health check to use childHooks to enter the namespaces of the container

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

Alexander Rukletsov updated MESOS-6184:
---------------------------------------
         Shepherd: Alexander Rukletsov
     Story Points: 3
           Labels: health-check mesosphere  (was: health-check)
    Fix Version/s: 1.1.0

> Change health check to use childHooks to enter the namespaces of the container
> ------------------------------------------------------------------------------
>
>                 Key: MESOS-6184
>                 URL: https://issues.apache.org/jira/browse/MESOS-6184
>             Project: Mesos
>          Issue Type: Improvement
>            Reporter: haosdent
>            Assignee: haosdent
>              Labels: health-check, mesosphere
>             Fix For: 1.1.0
>
>
> 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)