cloudify 2.7 locator NO_PROCESS_LOCATORS

ⅰ亾dé卋堺 提交于 2019-12-02 20:15:50

问题


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?


回答1:


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!