kostya / eye

Process monitoring tool. Inspired from Bluepill and God.
MIT License
1.19k stars 89 forks source link

Add another process to existing application #215

Closed jbmyid closed 6 years ago

jbmyid commented 6 years ago

I am trying to create separate eye files per process and trying to load. but last loaded process replaces existing one.

Is there any way to add process in already defined application?

kostya commented 6 years ago

no, application should be described fully. in your case, you should create 2 applications.

jbmyid commented 6 years ago

how about grouping the processes. eg: resque job i want to group but also want to be separate files as it should be flexible to run/add it for particular instance.

Actually we were using god and that was very useful.

kostya commented 6 years ago

you can separate you process descriptions to multiple files, but application should be defined fully as one block. you can add or remove processes from this app, and just recall load and it would updated (added or removed processes from application would be removed or added). examples: https://github.com/kostya/eye/blob/master/examples/thin-farm.eye, and thin self, port defined in https://github.com/kostya/eye/blob/master/examples/process_thin.rb

kostya commented 6 years ago

also example https://github.com/kostya/eye/wiki/About-stop_on_delete-=-true

jbmyid commented 6 years ago

Thanks, i had to go with multi application approach. It would be really great if processes can be added after application loading.

kostya commented 6 years ago

just add process to application config and load config again, process would be added, you just need to have application config somewhere (in your application)