I am using the cloudify(version 2.7),when I try to develop a recipe,just a simple command(java -jar some.jar
),the events grid display "Service Instance non-responsive",and the lifcycle restart again and again,but when I add the lifecycle locator
locator {
NO_PROCESS_LOCATORS
}
it is ok!
I want to know how it works, I read the example recipe
on the github, and they don't have the locator lifecycle
,what are they speciled?
By default, Cloudify assumes that a recipe will launch a process and that process should stay alive. If the process shuts down, this is assumed to be a crash and the process is restarted. This is typical for server type applications.
If your use case is different, you can add the locator element. The locator tells Cloudify which process should be monitored. The NO_PROCESS_LOCATORS keyword tells Cloudify that no process should be monitored - it is equivalent to returning an empty list ('[]')
来源:https://stackoverflow.com/questions/27542694/cloudify-2-7-locator-no-process-locators