mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chun-Hung Hsiao <>
Subject Review Request 63680: Added a container daemon to monitor a long-running standalone container.
Date Wed, 08 Nov 2017 19:55:45 GMT

This is an automatically generated e-mail. To reply, visit:

Review request for mesos, Jie Yu and Joseph Wu.

Bugs: MESOS-8183

Repository: mesos


The `ContanierDaemon` class is responsible to monitor if a long-running
service running in a standalone container is ready to serve, and restart
the service container if not. It takes the following 3 hook functions:

* `preStartHook`: called prior to container launch.
* `readinessHook`: called periodically to check if the service is ready.
  If a duration is returned, it serves as a backoff period, meaning that
  the next check will be scheduled after the duration. It can also be
  used to set up futures to reflect the readiness of the status outside
  the container daemon.
* `postStopHook`: called after the container is killed.

`ContainerDaemon` does not manage the lifecycle of the contanier it
monitors, so the container persists across `ContainerDaemon`s. However,
it provides a `terminate()` method to completely shutdown the monitoring


  src/ 1c97b1fd8151f87c4e9e6d62884b0ef7d582c312 
  src/slave/container_daemon.hpp PRE-CREATION 
  src/slave/container_daemon.cpp PRE-CREATION 




Chun-Hung Hsiao

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message