Re: healthcheck task?

2016-12-07 Thread Alex Rukletsov
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,
>>>
>>>
>>
>


Re: healthcheck task?

2016-12-07 Thread Victor L
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,
>>
>>
>


Re: healthcheck task?

2016-12-07 Thread Victor L
My app is supposed to accept tcp connections on the port 3309 after
successful deployment.
The mesos task to periodically check for that i am referring as
"healthcheck task".
My understanding is that you can do the same in Marathon app deployments
with json code like:

"portIndex": $PORT1,
  "protocol": "TCP",
  "gracePeriodSeconds": 300,
  "intervalSeconds": 60,
  "timeoutSeconds": 20,



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,
>>
>>
>


Re: healthcheck task?

2016-12-07 Thread Alex Rukletsov
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,
>
>


healthcheck task?

2016-12-07 Thread Victor L
Can someone recommend simple example of how to add healthcheck task to java
framework?
Thanks,