A method and device for detecting system performance

By obtaining system performance detection instructions and server IP, executing script programs to parse abnormal data, real-time detection and automatic recovery of system performance is achieved, and the problem of lack of real-time and automatic recovery capabilities in the existing technology is solved, and system performance detection and Operation and maintenance efficiency.

CN111752741BActive Publication Date: 2025-01-14WEBANK (CHINA)
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202010613893.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-30
Publication Date
2025-01-14
Estimated Expiration
2040-06-30

AI Technical Summary

Technical Problem

The existing system performance monitoring methods lack real-time performance and cannot capture the thread, class, and method information of system exceptions in real-time, resulting in inefficient exception positioning and increasing the failure duration and risk.

Method used

By obtaining detection instructions, including the parameters of the system to be detected and the server IP, executing a preset script program to obtain the data to be diagnosed, analyzing the result data to distinguish between normal and abnormal data, and automatically recover using the alarm platform.

Benefits of technology

Real-time detection and automatic recovery of system performance abnormalities is realized, labor and time costs are reduced, and system performance detection efficiency and operation and maintenance efficiency are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111752741B_ABST
    Figure CN111752741B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and device for system performance detection, comprising: obtaining a detection instruction, wherein the detection instruction includes parameters of a system to be detected and a server IP of the system to be detected, obtaining target information according to the parameters of the system to be detected and the server IP of the system to be detected, and then executing a preset script program according to the detection instruction and the target information to obtain data to be diagnosed, and then diagnosing the data to be diagnosed to obtain result data, parsing the result data to obtain normal data and abnormal data of the system to be detected, so that abnormal data can be detected in real time, reducing the time and manpower consumed in abnormal data detection when system performance is abnormal, and realizing automatic recovery of abnormal data, thereby improving system performance detection efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of financial technology (Fintech), and in particular to a method and device for system performance detection. Background Art

[0002] With the development of computer technology, more and more technologies (such as distributed computing, cloud computing or big data) are being applied in the financial field. The traditional financial industry is gradually transforming into financial technology, and big data technology is no exception. However, due to the security and real-time requirements of the financial and payment industries, higher requirements are also placed on big data technology.

[0003] There are generally two methods for system performance monitoring. One is to install an agent to monitor the performance indicators of the server CPU, memory, IO, business transactions, etc., and then configure the relevant alarm strategies and parameter thresholds of each system through the terminal interface, and display the alarm results on the terminal. The other is to capture the processing status of the upstream and downstream systems according to the serial number, analyze the transaction channel messages, associate the data flows of each upstream and downstream system or each product, and make multi-dimensional monitoring, and use the terminal to display the monitoring data.

[0004] However, the problems with the above two methods are that the former is a minute-level timed detection, which lacks effectiveness and is limited to obtaining server performance and application process monitoring. It lacks analysis of the system's real-time operating performance and lacks virtual machine bytecode parsing and processing. As a result, when the system fails abnormally, only abnormal information about server basic resources and business transactions is displayed on the terminal, and the abnormal threads, classes, and methods of the system cannot be captured and displayed in real time. The latter lacks effectiveness and mainly focuses on the abnormalities between the data streams associated with each system, and cannot locate the abnormalities of the system's online performance in real time. In terms of abnormal location, the operation and maintenance personnel need to check the log by adjusting the log mode after troubleshooting the problem in a fixed place, or by opening the file for analysis. The entire abnormal location consumes a lot of time and manpower, and the efficiency of abnormal location is low and the abnormal location time is increased, thereby increasing the fault duration and increasing the risk and loss. Summary of the invention

[0005] The embodiments of the present invention provide a method and device for detecting system performance, which are used to improve the efficiency of detecting system anomalies and realize automatic recovery of abnormal data.

[0006] In a first aspect, an embodiment of the present invention provides a method for system performance detection, including:

[0007] Obtain a detection instruction; the detection instruction includes parameters of the system to be detected and the server IP of the system to be detected;

