Application management method and device, equipment, medium and program product
By pre-deploying monitoring tasks in distributed batch tasks, collecting application status and logs, and automatically obtaining error attribution and solutions, the problem of manual sorting of batch errors in the existing technology is solved, and the problem solving efficiency is improved.
Patent Information
- Application Number
- CN202510310676.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-17
- Publication Date
- 2025-05-02
AI Technical Summary
In the prior art, when a distributed batch task encounters batch errors during execution, operation and maintenance personnel need to perform manual sorting, which is inefficient and requires high knowledge reserves and experience. The emergency manual is prone to lag and cannot accurately guide the positioning and resolution of problems.
Through pre-deployed monitoring tasks, the application status and application log of the target application are collected. If an exception is detected to be found in the target application, the target error attribution and target solution will be obtained based on the error attribution, and the application batch task list will be generated and sent to the designated user in mail.
It realizes that error attribution and solutions are automatically given when applying exceptions, improves the problem-solving efficiency after batch task execution fails, and reduces manual intervention and thresholds for operation and maintenance personnel.
Smart Images

Figure CN119917378A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to an application management method, device, equipment, medium and program product. Background Art
[0002] If a distributed batch task of an existing application encounters batch errors during execution, the operation and maintenance personnel (application support personnel on duty in production, testers and environment managers in the test environment) need to manually sort out the error information in the actual status of the batch task and each shard task according to the emergency manual to find the root cause and solve the final problem.
[0003] However, in the existing technology, operation and maintenance personnel are required to traverse the error information and task status of all shards to retrieve documents, which is inefficient. In addition, to propose solutions, operation and maintenance personnel are required to fully understand the operation process and task distribution principles of distributed batches, which has a certain threshold for knowledge reserves and experience. Secondly, in the test environment, due to differences in environment and system, it is easy for operation and maintenance personnel to be unable to find the cause of the problem according to the emergency manual, and thus cannot further coordinate with corresponding positions to solve the problem. Finally, for general errors, the emergency manual often has a certain lag, which makes it impossible to accurately guide operation and maintenance personnel to locate and solve problems. Summary of the invention
[0004] The present invention provides an application management method, apparatus, device, medium and program product, which can automatically give error attribution and solutions when an application is abnormal, realize automatic sorting notification of error attribution, and improve the efficiency of problem solving after batch task execution failure.
[0005] According to one aspect of the present invention, there is provided an application management method, comprising:
[0006] Collect application status and application logs corresponding to the target application through pre-deployed monitoring tasks;
[0007] According to the application state and the application log, if an abnormality is detected in the target application, obtaining a target error attribution and a target solution according to an error attribution maintenance configuration;
[0008] An application batch task list is generated according to the target error attribution and the target solution, and the application batch task list is sent to a designated user in the form of an email.
[0009] According to another aspect of the present invention, there is provided an application management device, comprising:
[0010] The log collection module is used to collect the application status and application logs corresponding to the target application through pre-deployed monitoring tasks;
[0011] An error attribution acquisition module is used to acquire a target error attribution and a target solution according to the error attribution maintenance configuration based on the application state and the application log if an abnormality is detected in the target application;
[0012] The list sending module is used to generate an application batch task list according to the target error attribution and the target solution, and send the application batch task list to a designated user in the form of an email.
[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the application management method described in any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and the computer program is used to enable a processor to implement the application management method described in any embodiment of the present invention when executed.
[0018] According to another aspect of the present invention, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the application management method according to any embodiment of the present invention is implemented.
[0019] The technical solution of the embodiment of the present invention collects the application status and application log corresponding to the target application through pre-deployed monitoring tasks; according to the application status and application log, if an abnormality is detected in the target application, the target error attribution and the target solution are obtained according to the error attribution maintenance configuration; according to the target error attribution and the target solution, an application batch task list is generated, and the application batch task list is sent to a designated user in the form of an email; when an application is abnormal, the error attribution and the solution are automatically given according to the application status, application log and error attribution maintenance configuration, and the error attribution and the solution are automatically sent to the designated user, so that automatic sorting notification of error attribution can be realized, and the efficiency of problem solving after batch task execution failure can be improved.
[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 is a flowchart of an application management method provided according to Embodiment 1 of the present invention;
[0023] Figure 2 is a flowchart of another application management method provided according to the first embodiment of the present invention;
[0024] Figure 3 is a schematic diagram of the structure of an application management device provided according to Embodiment 2 of the present invention;
[0025] Figure 4 It is a structural diagram of an electronic device that implements the application management method of an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0027] It should be noted that the terms "first", "second", "target", etc. in the specification and claims of the present invention 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 data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] Embodiment 1
[0029] Figure 1 A flowchart of an application management method is provided for the first embodiment of the present invention. This embodiment is applicable to the situation where when an exception occurs in a batch task of an application, the exception is located, and the cause of the exception and a solution are determined. The method can be executed by an application management device, which can be implemented in the form of hardware and / or software. Typically, the application management device can be configured in an electronic device, such as a computer device or a server. Figure 1 As shown, the method includes:
[0030] S110 . Collect application status and application logs corresponding to the target application through the pre-deployed monitoring task.
[0031] In this embodiment, a monitoring task may be pre-established, and the status and logs of a specified application may be monitored through the monitoring task, or all applications may be monitored to obtain the application status and application logs corresponding to the target application.
[0032] Optionally, before collecting the application status and application logs corresponding to the target application through the pre-deployed monitoring task, the following may also be included:
[0033] According to the user's configuration operation on the monitoring task, the startup status, scheduling frequency, operating environment and application scope of the monitoring task are obtained;
[0034] The monitoring task is generated according to the startup state, the scheduling frequency, the operating environment and the application scope.
[0035] In this embodiment, when managing the monitoring task, the startup state and scheduling frequency of the monitoring task can be controlled, and the one-time task can be scheduled through the front end, or the regular expression can be configured to make it automatically run in the background at a certain scheduling frequency. Secondly, the operating environment and application scope of the monitoring task can be controlled, and the task can be run on different version environments by different task parameters. By configuring the startup state, scheduling frequency, operating environment and application scope, the establishment and adjustment of the monitoring task can be realized.
[0036] The advantage of the above settings is that it can realize automatic collection of application status and application logs, which can improve data collection efficiency.
[0037] The application log may include at least one of a startup log, a middleware log, a transaction log, a database log, a process log, a batch scheduling log, and a monitoring alarm log. In a specific example, a process may be deployed on each host machine for log collection, and the process may periodically send incremental logs to a server for log storage, and may visualize the log data stored on the server.
[0038] The advantage of the above settings is that it can realize the automatic collection of different types of logs, thereby improving the accuracy of anomaly detection.
[0039] S120: If an abnormality is detected in the target application according to the application state and the application log, a target error attribution and a target solution are obtained according to an error attribution maintenance configuration.
[0040] Specifically, it is possible to combine the application status and application logs to determine whether there is an error message of the target application. The target application may be composed of batch tasks or batch jobs. Once the error message of a task or job is monitored, it can be determined that the target application is abnormal.
[0041] Among them, error attribution can include system-wide error code attribution, system-wide error keyword attribution, and / or business-defined error keyword attribution. Error attribution can be the cause of the abnormal error. The solution can be the disposal plan when the application runs abnormally. By setting different types of error attribution, the error attribution of different types of task exceptions can be automatically obtained, which can improve the adaptability of application management.
[0042] In this embodiment, the error attribution and subsequent solutions corresponding to different types of error codes or error keywords can be pre-entered to generate an error attribution maintenance configuration. The error attribution maintenance configuration may include system-wide error code attribution configuration, system-wide error keyword attribution configuration, and business-defined error keyword attribution configuration. Among them, the attribution configuration of system-wide error codes and error keywords is entered by the team members of the distributed batch scheduling framework after summarizing the most common and most frequently consulted error codes and error keyword information in daily work orders; the attribution configuration of business-defined error keywords is imported by each landing application based on the accumulation of application assets.
[0043] Therefore, after determining that there is an exception in the target application, the current error code or error keyword can be determined based on the running status and error information of the task where the exception occurred; then, the error attribution and solution corresponding to the current error code or error keyword can be determined based on the error attribution maintenance configuration, as the target error attribution and target solution corresponding to the current task.
[0044] Optionally, detecting, according to the application state and the application log, that the target application is abnormal may include:
[0045] According to the application state and the application log, obtaining each task corresponding to the target application, and the task state and error information corresponding to each task;
[0046] If it is detected that the task state corresponding to the target task is an unclosed loop state, and the error message contains at least one system general-level error code in a preset system general-level error code set, it is determined that the target application has an abnormality;
[0047] If it is detected that the error information corresponding to the target task is not empty, and the error information contains at least one system general-level error keyword in a preset system general-level error keyword set, it is determined that the target application has an abnormality;
[0048] If it is detected that the error information corresponding to the target task is not empty, and the error information contains at least one business-defined-level error keyword in a preset business-defined-level error keyword set, it is determined that an abnormality exists in the target application.
[0049] In this embodiment, when judging whether an application is abnormal, the status and error information of the task instance table and the shard instance table of the distributed batch background can be monitored comprehensively based on the application list, application status and application log of the task parameter transmission, so as to obtain the task status and error information corresponding to each task. Then, if the task status (the combination of the status of the task instance + the shard instance) of a certain task is detected as an unclosed loop state (for example, interruption, failure, error, preparation, etc.), and after traversing the preset system general-level error code set, the error information of the task hits one of the system general-level error codes, then it can be determined that the task execution is abnormal, and then it can be determined that the target application is abnormal.
[0050] Secondly, if it is detected that the error information of a task is not empty and hits the preset system general-level error keyword set or the preset business-defined-level error keyword set, it can also be determined that an exception has occurred in the execution of the task, and further it can be determined that an exception exists in the target application.
[0051] The advantage of the above settings is that the accuracy of application anomaly judgment can be improved, and the efficiency of application anomaly judgment can be improved.
[0052] Optionally, based on the error attribution maintenance configuration, obtain the target error attribution and target solution, which may include:
[0053] According to the error attribution maintenance configuration, obtain the error attribution and solution corresponding to each error code, as well as the error attribution and solution corresponding to each error keyword;
[0054] If the error message includes at least one system general-level error code in a preset system general-level error code set, then according to the error attribution and solution corresponding to each error code, obtain the target error attribution and target solution corresponding to the system general-level error code;
[0055] If the error message contains at least one system-general-level error keyword in a preset system-general-level error keyword set, then according to the error attribution and solution corresponding to each error keyword, obtaining the target error attribution and target solution corresponding to the system-general-level error keyword;
[0056] If the error message contains at least one business-customized error keyword in a preset business-customized error keyword set, the target error attribution and target solution corresponding to the business-customized error keyword are obtained according to the error attribution and solution corresponding to each error keyword.
[0057] Specifically, when performing intelligent attribution and analysis, first, the error attribution maintenance configuration can be parsed to obtain the error attribution and solution corresponding to each error code or error keyword; then, when the error information of a task hits a system-wide error code, a system-wide error keyword, or a business-customized error keyword, the error attribution and solution corresponding to each error code or error keyword can be used to find the error attribution and solution corresponding to the current error code or error keyword as the error attribution and solution corresponding to the current task.
[0058] The advantage of the above settings is that it can improve the accuracy of the error attribution and solutions obtained, improve the efficiency of problem solving after batch task execution failure, reduce the cost of batch testing tasks, and especially improve the execution efficiency and success rate of upstream and downstream joint testing tasks.
[0059] S130: Generate an application batch task list according to the target error attribution and the target solution, and send the application batch task list to a designated user in the form of an email.
[0060] Specifically, after obtaining the error attribution and solution corresponding to a task under the target application, the task name, current task status, error attribution, expected resolution role and solution corresponding to the task can be summarized as a row of the application batch task list, thereby obtaining the final application batch task list. Finally, the application batch task list can be sent as a table attachment to the environment, test, and operation and maintenance personnel corresponding to the target application in the form of an email. Among them, when different types of error codes or error keywords occur in each application, the designated users who need to be notified can be pre-configured. For example, the correspondence between the application name, error code and user name can be pre-set.
[0061] The technical solution of the embodiment of the present invention collects the application status and application log corresponding to the target application through pre-deployed monitoring tasks; according to the application status and application log, if an abnormality is detected in the target application, the target error attribution and the target solution are obtained according to the error attribution maintenance configuration; according to the target error attribution and the target solution, an application batch task list is generated, and the application batch task list is sent to a designated user in the form of an email; when an application is abnormal, the error attribution and the solution are automatically given according to the application status, application log and error attribution maintenance configuration, and the error attribution and the solution are automatically sent to the designated user, so that automatic sorting notification of error attribution can be realized, and the efficiency of problem solving after batch task execution failure can be improved.
[0062] In a specific implementation of this embodiment, the process of the application management method can be as follows: Figure 2 As shown. First, the user of the landing application needs to enter the application ledger information (including the application name, personnel of related roles), business-customized error keyword attribution and solutions on the front end. At the same time, the user of the distributed batch framework project team needs to enter the system-general error code attribution and system-general error keyword attribution, as well as the corresponding solutions on the front end; then, the tool operation and maintenance personnel pre-configure the task scheduling frequency, monitor the scanned environment information, and start the executor node of the component; after that, the working component schedules tasks regularly, traverses all applications, and notifies the corresponding application and the corresponding role personnel of the final result by email; finally, when the task is no longer needed to be run, the information can be sent through the management component, and the management component can temporarily or permanently take the task offline.
[0063] In this embodiment, through regular inspections and monitoring of task status and error information, a set of failure attribution and intelligent sorting of abnormal scenarios such as batch task interruptions are independently implemented, which solves the pain points that problems are difficult to locate and solve after traditional batch task interruptions, and greatly improves the efficiency of problem solving after batch task execution failures.
[0064] Embodiment 2
[0065] Figure 3 This is a schematic diagram of the structure of an application management device provided in Embodiment 2 of the present invention. Figure 3 As shown, the device includes: a log collection module 210, an error attribution acquisition module 220 and a list sending module 230; wherein,
[0066] The log collection module 210 is used to collect the application status and application logs corresponding to the target application through the pre-deployed monitoring tasks;
[0067] The error attribution acquisition module 220 is used to acquire a target error attribution and a target solution according to the error attribution maintenance configuration based on the application state and the application log if an abnormality is detected in the target application;
[0068] The list sending module 230 is used to generate an application batch task list according to the target error attribution and the target solution, and send the application batch task list to a designated user in the form of an email.
[0069] The technical solution of the embodiment of the present invention collects the application status and application log corresponding to the target application through pre-deployed monitoring tasks; according to the application status and application log, if an abnormality is detected in the target application, the target error attribution and the target solution are obtained according to the error attribution maintenance configuration; according to the target error attribution and the target solution, an application batch task list is generated, and the application batch task list is sent to a designated user in the form of an email; when an application is abnormal, the error attribution and the solution are automatically given according to the application status, application log and error attribution maintenance configuration, and the error attribution and the solution are automatically sent to the designated user, so that automatic sorting notification of error attribution can be realized, and the efficiency of problem solving after batch task execution failure can be improved.
[0070] Optionally, the application management device further includes:
[0071] The task configuration module is used to obtain the start status, scheduling frequency, operating environment and application scope of the monitoring task according to the user's configuration operation on the monitoring task;
[0072] The task generation module is used to generate the monitoring task according to the startup state, the scheduling frequency, the operating environment and the application scope.
[0073] Optionally, error attribution includes system-wide error code attribution, system-wide error keyword attribution, and / or business-defined error keyword attribution.
[0074] Optionally, the error attribution acquisition module 220 is specifically used to acquire each task corresponding to the target application, and the task status and error information corresponding to each task according to the application status and the application log;
[0075] If it is detected that the task state corresponding to the target task is an unclosed loop state, and the error message contains at least one system general-level error code in a preset system general-level error code set, it is determined that the target application has an abnormality;
[0076] If it is detected that the error information corresponding to the target task is not empty, and the error information contains at least one system general-level error keyword in a preset system general-level error keyword set, it is determined that the target application has an abnormality;
[0077] If it is detected that the error information corresponding to the target task is not empty, and the error information contains at least one business-defined-level error keyword in a preset business-defined-level error keyword set, it is determined that an abnormality exists in the target application.
[0078] Optionally, the error attribution acquisition module 220 is specifically used to acquire the error attribution and solution corresponding to each error code, and the error attribution and solution corresponding to each error keyword according to the error attribution maintenance configuration;
[0079] If the error message includes at least one system general-level error code in a preset system general-level error code set, then according to the error attribution and solution corresponding to each error code, obtain the target error attribution and target solution corresponding to the system general-level error code;
[0080] If the error message contains at least one system-general-level error keyword in a preset system-general-level error keyword set, then according to the error attribution and solution corresponding to each error keyword, obtaining the target error attribution and target solution corresponding to the system-general-level error keyword;
[0081] If the error message contains at least one business-customized error keyword in a preset business-customized error keyword set, the target error attribution and target solution corresponding to the business-customized error keyword are obtained according to the error attribution and solution corresponding to each error keyword.
[0082] Optionally, the application log includes at least one of a startup log, a middleware log, a transaction log, a database log, a process log, a batch scheduling log, and a monitoring alarm log.
[0083] The application management device provided in the embodiment of the present invention can execute the application management method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0084] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0085] Embodiment 3
[0086] Figure 4 A schematic diagram of the structure of an electronic device 30 that can be used to implement an embodiment of the present invention is shown. The electronic device 30 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device 30 can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0087] like Figure 4 As shown, the electronic device 30 includes at least one processor 31, and a memory connected to the at least one processor 31, such as a read-only memory (ROM) 32, a random access memory (RAM) 33, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 31 can perform various appropriate actions and processes according to the computer program stored in the read-only memory 32 or the computer program loaded from the storage unit 38 to the random access memory 33. In the RAM 33, various programs and data required for the operation of the electronic device 30 can also be stored. The processor 31, the ROM 32 and the RAM 33 are connected to each other through a bus 34. The input / output (I / O) interface 35 is also connected to the bus 34.
[0088] A number of components in the electronic device 30 are connected to the I / O interface 35, including: an input unit 36, such as a keyboard, a mouse, etc.; an output unit 37, such as various types of displays, speakers, etc.; a storage unit 38, such as a disk, an optical disk, etc.; and a communication unit 39, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 39 allows the electronic device 30 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0089] The processor 31 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 31 include, but are not limited to, a central processing unit, a graphics processing unit, various special artificial intelligence computing chips, various processors running machine learning model algorithms, digital signal processors, and any appropriate processors, controllers, microcontrollers, etc. The processor 31 executes the various methods and processes described above, such as the application management method.
[0090] In some embodiments, the application management method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 38. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 30 via the ROM 32 and / or the communication unit 39. When the computer program is loaded into the RAM 33 and executed by the processor 31, one or more steps of the application management method described above may be performed. Alternatively, in other embodiments, the processor 31 may be configured to execute the application management method in any other appropriate manner (e.g., by means of firmware).
[0091] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays, application specific integrated circuits, application specific standard products, systems on a chip, load programmable logic devices, computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0092] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0093] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical fiber, a portable compact disk read-only memory, an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0094] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device 30 having: a display device (e.g., a cathode ray tube or a liquid crystal display) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which the user can provide input to the electronic device 30. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0095] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local area networks, wide area networks, blockchain networks, and the Internet.
[0096] A computing system may include clients and servers. Clients and servers are generally remote from each other and typically interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other. The server may be a cloud server.
[0097] This embodiment may also include a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the application management method provided by any embodiment of the present invention.
[0098] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0099] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. An application management method, characterized in that: include: Collect application status and application logs corresponding to the target application through pre-deployed monitoring tasks; According to the application state and the application log, if an abnormality is detected in the target application, obtaining a target error attribution and a target solution according to an error attribution maintenance configuration; An application batch task list is generated according to the target error attribution and the target solution, and the application batch task list is sent to a designated user in the form of an email.
2. The method according to claim 1, characterized in that Before collecting the application status and application logs corresponding to the target application through the pre-deployed monitoring task, it also includes: According to the user's configuration operation on the monitoring task, the startup status, scheduling frequency, operating environment and application scope of the monitoring task are obtained; The monitoring task is generated according to the startup state, the scheduling frequency, the operating environment and the application scope.
3. The method according to claim 1, characterized in that: Error attribution includes system-wide error code attribution, system-wide error keyword attribution, and / or business-defined error keyword attribution.
4. The method according to claim 3, characterized in that Detecting, according to the application state and the application log, that the target application is abnormal, includes: According to the application state and the application log, obtaining each task corresponding to the target application, and the task state and error information corresponding to each task; If it is detected that the task state corresponding to the target task is an unclosed loop state, and the error message contains at least one system general-level error code in a preset system general-level error code set, it is determined that the target application has an abnormality; If it is detected that the error information corresponding to the target task is not empty, and the error information contains at least one system general-level error keyword in a preset system general-level error keyword set, it is determined that the target application has an abnormality; If it is detected that the error information corresponding to the target task is not empty, and the error information contains at least one business-defined-level error keyword in a preset business-defined-level error keyword set, it is determined that an abnormality exists in the target application.
5. The method according to claim 4, characterized in that Based on the error attribution maintenance configuration, obtain the target error attribution and target solution, including: According to the error attribution maintenance configuration, obtain the error attribution and solution corresponding to each error code, as well as the error attribution and solution corresponding to each error keyword; If the error message includes at least one system general-level error code in a preset system general-level error code set, then according to the error attribution and solution corresponding to each error code, obtain the target error attribution and target solution corresponding to the system general-level error code; If the error message contains at least one system-general-level error keyword in a preset system-general-level error keyword set, then according to the error attribution and solution corresponding to each error keyword, obtaining the target error attribution and target solution corresponding to the system-general-level error keyword; If the error message contains at least one business-customized error keyword in a preset business-customized error keyword set, the target error attribution and target solution corresponding to the business-customized error keyword are obtained according to the error attribution and solution corresponding to each error keyword.
6. The method according to any one of claims 1 to 5, characterized in that The application log includes at least one of a startup log, a middleware log, a transaction log, a database log, a process log, a batch scheduling log, and a monitoring alarm log.
7. An application management device, characterized in that: include: The log collection module is used to collect the application status and application logs corresponding to the target application through pre-deployed monitoring tasks; An error attribution acquisition module is used to acquire a target error attribution and a target solution according to the error attribution maintenance configuration based on the application state and the application log if an abnormality is detected in the target application; The list sending module is used to generate an application batch task list according to the target error attribution and the target solution, and send the application batch task list to a designated user in the form of an email.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor, and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the application management method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is used to enable a processor to implement the application management method according to any one of claims 1 to 6 when executed.
10. A computer program product, characterized in that The invention comprises a computer program, which implements the application management method according to any one of claims 1 to 6 when executed by a processor.