CN117971535A - System inspection method, device, computer equipment and storage medium - Google Patents

System inspection method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN117971535A
CN117971535A CN202311755654.0A CN202311755654A CN117971535A CN 117971535 A CN117971535 A CN 117971535A CN 202311755654 A CN202311755654 A CN 202311755654A CN 117971535 A CN117971535 A CN 117971535A
Authority
CN
China
Prior art keywords
inspection
patrol
service system
target service
case
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311755654.0A
Other languages
Chinese (zh)
Inventor
邓文星
任国梅
廖小波
孙会首
李明达
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shuguang Cloud Computing Group Co ltd
Original Assignee
Shuguang Cloud Computing Group Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shuguang Cloud Computing Group Co ltd filed Critical Shuguang Cloud Computing Group Co ltd
Priority to CN202311755654.0A priority Critical patent/CN117971535A/en
Publication of CN117971535A publication Critical patent/CN117971535A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S10/00Systems supporting electrical power generation, transmission or distribution
    • Y04S10/50Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application relates to a system inspection method, a system inspection device, computer equipment and a storage medium, and relates to the technical field of computers. The method comprises the following steps: responding to a system inspection instruction, determining at least one candidate inspection case of the target service system according to a historical inspection record of the target service system and operation environment configuration information of the target service system, further generating an inspection task corresponding to the target service system according to the at least one candidate inspection case and inspection task configuration information associated with the target service system, and inspecting the target service system based on the inspection task. By adopting the method, the system inspection efficiency can be improved.

Description

