Method, device and equipment for detecting anomaly of PaaS application program

By introducing a proxy Agent in the PaaS platform, system-level health checks are performed on the application container and application health checks are performed when the results are normal, the problem of tight coupling between application side health checks and application containers in the prior art is solved, and the effectiveness of decoupling and abnormal handling of health checks for applications and application containers is achieved.

CN119728481AActive Publication Date: 2025-03-28INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411952540.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-27
Publication Date
2025-03-28
Estimated Expiration
2044-12-27

AI Technical Summary

Technical Problem

In the health inspection program of the existing PaaS platform, the health inspection on the application side is closely coupled with the overall operation of the application container, and it is impossible to distinguish between the application's own problems and the health inspection abnormalities caused by the application container environment problems.

Method used

By introducing a proxy Agent, a system-level health check is carried out on the application container. If the results are normal, further health checks are carried out on the application. If the application's health check results are abnormal, the exception information is returned to the PaaS control device for processing.

Benefits of technology

It realizes the decoupling of health checks between applications and application containers, which facilitates the location and handling of health check abnormalities, and improves the accuracy and efficiency of troubleshooting and handling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119728481A_ABST
    Figure CN119728481A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an anomaly detection method, device and equipment for a PaaS application program, and relates to the field of cloud computing. The method is applied to a PaaS application server, a PaaS application program is deployed in an application container, and the method comprises the following steps: receiving a health detection instruction sent by a PaaS control device; performing system-level health examination on the application container by utilizing an agent according to the health detection instruction; if the health examination result of the system level of the application container is normal, performing health examination on the application program by utilizing the Agent; if the health examination result of the application program is abnormal, first abnormal information is returned to the PaaS control equipment, and the first abnormal information is used for the PaaS control equipment to process the abnormal application program. According to the method, decoupling of health examination of the application program and the application container is achieved, and positioning and processing of problems during health detection abnormity are facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of cloud computing, and in particular to a method, device and equipment for detecting anomalies in PaaS applications. Background Art

[0002] Platform as a Service (PaaS) is a cloud computing service model that provides users with an online platform that supports the development, operation and management of applications on a fully managed infrastructure. Users do not need to manage the underlying infrastructure (such as servers, storage and networks) or the platform's runtime environment, and only need to focus on writing and deploying application code.

[0003] For applications on the PaaS platform, the more common health check method is that the application side provides a health check link or health check script for the application, and the PaaS control device periodically initiates the execution of the health check link or health check script, and judges the health of the application based on the returned results. If there is an abnormality, the PaaS control device initiates a restart of the application container. However, in the above health check solution, the health check on the application side is tightly coupled with the overall operation of the application container, and it is impossible to distinguish whether the health check abnormality is caused by problems with the application itself or environmental problems with the application container. Summary of the invention

[0004] The present application provides a PaaS application anomaly detection method, apparatus, and device to achieve decoupling of health checks on applications and application containers, thereby facilitating the location and handling of problems when health checks are abnormal.

[0005] In a first aspect, the present application provides a method for detecting anomalies of a PaaS application, which is applied to a PaaS application server, wherein the PaaS application is deployed in an application container, and the method comprises:

[0006] Receive health check instructions sent by PaaS control devices;

[0007] Using an agent to perform a system-level health check on the application container according to the health check instruction;

[0008] If the system-level health check result of the application container is normal, the Agent is used to perform a health check on the application;

[0009] If the health check result of the application is abnormal, first abnormal information is returned to the PaaS control device, and the first abnormal information is used by the PaaS control device to process the abnormal application.

[0010] In a second aspect, the present application provides a method for detecting anomalies of a PaaS application, which is applied to a PaaS control device, wherein the PaaS application is deployed in an application container, and the method includes:

[0011] Send a health check instruction to the PaaS application server; the health check instruction is used to instruct the PaaS application server to use the agent to perform a system-level health check on the application container according to the health check instruction; if the system-level health check result of the application container is normal, use the agent to perform a health check on the application;