[0008] Obtain target information according to the parameters of the system to be detected and the server IP of the system to be detected; execute a preset script program according to the detection instruction and the target information to obtain the data to be diagnosed;

[0009] The data to be diagnosed are diagnosed to obtain result data, and the result data are analyzed to obtain normal data and abnormal data of the system to be detected.

[0010] In the above technical solution, the target information corresponding to the system to be detected is obtained through the detection instruction, and then the data to be diagnosed is obtained according to the target information, so that the diagnostic tool can detect the relevant parameters of the system to be detected, obtain the result data, and parse the abnormal data of the result data. In this way, the abnormal data can be detected in real time, reducing the time and manpower consumed in abnormal data detection when the system performance is abnormal, and improving the efficiency of system performance detection.

[0011] Optionally, obtaining target information according to the parameters of the system to be detected and the server IP of the system to be detected includes:

[0012] Convert the parameters of the system to be detected and the server IP of the system to be detected into data in a preset format;

[0013] The data in the preset format is sent to a configuration management database to obtain the corresponding target information of the system to be detected.

[0014] In the above technical scheme, the data of the system to be detected and the data of the corresponding server are obtained according to the parameters of the system to be detected and the server IP of the system to be detected. The data formats of different systems to be detected and the corresponding servers can be unified. The performance of different systems to be detected can be detected by the same method, thereby increasing the scope of system performance detection.

[0015] Optionally, the preset script program is provided with an introduction parameter;

[0016] The step of executing a preset script program according to the detection instruction and the target information to obtain the data to be diagnosed includes:

[0017] The detection instruction and the target information are combined with the introduced parameters to obtain the input parameters of the preset script program, and the input parameters are sent to the preset script program to obtain the data to be diagnosed in a corresponding format for diagnosis by the diagnostic tool.

[0018] In the above technical solution, by combining the detection instructions and target information with the introduction of parameters, the data to be diagnosed that can be used for diagnosis by the diagnostic tool is obtained, so that the diagnostic tool can diagnose the data to be diagnosed and diagnose the relevant data of the system to be detected. There is no need for operation and maintenance personnel to check the system anomalies by checking logs and other methods, which reduces the time and manpower spent on abnormal data detection when the system performance is abnormal, and improves the efficiency of system performance detection.

[0019] Optionally, parsing the result data to obtain normal data and abnormal data of the system to be detected includes:

[0020] Use the first loop text to disassemble and parse the result data line by line to obtain a status bit identifier for each line of data;

[0021] If the state flag is a first flag, the data whose state flag in each row of data belongs to the first flag is determined as the normal data;

[0022] If the state flag is a second flag, the data whose state flag in each row of data belongs to the second flag is determined as the abnormal data.

[0023] In the above technical solution, abnormal data in the result data is detected according to the preset first identifier and second identifier, which reduces the time and manpower consumed in abnormal data detection, thereby reducing the fault duration and improving the system performance detection efficiency.

[0024] Optionally, after parsing the result data to obtain normal data and abnormal data of the system to be detected, the method further includes:

[0025] Reorganize the abnormal data to obtain data to be recovered;

[0026] Sending the data to be restored to the alarm platform so that the alarm platform issues a data alarm and obtains alarm data;

[0027] splicing the alarm data and the target information into data in a preset format, and matching the standard operating procedure of the data to be restored; the standard operating procedure is preset by the user;

[0028] Execute the standard operating procedure of the data to be recovered, and perform abnormal data recovery on the data to be recovered.

[0029] In the above technical solution, the alarm data corresponding to the abnormal data is matched according to the pre-set standard operating procedures, and then the data to be restored is restored to normal data through the standard operating procedures, thereby realizing automatic recovery of abnormal data, improving operation and maintenance efficiency, shortening the time from system abnormality to system recovery, and liberating manual labor.

[0030] Optionally, the data reorganization of the abnormal data to obtain the data to be recovered includes:

[0031] According to the second loop text, each element of each row of data of the abnormal data is separated by a separator to obtain the data to be restored.

