How can i explicitly kill the task from my class? On Mon, Sep 12, 2016 at 2:10 PM, haosdent <[email protected]> wrote:
> If the target you perform health check is your task, Mesos support health > check by a command. When your task reaches the health task failure limit, > the task would be killed and then your framework could launch the task > again when receives the `TASK_KILLED` in `statusUpdate`. > > On Tue, Sep 13, 2016 at 2:03 AM, Victor L <[email protected]> wrote: > >> It checks if process is functional. I don't think standard healthchecks >> wouldn't be sufficient for my purpose and my question still stands: how to >> use result... >> >> On Mon, Sep 12, 2016 at 1:48 PM, haosdent <[email protected]> wrote: >> >>> Hi, @victor What's your health check agent used for? Because Mesos >>> supports health checks now. >>> >>> On Tue, Sep 13, 2016 at 1:46 AM, Victor L <[email protected]> wrote: >>> >>>> Hello, >>>> I am writing "healthcheck agent" for mesos deployment framework as >>>> independent thread periodically checking if main process ( started by >>>> framework) is running... >>>> What would be the mechanism to "communicate" failure to the framework >>>> to cause specific outcome? For example: how can i use failure to cause >>>> framework to reschedule deployment on different node? >>>> Thanks, >>>> >>> >>> >>> >>> -- >>> Best Regards, >>> Haosdent Huang >>> >> >> > > > -- > Best Regards, > Haosdent Huang >