[0012] receiving first exception information sent by the PaaS application server, where the first exception information is sent when a health check result of the application program is abnormal;

[0013] The abnormal application is processed according to the first abnormal information.

[0014] In a third aspect, the present application provides a PaaS application anomaly detection device, which is applied to a PaaS application server, and the device includes:

[0015] A receiving module, used to receive health detection instructions sent by the PaaS control device;

[0016] A processing module, configured to use an agent to perform a system-level health check on the application container according to the health check instruction;

[0017] If the system-level health check result of the application container is normal, the Agent is used to perform a health check on the application;

[0018] The sending module is used to return first abnormal information to the PaaS control device if the health check result of the processing module on the application is abnormal, and the first abnormal information is used by the PaaS control device to process the abnormal application.

[0019] In a fourth aspect, the present application provides an anomaly detection device for a PaaS application, which is applied to a PaaS control device, and the device includes:

[0020] A sending module, used to send a health check instruction to the PaaS application server; the health check instruction is used to instruct the PaaS application server to use the agent Agent to perform a system-level health check on the application container according to the health check instruction; if the system-level health check result of the application container is normal, the Agent is used to perform a health check on the application;

[0021] A receiving module, configured to receive first abnormality information sent by the PaaS application server, wherein the first abnormality information is sent when a health check result of the application program is abnormal;

[0022] A processing module is used to process the abnormal application according to the first abnormal information.

[0023] In a fifth aspect, the present application provides a server, comprising: a processor, and a memory communicatively connected to the processor;

[0024] Memory stores computer-executable instructions;

[0025] The processor executes the computer-executable instructions stored in the memory to implement the method described in the first aspect.

[0026] In a sixth aspect, the present application provides a control device, comprising: a processor, and a memory communicatively connected to the processor;

[0027] Memory stores computer-executable instructions;

[0028] The processor executes the computer-executable instructions stored in the memory to implement the method described in the second aspect.

[0029] In a seventh aspect, the present application provides a computer-readable storage medium, in which computer-readable storage medium is stored computer execution instructions, which are used to implement the method described in the first aspect when the computer execution instructions are executed by a processor, or which are used to implement the method described in the second aspect when the computer execution instructions are executed by a processor.

[0030] In an eighth aspect, the present application provides a computer program product, comprising a computer program, which implements the method described in the first aspect when the computer program is executed by a processor, or implements the method described in the second aspect when the computer program is executed by a processor.

[0031] The anomaly detection method, device and equipment for PaaS applications provided in the present application realize the decoupling of the health check of the application and the application container. First, a system-level health check is performed on the application container. If the check result is normal, a health check is further performed on the application. If the health check result of the application is abnormal, the application is handled abnormally, which facilitates the location and handling of problems when health detection is abnormal. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0033] Figure 1A schematic diagram of an application scenario provided for an embodiment of the present application;

[0034] Figure 2 A schematic diagram of the conventional health detection principle of the PaaS application provided in the embodiment of the present application;

[0035] Figure 3 The process of the abnormality detection method of PaaS application provided in the embodiment of the present application Figure 1 ;

[0036] Figure 4 A schematic diagram of an anomaly detection method for a PaaS application provided in an embodiment of the present application;

[0037] Figure 5 The process of the abnormality detection method of PaaS application provided in the embodiment of the present application Figure 2 ;

[0038] Figure 6 The process of the abnormality detection method of PaaS application provided in the embodiment of the present application Figure 3 ;

[0039] Figure 7a Interaction process of the anomaly detection method of PaaS application provided in the embodiment of the present application Figure 1 ;

[0040] Figure 7b Interaction process of the anomaly detection method of PaaS application provided in the embodiment of the present application Figure 2 ;

[0041] Figure 8 A schematic diagram of the structure of the anomaly detection device for PaaS application provided in the embodiment of the present application Figure 1 ;

[0042] Fig. 9 A schematic diagram of the structure of the anomaly detection device for PaaS application provided in the embodiment of the present application Figure 2 ;

[0043] Fig.10 A schematic diagram of the structure of a server provided in an embodiment of the present application;

