Chao Luo
Chao Luo

Reputation: 2696

cloudify 2.7 locator NO_PROCESS_LOCATORS

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?

Upvotes: 0

Views: 101

Answers (1)

Barak
Barak

Reputation: 3066

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 ('[]')

Upvotes: 0

Related Questions