[0032] In the above data scheme, each line of abnormal data is detected according to the second loop text, and the elements in each line of abnormal data are separated and parsed to obtain the status bit identifier of each element. According to the status bit identifier of each element, the normal elements and the data to be recovered in the abnormal data are determined, and the specific location of the data to be recovered can be obtained based on the normal data, which improves the accuracy of abnormal data detection and improves the system performance detection efficiency.

[0033] Optionally, after performing abnormal data recovery on the data to be recovered, the method further includes:

[0034] Sending alarm stop information to the alarm platform so that the alarm platform stops the alarm according to the alarm stop information.

[0035] In the above technical solution, after the abnormal data is restored, the corresponding alarm data is stopped, which shortens the time from system abnormality to system recovery.

[0036] In a second aspect, an embodiment of the present invention provides a system performance detection device, including:

[0037] An acquisition module, used for acquiring a detection instruction; the detection instruction includes parameters of the system to be detected and the server IP of the system to be detected;

[0038] A processing module, used to obtain target information according to the parameters of the system to be detected and the server IP of the system to be detected; execute a preset script program according to the detection instruction and the target information to obtain data to be diagnosed;

[0039] The data to be diagnosed are diagnosed to obtain result data, and the result data are analyzed to obtain normal data and abnormal data of the system to be detected.

[0040] Optionally, the processing module is specifically used for:

[0041] Convert the parameters of the system to be detected and the server IP of the system to be detected into data in a preset format;

[0042] The data in the preset format is sent to a configuration management database to obtain the corresponding target information of the system to be detected.

[0043] Optionally, the preset script program is provided with an introduction parameter;

[0044] The processing module is specifically used for:

[0045] The detection instruction and the target information are combined with the introduced parameters to obtain the input parameters of the preset script program, and the input parameters are sent to the preset script program to obtain the data to be diagnosed in a corresponding format for diagnosis by the diagnostic tool.

[0046] Optionally, the processing module is specifically used for:

[0047] Use the first loop text to disassemble and parse the result data line by line to obtain a status bit identifier for each line of data;

[0048] If the state flag is a first flag, the data whose state flag in each row of data belongs to the first flag is determined as the normal data;

[0049] If the state flag is a second flag, the data whose state flag in each row of data belongs to the second flag is determined as the abnormal data.

[0050] Optionally, the processing module is specifically used for:

[0051] After parsing the result data to obtain normal data and abnormal data of the system to be detected, the abnormal data is reorganized to obtain data to be restored;

[0052] Sending the data to be restored to the alarm platform so that the alarm platform issues a data alarm and obtains alarm data;

[0053] splicing the alarm data and the target information into data in a preset format, and matching the standard operating procedure of the data to be restored; the standard operating procedure is preset by the user;

[0054] Execute the standard operating procedure of the data to be recovered, and perform abnormal data recovery on the data to be recovered.

[0055] Optionally, the processing module is specifically used for:

[0056] According to the second loop text, each element of each row of data of the abnormal data is separated by a separator to obtain the data to be restored.

[0057] Optionally, the processing module is further used for:

[0058] After performing abnormal data recovery on the data to be recovered, an alarm stop message is sent to the alarm platform, so that the alarm platform stops the alarm according to the alarm stop message.

[0059] In a third aspect, an embodiment of the present invention further provides a computing device, including:

[0060] A memory for storing program instructions;

[0061] The processor is used to call the program instructions stored in the memory and execute the above-mentioned system performance detection method according to the obtained program.

[0062] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the above-mentioned system performance detection method. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. 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 paying creative work.

[0064] Figure 1 A schematic diagram of a system architecture provided by an embodiment of the present invention;

[0065] Figure 2 A schematic diagram of a flow chart of a method for system performance detection provided by an embodiment of the present invention;

[0066] Figure 3 A schematic diagram of the structure of a device for detecting system performance provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0067] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0068] Figure 1 A system architecture applicable to an embodiment of the present invention is exemplarily shown, and the system architecture includes a terminal 100, a performance detection system 200, a container management system 300, a virtual machine 400 and a functional system 500.