[0044] Fig.11 A schematic diagram of the structure of a control device provided in an embodiment of the present application.

[0045] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0046] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0047] It should be noted that the anomaly detection method, device and equipment for PaaS applications provided in this application can be used in the field of cloud computing, and can also be used in any field other than cloud computing. The application field of the anomaly detection method, device and equipment for PaaS applications in this application is not limited.

[0048] First combine Figure 1 An applicable application scenario of the present application is introduced.

[0049] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present application. Figure 1 As shown, it includes a PaaS application server 11 and a PaaS control device 12. The PaaS application server 11 and the PaaS control device 12 can communicate with each other through a network. The PaaS application server 11 is provided with multiple application programs, and the multiple application programs are deployed in an application container.

[0050] In related technologies, such as Figure 2 As shown, the PaaS control device periodically initiates the execution of a health check link or health script, and determines the health of the application based on the returned result. If there is an abnormality, the PaaS control device initiates a restart of the application container. However, in the above health check solution, the health check on the application side is tightly coupled with the overall operation of the application container, and it is impossible to distinguish whether the health check abnormality is caused by problems with the application itself or environmental problems with the application container.

[0051] The anomaly detection method for PaaS applications provided in this application is intended to solve the above technical problems in the prior art.

[0052] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0053] Figure 3 The process of the abnormality detection method of PaaS application provided in the embodiment of the present application Figure 1,This method is applied to PaaS application servers, and PaaS applications are deployed in ,application containers, such as Figure 3 As shown, the method includes:

[0054] S301, receiving a health check instruction sent by a PaaS control device;

[0055] Specifically, the health check instruction sent by the PaaS control device is used to instruct the PaaS application server to perform a health check on the application container and the application deployed in the application container.

[0056] Optionally, the PaaS control device can periodically send a health check instruction to trigger the PaaS application server to perform a health check. Optionally, before sending the health check instruction, it can be detected whether the time interval from the last health check is greater than or equal to a preset threshold; if the time interval is greater than or equal to the preset threshold, the health check quality is sent, that is, the health check is performed.

[0057] S302, using the agent to perform a system-level health check on the application container according to the health check instruction;

[0058] Specifically, the agent is used to perform system-level health checks on the application container according to health detection instructions, such as checks on the CPU, memory, processes, storage devices, input and output IO, etc.; such as CPU occupancy, memory usage (such as checking for memory leaks or shortages), the number of running processes, the available space of the storage device, the read and write speed, etc., whether the read and write operations are normal, such as whether the read and write speeds are normal, etc.

[0059] Based on the information obtained from the above-mentioned various aspects, determine whether the status of the application container is healthy, that is, whether the health check result is normal.

[0060] S303, if the system-level health check result of the application container is normal, use the Agent to perform a health check on the application;

[0061] If the health check result of the application is normal, the Agent is used to perform a health check on the application to ensure that the application is running normally. The health check of the application usually includes at least one of the following aspects:

[0062] 1. Availability check: Make sure the application is accessible, for example, by verifying whether a preset response message is returned through a simple HTTP request.

[0063] 2. Response time: Monitor the response time of the application to ensure that it provides responses within a reasonable time frame. Excessive response time may indicate performance issues.

[0064] 3. Resource usage: Check the system resources used by the application, including CPU, memory, disk I / O, and network bandwidth, to ensure that they are within the normal range.

[0065] 4. Dependency check: Verify whether the external services or components that the application depends on (such as databases, cache services, third-party application programming interfaces (APIs), etc.) are working properly.

[0066] 5. Log monitoring: Analyze application logs to detect errors, anomalies, or warning messages, which can help identify potential problems.

[0067] 6. Database connection: Ensure that the application can successfully connect to the database and perform basic query operations.

[0068] 7. Security check: Verify that the security configuration of the application is correct, such as checking the validity of the certificate, and whether the authentication and authorization mechanisms are working properly.

[0069] 8. Load Testing: Perform load testing regularly to determine the performance and stability of the application under high load conditions.

