Table of Contents
This chapter describes a node manager that manages Reliable Queue Server (RQS) processes.
A node manager manages non-server processes (currently RQS processes) as well as server processes. It starts and terminates RQS processes, checks whether they are alive, and restarts them if they were terminated abnormally. For this, the node manager operates regardless of server or node configuration and uses separately configured information.
RQS processes are managed only by a node manager located in the same machine (node). RQS processes cannot be managed if a node manager does not operate.
The following describes how a node manager manages RQS processes.
An RQS process is started by using a file path and options set in a configuration file. Since the process is independent of a server, it starts and terminates regardless of a server. A node manager reads RQS-related configuration during startup and monitors RQS processes according to the information. If the node manager detects that no RQS process operates, it will start the process.
A node manager reads RQS-related information from the jeusnm.xml file and saves it.
The node manager creates an RQS management object by using RQS-related information and then a monitoring thread.
The monitoring thread accesses RQS processes by using the RQS-related information and monitors the processes.
If an RQS process that is terminated abnormally or does not send a response is detected, it will be restarted.
RQS processes are restarted in the same order as above.
While RQS processes are monitored, a monitoring-related file is not created. Messages sent and received between a monitoring thread and RQS processes are used to access and monitor RQS processes and determine whether RQS processes are terminated normally. If a node manager cannot receive a response message from an RQS process after sending a message for checking the status of the RQS process several times, it will determine that the RQS process is terminated abnormally.
If a node manager determines that an RQS process is terminated abnormally, the process will be restarted. Before restarting the process, the process is killed to make sure that the process is terminated. After restarting the process, a monitoring thread is created to monitor the restarted process.
A node manager uses RQS-related configuration to manage RQS processes. RQS processes are started and managed through the configuration.
RQS processes are started and managed through configuration in rqsList of the jeusnm.xml file. The processes are created and removed by modifying the jeusnm.xml file.
Item | Description |
---|---|
processList | Information about RQS processes. Each RQS item under processList contains information about a single process. |
To manage multiple RQS processes, add as many RQS items under processList as the number of RQS processes.
You can add or delete an RQS process by using the jeusnm.xml file. Under the processList item, you can configure properties for each RQS process and the node manager will manage them.