We currently do not provide necessary primitives to run sidecar tasks (which is necessary to ensure your "health check" task is run alongside your "payload" task). However, as you have mentioned yourself, some frameworks do provide health check functionality, e.g., Marathon.
In Mesos 1.2 (also already available in the master branch) we will introduce Mesos-native health checks, which every framework that uses built-in executor can leverage. The doc is here [1]. There are no examples in java, but I assume code snippets in C++ can be directly translated into java since it's just populating protobuf messages. [1] https://github.com/apache/mesos/blob/master/docs/health-checks.md On Wed, Dec 7, 2016 at 10:19 PM, Victor L <vlyamt...@gmail.com> wrote: > I found javadocs for package "Protos.HealthCheck": > http://mesos.apache.org/api/latest/java/org/apache/mesos/ > Protos.HealthCheck.html > but not a single example of how to use it > > On Wed, Dec 7, 2016 at 11:22 AM, Alex Rukletsov <a...@mesosphere.com> > wrote: > >> What exactly do you mean under "health check task"? >> >> On Wed, Dec 7, 2016 at 5:09 PM, Victor L <vlyamt...@gmail.com> wrote: >> >>> Can someone recommend simple example of how to add healthcheck task to >>> java framework? >>> Thanks, >>> >>> >> >