[0069] Among them, the terminal 100 is used for the management of the sending and receiving of detection instructions, including the establishment of a communication group (such as a system performance analysis WeChat communication group) and the sending and receiving of detection instructions. For example, according to a fixed instruction (such as "install robot"), a logic code switch (such as "robot flag") is triggered to activate the communication group for the performance detection of the system to be detected. After receiving the event triggered by the user clicking the button to submit, the parameters of the system to be detected and the server IP are spliced ​​into a json data format and pushed to the performance detection system 200.

[0070] The performance detection system 200 includes: a management module 210 , a transparent transmission module 220 , an assembly module 230 and a recovery module 240 .

[0071] The management module 210 is used to transmit and convert data according to a transmission protocol (such as the post method of the HTTP protocol). The management module 210 is constructed by a backend framework (such as Spring Boot).

[0072] The transparent transmission module 220 is used to execute the target information using a preset script program, obtain the data to be diagnosed, and send the data to be diagnosed to the container management system 300 or the virtual machine 400 so that the diagnostic tool (such as arthas) in the container management system 300 or the virtual machine 400 performs diagnosis and obtains the result data.

[0073] The compilation module 230 is used to use the first loop text (such as a while-r loop statement) to disassemble and parse each line of data in the result data, distinguish normal data from abnormal data according to the status bit identifier of each line of data, and execute the second loop text (such as a for loop statement) on the abnormal data to obtain the data to be recovered.

[0074] The recovery module 240 is used to send the data to be recovered to the functional system 500, obtain the alarm data, and match the corresponding standard operating procedure according to the alarm data to restore the data to be recovered to normal data.

[0075] The container management system 300 is used to establish an instruction task according to the data to be diagnosed sent by the transparent transmission module 220, and then diagnose the data to be diagnosed according to the deployed diagnostic tool of the system to be detected, obtain the data results, and send them to the performance detection system 200. It is also used to call the standard operating procedure to recover the abnormal data.

[0076] The virtual machine 400 is used to establish an instruction task according to the data to be diagnosed sent by the transparent transmission module 220, and then diagnose the data to be diagnosed according to the deployed diagnostic tool of the system to be detected, obtain the data results, and send them to the performance detection system 200. It is also used to call the standard operating procedure to recover the abnormal data.

[0077] The functional system 500 includes: a configuration management database 510 , an alarm platform 520 and a program module 530 .

[0078] The configuration management database 510 is used to configure basic data such as the deployment area and server IP of each system, and the database of each system.

[0079] The alarm platform 520 is used to generate an alarm based on abnormal data and eliminate the alarm when the abnormality is recovered.

[0080] Program module 530 is used to provide standard operating procedures for abnormal data recovery of various systems, servers, databases, threads, etc.

[0081] It should be noted that the above Figure 1 The structure shown is only an example and is not limited to this embodiment of the present invention.

[0082] Based on the above description, Figure 2 The flow of a method for detecting system performance provided by an embodiment of the present invention is exemplarily shown, and the flow can be executed by a device for detecting system performance.

[0083] like Figure 2 As shown in the figure, the process specifically includes:

[0084] Step 201, obtaining a detection instruction.

[0085] In an embodiment of the present invention, the detection instruction includes parameters of the system to be detected and the server IP of the system to be detected. For example, the detection instruction includes @robot sys_name IP dashboard (an instruction for detecting the real-time data panel of the current system to be detected), @robot sys_name IP thread (an instruction for detecting the thread stack information of the current virtual machine), and @robot sys_name IP jvm (an instruction for detecting the information of the current virtual machine), wherein the real-time data panel includes thread ID, thread name, memory, and running time, etc., and the thread stack information includes query thread, thread name, CPU consumption, blocked thread, interrupted thread, etc.

[0086] Step 202, obtaining target information according to the parameters of the system to be detected and the server IP of the system to be detected; executing a preset script program according to the detection instruction and the target information to obtain data to be diagnosed.