[0070] 9. Version and configuration check: Ensure that the application version and configuration are up to date and as expected.

[0071] Regularly performing health checks in the above areas can help identify and resolve potential problems and ensure application reliability and performance.

[0072] S304: If the health check result of the application is abnormal, first abnormal information is returned to the PaaS control device, and the first abnormal information is used by the PaaS control device to process the abnormal application.

[0073] If the health check result of the application in S303 is abnormal, that is, the status of the application is abnormal, the first abnormal information is returned to the PaaS control device. The first abnormal information is used by the PaaS control device to process the abnormal application, such as instructing to restart the application or issuing an alarm.

[0074] The PaaS application anomaly detection method provided in the present embodiment receives a health check instruction sent by a PaaS control device; uses an agent to perform a system-level health check on an application container according to the health check instruction; if the system-level health check result of the application container is normal, uses the agent to perform a health check on the application; further, if the health check result of the application is abnormal, returns first abnormal information to the PaaS control device, and the first abnormal information is used by the PaaS control device to process the abnormal application. The above scheme realizes the decoupling of the health check of the application and the application container. First, a system-level health check is performed on the application container. If the check result is normal, a health check is further performed on the application. If the health check result of the application is abnormal, the application is handled abnormally, which is convenient for locating and handling problems when the health check is abnormal.

[0075] In some embodiments, the step S303 of “using the Agent to perform a health check on the application” can be implemented in the following ways:

[0076] The Agent is used to call a detection program script or a detection link to perform a health check on the application.

[0077] Specifically, a detection program script or detection connection for health detection of the application program may be set in advance, and the detection program script or detection connection may be called by the Agent to perform health check on the application program.

[0078] In the above implementation, by using the Agent to call a detection program script or a detection link to perform a health check on the application, the health check on the application can be quickly implemented with high efficiency.

[0079] In some embodiments, the step S303 of “using the Agent to perform a health check on the application” can be implemented in the following ways:

[0080] Determine the applications to be checked based on their priorities;

[0081] The Agent is used to perform a health check on the application to be checked.

[0082] Specifically, the priority of the application can be determined, and based on the priority, the current application to be checked can be determined. For example, for multiple applications, health checks can be performed on multiple applications in sequence according to their priority levels to avoid checking multiple applications at the same time, which would occupy more resources and affect the normal use of the business.

[0083] In some embodiments, after step S304, the following steps are also included:

[0084] receiving a first restart instruction sent by the PaaS control device; the first restart instruction is used to instruct to restart the abnormal application program;

[0085] Restart the application according to the first restart instruction.

[0086] Specifically, the PaaS control device receives first abnormal information indicating that the health check result of the application is abnormal, and sends a first restart instruction to the PaaS application server to instruct to restart the abnormal application; the PaaS application server restarts the application according to the first restart instruction. For example, the PaaS application server restarts the application using an Agent according to the first restart instruction.

[0087] In the above implementation, the first restart instruction is sent to the PaaS application server through the PaaS control device, instructing to restart the abnormal application, thereby realizing problem troubleshooting of the abnormal application without restarting the entire application container, thereby reducing the impact on the entire system.

[0088] In some embodiments, step S302 of "using the agent to perform a system-level health check on the application container according to the health check instruction" can be specifically implemented in the following manner:

[0089] Using the Agent to collect system-level status information of the application container, the status information includes at least one of the following: CPU status information, memory status information, process status information, storage device status information, and input / output IO status information;

[0090] Determine a health check result of the system level of the application container according to the status information of the system level of the application container;

[0091] After step S302, the method further includes:

[0092] If the health check result of the system level of the application container is abnormal, returning second abnormal information to the PaaS control device;

[0093] receiving a second restart instruction sent by the PaaS control device; the second restart instruction is used to instruct to restart the application container;

[0094] Restart the application container according to the second restart instruction.

[0095] Specifically, when performing a system-level health check on an application container, the Agent is used to collect system-level status information of the application container, and the system-level health check result of the application container is determined based on the collected system-level status information of the application container.