System inspection method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a system inspection method, a system inspection device, a computer device, and a storage medium.
Background
With the continuous development of computer technology, the demands of enterprises on service systems are increased in the process of digital transformation, and a system inspection method is provided for ensuring the stable operation of the service systems.
According to the existing system inspection method, operation and maintenance personnel are required to independently deploy corresponding inspection tasks for each service system, and then the service systems are inspected according to the inspection tasks.
However, by adopting the existing system inspection method, the inspection task of each service system is deployed manually, so that more manpower resources are wasted, and the system inspection efficiency is reduced.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a system inspection method, apparatus, computer device, and storage medium that can improve system inspection efficiency.
In a first aspect, the present application provides a system inspection method. The method comprises the following steps:
responding to a system inspection instruction, and determining at least one candidate inspection case of the target service system according to a historical inspection record of the target service system and operation environment configuration information of the target service system;
generating a patrol task corresponding to the target service system according to the patrol task configuration information associated with the at least one candidate patrol case and the target service system;
And based on the inspection task, inspecting the target service system.
In the embodiment of the application, the candidate inspection use cases of the target service system are determined according to the historical inspection record of the target service system and the running environment configuration information of the target service system, so that the comprehensiveness and the accuracy of the determination of the candidate inspection use cases can be ensured; and then, generating the patrol task according to the patrol task configuration information and the candidate patrol use cases, so that on one hand, the accuracy of the generation of the patrol task can be ensured, and on the other hand, compared with the deployment of the patrol task for the service system in a manual mode in the related art, the time consumed by re-writing the patrol task is saved, the manpower resource is saved, and meanwhile, the system patrol efficiency is improved.
In one embodiment, determining at least one candidate patrol case of the target service system according to the historical patrol record of the target service system and the operation environment configuration information of the target service system includes:
According to the historical inspection record of the target service system, selecting an initial inspection case corresponding to the target service system from the inspection case set; and adjusting the inspection parameters in the initial inspection case according to the operation environment configuration information of the target service system to obtain at least one candidate inspection case of the target service system.
In the embodiment of the application, the initial inspection case is introduced, and the initial inspection case corresponding to the target service system is selected from the preconfigured inspection case set according to the historical inspection record of the target service system, so that the writing time of the inspection case can be saved, the system inspection efficiency is improved, and meanwhile, the accuracy of the initial inspection case can be ensured; and then, according to the running environment configuration information of the target service system, the inspection parameters in the initial inspection case are adjusted, so that the suitability of the candidate inspection case and the target service system can be improved, and the accuracy of the inspection result of the system is further ensured.
In one embodiment, according to the configuration information of the operation environment of the target service system, the method adjusts the inspection parameters in the initial inspection case to obtain at least one candidate inspection case of the target service system, including:
Identifying whether the operation and maintenance party has use case modification rights according to the identity information of the operation and maintenance party; if yes, the inspection parameters in the initial inspection case are adjusted according to the operation environment configuration information of the target service system, and at least one candidate inspection case of the target service system is obtained.
In the embodiment of the application, the identity recognition process of the operation and maintenance party is introduced, and the inspection parameters in the initial inspection use case can be adjusted according to the operation environment configuration information of the target service system under the condition that the operation and maintenance party has use case modification authority, so that the security of the inspection use case set can be ensured.
In one embodiment, the number of the candidate inspection cases is at least two, and the inspection task configuration information includes a dependency relationship between the candidate inspection cases; according to the inspection task configuration information associated with at least one candidate inspection case and the target service system, generating an inspection task corresponding to the target service system, including:
Generating patrol subtasks corresponding to each candidate patrol case; determining the execution relation among the patrol subtasks according to the dependency relation among the candidate patrol use cases; and combining all the inspection subtasks according to the execution relation to obtain the inspection task corresponding to the target service system.
In the embodiment of the application, the dependency relationship among the candidate patrol use cases is introduced, and the patrol task corresponding to the target service system is determined according to the dependency relationship among the candidate patrol use cases, so that the rationality of the patrol task can be ensured, and the stability of system patrol is further ensured.
In one embodiment, before generating the patrol task corresponding to the target service system according to the patrol task configuration information associated with the at least one candidate patrol case and the target service system, the method further includes:
responding to the task configuration request, and displaying a use case configuration interface to an operation and maintenance party; the use case configuration interface comprises use case icons of candidate inspection use cases; and determining the dependency relationship among the candidate inspection cases in the inspection task configuration information according to the dragging operation of the operation and maintenance party on the case icons in the case configuration interface.
In the embodiment of the application, the use case configuration interface is introduced, and the dependency relationship among the candidate patrol cases in the patrol task configuration information is determined by the dragging operation of the operation and maintenance party on each use case icon in the use case configuration interface, so that the accuracy and the flexibility of the determination of the dependency relationship can be ensured, and the accuracy and the flexibility of the execution relationship among the patrol subtasks are further ensured.
In one embodiment, the execution relationship includes a serial execution relationship and a parallel execution relationship, and in the process of performing inspection on the target service system based on the inspection task, the method further includes:
If abnormal information is detected, stopping executing the current patrol subtask in the running state in the patrol task, and executing the non-executed patrol subtask in serial execution relation with the current patrol subtask in the patrol task; under the condition that abnormal information is generated by abnormal phenomena of the functional components associated with the current inspection subtask, repairing the functional components associated with the current inspection subtask according to a self-healing processing mode corresponding to the current inspection subtask; and under the condition that the restoration is successful, re-executing the current patrol subtask and not executing the patrol subtask.
In the embodiment of the application, a self-healing processing mode is introduced, the functional components associated with the current inspection subtask are not required to be repaired by adopting a manual processing mode, and the functional components associated with the current inspection subtask are repaired according to the self-healing processing mode corresponding to the current inspection subtask, so that the manpower resources are saved, and meanwhile, the system inspection efficiency is improved.
In one embodiment, repairing the functional component associated with the current patrol subtask according to the self-healing processing mode corresponding to the current patrol subtask includes:
acquiring the self-healing processing times of the current patrol subtask; and repairing the functional components associated with the current patrol subtask according to the self-healing processing mode and the self-healing processing times corresponding to the current patrol subtask.
In the embodiment of the application, the self-healing frequency is introduced, and the mode of repairing the functional component is selected based on the self-healing frequency, so that the situation that the functional component associated with the current inspection subtask is repaired for a plurality of times but the repair is unsuccessful can be avoided, and the system inspection efficiency is further improved.
In a second aspect, the application further provides a system inspection device. The device comprises:
The use case determining module is used for responding to the system inspection instruction and determining at least one candidate inspection use case of the target service system according to the historical inspection record of the target service system and the running environment configuration information of the target service system;
the task generation module is used for generating a patrol task corresponding to the target service system according to the patrol task configuration information associated with the at least one candidate patrol case and the target service system;
And the system inspection module is used for inspecting the target service system based on the inspection task.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor which when executing the computer program performs the steps of:
responding to a system inspection instruction, and determining at least one candidate inspection case of the target service system according to a historical inspection record of the target service system and operation environment configuration information of the target service system;
generating a patrol task corresponding to the target service system according to the patrol task configuration information associated with the at least one candidate patrol case and the target service system;
And based on the inspection task, inspecting the target service system.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
responding to a system inspection instruction, and determining at least one candidate inspection case of the target service system according to a historical inspection record of the target service system and operation environment configuration information of the target service system;
generating a patrol task corresponding to the target service system according to the patrol task configuration information associated with the at least one candidate patrol case and the target service system;
And based on the inspection task, inspecting the target service system.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of:
responding to a system inspection instruction, and determining at least one candidate inspection case of the target service system according to a historical inspection record of the target service system and operation environment configuration information of the target service system;
generating a patrol task corresponding to the target service system according to the patrol task configuration information associated with the at least one candidate patrol case and the target service system;
And based on the inspection task, inspecting the target service system.
According to the system inspection method, the system inspection device, the computer equipment and the storage medium, at least one candidate inspection use case of the target service system is determined according to the historical inspection record of the target service system and the running environment configuration information of the target service system, and the inspection task corresponding to the target service system is generated according to the at least one candidate inspection use case and the inspection task configuration information associated with the target service system, so that the inspection of the target service system is performed based on the inspection task. By adopting the method, the candidate inspection cases of the target service system are determined according to the historical inspection records of the target service system and the running environment configuration information of the target service system, so that the comprehensiveness and accuracy of the determination of the candidate inspection cases can be ensured; and then, generating the patrol task according to the patrol task configuration information and the candidate patrol use cases, so that on one hand, the accuracy of the generation of the patrol task can be ensured, and on the other hand, compared with the deployment of the patrol task for the service system in a manual mode in the related art, the time consumed by re-writing the patrol task is saved, the manpower resource is saved, and meanwhile, the system patrol efficiency is improved.
Drawings
FIG. 1 is a diagram of an application environment for a system inspection method in one embodiment;
FIG. 2 is a flow diagram of a system inspection method in one embodiment;
FIG. 3 is a flow chart of a method for determining candidate patrol examples in one embodiment;
FIG. 4 is a flow chart of a determination of a patrol task in one embodiment;
FIG. 5 is a flow diagram of determining a dependency relationship in one embodiment;
FIG. 6 is a flow diagram of exception repair in one embodiment;
FIG. 7 is a flow chart of a system inspection method according to another embodiment;
FIG. 8 is a block diagram of a system inspection flow in one embodiment;
FIG. 9 is a block diagram of a system inspection device in one embodiment;
FIG. 10 is a block diagram of a system inspection device according to another embodiment;
FIG. 11 is a block diagram of a system inspection device according to yet another embodiment;
fig. 12 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The system inspection method provided by the embodiment of the application can be applied to an application environment shown in figure 1. Wherein the operation and maintenance end 102 communicates with the inspection server 104 through a network. The data storage system may store data that the patrol server 104 needs to process. For example, each initial inspection case. The data storage system may be integrated on the inspection server 104 or may be located on the cloud or other network server. For example, the inspection server 104 responds to a system inspection instruction sent by the operation and maintenance end 102, determines at least one candidate inspection case of the target service system according to a historical inspection record of the target service system and operation environment configuration information of the target service system, and generates an inspection task corresponding to the target service system according to the at least one candidate inspection case and the inspection task configuration information associated with the target service system; the patrol server 104 then patrol the target business system based on the patrol task. The inspection server 104 may be implemented as a stand-alone server or a server cluster formed by a plurality of servers.
With the continuous development of computer technology, the demands of enterprises on service systems are increased in the process of digital transformation, and a system inspection method is provided for ensuring the stable operation of the service systems.
According to the existing system inspection method, operation and maintenance personnel are required to independently deploy corresponding inspection tasks for each service system, and then the service systems are inspected according to the inspection tasks. However, by adopting the existing system inspection method, the inspection task of each service system is deployed manually, so that more manpower resources are wasted, and the system inspection efficiency is reduced.
Based on this, in one embodiment, as shown in fig. 2, a system inspection method is provided, and the method is applied to the inspection server in fig. 1 for illustration, and specifically includes the following steps:
s201, responding to a system inspection instruction, and determining at least one candidate inspection case of the target service system according to the historical inspection record of the target service system and the running environment configuration information of the target service system.
The system inspection instruction is used for indicating the inspection server to carry out inspection; the target service system is used for representing a service system needing to carry out inspection operation; the historical inspection record is used for representing the relevant record of the target business system for inspection in the historical period, and can include, but is not limited to, inspection time and inspection content; the operation environment configuration information is used for representing configuration information of the target service system in an operation state, and can include, but is not limited to, connection information, address information, environment variable parameters and the like of the target service system; the inspection case is used for representing a script program capable of performing system inspection; the candidate inspection cases are used for representing the inspection cases required by the target business system.
Optionally, in order to ensure the running stability of the target service system, the operation and maintenance party may send a system inspection instruction for inspecting the target service system to the inspection server through the operation and maintenance terminal according to a preset system inspection time interval; and then, after receiving the system inspection instruction, the inspection server can acquire the historical inspection record of the target service system and the running environment configuration information of the target service system according to the system identification of the target service system in the system inspection instruction.
Further, at least one candidate inspection case of the target service system can be selected from the pre-constructed inspection case set according to the inspection content in the historical inspection record and the operation environment configuration information of the target service system.
S202, generating a patrol task corresponding to the target service system according to the patrol task configuration information associated with at least one candidate patrol case and the target service system.
The routing inspection task configuration information is used for representing configuration rules of the business system corresponding to the routing inspection tasks; the inspection task is used for representing a task flow for inspecting the business system.
Optionally, under the condition that only one candidate inspection case exists, the inspection frequency of the candidate inspection case can be configured according to the inspection task configuration information associated with the target service system, so as to generate an inspection task corresponding to the target service system.
Under the condition that at least two candidate inspection cases exist, the inspection frequency of each candidate inspection case and the inspection sequence among the candidate inspection cases can be configured according to the inspection task configuration information associated with the target service system, so that the inspection task corresponding to the target service system is generated.
S203, based on the inspection task, the target service system is inspected.
Optionally, after the inspection task is generated, the target service system can be inspected by adopting the candidate inspection use cases in the inspection task according to the inspection flow of the inspection task, so as to obtain an inspection result corresponding to the candidate inspection use cases; and then, generating a patrol report of the target service system according to the patrol result corresponding to the candidate patrol case, and feeding the patrol report back to the operation and maintenance terminal for the operation and maintenance party to perform operation and maintenance processing.
It can be understood that, in order to make the operation and maintenance party more visual in the process of monitoring system inspection, the report inquiry interface can be displayed to the operation and maintenance party according to the inspection report generated in the process of inspecting the target service system, so that the operation and maintenance party can inquire the inspection progress and inspection information at any time through the report inquiry interface in the process of inspecting the system.
According to the system inspection method, at least one candidate inspection use case of the target service system is determined according to the historical inspection record of the target service system and the operation environment configuration information of the target service system, and the inspection task corresponding to the target service system is generated according to the at least one candidate inspection use case and the inspection task configuration information associated with the target service system, so that the target service system is inspected based on the inspection task. By adopting the method, the candidate inspection cases of the target service system are determined according to the historical inspection records of the target service system and the running environment configuration information of the target service system, so that the comprehensiveness and accuracy of the determination of the candidate inspection cases can be ensured; and then, generating the patrol task according to the patrol task configuration information and the candidate patrol use cases, so that on one hand, the accuracy of the generation of the patrol task can be ensured, and on the other hand, compared with the deployment of the patrol task for the service system in a manual mode in the related art, the time consumed by re-writing the patrol task is saved, the manpower resource is saved, and meanwhile, the system patrol efficiency is improved.
In practical application, in order to improve the system inspection efficiency, the determination time of the candidate inspection case needs to be shortened, based on the above embodiment, in this embodiment, an optional manner of determining the candidate inspection case is provided, as shown in fig. 3, which specifically includes the following steps:
S301, according to the historical inspection record of the target service system, selecting an initial inspection case corresponding to the target service system from the inspection case set.
Wherein, the inspection case set refers to the set of all inspection cases; the initial inspection case is used to characterize the unmodified inspection case template.
It can be understood that, in order to ensure the standardization of the inspection cases, a fixed writing rule and a programming language can be adopted to write in each initial inspection case capable of inspecting different functional components and different functional modules in advance, and store each initial inspection case into an inspection case set; furthermore, in order to manage each initial inspection case in a standardized manner, the initial inspection case can be divided into three levels of a system, a version and a module according to inspection contents of the initial inspection case.
Optionally, the historical inspection cases related in the historical inspection records can be counted to obtain the historical use times corresponding to the historical inspection cases; and then, sorting the historical inspection cases according to the historical use times in order from large to small to obtain a sorting result.
Further, a preset number of historical inspection cases arranged in the sorting result can be matched with the inspection case set, and initial inspection cases corresponding to the target service system are extracted from the inspection case set according to the matching result. For example, the inspection cases with the matching result in the inspection case set being the matched inspection cases are used as initial inspection cases corresponding to the target service system.
S302, according to the running environment configuration information of the target service system, the inspection parameters in the initial inspection case are adjusted, and at least one candidate inspection case of the target service system is obtained.
The patrol parameter refers to a parameter related to patrol content, for example, a memory usage rate, a bandwidth usage rate, and the like.
Optionally, after determining the initial inspection case, the inspection parameters in the initial inspection case may be adjusted based on the running environment configuration information of the target service system, so that the candidate inspection case obtained after adjustment is matched with the target service system.
In the embodiment of the application, the initial inspection case is introduced, and the initial inspection case corresponding to the target service system is selected from the preconfigured inspection case set according to the historical inspection record of the target service system, so that the writing time of the inspection case can be saved, the system inspection efficiency is improved, and meanwhile, the accuracy of the initial inspection case can be ensured; and then, according to the running environment configuration information of the target service system, the inspection parameters in the initial inspection case are adjusted, so that the suitability of the candidate inspection case and the target service system can be improved, and the accuracy of the inspection result of the system is further ensured.
In practical application, in order to ensure the security of the inspection case set, security verification needs to be performed on the modification process of the inspection case, based on the above embodiment, an alternative way of modifying the inspection case is provided in this embodiment, specifically, according to the identity information of the operation and maintenance party, whether the operation and maintenance party has the case modification authority is identified; if yes, the inspection parameters in the initial inspection case are adjusted according to the operation environment configuration information of the target service system, and at least one candidate inspection case of the target service system is obtained.
The identity information is used for representing relevant information capable of proving the identity of the operation and maintenance party, and comprises, but is not limited to, an identity mark and an identity verification key; the use case modification authority refers to authority for modifying the initial patrol use case.
Optionally, when the initial inspection case is adjusted, consistency comparison can be performed between the initial inspection case and candidate identity information stored in advance in the inspection server according to the identity information of the operation and maintenance party, and if the identity information consistent with the identity information of the operation and maintenance party exists in the candidate identity information, the operation and maintenance party is determined to have case modification authority; correspondingly, if the identity information consistent with the identity information of the operation and maintenance party does not exist in the candidate identity information, the operation and maintenance party is determined to have no use case modification authority.
Further, in the case that the operation and maintenance party has the use case modification authority, reference may be made to the step S302, where the inspection parameters in the initial inspection use case are adjusted according to the operation environment configuration information of the target service system, so as to obtain at least one candidate inspection use case of the target service system.
And under the condition that the operation and maintenance party does not have use case modification authority, directly feeding back authentication failure information to the client where the operation and maintenance party is located.
In the embodiment of the application, the identity recognition process of the operation and maintenance party is introduced, and the inspection parameters in the initial inspection use case can be adjusted according to the operation environment configuration information of the target service system under the condition that the operation and maintenance party has use case modification authority, so that the security of the inspection use case set can be ensured.
In practical application, in order to ensure smooth system inspection, under the condition that the number of candidate inspection cases is at least two, an inspection task is required to be generated according to the inspection task configuration information under the condition that the rationality of an inspection flow is ensured. The routing inspection task configuration information comprises the dependency relationship among candidate routing inspection cases. Based on this, on the basis of the above embodiment, in this embodiment, an alternative way of determining the patrol task is provided, as shown in fig. 4, and specifically includes the following steps:
s401, generating patrol subtasks corresponding to the candidate patrol cases.
The inspection subtask is used for representing a task which is generated based on the candidate inspection case and used for performing system inspection.
Optionally, for each candidate inspection case, an inspection subtask capable of inspecting the functional component associated with the candidate inspection case may be directly generated according to the program script in the candidate inspection case. It will be appreciated that since the candidate patrol case may be associated with one or more functional components, one or more functional components may be patrol using one patrol subtask.
S402, determining the execution relation among the patrol subtasks according to the dependency relation among the candidate patrol cases.
Optionally, the execution relationship between the patrol subtasks may be determined according to the dependency relationship between the candidate patrol cases included in the patrol task configuration information and the correspondence relationship between the candidate patrol cases and the patrol subtasks.
For example, when running the candidate patrol case a and the candidate patrol case B, the candidate patrol case a must be run first and then the candidate patrol case B must be run, that is, a dependency relationship exists between the candidate patrol case a and the candidate patrol case B. At this time, the patrol subtask A1 corresponding to the candidate patrol example a and the patrol subtask B1 corresponding to the candidate patrol example B are executed in such a manner that the patrol subtask A1 is executed first and then the patrol subtask B1 is executed.
It can be understood that, in order to ensure the efficiency of determining the dependency relationship, after determining each candidate inspection case, the dependency relationship between each candidate inspection case can be directly determined according to the dependency relationship of each functional component in the target service system and the functional component associated with each candidate inspection case.
S403, combining all the patrol subtasks according to the execution relationship to obtain the patrol tasks corresponding to the target service system.
Optionally, after determining the execution relationship between the patrol subtasks, each patrol subtask may be combined according to the execution relationship between the patrol subtasks, and each patrol subtask with the connection relationship obtained after the combination is used as a patrol task corresponding to the target service system.
In the embodiment of the application, the dependency relationship among the candidate patrol use cases is introduced, and the patrol task corresponding to the target service system is determined according to the dependency relationship among the candidate patrol use cases, so that the rationality of the patrol task can be ensured, and the stability of system patrol is further ensured.
In practical application, in order to ensure accuracy and flexibility of the dependency relationship between the candidate inspection cases, the dependency relationship between the candidate inspection cases can be obtained according to the allocation condition of the operation and maintenance party to the candidate inspection cases, and at this time, a visual interface capable of adjusting the inspection sequence between the candidate inspection cases needs to be displayed to the operation and maintenance party. Based on this, on the basis of the above embodiment, in this embodiment, an alternative way of determining the dependency relationship is provided, as shown in fig. 5, specifically including the following steps:
S501, in response to a task configuration request, a use case configuration interface is displayed to an operation and maintenance party.
The task configuration request refers to a request for adjusting the execution relation of the candidate inspection case; the use case configuration interface refers to a visual interface capable of adjusting the execution relation of the candidate patrol use cases, and further comprises use case icons of the candidate patrol use cases.
Optionally, after receiving the task configuration request sent by the operation and maintenance party, the inspection server may display, based on the template of the visual interface, a use case configuration interface including use case icons corresponding to each candidate inspection use case to the operation and maintenance party according to each candidate inspection use case of the determined target service system.
S502, determining the dependency relationship among candidate patrol cases in the patrol task configuration information according to the dragging operation of the operation and maintenance party on each case icon in the case configuration interface.
Optionally, the relative position relation between each candidate inspection case can be determined according to the dragging operation of the operation and maintenance party on each case icon in the case configuration interface; then, according to the relative position relation among the candidate patrol cases, the dependency relation among the candidate patrol cases in the patrol task configuration information can be determined.
For example, if candidate patrol case C is located in front of candidate patrol case D, it is determined that candidate patrol case D depends on candidate patrol case C, that is, candidate patrol case C needs to be run first and then candidate patrol case D needs to be run.
In the embodiment of the application, the use case configuration interface is introduced, and the dependency relationship among the candidate patrol cases in the patrol task configuration information is determined by the dragging operation of the operation and maintenance party on each use case icon in the use case configuration interface, so that the accuracy and the flexibility of the determination of the dependency relationship can be ensured, and the accuracy and the flexibility of the execution relationship among the patrol subtasks are further ensured.
In practical application, in the process of carrying out inspection on a target service system based on an inspection task, if abnormal information is needed, repairing processing is carried out on functional components associated with the inspection subtask corresponding to the abnormal information based on an execution relationship, wherein the execution relationship comprises a serial execution relationship and a parallel execution relationship. Based on this, in this embodiment, an alternative way of exception repair is provided, as shown in fig. 6, specifically including the following steps:
s601, if abnormal information is detected, stopping executing the current patrol subtask in the running state in the patrol task, and executing the non-executed patrol subtask in the patrol task, wherein the non-executed patrol subtask has serial execution relation with the current patrol subtask.
The current patrol subtask refers to a patrol subtask in an operation state at the current moment; the non-executed patrol subtask refers to an un-executed patrol subtask with an execution relationship arranged behind the current patrol subtask and having a serial execution relationship with the current patrol subtask.
It can be understood that in the process of carrying out inspection on the target service system, each inspection subtask is executed to generate a corresponding inspection report, so that whether the inspection subtask is abnormal or not can be judged according to the inspection report generated by each inspection subtask.
Optionally, if abnormal information is detected in the inspection report of the inspection subtasks, it is proved that the current inspection subtask may have an abnormality, so in order to avoid affecting the subsequent inspection tasks, it is necessary to stop running the current inspection subtask in the running state in the inspection tasks, and the non-executed inspection subtask in serial execution relationship with the current inspection subtask in the inspection tasks.
S602, repairing the functional component associated with the current patrol subtask according to the self-healing processing mode corresponding to the current patrol subtask under the condition that the abnormal information is generated by the abnormal phenomenon of the functional component associated with the current patrol subtask.
The self-healing processing mode refers to a mode of repairing the functional component.
It can be understood that when abnormal information exists in the inspection report of the inspection subtask, the abnormal information may be caused by abnormal phenomena of the functional components associated with the current inspection subtask or may be caused by abnormal phenomena of the inspection server, so that the generation reason of the abnormal information needs to be determined according to the data form of the abnormal information in the inspection report.
Optionally, if the abnormal information is generated by the inspection server, the server abnormal alarm information is directly sent to the operation and maintenance party to prompt the operation and maintenance party to repair the inspection server; if the abnormal information is generated by abnormal phenomena of the functional components associated with the current patrol subtask, the self-healing processing mode corresponding to the current patrol subtask can be adopted to directly repair the functional components associated with the current patrol subtask.
For example, if the current patrol subtask is to patrol the server memory, the self-healing processing mode corresponding to the current patrol subtask is to delete the useless cache data in the server, that is, if the server memory is abnormal, the useless cache data in the server memory is directly deleted, so that the server memory is restored to be normal.
It can be understood that, under the condition that the current patrol subtask is determined to be abnormal, the abnormality of the current patrol subtask does not affect other patrol subtasks in an unoperated state in parallel execution relation with the current patrol subtask, so that the other patrol subtasks can be normally operated in order to ensure the system patrol efficiency.
For example, the current patrol subtask E1 has a serial execution relationship with the non-executed patrol subtask E2, the non-executed patrol subtask E3 and the non-executed patrol subtask E4, and has a parallel execution relationship with other patrol subtasks F1, and under the condition that abnormal information is detected, the current patrol subtask E1, the non-executed patrol subtask E2, the non-executed patrol subtask E3 and the non-executed patrol subtask E4 need to be stopped, but the other patrol subtasks F1 can be normally operated.
S603, under the condition that the repair is successful, the current patrol subtask is re-executed and the patrol subtask is not executed.
Optionally, after repairing the functional component associated with the current inspection subtask, testing the current inspection subtask, and if the test result is that the repair is successful, re-executing the current inspection subtask and not executing the inspection subtask; if the test result is that the repair is unsuccessful, the current inspection subtask needs to be repaired again by adopting a self-healing processing mode.
In the embodiment of the application, a self-healing processing mode is introduced, the functional components associated with the current inspection subtask are not required to be repaired by adopting a manual processing mode, and the functional components associated with the current inspection subtask are repaired according to the self-healing processing mode corresponding to the current inspection subtask, so that the manpower resources are saved, and meanwhile, the system inspection efficiency is improved.
In practical application, the situation that the functional components associated with the current inspection subtask are repaired for many times, but the repair is unsuccessful may occur, and in order to avoid the situation that the system inspection efficiency is reduced, the number of times of self-healing processing of the current inspection subtask needs to be limited. Based on this, in this embodiment, an optional method for repairing a functional component is provided, specifically, the number of self-healing processing times of the current inspection subtask is obtained, and the functional component associated with the current inspection subtask is repaired according to the self-healing processing method and the number of self-healing processing times corresponding to the current inspection subtask.
It can be understood that, in order to ensure the system inspection efficiency, a corresponding processing frequency threshold can be configured for each inspection subtask according to the historical self-healing condition of the inspection subtask, and when the functional components are repaired, the corresponding self-healing processing flow is repaired for each functional component, and the self-healing processing frequency in the self-healing processing flow is recorded.
Optionally, when repairing the functional component associated with the current inspection subtask, the self-healing processing times of the current inspection subtask need to be acquired, and the self-healing processing times are compared with a processing times threshold corresponding to the current inspection subtask.
Further, if the number of times of self-healing processing is smaller than or equal to the threshold value of the number of times of processing, repairing the functional component associated with the current inspection subtask according to the self-healing processing mode corresponding to the current inspection subtask; if the self-healing processing times is greater than the processing times threshold, the abnormal alarm information of the inspection task is directly sent to the operation and maintenance party so as to prompt the operation and maintenance party to repair the current inspection subtask.
In the embodiment of the application, the self-healing frequency is introduced, and the mode of repairing the functional component is selected based on the self-healing frequency, so that the situation that the functional component associated with the current inspection subtask is repaired for a plurality of times but the repair is unsuccessful can be avoided, and the system inspection efficiency is further improved.
Fig. 7 is a schematic flow chart of a system inspection method in another embodiment, and on the basis of the foregoing embodiment, this embodiment provides an alternative example of the system inspection method. With reference to fig. 7, the specific implementation procedure is as follows:
S701, responding to a system inspection instruction, and selecting an initial inspection case corresponding to a target service system from the inspection case set according to the historical inspection record of the target service system.
S702, according to the running environment configuration information of the target service system, the inspection parameters in the initial inspection cases are adjusted, and each candidate inspection case of the target service system is obtained.
Optionally, whether the operation and maintenance party has use case modification authority can be identified according to the identity information of the operation and maintenance party; if yes, the inspection parameters in the initial inspection cases are adjusted according to the operation environment configuration information of the target service system, and each candidate inspection case of the target service system is obtained.
S703, generating patrol subtasks corresponding to the candidate patrol cases.
S704, determining the execution relation among the patrol subtasks according to the dependency relation among the candidate patrol use cases in the patrol task configuration information.
Optionally, a use case configuration interface may be presented to the operation and maintenance party in response to the task configuration request; the use case configuration interface comprises use case icons of candidate inspection use cases; and determining the dependency relationship among the candidate inspection cases in the inspection task configuration information according to the dragging operation of the operation and maintenance party on the case icons in the case configuration interface.
And S705, combining all the patrol subtasks according to the execution relationship to obtain the patrol tasks corresponding to the target service system.
S706, based on the inspection task, the target service system is inspected.
S707, if abnormal information is detected in the process of carrying out the target service system based on the patrol task, stopping executing the current patrol subtask in the running state in the patrol task and executing the non-executed patrol subtask in the patrol task, wherein the non-executed patrol subtask has serial execution relation with the current patrol subtask.
S708, under the condition that the abnormal information is generated by abnormal phenomena of the functional components associated with the current patrol subtask, acquiring the self-healing processing times of the current patrol subtask.
S709, repairing the functional components associated with the current patrol subtask according to the self-healing processing mode and the self-healing processing times corresponding to the current patrol subtask.
S710, re-executing the current patrol subtask and not executing the patrol subtask under the condition that the restoration is successful.
The specific process of S701-S710 may refer to the description of the above method embodiment, and its implementation principle and technical effect are similar, and are not repeated here.
On the basis of the above embodiment, an alternative example of a system inspection method is provided in this embodiment, which specifically includes the following steps:
A first step of compiling each inspection case based on the hierarchy of each inspection case to obtain an initial inspection case, with reference to a flowchart shown in fig. 8; and then, aiming at each initial inspection case, carrying out operation verification on the initial inspection case, and after the operation verification is passed, inputting the initial inspection case into an inspection case library so as to enable the inspection case library to finish initialization.
And a second step of selecting a patrol project for patrol the target service system in the project management interface, and then adjusting patrol parameters in the initial patrol use cases according to the running environment configuration information of the target service system under the condition that the identity verification of the operation and maintenance party is passed, so as to obtain each candidate patrol use case of the target service system.
Thirdly, according to the task flow management interface, the inspection sequence of each candidate inspection case is adjusted to obtain an inspection task; and then, adopting a patrol task to carry out patrol on the target service system, and generating a task running log in the patrol process.
And fourthly, when the target service system is patrolled and examined, if the target service system is abnormal, calling an alarm module to alarm abnormal information according to alarm rules, and simultaneously, repairing the functional components corresponding to the abnormal information by adopting a self-healing module.
Fifthly, under the condition that the functional component is successfully repaired, continuing to run the inspection task; and under the condition that the restoration of the functional component fails, abnormal information is sent to the operation and maintenance party.
The specific process of the above steps may refer to the description of the above method embodiments, and its implementation principle and technical effects are similar, and are not repeated herein.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution relationship of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least a part of other steps or stages in other steps.
Based on the same inventive concept, the embodiment of the application also provides a system inspection device for realizing the system inspection method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation of one or more embodiments of the system inspection device provided below may be referred to the limitation of the system inspection method hereinabove, and will not be repeated herein.
In one embodiment, as shown in fig. 9, there is provided a system inspection device 1, comprising: a use case determination module 10, a task generation module 20, and a system patrol module 30, wherein:
The use case determining module 10 is configured to determine at least one candidate patrol use case of the target service system according to the historical patrol record of the target service system and the running environment configuration information of the target service system in response to the system patrol instruction;
the task generating module 20 is configured to generate a patrol task corresponding to the target service system according to the patrol task configuration information associated with the at least one candidate patrol use case and the target service system;
The system inspection module 30 is configured to inspect the target service system based on the inspection task.
In one embodiment, as shown in FIG. 10, the use case determination module 10 includes:
a first determining unit 11, configured to select, according to a historical inspection record of the target service system, an initial inspection case corresponding to the target service system from the inspection case set;
And the second determining unit 12 is configured to adjust the inspection parameters in the initial inspection case according to the operation environment configuration information of the target service system, so as to obtain at least one candidate inspection case of the target service system.
In one embodiment, the second determining unit 12 is specifically configured to:
Identifying whether the operation and maintenance party has use case modification rights according to the identity information of the operation and maintenance party; if yes, the inspection parameters in the initial inspection case are adjusted according to the operation environment configuration information of the target service system, and at least one candidate inspection case of the target service system is obtained.
In one embodiment, the number of candidate patrol cases is at least two, the patrol task configuration information includes a dependency relationship between each candidate patrol case, and the task generating module 20 is specifically configured to:
Generating patrol subtasks corresponding to each candidate patrol case; determining the execution relation among the patrol subtasks according to the dependency relation among the candidate patrol use cases; and combining all the inspection subtasks according to the execution relation to obtain the inspection task corresponding to the target service system.
In one embodiment, the system inspection device 1 further comprises a visualization module, wherein the visualization module is specifically configured to:
responding to the task configuration request, and displaying a use case configuration interface to an operation and maintenance party; the use case configuration interface comprises use case icons of candidate inspection use cases; and determining the dependency relationship among the candidate inspection cases in the inspection task configuration information according to the dragging operation of the operation and maintenance party on the case icons in the case configuration interface.
In one embodiment, the execution relationship includes a serial execution relationship and a parallel execution relationship, and in the process of performing inspection on the target service system based on the inspection task, as shown in fig. 11, the system inspection device 1 further includes:
the abnormality detection module 40 is configured to stop executing a current inspection subtask in an operational state in the inspection tasks and an unexecuted inspection subtask in a serial execution relationship with the current inspection subtask in the inspection tasks if abnormality information is detected;
The exception repairing module 50 is configured to repair, when it is determined that the exception information is generated by an exception phenomenon occurring in a functional component associated with the current inspection subtask, the functional component associated with the current inspection subtask according to a self-healing processing manner corresponding to the current inspection subtask;
the system inspection module 30 is further configured to re-execute the current inspection subtask and not execute the inspection subtask if the repair is successful.
In one embodiment, exception repair module 40 is specifically configured to:
acquiring the self-healing processing times of the current patrol subtask; and repairing the functional components associated with the current patrol subtask according to the self-healing processing mode and the self-healing processing times corresponding to the current patrol subtask.
The modules in the system inspection device can be all or partially realized by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, and the internal structure of which may be as shown in fig. 12. The computer device includes a processor, a memory, an Input/Output interface (I/O) and a communication interface. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer equipment is used for storing data such as initial inspection cases. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a system inspection method.
It will be appreciated by those skilled in the art that the structure shown in FIG. 12 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
responding to a system inspection instruction, and determining at least one candidate inspection case of the target service system according to a historical inspection record of the target service system and operation environment configuration information of the target service system;
generating a patrol task corresponding to the target service system according to the patrol task configuration information associated with the at least one candidate patrol case and the target service system;
And based on the inspection task, inspecting the target service system.
In one embodiment, when the processor executes logic in the computer program to determine at least one candidate patrol use case of the target service system according to the historical patrol record of the target service system and the running environment configuration information of the target service system, the following steps are specifically implemented:
According to the historical inspection record of the target service system, selecting an initial inspection case corresponding to the target service system from the inspection case set; and adjusting the inspection parameters in the initial inspection case according to the operation environment configuration information of the target service system to obtain at least one candidate inspection case of the target service system.
In one embodiment, when the processor executes logic of the at least one candidate inspection case of the target service system by adjusting the inspection parameters in the initial inspection case according to the configuration information of the operation environment of the target service system in the computer program, the following steps are specifically implemented:
Identifying whether the operation and maintenance party has use case modification rights according to the identity information of the operation and maintenance party; if yes, the inspection parameters in the initial inspection case are adjusted according to the operation environment configuration information of the target service system, and at least one candidate inspection case of the target service system is obtained.
In one embodiment, the number of the candidate inspection cases is at least two, the inspection task configuration information includes a dependency relationship between the candidate inspection cases, and when the processor executes the logic of the inspection task corresponding to the target service system in the computer program according to the inspection task configuration information associated with the at least one candidate inspection case and the target service system, the processor specifically realizes the following steps:
Generating patrol subtasks corresponding to each candidate patrol case; determining the execution relation among the patrol subtasks according to the dependency relation among the candidate patrol use cases; and combining all the inspection subtasks according to the execution relation to obtain the inspection task corresponding to the target service system.
In one embodiment, when the processor executes logic in the computer program before generating the patrol task corresponding to the target service system according to the patrol task configuration information associated with the at least one candidate patrol use case and the target service system, the following steps are specifically implemented:
responding to the task configuration request, and displaying a use case configuration interface to an operation and maintenance party; the use case configuration interface comprises use case icons of candidate inspection use cases; and determining the dependency relationship among the candidate inspection cases in the inspection task configuration information according to the dragging operation of the operation and maintenance party on the case icons in the case configuration interface.
In one embodiment, the execution relationship includes a serial execution relationship and a parallel execution relationship, and when the processor executes logic in the computer program in the process of performing inspection on the target service system based on the inspection task, the following steps are specifically implemented:
If abnormal information is detected, stopping executing the current patrol subtask in the running state in the patrol task, and executing the non-executed patrol subtask in serial execution relation with the current patrol subtask in the patrol task; under the condition that abnormal information is generated by abnormal phenomena of the functional components associated with the current inspection subtask, repairing the functional components associated with the current inspection subtask according to a self-healing processing mode corresponding to the current inspection subtask; and under the condition that the restoration is successful, re-executing the current patrol subtask and not executing the patrol subtask.
In one embodiment, when the processor executes logic for repairing a functional component associated with a current patrol subtask according to a self-healing processing mode corresponding to the current patrol subtask in the computer program, the following steps are specifically implemented:
acquiring the self-healing processing times of the current patrol subtask; and repairing the functional components associated with the current patrol subtask according to the self-healing processing mode and the self-healing processing times corresponding to the current patrol subtask.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
responding to a system inspection instruction, and determining at least one candidate inspection case of the target service system according to a historical inspection record of the target service system and operation environment configuration information of the target service system;
generating a patrol task corresponding to the target service system according to the patrol task configuration information associated with the at least one candidate patrol case and the target service system;
And based on the inspection task, inspecting the target service system.
In one embodiment, the code logic for determining at least one candidate patrol use case of the target service system according to the historical patrol record of the target service system and the running environment configuration information of the target service system in the computer program is executed by the processor, and specifically implements the following steps:
According to the historical inspection record of the target service system, selecting an initial inspection case corresponding to the target service system from the inspection case set; and adjusting the inspection parameters in the initial inspection case according to the operation environment configuration information of the target service system to obtain at least one candidate inspection case of the target service system.
In one embodiment, the code logic for adjusting the inspection parameters in the initial inspection case according to the configuration information of the operation environment of the target service system in the computer program to obtain at least one candidate inspection case of the target service system is executed by the processor, and specifically implements the following steps:
Identifying whether the operation and maintenance party has use case modification rights according to the identity information of the operation and maintenance party; if yes, the inspection parameters in the initial inspection case are adjusted according to the operation environment configuration information of the target service system, and at least one candidate inspection case of the target service system is obtained.
In one embodiment, the number of the candidate inspection cases is at least two, the inspection task configuration information includes a dependency relationship between each candidate inspection case, and when the code logic for generating the inspection task corresponding to the target service system according to the inspection task configuration information associated with at least one candidate inspection case and the target service system in the computer program is executed by the processor, the following steps are specifically implemented:
Generating patrol subtasks corresponding to each candidate patrol case; determining the execution relation among the patrol subtasks according to the dependency relation among the candidate patrol use cases; and combining all the inspection subtasks according to the execution relation to obtain the inspection task corresponding to the target service system.
In one embodiment, according to the inspection task configuration information associated with at least one candidate inspection case and the target service system, before the inspection task corresponding to the target service system is generated, the following steps are specifically implemented when code logic in the computer program is executed by the processor:
responding to the task configuration request, and displaying a use case configuration interface to an operation and maintenance party; the use case configuration interface comprises use case icons of candidate inspection use cases; and determining the dependency relationship among the candidate inspection cases in the inspection task configuration information according to the dragging operation of the operation and maintenance party on the case icons in the case configuration interface.
In one embodiment, the execution relationship includes a serial execution relationship and a parallel execution relationship, and when the code logic in the computer program is executed by the processor in the process of performing inspection on the target service system based on the inspection task, the following steps are specifically implemented:
If abnormal information is detected, stopping executing the current patrol subtask in the running state in the patrol task, and executing the non-executed patrol subtask in serial execution relation with the current patrol subtask in the patrol task; under the condition that abnormal information is generated by abnormal phenomena of the functional components associated with the current inspection subtask, repairing the functional components associated with the current inspection subtask according to a self-healing processing mode corresponding to the current inspection subtask; and under the condition that the restoration is successful, re-executing the current patrol subtask and not executing the patrol subtask.
In one embodiment, when the code logic for repairing the functional component associated with the current inspection subtask is executed by the processor according to the self-healing processing mode corresponding to the current inspection subtask in the computer program, the following steps are specifically implemented:
acquiring the self-healing processing times of the current patrol subtask; and repairing the functional components associated with the current patrol subtask according to the self-healing processing mode and the self-healing processing times corresponding to the current patrol subtask.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of:
responding to a system inspection instruction, and determining at least one candidate inspection case of the target service system according to a historical inspection record of the target service system and operation environment configuration information of the target service system;
generating a patrol task corresponding to the target service system according to the patrol task configuration information associated with the at least one candidate patrol case and the target service system;
And based on the inspection task, inspecting the target service system.
In one embodiment, when the computer program is executed by the processor to determine the operation of at least one candidate patrol use case of the target service system according to the historical patrol record of the target service system and the running environment configuration information of the target service system, the following steps are specifically implemented:
According to the historical inspection record of the target service system, selecting an initial inspection case corresponding to the target service system from the inspection case set; and adjusting the inspection parameters in the initial inspection case according to the operation environment configuration information of the target service system to obtain at least one candidate inspection case of the target service system.
In one embodiment, the computer program is executed by the processor to adjust the inspection parameters in the initial inspection case according to the configuration information of the operation environment of the target service system, so as to realize the following steps when at least one candidate inspection case of the target service system is obtained:
Identifying whether the operation and maintenance party has use case modification rights according to the identity information of the operation and maintenance party; if yes, the inspection parameters in the initial inspection case are adjusted according to the operation environment configuration information of the target service system, and at least one candidate inspection case of the target service system is obtained.
In one embodiment, the number of the candidate inspection cases is at least two, the inspection task configuration information includes a dependency relationship between each candidate inspection case, and when the computer program is executed by the processor to generate an operation of an inspection task corresponding to the target service system according to the inspection task configuration information associated with at least one candidate inspection case and the target service system, the following steps are specifically implemented:
Generating patrol subtasks corresponding to each candidate patrol case; determining the execution relation among the patrol subtasks according to the dependency relation among the candidate patrol use cases; and combining all the inspection subtasks according to the execution relation to obtain the inspection task corresponding to the target service system.
In one embodiment, the following steps are specifically implemented when the computer program is executed by the processor before the patrol task corresponding to the target service system is generated according to the patrol task configuration information associated with the at least one candidate patrol use case and the target service system:
responding to the task configuration request, and displaying a use case configuration interface to an operation and maintenance party; the use case configuration interface comprises use case icons of candidate inspection use cases; and determining the dependency relationship among the candidate inspection cases in the inspection task configuration information according to the dragging operation of the operation and maintenance party on the case icons in the case configuration interface.
In one embodiment, the execution relationship includes a serial execution relationship and a parallel execution relationship, and when the computer program is executed by the processor in the process of performing inspection on the target service system based on the inspection task, the following steps are specifically implemented:
If abnormal information is detected, stopping executing the current patrol subtask in the running state in the patrol task, and executing the non-executed patrol subtask in serial execution relation with the current patrol subtask in the patrol task; under the condition that abnormal information is generated by abnormal phenomena of the functional components associated with the current inspection subtask, repairing the functional components associated with the current inspection subtask according to a self-healing processing mode corresponding to the current inspection subtask; and under the condition that the restoration is successful, re-executing the current patrol subtask and not executing the patrol subtask.
In one embodiment, when the computer program is executed by the processor to repair the functional component associated with the current patrol subtask according to the self-healing processing mode corresponding to the current patrol subtask, the following steps are specifically implemented:
acquiring the self-healing processing times of the current patrol subtask; and repairing the functional components associated with the current patrol subtask according to the self-healing processing mode and the self-healing processing times corresponding to the current patrol subtask.
The data related to the present application (including but not limited to the initial inspection example) is data authorized by the user or fully authorized by each party, and the collection, use and processing of the related data are required to meet the related regulations.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magneto-resistive random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (PHASE CHANGE Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in various forms such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (10)

1. A system inspection method, the method comprising:
responding to a system inspection instruction, and determining at least one candidate inspection case of a target service system according to a historical inspection record of the target service system and operation environment configuration information of the target service system;
Generating a patrol task corresponding to the target service system according to the at least one candidate patrol use case and patrol task configuration information associated with the target service system;
and based on the inspection task, inspecting the target service system.
2. The method of claim 1, wherein the determining at least one candidate patrol use case of the target business system according to the historical patrol record of the target business system and the operating environment configuration information of the target business system comprises:
according to the historical inspection record of the target service system, selecting an initial inspection case corresponding to the target service system from the inspection case set;
and according to the running environment configuration information of the target service system, the inspection parameters in the initial inspection case are adjusted to obtain at least one candidate inspection case of the target service system.
3. The method of claim 2, wherein the adjusting the inspection parameters in the initial inspection case according to the operation environment configuration information of the target service system to obtain at least one candidate inspection case of the target service system includes:
identifying whether the operation and maintenance party has use case modification rights according to the identity information of the operation and maintenance party;
If yes, the inspection parameters in the initial inspection case are adjusted according to the operation environment configuration information of the target service system, and at least one candidate inspection case of the target service system is obtained.
4. The method of claim 1, wherein the number of candidate patrol cases is at least two, and the patrol task configuration information includes a dependency relationship between each candidate patrol case; the generating, according to the at least one candidate inspection case and the inspection task configuration information associated with the target service system, an inspection task corresponding to the target service system includes:
Generating patrol subtasks corresponding to each candidate patrol case;
determining the execution relation among the patrol subtasks according to the dependency relation among the candidate patrol use cases;
And combining all the patrol subtasks according to the execution relation to obtain the patrol tasks corresponding to the target service system.
5. The method of claim 4, wherein prior to generating the inspection task corresponding to the target business system based on the at least one candidate inspection case and the inspection task configuration information associated with the target business system, the method further comprises:
responding to the task configuration request, and displaying a use case configuration interface to an operation and maintenance party; the use case configuration interface comprises use case icons of candidate inspection use cases;
And determining the dependency relationship among candidate patrol cases in the patrol task configuration information according to the dragging operation of the operation and maintenance party on each case icon in the case configuration interface.
6. The method of claim 4, wherein the execution relationships include a serial execution relationship and a parallel execution relationship, and wherein during the inspection of the target business system based on the inspection task, the method further comprises:
If abnormal information is detected, stopping executing a current patrol subtask in an operation state in the patrol tasks and executing no patrol subtask in serial execution relation with the current patrol subtask in the patrol tasks;
under the condition that the abnormal information is generated by abnormal phenomena of the functional components related to the current inspection subtask, repairing the functional components related to the current inspection subtask according to a self-healing processing mode corresponding to the current inspection subtask;
And re-executing the current patrol subtask and the non-executed patrol subtask under the condition that the restoration is successful.
7. The method of claim 6, wherein repairing the functional component associated with the current patrol subtask according to the self-healing processing mode corresponding to the current patrol subtask comprises:
acquiring the self-healing processing times of the current patrol subtask;
And repairing the functional components associated with the current patrol subtask according to the self-healing processing mode and the self-healing processing times corresponding to the current patrol subtask.
8. A system inspection device, the device comprising:
The system comprises a use case determining module, a target service system, a service system management module and a service system management module, wherein the use case determining module is used for responding to a system inspection instruction and determining at least one candidate inspection use case of the target service system according to a historical inspection record of the target service system and running environment configuration information of the target service system;
The task generation module is used for generating a patrol task corresponding to the target service system according to the at least one candidate patrol use case and patrol task configuration information associated with the target service system;
and the system inspection module is used for inspecting the target business system based on the inspection task.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
CN202311755654.0A 2023-12-19 2023-12-19 System inspection method, device, computer equipment and storage medium Pending CN117971535A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311755654.0A CN117971535A (en) 2023-12-19 2023-12-19 System inspection method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311755654.0A CN117971535A (en) 2023-12-19 2023-12-19 System inspection method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117971535A true CN117971535A (en) 2024-05-03

Family

ID=90854552

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311755654.0A Pending CN117971535A (en) 2023-12-19 2023-12-19 System inspection method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117971535A (en)

Similar Documents

Publication Publication Date Title
US10379838B1 (en) Update and rollback of code and API versions
CN105893259B (en) Code detection system, method and device
US10725763B1 (en) Update and rollback of configurations in a cloud-based architecture
US20080244233A1 (en) Machine cluster topology representation for automated testing
CN113238924B (en) Chaotic engineering realization method and system in distributed graph database system
US9164857B2 (en) Scalable structured data store operations
CN114443332B (en) Storage pool detection method and device, electronic equipment and storage medium
US9684689B2 (en) Distributed parallel processing system having jobs processed by nodes based on authentication using unique identification of data
CN113220540B (en) Service management method, device, computer equipment and storage medium
CN110291505A (en) Reduce the recovery time of application
CN114677779B (en) Vehicle configuration state monitoring method and device, storage medium and computer equipment
CN117971535A (en) System inspection method, device, computer equipment and storage medium
CN111694724A (en) Testing method and device of distributed table system, electronic equipment and storage medium
JP2023044720A (en) Computer implemented method for recovering crashed application, computer program product, and remote computer server (remote recovery of crashed process)
CN107885640B (en) Hard disk management method and device
US10095596B1 (en) Executing integration tests in a distributed load and performance evaluation framework
CN114997991B (en) Method, device, computer equipment and storage medium for intercepting withdrawal risk
CN114780396A (en) Gray scale operation test method, device, equipment and medium of transaction system
CN117992338A (en) Test data acquisition method, device, equipment and storage medium
US11481662B1 (en) Analysis of interactions with data objects stored by a network-based storage service
CN118132448A (en) Test case processing method, device, computer equipment and storage medium
CN117573452A (en) Performance test method, apparatus, computer device, storage medium, and program product
CN118132435A (en) Test method, test device, computer equipment, readable storage medium and computer product
CN117992029A (en) Service end code production method, device, computer equipment and storage medium
CN117271445A (en) Log data processing method, device, server, storage medium and program product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination