Search code examples
recipecloudify

Cloudify restart livecycle event


I'm writing a cloudify recipe and I am trying to manage the HA. In the cloudify doc, i saw the following concerning the "stopDetection" probe:

It is important to note that Cloudify will invoke the restart event if you implemented one and the start event will only serve as a fallback.

Does it means that cloudify has a "restart" lifecycle event (such as start, stop)?

Thanks.


Solution

  • The "stopDetection" life cycle event handler notifies Cloudify that the process is dead and then as a result, Cloudify invokes the "start" life cycle event handler. - This means that the process is restarted and NOT the VM.

    Cloudify 2.7* doesn't have a VM "restart" event handler.

    If you need to restart a vm via Cloudify, you can use the Cloudify maintenance mode.

    HTH,

    Tamir.