[0087] In the embodiment of the present invention, after receiving the detection instruction, the detection instruction is sent to the configuration management database to obtain target information, and the target information is used as a parameter to execute a preset script program to obtain the data to be diagnosed.

[0088] Furthermore, the parameters of the system to be detected and the server IP of the system to be detected are converted into data in a preset format; the data in the preset format is sent to a configuration management database to obtain the corresponding target information of the system to be detected.

[0089] In an embodiment of the present invention, after obtaining a detection instruction, the detection instruction is first converted into data in a preset format. For example, the parameters of the system to be detected in the detection instruction and the server IP of the system to be detected are spliced ​​into a json data format (preset format), and then the converted data is sent to a configuration management database to obtain target information corresponding to the converted data. For example, the post method of the HTTP protocol is used to request an application programming interface of the configuration management database, and the target information (deployment area, server number, etc.) of the system to be detected is determined according to the configuration management database.

[0090] Furthermore, an introduction parameter is provided in the preset script program; the detection instruction and the target information are combined with the introduction parameter to obtain the input parameter of the preset script program, and the input parameter is sent to the preset script program to obtain the data to be diagnosed in the corresponding format used for diagnosis by the diagnostic tool.

[0091] In an embodiment of the present invention, before a preset script program is executed, it is necessary to first obtain input parameters of the preset script program through detection instructions and target information. For example, when a user clicks a button to trigger a submission event, a detection instruction is received, and the detection instruction is @robot sys_name IP dashboard, @robot sys_name IP thread, and @robot sys_name IPjvm. Then, the detection instruction and the target information are combined with the introduction parameter "-m" in the shell script program to obtain input parameters of the preset script program, which are sh we_arthas_main.sh-m dashboard sysname IP, sh we_arthas_main.sh-m thread sysname IP, and sh we_arthas_main.sh-m jvm sysname IP. Then, the obtained input parameters are sent to the preset script program. After the preset script program is executed, the data to be diagnosed corresponding to the input parameters are obtained. For example, the preset script program is a shell script program, and the input parameters obtained above are sent to the shell script program. Then, the shell script program is executed, and the corresponding data to be diagnosed are dashboard (real-time panel data), thread (thread stack information), and jvm (thread information such as current virtual machine activity, maximum activity, and deadlock).

[0092] Step 203: diagnose the data to be diagnosed to obtain result data, and analyze the result data to obtain normal data and abnormal data of the system to be detected.

[0093] In an embodiment of the present invention, the diagnostic data to be diagnosed is diagnosed through a diagnostic tool deployed by a container management system (such as kubernetes, K8S container orchestration engine) or a virtual machine to obtain data results. For example, the diagnostic tool pre-deployed in the virtual machine or container management system (such as pre-deployed unstarted agent when the server is initialized) is executed through the SSH (Secure Shell, network service program) protocol. When the diagnostic tool obtains the data to be diagnosed obtained by the shell script program, it establishes an instruction task corresponding to the data to be diagnosed, captures the data to be diagnosed through the shell script program, and analyzes and detects the data to be diagnosed. For example: when the data to be diagnosed is dashboard (real-time panel data), thread (thread stack information) and jvm (current virtual machine active, maximum active, deadlock and other thread information), the instruction task corresponding to the data to be diagnosed is established as: sh we_arthas.sh dashboard (obtaining real-time panel data of a specified refresh number), sh we_arthas.sh thread (obtaining thread stack information), sh we_arthas.sh jvm (obtaining current virtual machine active, maximum active, deadlock and other thread information). Then, the data to be diagnosed is captured through the shell script program (we_arthas.sh), and analyzed and tested to obtain the corresponding results. The results are integrated and summarized according to the shell script program to obtain the result data and stored in a local file.

[0094] Among them, the diagnostic tool is obtained by modifying the open source diagnostic tool Arthas using JAVA language. Specifically, it is encapsulated into a diagnostic agent mode by disconnecting the interactive mode of the telnet protocol of the diagnostic tool Arthas, and opening the protocol transmission interface to receive parameter instructions for data capture, and deployed in the virtual machine or container management system in the form of an agent.

