Background:
There are multiple independent Java program, every Java program is not complicated, do not need to provide services, according to the need to deploy on different servers, respectively read kafka and put in storage, for example, regularly read the db table and simple data processing, etc., most of the servers is Linux, may contain Windows, etc., so how do you so much convenient and efficient management of Java program?
Temporarily thought of demand points:
1, [important] has a unified, convenient method to get the application server's IP, running state (such as whether to hang up, hang live, etc.);
2, easy to [important], elegant start-stop program, is under control of closed as far as possible, rather than kill process of violence,
3, [optional] Java program host server CPU/memory/disk resources, such as
Now think of a few solutions:
1. Every Java program to regularly update the DB is one of the data, or written to a zookeeper, similar to a heartbeat signal, and then a separate process to monitor and alarm,
2. Registered with the service platform, but given the independent Java program actually does not provide service, do not know whether appropriate,
We ask you,