A software health management method, device, equipment and storage medium
By configuring the startup sequence and dependencies of the file management process, combined with high-availability management process pairs and health management services, high availability and thread-level monitoring of the software health management system are achieved, and the downtime of the software health management system in the existing technology is solved. It solves the problem of long and unstable functions and improves the user experience.
Patent Information
- Application Number
- CN202210081205.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-24
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-01-24
AI Technical Summary
The existing software health management system has abnormalities during the monitoring and recovery process, resulting in long system downtime, unstable functions, and failure to effectively monitor thread-level issues, making it unable to meet high availability and functional safety requirements.
Manage the startup sequence, dependencies and restart strategies of processes through configuration files, use high-availability management process pairs and health management services to achieve real-time monitoring and recovery of processes and threads, and use daemons and mirror daemons for failover to reduce software downtime. time.
It implements high-availability software health management, reduces system downtime, ensures high availability of services, improves user experience, and enables thread-level monitoring and time threshold configuration through configuration files.
Smart Images

Figure CN114546517B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of software health management, and in particular, relates to a software health management method, device, equipment and storage medium. Background Art
[0002] Modern cars have more and more functions, and their software is becoming more and more complex. There are many processes in each system, and each process consists of several threads. Functional safety requires that automotive software be reliable and highly available, so software health management is crucial.
[0003] Generally, when software has problems, the recovery mechanism is to start from scratch, or the health management of the software is to monitor the process level only, and only restore the single process after a process crashes. However, the cost of starting from scratch is very high, and only monitoring the process level cannot meet the functional safety requirements well. A thread may not work properly due to deadlock and other reasons. When this happens, the normal function of the system will also be affected. In addition, some processes are dependent on other processes. Restoring only a single problematic process may result in inconsistent data and communication between the restored process and other processes, resulting in abnormal hidden dangers in the system.
[0004] A system contains many processes, each of which contains many threads. The traditional method monitors other processes through the health management process. When a process is detected to be abnormal, it is directly restarted or killed and restarted. However, this method has the following problems:
[0005] 1. If there is an abnormality in the health management process, the entire monitoring will fail;
[0006] 2. There may be some kind of dependency between multiple processes. For example, if process 2 depends on process 1, then process 1 must be started earlier than process 2. If process 1 is abnormal during running, only process 1 is killed and restarted. There is a dependency between process 1 and process 2. After process 1 is restarted, some initial states or communication data may be unequal, causing system abnormality.
[0007] 3. Only process-level monitoring is done, not thread-level monitoring. If there is a problem with the thread, it may also lead to systemic risks. For example, if there is a problem with the thread responsible for receiving messages in the HMI (human-machine interaction application), the entire HMI will stop updating, so thread monitoring is also crucial; 4. It is not configurable through configuration files. Summary of the invention
[0008] The purpose of the present invention is to provide a software health management method, device, equipment and storage medium, which solves the technical problem that the monitoring method of the existing software health monitoring system may cause software system abnormalities.
[0009] To achieve the above object, the present invention is achieved through the following technical solutions:
[0010] A software health management method, the method comprising:
[0011] When the system is detected to be started, the life cycle management module is started;
[0012] The lifecycle management module starts each process one by one according to the preset configuration file;
[0013] After detecting that the lifecycle management module is started, the high availability management process pair is started;
[0014] The daemon process and the mirror daemon process in the high-availability management process pair are both in the startup state, and the daemon process monitors the health management server process in real time;
[0015] When the daemon process fails and terminates, the mirror daemon process obtains the same correct state before the daemon process fails, and takes over the daemon process as the new daemon process;
[0016] The new daemon process creates a new mirror daemon process, and the new mirror daemon process is also in the started state.
[0017] The high-availability management process pair is specifically: it is a pair of processes, process A and its mirror daemon exist at the same time. Process A running in the system is responsible for monitoring the health management server process. A mirror daemon is also running and is always ready to take over the role of process A. The mirror process can obtain the same correct state as before the failure of process A. When process A itself is terminated, its mirror daemon will take over the role of process A and create another mirror daemon for itself, and so on. Therefore, this design is highly available and can greatly reduce software downtime. The high-availability management process pair is responsible for monitoring the health management server process. If an abnormality is found, the health management server process will be killed and restarted by the lifecycle management module.
[0018] Optionally, the daemon process real-time monitoring of the health management server process includes:
[0019] Monitor whether the health management server process is abnormal;
[0020] When an exception occurs in the health management server process, terminate the health management server process;
[0021] When the health management server process is terminated, the lifecycle management module is notified to restart the health management server process.
[0022] Optionally, the health management server process is used to monitor other threads including:
[0023] The monitored thread connects to the server through the client interface provided by the health management module through inter-process communication, and sends heartbeats to the server periodically;
[0024] The server receives and updates the heartbeat time of each thread;
[0025] The server side cyclically detects the heartbeat information of the threads that need to be monitored, and handles the processes of the threads with abnormal heartbeats accordingly (recording logs and killing related processes);
[0026] The process where the problem thread is located is killed, and the lifecycle management module determines whether to restart the process based on the crash recovery strategy of the process.
[0027] Optionally, the configuration file also includes:
[0028] The configuration file configures the dependencies between processes. For example, if process 2 depends on process 1, if process 1 crashes due to some reasons, the lifecycle management module will also kill process 2, and then start process 1 and process 2 in sequence according to the dependencies. This operation ensures the information synchronization between the processes in the system.
[0029] The configuration file configures the dependencies between processes. For example, if process 2 depends on process 1, if process 1 crashes due to some reasons, the lifecycle management module will also kill process 2, and then start process 1 and process 2 in sequence according to the dependencies. This operation ensures the information synchronization between the processes in the system.
[0030] The configuration file contains the list of processes and threads that need to be monitored and the time thresholds;
[0031] Different thread monitoring processes are performed differently according to different time thresholds. The time threshold can be set to 2 levels (2 seconds and 5 seconds). Different processes are performed according to the time threshold level of the heartbeat loss of the monitored thread.
[0032] A client requests to connect to the health management server process. If the client is in the list in the configuration file, the server adds the client and starts monitoring its status.
[0033] If the client name is not in the list in the configuration file, the client's connection request is ignored and an error log is recorded.
[0034] Optionally, the two levels of the time threshold specifically include:
[0035] When the heartbeat loss time of the monitoring thread reaches 2 seconds, which is the first gear, only log processing is recorded. When the loss time reaches 5 seconds, which is the second gear, the process where the thread is located needs to be killed. If the process where the problem thread is located is killed, the lifecycle management module determines whether to restart the process based on the crash recovery strategy of the process.
[0036] Optionally, the restart strategy of the lifecycle management module is:
[0037] Configure process 1 as an automatic restart strategy through the configuration file. When process 1 crashes due to some circumstances, the lifecycle management module will restart process 1.
[0038] Set the services and application processes in the system to restart automatically. To ensure that they can restart after a crash, they can generally be set to restart automatically, but this is not absolute. You can configure it according to design requirements.
[0039] Optionally, the policy after the health management server process crashes is:
[0040] After the health management server process crashes, the lifecycle management module will restart it;
[0041] During the period when the health management server process crashes, the client will fail to send heartbeats because the communication server node no longer exists.
[0042] If the client fails to send a heartbeat, it will reconnect to the server in the following two situations:
[0043] 1). If the connection is successful, the heartbeat is sent again;
[0044] 2). If the connection fails, there will be a retry connection process. If the retry succeeds, the heartbeat will be sent again. If the number of retries is exceeded, an error log will be recorded and the connection and heartbeat will no longer be sent.
[0045] This part of the processing is encapsulated in the Client interface function and does not require thread user processing.
[0046] Optionally, the 2 levels of the time threshold are time levels, such as the first level is 2 seconds and the second level is 5 seconds. When the heartbeat loss time of the monitoring thread reaches 2 seconds, only log processing is recorded. When the loss time reaches 5 seconds, the process where the thread is located needs to be killed, and the first level is always smaller than the second level.
[0047] Optionally, the high availability management process pair includes:
[0048] Daemon process, mirror daemon process of the daemon process, daemon process is responsible for monitoring the health management server process;
[0049] The mirror daemon process is used to take over the daemon process when the daemon process is terminated abnormally.
[0050] A software health management device, the device comprising:
[0051] Software system health management module, which includes life cycle management module and health management module;
[0052] The lifecycle management module is used to wake up the high-availability management process pair and restart the abnormal process or thread that was killed. Other applications and services in the system are also started by the lifecycle management module. The lifecycle management module starts the corresponding applications and services based on the configuration file. The configuration file defines the startup sequence, dependency, resource allocation, restart strategy, etc.
[0053] The health management module is used to monitor processes and threads within processes.
[0054] A software health management device, the device comprising:
[0055] A memory storing at least one instruction;
[0056] The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device (such as audio data, etc.), etc. In addition, the memory may include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SmartMediaCard, SMC), a secure digital (SecureDigital, SD) card, a flash card (FlashCard), at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices.
[0057] The processor executes the instructions stored in the memory to implement the software health management method.
[0058] The processor may be a central processing unit, or other general-purpose processors, digital signal processors, application-specific integrated circuits, off-the-shelf programmable gate arrays or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0059] The electronic device may be any electronic product that can perform human-computer interaction with a user, such as a personal computer, a tablet computer, a smart phone, a personal digital assistant, a game console, an interactive network television, a smart wearable device, etc.
[0060] A software health management storage medium includes at least one instruction stored therein, and the at least one instruction is executed by a processor in a software health management device to implement a software health management method.
[0061] The embodiments of the present invention have the following beneficial effects:
[0062] This solution configures the startup order, dependencies, resource allocation, and restart strategy of processes through configuration files, and establishes a highly available software health management method through a highly recoverable management process (mirror pair) and health management service. It can also achieve thread-level monitoring and configurable time thresholds through configuration files, ensuring that the entire system software reduces downtime and maintains high availability of its services, so that users are basically unaware of software failures, thereby improving user experience.
[0063] Of course, any product implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] The drawings constituting a part of the present application are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0065] Figure 1 A structural block diagram of a software health management system according to an embodiment of the present invention;
[0066] Figure 2 A structural block diagram of a life cycle management module according to an embodiment of the present invention;
[0067] Figure 3 This is a structural block diagram of a health management module according to an embodiment of the present invention;
[0068] Figure 4 A structural block diagram of a software system according to an embodiment of the present invention;
[0069] Figure 5 The figure is a flowchart of a software health management system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0070] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present invention and its application or use.
[0071] In order to keep the following description of the embodiments of the present invention clear and concise, detailed descriptions of well-known functions and well-known components are omitted.
[0072] Embodiment 1:
[0073] See also Figure 1-5 As shown, in this embodiment, a software health management method is provided, and the method includes:
[0074] When the system is detected to be started, the life cycle management module is started;
[0075] The lifecycle management module starts each process one by one according to the preset configuration file;
[0076] After detecting that the lifecycle management module is started, the high availability management process pair is started;
[0077] The daemon process and the mirror daemon process in the high-availability management process pair are both in the startup state, and the daemon process monitors the health management server process in real time;
[0078] When the daemon process fails and terminates, the mirror daemon process obtains the same correct state before the daemon process fails, and takes over the daemon process as the new daemon process;
[0079] The new daemon process creates a new mirror daemon process, and the new mirror daemon process is also in the started state.
[0080] The specific role of the high-availability management process pair is as follows: What should be done when the health management server process is abnormal? Who will monitor it? If it is not monitored, there will be a risk of the entire monitoring failing. If another process A is designed to monitor the health management server process, then who will monitor process A? This is a vicious cycle; therefore, the present invention designs a high-availability management process pair to monitor the health management server process. It is a pair of processes. Process A and its mirror daemon process exist at the same time. Process A running in the system is responsible for monitoring the health management server process. A mirror daemon process is also running and is always ready to take over the role of process A. The mirror process can obtain the same correct state of process A before the failure. When process A itself is terminated, its mirror daemon process will take over the role of process A and create another mirror daemon process for itself, and so on. Therefore, this design is highly available and can greatly reduce software downtime. The high-availability management process pair is responsible for monitoring the health management server process. If an abnormality is found, the health management server process will be killed and restarted by the life cycle management module.
[0081] like Figure 2 As shown, the daemon process real-time monitoring of the health management server process includes:
[0082] Monitor whether the health management server process is abnormal;
[0083] When an exception occurs in the health management server process, terminate the health management server process;
[0084] When the health management server process is terminated, the lifecycle management module is notified to restart the health management server process.
[0085] like Figure 3 As shown, the health management server process is used to monitor other threads including:
[0086] The monitored thread connects to the server through the client interface provided by the health management module through inter-process communication, and sends heartbeats to the server periodically;
[0087] The server receives and updates the heartbeat time of each thread;
[0088] The server side cyclically detects the heartbeat information of the threads that need to be monitored, and handles the processes of the threads with abnormal heartbeats accordingly (recording logs and killing related processes);
[0089] The process where the problem thread is located is killed, and the lifecycle management module determines whether to restart the process based on the crash recovery strategy of the process.
[0090] The configuration file also includes:
[0091] The configuration file contains the list of processes and threads that need to be monitored and the time thresholds;
[0092] Different thread monitoring processes are performed differently according to different time thresholds. The time threshold can be set to 2 levels (2 seconds and 5 seconds). Different processes are performed according to the time threshold level of the heartbeat loss of the monitored thread.
[0093] A client requests to connect to the health management server process. If the client is in the list in the configuration file, the server adds the client and starts monitoring its status.
[0094] If the client name is not in the list in the configuration file, the client's connection request is ignored and an error log is recorded.
[0095] The two levels of time threshold include:
[0096] When the heartbeat loss time of the monitoring thread reaches 2 seconds, which is the first gear, only log processing is recorded. When the loss time reaches 5 seconds, which is the second gear, the process where the thread is located needs to be killed. If the process where the problem thread is located is killed, the lifecycle management module determines whether to restart the process based on the crash recovery strategy of the process.
[0097] The restart strategy of the lifecycle management module is:
[0098] Configure process 1 as an automatic restart strategy through the configuration file. When process 1 crashes due to some circumstances, the lifecycle management module will restart process 1.
[0099] Set the services and application processes in the system to restart automatically. To ensure that they can restart after a crash, they can generally be set to restart automatically, but this is not absolute. You can configure it according to design requirements.
[0100] The policy after the health management server process crashes is:
[0101] After the health management server process crashes, the lifecycle management module will restart it;
[0102] During the period when the health management server process crashes, the client will fail to send heartbeats because the communication server node no longer exists.
[0103] If the client fails to send a heartbeat, it will reconnect to the server in the following two situations:
[0104] 1). If the connection is successful, the heartbeat is sent again;
[0105] 2). If the connection fails, there will be a retry connection process. If the retry succeeds, the heartbeat will be sent again. If the number of retries is exceeded, an error log will be recorded and the connection and heartbeat will no longer be sent.
[0106] This part of the processing is encapsulated in the Client interface function and does not require thread user processing.
[0107] The 2 levels of the time threshold are time levels. For example, the first level is 2 seconds and the second level is 5 seconds. When the heartbeat loss time of the monitoring thread reaches 2 seconds, only log processing is recorded. When the loss time reaches 5 seconds, the process where the thread is located needs to be killed. The first level is always smaller than the second level.
[0108] The high availability management process pair includes:
[0109] Daemon process, mirror daemon process of the daemon process, daemon process is responsible for monitoring the health management server process;
[0110] The mirror daemon process is used to take over the daemon process when the daemon process is terminated abnormally.
[0111] Embodiment 2:
[0112] A software health management device, the device comprising:
[0113] Software system health management module, which includes life cycle management module and health management module;
[0114] The lifecycle management module is used to wake up the high-availability management process pair and restart the abnormal process or thread that was killed. Other applications and services in the system are also started by the lifecycle management module. The lifecycle management module starts the corresponding applications and services based on the configuration file. The configuration file defines the startup sequence, dependency, resource allocation, restart strategy, etc.
[0115] The health management module is used to monitor processes and threads within processes.
[0116] Embodiment 3:
[0117] A software health management device, the device comprising:
[0118] A memory storing at least one instruction;
[0119] The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device (such as audio data, etc.), etc. In addition, the memory may include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SmartMediaCard, SMC), a secure digital (SecureDigital, SD) card, a flash card (FlashCard), at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices;
[0120] The memory may be external memory and / or internal memory of the device.
[0121] The processor executes the instructions stored in the memory to implement the software health management method.
[0122] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0123] The software health management method is applied to one or more electronic devices, where the electronic device is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application-specific integrated circuits, programmable gate arrays, digital processors, embedded devices, etc.
[0124] The electronic device may be any electronic product that can perform human-computer interaction with a user, such as a personal computer, a tablet computer, a smart phone, a personal digital assistant, a game console, an interactive network television, a smart wearable device, etc.
[0125] The electronic device may also include a network device and / or a user device. The network device includes, but is not limited to, a single network server, a server group consisting of multiple network servers, or a cloud based on cloud computing consisting of a large number of hosts or network servers. The network in which the electronic device is located includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network, etc.
[0126] It is understandable that when the programmer writes the process of each module, the process name of each process has been determined, so a process can be uniquely determined by the process name of each module. The device monitors each process according to the process name of each module, which can avoid monitoring errors.
[0127] Embodiment 4:
[0128] A software health management storage medium includes at least one instruction stored therein, and the at least one instruction is executed by a processor in a software health management device to implement a software health management method.
[0129] It can be seen from the above technical solutions that the present invention configures the startup order, dependencies and resource allocation of processes through configuration files, establishes a highly available software health management method through a highly recoverable management process (mirror pair) and health management service, and can achieve thread-level monitoring and configurable time thresholds through configuration files, thereby ensuring that the entire system software reduces downtime and maintains the high availability of its services, so that users basically do not feel software failures, thereby improving user experience.
[0130] If the module / unit integrated in the device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps of each of the above-mentioned method embodiments can be implemented.
[0131] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0132] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0133] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0134] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0135] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.
[0136] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein.
[0137] In the description of the present invention, it is necessary to understand that the directions or positional relationships indicated by directional words such as "front, back, up, down, left, right", "lateral, vertical, perpendicular, horizontal" and "top, bottom" are usually based on the directions or positional relationships shown in the drawings. They are only for the convenience of describing the present invention and simplifying the description. Unless otherwise specified, these directional words do not indicate or imply that the devices or elements referred to must have a specific direction or be constructed and operated in a specific direction. Therefore, they cannot be understood as limiting the scope of protection of the present invention. The directional words "inside and outside" refer to the inside and outside relative to the contours of each component itself.
Claims
1. A software health management method, characterized in that: The method comprises: When the system is detected to be started, the life cycle management module is started; The lifecycle management module starts each process one by one according to the preset configuration file; After detecting that the lifecycle management module is started, the high availability management process pair is started; The daemon process and the mirror daemon process in the high-availability management process pair are both in the startup state, and the daemon process monitors the health management server process in real time; When the daemon process fails and terminates, the mirror daemon process obtains the same correct state before the daemon process fails, and takes over the daemon process to become the new daemon process; The new daemon creates a new mirror daemon, and the new mirror daemon is also in the started state; The configuration file also includes: The configuration file configures the dependencies between processes. Process 2 depends on process 1. If process 1 crashes due to some reasons, the lifecycle management module will also kill process 2, and then start process 1 and process 2 in sequence according to the dependencies. The configuration file also contains the list of processes and threads that need to be monitored and the time thresholds; Different thread monitoring processes are performed differently according to different time thresholds. The time threshold is set to level 2, and different processes are performed according to the time threshold level at which the heartbeat of the monitored thread is lost; A client requests to connect to the health management server process. If the client is in the list in the configuration file, the server adds the client and starts monitoring its status. If the client name is not in the list in the configuration file, the client's connection request is ignored and an error log is recorded; The two levels of time threshold include: When the heartbeat loss time of the monitoring thread reaches the first gear, only log processing is recorded. When the loss time reaches 5 seconds, which is the second gear, the process where the thread is located needs to be killed. The restart strategy of the lifecycle management module is: Configure process 1 as an automatic restart strategy through the configuration file. When process 1 crashes due to some circumstances, the lifecycle management module will restart process 1. Set the system's services and application processes to automatically restart; The policy after the health management server process crashes is: After the health management server process crashes, the lifecycle management module will restart it; During the period when the health management server process crashes, the client will fail to send heartbeats because the communication server node no longer exists. If the client fails to send a heartbeat, it will reconnect to the server in the following two situations: 1). If the connection is successful, the heartbeat is sent again; 2). If the connection fails, there will be a retry connection process. If the retry succeeds, the heartbeat will be sent again. If the number of retries exceeds, an error log will be recorded and the connection and heartbeat will not be sent again; The 2nd gear of the time threshold is the time gear, the time of the first gear is 2 seconds, the time of the second gear is 5 seconds, and the first gear is always smaller than the second gear.
2. A software health management method according to claim 1, characterized in that: The daemon process real-time monitoring of the health management server process includes: Monitor whether the health management server process is abnormal; When an exception occurs in the health management server process, terminate the health management server process; When the health management server process is terminated, the lifecycle management module restarts the health management server process.
3. A software health management method according to claim 1, characterized in that: The health management server process is used to monitor other threads including: The monitored thread connects to the server through the client interface provided by the health management module through inter-process communication, and sends heartbeats to the server periodically; The server receives and updates the heartbeat time of each thread; The server side cyclically detects the heartbeat information of the threads that need to be monitored, and handles the processes of the threads with abnormal heartbeats accordingly; The process where the problem thread is located is killed, and the lifecycle management module determines whether to restart the process based on the crash recovery strategy of the process.
4. A software health management method according to claim 1, characterized in that: High availability management process pairs include: Daemon process, mirror daemon process of the daemon process, daemon process is responsible for monitoring the health management server process; The mirror daemon process is used to take over the daemon process when the daemon process is terminated abnormally.
5. A software health management device, characterized in that: The equipment includes: A memory storing at least one instruction; A processor executes instructions stored in the memory to implement a software health management method as described in any one of claims 1-4.
6. A software health management storage medium, characterized in that: The storage medium includes at least one instruction stored therein, and the at least one instruction is executed by a processor in a software health management device to implement a software health management method as described in any one of claims 1-4.