[0095] Further, the result data is disassembled and parsed line by line using the first loop text to obtain a status bit identifier for each line of data;

[0096] If the state flag is a first flag, the data whose state flag in each row of data belongs to the first flag is determined as the normal data;

[0097] If the state flag is a second flag, the data whose state flag in each row of data belongs to the second flag is determined as the abnormal data.

[0098] In the embodiment of the present invention, each line of data in the result data is parsed according to the first loop text, and abnormal data in the result data is distinguished according to the preset first identifier and second identifier and the status bit identifier of each line of data. For example, the while-r loop text is used to disassemble and parse the result data file line by line, and normal data and abnormal data are distinguished according to the status bit identifier ststus_flag of each line of data and the first identifier and the second identifier, and then the normal data file or the abnormal data file after the distinction is recorded.

[0099] Then, after parsing the result data to obtain normal data and abnormal data of the system to be detected, the abnormal data is reorganized to obtain the data to be recovered; the data to be recovered is sent to the alarm platform so that the alarm platform issues a data alarm and obtains the alarm data; the alarm data and the target information are spliced ​​into data in a preset format, and matched with the standard operating procedure of the data to be recovered; wherein the standard operating procedure is pre-set by the user; the standard operating procedure of the data to be recovered is executed to recover the abnormal data of the data to be recovered.

[0100] In an embodiment of the present invention, after parsing the abnormal data, the abnormal data is reorganized to obtain the data to be recovered. Specifically, each element of each row of data of the abnormal data is separated by a separator according to the second loop text to obtain the data to be recovered.

[0101] Exemplarily, after obtaining normal data and abnormal data, the abnormal data is processed using a second loop text, and the elements in each line of abnormal data are separated to obtain the elements in each line of data, so that the diagnostic tool can diagnose each element, determine the abnormal elements, and then combine the normal file to locate the position of the abnormal elements in the abnormal data to obtain the data to be recovered. For example, the abnormal data is looped using a for loop statement, and the "|||" separator is used and the status bit identifier of the element in each line of data in the abnormal data is intercepted using a text processing tool (such as Awk), and the status bit identifier of each element is analyzed to obtain the abnormal elements in the abnormal data, and then the insert statement (such as insert) is used for processing, and the abnormal elements with errors such as comma format in the abnormal data are corrected and filtered, and the abnormal elements in the filtered abnormal data are determined. The filtered abnormal elements are integrated and archived to obtain the data to be recovered (such as report_arthas), and stored locally.

[0102] In the embodiment of the present invention, the corresponding alarm data is obtained through the data to be recovered, and then the standard operating procedure corresponding to the data to be recovered is matched according to the alarm data, so that the standard operating procedure recovers the abnormal data.

[0103] It should be noted that the diagnostic tools in the above technical solution also include the diagnostic tool btrace, and the alarm platform also includes the open source operation and maintenance monitoring system Open-Falcon.

[0104] Exemplarily, a standard operating procedure pre-set by the user is stored in the program module. After the data to be recovered is obtained, it is sent to the alarm platform so that the alarm platform will alarm the area where there is an abnormality in the system to be detected based on the data to be recovered, and obtain the alarm data generated by the alarm platform. The alarm data and the parameters of the system to be detected and the target information corresponding to the server IP of the system to be detected are then spliced ​​into data in a preset format, matched with the standard operating procedure, and then the successfully matched standard operating procedure is executed to recover the abnormal data for the data to be recovered. For example, the data to be recovered is converted into json data format, and the application program interface (ims_alarm_collector_alarm.do) provided by the alarm platform is requested using the post method of the HTTP protocol to obtain the alarm data corresponding to the data to be recovered. At the same time, the data to be recovered and the target information are spliced ​​into json data format, and then the application program interface (get_sop_collect.do) provided by the program module is requested using the post method of the HTTP protocol to obtain the standard operating procedure of the matching data to be recovered, and then the fastjson method is used to parse the operating procedure, such as {"sysname":abcd,"ip":"ip_data","dcn":"dcn_data"}, and the data in the brackets is parsed and taken out. The data is composed of pairs in the form of "key: value", and the data is separated by ",". Finally, the standard operating procedure is parsed and executed to restore the data to be recovered to normal data.