[0096] Exemplarily, for the CPU status information, if the CPU occupancy rate is greater than or equal to the first preset threshold, it is determined that the health check result of the system level of the application container is abnormal;

[0097] For the memory status information, if the memory usage is greater than or equal to a second preset threshold, it is determined that the system health check result of the application container is abnormal;

[0098] For the process status information, if the number of processes running simultaneously is greater than or equal to a third preset threshold, it is determined that the system health check result of the application container is abnormal;

[0099] For the storage device status information, if the available space of the storage device is less than or equal to a fourth preset threshold, it is determined that the system health check result of the application container is abnormal; or if the read and write speed of the storage device is less than or equal to a fifth preset threshold, it is determined that the system health check result of the application container is abnormal;

[0100] For the IO status information, if the read and write speed of the read and write operations is less than or equal to a sixth preset threshold, it is determined that the system health check result of the application container is abnormal.

[0101] Optionally, if the system-level health check result of the application container is abnormal, a second abnormality message is returned to the PaaS control device; the PaaS control device sends a second restart instruction to the PaaS application server according to the second abnormality message, and the PaaS application server receives the second restart instruction sent by the PaaS control device; the second restart instruction is used to instruct the application container to be restarted; the PaaS application server restarts the application container according to the second restart instruction, thereby implementing system-level exception handling.

[0102] In the above implementation, the Agent is used to collect the system-level status information of the application container, and the system-level health check result of the application container is determined based on the system-level status information of the application container; the system-level health check of the application container is implemented, and it is easier to collect the status information of the application container, thereby improving the reliability of the system and the user experience.

[0103] For example, Figure 5 As shown, the method comprises the following steps:

[0104] S51, PaaS controls the device to periodically trigger health detection instructions;

[0105] S52, determining whether to perform a system-level health check of the application container;

[0106] If it is determined that a system-level health check of the application container is to be performed, then S53 is executed, and the Agent collects health status information of the application container system level and performs a health check;

[0107] If it is determined that the system-level health check of the application container is not to be performed, then S54 is executed, the Agent calls the detection program script or detection link of the application to perform a health check on the application;

[0108] If it is not a health check instruction, execute S55 to determine whether it is a container restart instruction;

[0109] If it is a container restart instruction, execute S56 to restart the application program;

[0110] If it is not a container restart instruction, then S57 is executed, and the Agent calls the program script to restart the abnormal application program.

[0111] Figure 6 The process of the abnormality detection method of PaaS application provided in the embodiment of the present application Figure 2 ,This method is applied to PaaS control devices, and PaaS applications are deployed in ,application containers, such as Figure 6 As shown, the method includes:

[0112] S601, sending a health check instruction to the PaaS application server; the health check instruction is used to instruct the PaaS application server to use the agent to perform a system-level health check on the application container according to the health check instruction; if the system-level health check result of the application container is normal, the agent is used to perform a health check on the application;

[0113] S602: Receive first exception information sent by the PaaS application server, where the first exception information is sent when a health check result of the application program is abnormal;

[0114] S603: Process the abnormal application according to the first abnormal information.

[0115] In some embodiments, processing the abnormal application according to the first abnormal information includes:

[0116] A first restart instruction is sent to the PaaS application server; the first restart instruction is used to instruct to restart the abnormal application program.

[0117] In some embodiments, the method further comprises:

[0118] receiving second exception information sent by the PaaS application server; the second exception information is sent when it is determined that a health check result of the system level of the application container is abnormal, and the health check result of the system level of the application container is determined based on the status information of the system level of the application container;

[0119] According to the second exception information, a second restart instruction is sent to the PaaS application server; the second restart instruction is used to instruct to restart the application container.

[0120] The implementation principle and beneficial effects of the anomaly detection method for PaaS application provided in this embodiment are similar to those of the method on the PaaS application server side, and will not be described in detail here.

[0121] Figure 7a Interaction process of the anomaly detection method of PaaS application provided in the embodiment of the present application Figure 1 ,like Figure 7a As shown, the method includes:

[0122] S71. The PaaS control device sends a health detection instruction to the PaaS application server;

[0123] S72, the PaaS application server uses the agent to perform a system-level health check on the application container according to the health check instruction;

[0124] S73. If the system-level health check result of the application container is normal, the PaaS application server uses the Agent to perform a health check on the application;

[0125] S74: If the health check result of the application is abnormal, the PaaS application server returns first abnormal information to the PaaS control device;

[0126] S75. The PaaS control device processes the abnormal application according to the first abnormal information.

[0127] Figure 7b Interaction process of the anomaly detection method of PaaS application provided in the embodiment of the present application Figure 2 ,like Figure 7b As shown, the method includes:

[0128] S71. The PaaS control device sends a health detection instruction to the PaaS application server;

[0129] S72, the PaaS application server uses the agent to perform a system-level health check on the application container according to the health check instruction;

[0130] S72a, if the system-level health check result of the application container is abnormal, return second abnormal information to the PaaS control device;

[0131] S72b. The PaaS control device sends a first restart instruction to the PaaS application server, for instructing to restart the application container;

[0132] S73. If the system-level health check result of the application container is normal, the PaaS application server uses the Agent to perform a health check on the application;

[0133] S74: If the health check result of the application is abnormal, the PaaS application server returns first abnormal information to the PaaS control device;

[0134] S75. The PaaS control device sends a first restart instruction to the PaaS application server, which is used to instruct the restart of the abnormal application program.

[0135] To summarize, the method of the embodiment of the present application uses an agent to decouple the PaaS health check from the system level and the application level, and separates the application's health check, start, stop, restart and other actions from the application container, which facilitates the location of problems in the event of an abnormality. The Agent integrates the health check of the application container to facilitate the collection of status information of the operating environment within the application container.

[0136] Optionally, the Agent can be built into the base image of the application container for unified maintenance and upgrades, which is convenient for expansion and helps promote a standardized and unified health check mechanism for cloud applications.

[0137] Optionally, in the embodiments of the present application, a system-level health check, an application-level health check, or a health check strategy that combines the two can be independently set.

[0138] Figure 8 A schematic diagram of the structure of the anomaly detection device for PaaS application provided in the embodiment of the present application Figure 1 ,like Figure 8 As shown, the anomaly detection device for the PaaS application is applied to the PaaS application server, and the anomaly detection device for the PaaS application includes:

[0139] The receiving module 801 is used to receive the health detection instruction sent by the PaaS control device;

[0140] The processing module 802 is used to use the agent to perform a system-level health check on the application container according to the health check instruction;

[0141] If the system-level health check result of the application container is normal, the Agent is used to perform a health check on the application;

[0142] The sending module 803 is used to return first abnormal information to the PaaS control device if the health check result of the processing module on the application is abnormal, and the first abnormal information is used by the PaaS control device to process the abnormal application.

[0143] In a possible implementation, the processing module 802 is specifically configured to:

[0144] The Agent is used to call a detection program script or a detection link to perform a health check on the application.

[0145] In a possible implementation, the receiving module 801 is further configured to:

[0146] After the sending module 803 returns the first abnormal information to the PaaS control device, a first restart instruction sent by the PaaS control device is received; the first restart instruction is used to instruct to restart the abnormal application program;

[0147] The processing module 802 is further configured to:

[0148] Restart the application according to the first restart instruction.

[0149] In a possible implementation, the processing module 802 is specifically configured to:

[0150] Using the Agent to collect system-level status information of the application container, the status information includes at least one of the following: CPU status information, memory status information, process status information, storage device status information, and input / output IO status information;

[0151] Determine a health check result of the system level of the application container according to the status information of the system level of the application container;

[0152] In a possible implementation, the sending module 803 is further configured to:

[0153] If the health check result of the system level of the application container is abnormal, returning second abnormal information to the PaaS control device;

[0154] In a possible implementation, the receiving module 801 is further configured to:

[0155] receiving a second restart instruction sent by the PaaS control device; the second restart instruction is used to instruct to restart the application container;

[0156] The processing module 802 is further configured to:

[0157] Restart the application container according to the second restart instruction.

[0158] In a possible implementation, the processing module 802 is specifically configured to:

[0159] Determine the applications to be checked based on their priorities;

[0160] The Agent is used to perform a health check on the application to be checked.

[0161] The anomaly detection device for PaaS applications provided in the embodiment of the present application can execute the technical solution in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.

[0162] Fig. 9 A schematic diagram of the structure of the anomaly detection device for PaaS application provided in the embodiment of the present application Figure 2 ,like Fig. 9 As shown, the anomaly detection device for the PaaS application is applied to a PaaS control device, and the anomaly detection device for the PaaS application includes:

[0163] The sending module 901 is used to send a health check instruction to the PaaS application server; the health check instruction is used to instruct the PaaS application server to use the agent Agent to perform a system-level health check on the application container according to the health check instruction; if the system-level health check result of the application container is normal, the Agent is used to perform a health check on the application;

[0164] A receiving module 902 is used to receive first abnormality information sent by the PaaS application server, where the first abnormality information is sent when a health check result of the application program is abnormal;

[0165] The processing module 903 is used to process the abnormal application according to the first abnormal information.

[0166] In a possible implementation, the processing module 901 is specifically configured to:

[0167] The control sending module 901 sends a first restart instruction to the PaaS application server; the first restart instruction is used to instruct to restart the abnormal application program.

[0168] In a possible implementation, the receiving module 902 is further configured to:

[0169] receiving second exception information sent by the PaaS application server; the second exception information is sent when it is determined that a health check result of the system level of the application container is abnormal, and the health check result of the system level of the application container is determined based on the status information of the system level of the application container;

[0170] The sending module 901 is further used to send a second restart instruction to the PaaS application server according to the second abnormal information; the second restart instruction is used to instruct to restart the application container.

[0171] The anomaly detection device for PaaS applications provided in the embodiment of the present application can execute the technical solution in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.

[0172] Fig.10 This is a schematic diagram of the server structure provided for this application. Fig.10 As shown, the server provided in this embodiment includes: at least one processor 1001 and a memory 1002. Optionally, the server further includes a communication component 1003. The processor 1001, the memory 1002 and the communication component 1003 are connected via a bus.

[0173] In a specific implementation process, at least one processor 1001 executes the computer-executable instructions stored in the memory 1002, so that at least one processor 1001 executes the above method.

[0174] The specific implementation process of processor 1001 can refer to the method embodiment of the above-mentioned PaaS application server side. Its implementation principle and technical effects are similar, and this embodiment will not be repeated here.

[0175] Fig.11 This is a schematic diagram of the structure of the control device provided in this application. Fig.11 As shown, the control device provided in this embodiment includes: at least one processor 1101 and a memory 1102. Optionally, the device further includes a communication component 1103. The processor 1101, the memory 1102 and the communication component 1103 are connected via a bus.

[0176] In a specific implementation process, at least one processor 1101 executes the computer-executable instructions stored in the memory 1102, so that at least one processor 1101 executes the above method.

[0177] The specific implementation process of the processor 1101 can refer to the method embodiment of the above-mentioned PaaS control device side. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.

[0178] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0179] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk memory.

[0180] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0181] The present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.

[0182] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.

[0183] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0184] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.

[0185] The division of units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.

[0186] The units described as separate components may or may not be physically separated, and the components shown as units 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 units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0187] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0188] If the function 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 technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0189] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0190] In the above embodiments, the description of each embodiment has its own emphasis. For the part not described in detail in a certain embodiment, please refer to the relevant description of other embodiments. The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0191] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0192] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A PaaS application anomaly detection method, characterized in that: Applied to a PaaS application server, the PaaS application is deployed in an application container, and the method includes: Receive health check instructions sent by PaaS control devices; Using an agent to perform a system-level health check on the application container according to the health check instruction; If the system-level health check result of the application container is normal, the Agent is used to perform a health check on the application; If the health check result of the application is abnormal, first abnormal information is returned to the PaaS control device, and the first abnormal information is used by the PaaS control device to process the abnormal application.

