Details
-
Improvement
-
Status: Reviewable
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
Mesosphere Sprint 44, Mesosphere Sprint 46, Mesosphere Sprint 47
-
3
Description
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
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(); });
After the childHooks patches merged, we could change the health check to use childHooks to call setns and make process::defaultClone private again.
Attachments
Issue Links
- is blocked by
-
MESOS-6236 Launch subprocesses associated with specified namespaces.
- Reviewable
- is related to
-
MESOS-7183 Always get coredump by add a health check on docker container app
- Resolved
- relates to
-
MESOS-8037 ns::clone should spawn process, which is a direct child
- Open
-
MESOS-5070 Introduce more flexible subprocess interface for child options.
- Resolved