[0105] After the abnormal data to be recovered is recovered, an alarm stop message is sent to the alarm platform, so that the alarm platform stops the alarm according to the alarm stop message.

[0106] In an embodiment of the present invention, after the abnormal data is restored to normal data, the alarm platform will stop the alarm through a transmission protocol. For example, after the abnormal data is restored to normal data, the post method of the HTTP protocol is used to request the application program interface provided by the alarm platform to send an alarm stop message, so that the alarm platform stops the alarm.

[0107] The embodiment of the present invention obtains the detection instruction issued by the user through the terminal, locates the system performance in real time, and automatically executes the program from the issuance of the detection instruction to the completion of the analysis and then to the feedback of the result. The performance of various indicators of the system are automatically detected, and the abnormal data is automatically recovered in combination with the alarm platform and the standard operating procedures, forming an effective closed loop, reducing human participation, shortening the impact time of system abnormal failures, and improving the efficiency of system performance detection and troubleshooting. It is also applied to virtual machine and container configuration management systems through preset diagnostic tools, thereby expanding the scope of use.

[0108] Based on the same technical concept, Figure 3 A structure provided by an embodiment of the present invention and a process that can be executed by the device are exemplarily shown.

[0109] like Figure 3 As shown, the device specifically includes:

[0110] The acquisition module 301 is used to acquire a detection instruction; the detection instruction includes parameters of the system to be detected and the server IP of the system to be detected;

[0111] The processing module 302 is used to obtain target information according to the parameters of the system to be detected and the server IP of the system to be detected; execute a preset script program according to the detection instruction and the target information to obtain data to be diagnosed;

[0112] The data to be diagnosed are diagnosed to obtain result data, and the result data are analyzed to obtain normal data and abnormal data of the system to be detected.

[0113] Optionally, the processing module 302 is specifically used for:

[0114] Convert the parameters of the system to be detected and the server IP of the system to be detected into data in a preset format;

[0115] The data in the preset format is sent to a configuration management database to obtain the corresponding target information of the system to be detected.

[0116] Optionally, the preset script program is provided with an introduction parameter;

[0117] The processing module 302 is specifically used for:

[0118] The detection instruction and the target information are combined with the introduced parameters to obtain the input parameters of the preset script program, and the input parameters are sent to the preset script program to obtain the data to be diagnosed in a corresponding format for diagnosis by the diagnostic tool.

[0119] Optionally, the processing module 302 is specifically used for:

[0120] Use the first loop text to disassemble and parse the result data line by line to obtain a status bit identifier for each line of data;

[0121] If the state flag is a first flag, the data whose state flag in each row of data belongs to the first flag is determined as the normal data;

[0122] If the state flag is a second flag, the data whose state flag in each row of data belongs to the second flag is determined as the abnormal data.

[0123] Optionally, the processing module 302 is specifically used for:

[0124] After parsing the result data to obtain normal data and abnormal data of the system to be detected, the abnormal data is reorganized to obtain data to be restored;

[0125] Sending the data to be restored to the alarm platform so that the alarm platform issues a data alarm and obtains alarm data;

[0126] splicing the alarm data and the target information into data in a preset format, and matching the standard operating procedure of the data to be restored; the standard operating procedure is preset by the user;

[0127] Execute the standard operating procedure of the data to be recovered, and perform abnormal data recovery on the data to be recovered.

[0128] Optionally, the processing module 302 is specifically used for:

[0129] According to the second loop text, each element of each row of data of the abnormal data is separated by a separator to obtain the data to be restored.

[0130] Optionally, the processing module 302 is further used for:

[0131] After performing abnormal data recovery on the data to be recovered, an alarm stop message is sent to the alarm platform, so that the alarm platform stops the alarm according to the alarm stop message.

[0132] Based on the same technical concept, an embodiment of the present invention further provides a computing device, including:

[0133] A memory for storing program instructions;

[0134] The processor is used to call the program instructions stored in the memory and execute the above-mentioned system performance detection method according to the obtained program.

[0135] Based on the same technical concept, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the above-mentioned system performance detection method.

[0136] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0137] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0138] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0139] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0140] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for system performance detection, characterized in that: include: Obtain a detection instruction; the detection instruction includes parameters of the system to be detected and the server IP of the system to be detected; Obtain target information according to the parameters of the system to be detected and the server IP of the system to be detected; Combining the detection instruction and the target information with the introduction parameters in the preset script program to obtain the input parameters of the preset script program, and sending the input parameters to the preset script program to obtain the to-be-diagnosed data in a corresponding format for diagnosis by the diagnostic tool; Diagnose the data to be diagnosed to obtain result data, use the first loop text to disassemble and parse the result data line by line to obtain a status identification bit of each line of data, if the status identification bit is a first identification bit, determine the data in each line of data whose status identification bit belongs to the first identification bit as normal data, if the status identification bit is a second identification bit, determine the data in each line of data whose status identification bit belongs to the second identification bit as abnormal data; According to the second loop text, each element of each row of data of the abnormal data is separated by a delimiter to obtain the data to be recovered, and the data to be recovered is sent to the alarm platform so that the alarm platform issues a data alarm and obtains alarm data, and the alarm data and the target information are spliced ​​into data in a preset format, and matched with the standard operating procedure of the data to be recovered, which is pre-set by the user, and the standard operating procedure of the data to be recovered is executed to perform abnormal data recovery on the data to be recovered.

2. The method according to claim 1, characterized in that The obtaining target information according to the parameters of the system to be detected and the server IP of the system to be detected includes: Convert the parameters of the system to be detected and the server IP of the system to be detected into data in a preset format; The data in the preset format is sent to a configuration management database to obtain the corresponding target information of the system to be detected.

3. The method according to claim 1, characterized in that After performing abnormal data recovery on the data to be recovered, the method further includes: Sending alarm stop information to the alarm platform so that the alarm platform stops the alarm according to the alarm stop information.

4. A system performance detection device, characterized in that: include: An acquisition module, used for acquiring a detection instruction; the detection instruction includes parameters of the system to be detected and the server IP of the system to be detected; A processing module, used to obtain target information according to the parameters of the system to be detected and the server IP of the system to be detected; combine the detection instruction and the target information with the introduction parameters in the preset script program to obtain the input parameters of the preset script program, and send the input parameters to the preset script program to obtain the data to be diagnosed in a corresponding format for diagnosis by the diagnostic tool; Diagnose the data to be diagnosed to obtain result data, use the first loop text to disassemble and parse the result data line by line to obtain a status identification bit of each line of data, if the status identification bit is a first identification bit, determine the data in each line of data whose status identification bit belongs to the first identification bit as normal data, if the status identification bit is a second identification bit, determine the data in each line of data whose status identification bit belongs to the second identification bit as abnormal data; According to the second loop text, each element of each row of data of the abnormal data is separated by a delimiter to obtain the data to be recovered, and the data to be recovered is sent to the alarm platform so that the alarm platform issues a data alarm and obtains alarm data, and the alarm data and the target information are spliced ​​into data in a preset format, and matched with the standard operating procedure of the data to be recovered, which is pre-set by the user, and the standard operating procedure of the data to be recovered is executed to perform abnormal data recovery on the data to be recovered.

5. A computing device, characterized in that: include: A memory for storing program instructions; A processor, configured to call the program instructions stored in the memory, and execute the method according to any one of claims 1 to 3 according to the obtained program.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Database detection method and system, server, and storage medium

    CN109165143A

  • Equipment fault repairing method and device

    CN111176879A

  • Performance bottleneck positioning and tuning method, device and system

    CN111190832A