2. The method according to claim 1, characterized in that The using the Agent to perform health check on the application includes: The Agent is used to call a detection program script or a detection link to perform a health check on the application.

3. The method according to claim 1 or 2, characterized in that: After returning the first abnormal information to the PaaS control device, the method further includes: receiving a first restart instruction sent by the PaaS control device; the first restart instruction is used to instruct to restart the abnormal application program; Restart the application according to the first restart instruction.

4. The method according to claim 1 or 2, characterized in that: The utilizing agent Agent performs a system-level health check on the application container according to the health check instruction, including: Using the Agent to collect system-level status information of the application container, the status information includes at least one of the following: CPU status information, memory status information, process status information, storage device status information, and input / output IO status information; Determine a health check result of the system level of the application container according to the status information of the system level of the application container; After the agent performs a system-level health check on the application container according to the health check instruction, the method further includes: If the health check result of the system level of the application container is abnormal, returning second abnormal information to the PaaS control device; receiving a second restart instruction sent by the PaaS control device; the second restart instruction is used to instruct to restart the application container; Restart the application container according to the second restart instruction.

5. The method according to claim 1 or 2, characterized in that: The using the Agent to perform health check on the application includes: Determine the applications to be checked based on their priorities; The Agent is used to perform a health check on the application to be checked.

6. A method for detecting anomalies in a PaaS application, characterized in that: Applied to a PaaS control device, the PaaS application is deployed in an application container, and the method includes: Send a health check instruction to the PaaS application server; the health check instruction is used to instruct the PaaS application server to use the agent to perform a system-level health check on the application container according to the health check instruction; if the system-level health check result of the application container is normal, use the agent to perform a health check on the application; receiving first exception information sent by the PaaS application server, where the first exception information is sent when a health check result of the application program is abnormal; The abnormal application is processed according to the first abnormal information.

7. The method according to claim 6, characterized in that The processing of the abnormal application according to the first abnormal information includes: A first restart instruction is sent to the PaaS application server; the first restart instruction is used to instruct to restart the abnormal application program.

8. The method according to claim 6 or 7, characterized in that: The method further comprises: receiving second exception information sent by the PaaS application server; the second exception information is sent when it is determined that a health check result of the system level of the application container is abnormal, and the health check result of the system level of the application container is determined based on the status information of the system level of the application container; According to the second exception information, a second restart instruction is sent to the PaaS application server; the second restart instruction is used to instruct to restart the application container.

9. A PaaS application anomaly detection device, characterized in that: Applied to a PaaS application server, the device comprises: A receiving module, used to receive health detection instructions sent by the PaaS control device; A processing module, configured to use an agent to perform a system-level health check on the application container according to the health check instruction; If the system-level health check result of the application container is normal, the Agent is used to perform a health check on the application; The sending module is used to return first abnormal information to the PaaS control device if the health check result of the processing module on the application is abnormal, and the first abnormal information is used by the PaaS control device to process the abnormal application.

10. A PaaS application anomaly detection device, characterized in that: Applied to PaaS control equipment, the device includes: A sending module, used to send a health check instruction to the PaaS application server; the health check instruction is used to instruct the PaaS application server to use the agent Agent to perform a system-level health check on the application container according to the health check instruction; if the system-level health check result of the application container is normal, the Agent is used to perform a health check on the application; A receiving module, configured to receive first abnormality information sent by the PaaS application server, wherein the first abnormality information is sent when a health check result of the application program is abnormal; A processing module is used to process the abnormal application according to the first abnormal information.

11. A PaaS application server, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 5.

12. A PaaS control device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 6 to 8.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 5, or to implement the method according to any one of claims 6 to 8 when executed by a processor.

14. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 5, or implements the method according to any one of claims 6 to 8.

Citation Information

Patent Citations

  • Secure computer platform based on cloud computing

    CN113157499A

  • K8s container cluster health examination system and examination method

    CN116541129A

  • Parallel upgrade of nodes in a storage system

    US10990286B1