Monitoring method and device for business function operating environment

By configuring monitoring cases for the business function operating environment and analyzing the calling relationships, the problem of the inability to accurately locate faults in the operating environment in the existing technology is solved, and rapid and accurate fault location and failure rate assessment are achieved.

CN113360342BActive Publication Date: 2024-09-27AGRICULTURAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110626849.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-04
Publication Date
2024-09-27
Estimated Expiration
2041-06-04

AI Technical Summary

Technical Problem

The existing technology cannot accurately and quickly locate the faulty operating environment, especially when the business system relationships are complex.

Method used

By determining each operating environment and its calling relationship corresponding to the business function to be monitored, monitoring cases are configured for each operating environment, and based on the execution results and calling relationships of the monitoring cases, the status of the operating environment is distinguished, and monitoring warning signals and failure rates are output.

Benefits of technology

It achieves accurate and rapid location of fault operating environment, reduces fault location time, improves fault repair efficiency, and provides accurate evaluation of system availability and failure rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113360342B
    Figure CN113360342B
Patent Text Reader

Abstract

The embodiment of the present application provides a monitoring method and device for a business function operating environment. After determining the operating environments corresponding to the business functions to be monitored and the calling relationships between the operating environments, monitoring cases are configured for each operating environment, and the calling relationships between the monitoring cases corresponding to each operating environment are determined based on the calling relationships between the operating environments. Then, the monitoring cases corresponding to each operating environment are executed at preset time intervals, and the operating status of each operating environment is determined based on the execution results of the monitoring cases corresponding to each operating environment and the calling relationships between the monitoring cases. The present application can distinguish whether the operating environment with a fault is a system fault of the system itself or a related system fault caused by a fault in the operating environment it calls, so that the operating environment with a fault can be accurately and quickly located.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a method and device for monitoring a business function operating environment. Background Art

[0002] Monitoring the operating environment of business functions can timely detect whether there are any failures in the operating environment of business functions, which plays an important role in software application systems.

[0003] Existing operating environment monitoring methods mainly include: 1) Machine operation and maintenance monitoring: Use specific tools, plug-ins, etc. to establish machine hardware performance monitoring, such as collecting data on the occupancy of the central processing unit (CPU), memory, and application programs, mainly monitoring the basic information of the business operating environment, and issuing alarms when the monitoring indicators exceed the threshold; 2) Configure your own monitoring method according to the protocol adopted by the business function (such as Hypertext Transfer Protocol (HTTP), socket protocol, etc.), such as HTTP status code monitoring, interface transaction response field monitoring, etc.

[0004] However, the relationships between current business systems are becoming more and more complex, especially for front-end business systems, and the back-end related systems are even larger. The existing monitoring method only monitors a single operating environment of the business. When the relationships between business systems are becoming more and more complex, it is impossible to accurately and quickly locate the operating environment with faults. Summary of the invention

[0005] The embodiments of the present application provide a method and device for monitoring a business function operating environment, which can solve the technical problem in the prior art that a faulty operating environment cannot be accurately and quickly located.

[0006] In a first aspect, an embodiment of the present application provides a method for monitoring a business function operating environment, the method comprising:

[0007] Determine each operating environment corresponding to the business function to be monitored and the calling relationship between the operating environments;

[0008] configuring monitoring cases for the respective operating environments, and determining the calling relationships between the monitoring cases corresponding to the respective operating environments according to the calling relationships between the respective operating environments, wherein the calling relationships between the respective operating environments are the same as the calling relationships between the monitoring cases corresponding to the respective operating environments;

[0009] At preset time intervals, the monitoring cases corresponding to the various operating environments are executed, and the operating status of the various operating environments is determined according to the execution results of the monitoring cases corresponding to the various operating environments and the calling relationships between the monitoring cases corresponding to the various operating environments.

[0010] In a feasible implementation manner, determining the operating status of each operating environment according to the execution results of the monitoring cases corresponding to each operating environment and the calling relationship between the monitoring cases corresponding to each operating environment includes:

[0011] When the first monitoring case corresponding to the current operating environment is executed successfully, determining that the operating state of the current operating environment is an available state;

[0012] When the first monitoring case corresponding to the current operating environment fails to execute and the second monitoring case called by the first monitoring case executes successfully, determining that the operating state of the current operating environment is a self-system failure state;

[0013] When both the first monitoring case corresponding to the current operating environment and the second monitoring case called by the first monitoring case fail to execute, it is determined that the operating state of the current operating environment is a related system failure state.

[0014] In a feasible implementation manner, after determining the operating status of each operating environment, the method further includes:

[0015] According to the operating status of each operating environment and the corresponding relationship between various operating statuses and monitoring warning signals, the monitoring warning signals corresponding to each operating environment are output.

[0016] In a feasible implementation manner, after determining the operating status of each operating environment, the method further includes:

[0017] The availability rate of each operating environment within a preset time, the failure rate of its own system within the preset time, and the failure rate of the associated system of each operating environment within the preset time are calculated and output respectively.

[0018] In a feasible implementation, the following method is used to calculate the availability L of the i-th operating environment within a preset time period: i :

[0019] L i =sum1 / sum

[0020] The following method is used to calculate the self-system failure rate M of the i-th operating environment within the preset time length: i :

[0021] M i=sum2 / sum

[0022] The associated system failure rate N of the i-th operating environment within the preset time is calculated in the following way: i :

[0023] N i =sum3 / sum

[0024] Among them, sum=sum1+sum2+sum3, sum1 represents the number of times the i-th operating environment is in an available state within the preset time length, sum2 represents the number of times the i-th operating environment is in its own system failure state within the preset time length, and sum3 represents the number of times the i-th operating environment is in an associated system failure state within the preset time length.

[0025] In a second aspect, an embodiment of the present application provides a monitoring device for a business function operating environment, the device comprising:

[0026] A determination module, used to determine each operating environment corresponding to the business function to be monitored and the calling relationship between the various operating environments;

[0027] A configuration module, configured to respectively configure monitoring cases for each of the operating environments, and determine the calling relationship between the monitoring cases corresponding to the various operating environments according to the calling relationship between the various operating environments, wherein the calling relationship between the various operating environments is the same as the calling relationship between the monitoring cases corresponding to the various operating environments;

[0028] The processing module is used to execute the monitoring cases corresponding to the various operating environments at preset time intervals, and determine the operating status of the various operating environments according to the execution results of the monitoring cases corresponding to the various operating environments and the calling relationship between the monitoring cases corresponding to the various operating environments.

[0029] In a feasible implementation manner, the processing module is specifically used for:

[0030] When the first monitoring case corresponding to the current operating environment is executed successfully, determining that the operating state of the current operating environment is an available state;

[0031] When the first monitoring case corresponding to the current operating environment fails to execute and the second monitoring case called by the first monitoring case executes successfully, determining that the operating state of the current operating environment is a self-system failure state;

[0032] When both the first monitoring case corresponding to the current operating environment and the second monitoring case called by the first monitoring case fail to execute, it is determined that the operating state of the current operating environment is a related system failure state.

[0033] In a feasible implementation, an early warning module is also included, which is used to:

[0034] After the operating status of each operating environment is determined, the monitoring warning signal corresponding to each operating environment is output according to the operating status of each operating environment and the corresponding relationship between various operating statuses and monitoring warning signals.

[0035] In a feasible implementation manner, the processing module is further used for:

[0036] After determining the operating status of each operating environment, the availability rate of each operating environment within the preset time, the failure rate of the own system of each operating environment within the preset time, and the failure rate of the associated system of each operating environment within the preset time are calculated and output respectively.

[0037] In a feasible implementation manner, the processing module is specifically used for:

[0038] The availability L of the i-th operating environment within the preset duration is calculated in the following way: i :

[0039] L i =sum1 / sum

[0040] The following method is used to calculate the self-system failure rate M of the i-th operating environment within the preset time length: i :

[0041] M i =sum2 / sum

[0042] The associated system failure rate N of the i-th operating environment within the preset time is calculated in the following way: i :

[0043] N i =sum3 / sum

[0044] Among them, sum=sum1+sum2+sum3, sum1 represents the number of times the i-th operating environment is in an available state within the preset time length, sum2 represents the number of times the i-th operating environment is in its own system failure state within the preset time length, and sum3 represents the number of times the i-th operating environment is in an associated system failure state within the preset time length.

[0045] In a third aspect, an embodiment of the present application provides an electronic device, including: at least one processor and a memory;

[0046] The memory stores computer-executable instructions;

[0047] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the method for monitoring the business function operating environment provided in the first aspect.

[0048] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, a method for monitoring a business function operating environment as provided in the first aspect is implemented.

[0049] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements a method for monitoring a business function operating environment as provided in the first aspect.

[0050] The monitoring method of the business function operating environment provided in the embodiment of the present application, after determining each operating environment corresponding to the business function to be monitored and the calling relationship between each operating environment, configures monitoring cases for each operating environment respectively, and determines the calling relationship between the monitoring cases corresponding to each operating environment according to the calling relationship between each operating environment, and then executes the monitoring cases corresponding to each operating environment at preset time intervals, and determines the operating status of each operating environment according to the execution results of the monitoring cases corresponding to each operating environment and the calling relationship between the monitoring cases. In the embodiment of the present application, since the calling relationship between each operating environment is consistent with the calling relationship between the monitoring cases corresponding to each operating environment, it is possible to distinguish whether the operating environment with a fault is a system fault of the system itself, or a related system fault caused by a fault in the operating environment associated with the fault, and thus accurately and quickly locate the operating environment with a fault. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the embodiments of the present application or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0052] Figure 1 A flow chart of a method for monitoring a business function operating environment provided in an embodiment of the present application Figure 1 ;

[0053] Figure 2 A schematic diagram of the calling relationship between various operating environments provided in the embodiments of the present application;

[0054] Figure 3 A flow chart of a method for monitoring a business function operating environment provided in an embodiment of the present application Figure 2 ;

[0055] Figure 4 A schematic diagram of a program module of a monitoring device for a business function operating environment provided in an embodiment of the present application;

[0056] Figure 5 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0057] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application. In addition, although the disclosure in the present application is introduced according to one or several exemplary examples, it should be understood that each aspect of these disclosures can also constitute a complete implementation method separately.

[0058] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.

[0059] The terms "first", "second", etc. in the specification and claims of this application and the above drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise noted. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, for example, they can be implemented in an order other than those given in the diagrams or descriptions of the embodiments of this application.

[0060] In addition, the terms "include" and "have" and any variations thereof are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to those components expressly listed but may include other components not expressly listed or inherent to such products or devices.

[0061] The term "module" as used in this application refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code that is capable of performing the functions associated with that element.

[0062] The following is an explanation of the relevant terms involved in the embodiments of the present application:

[0063] Monitoring cases: automated scripts that verify the operating environment and transaction availability by simulating testers to execute real business transactions and making relevant automated judgments on the execution results.

[0064] Operating environment: refers to the hardware and software environment used for project and product development and testing, which has a certain operating system, software, and deployed databases and application software.

[0065] Transaction: refers to the function code number configured by the application system to implement the system-specified functions.

[0066] Business scenarios - products - business functions: specific functions within related products within specific application areas, for example: mobile banking - credit - inquiry function.

[0067] Availability: The ability of the operating environment to be used normally, to meet the development and testing requirements of the system, and to meet the normal calls of related systems and complete related business.

[0068] The relationships between current financial business systems are becoming increasingly complex, especially for front-end application systems. The back-end related systems are even larger, and any failure in the middle and back-end operating environments will directly affect the joint debugging and testing of front-end channel applications. Faced with the actual situation of more and more operating environments and increasingly complex relationships, the existing monitoring methods can only establish operation and maintenance monitoring or transaction monitoring for a single system. Due to various uncertainties in the operating environment, there are also various possible situations in which transactions or operation and maintenance monitoring operations fail, and the false alarm rate is very high. In the current situation where the relationship between the operating environment is becoming more and more complex, it is impossible to accurately and quickly locate the specific operating environment where the failure occurs.

[0069] In order to solve the above technical problems, a monitoring method for a business function operating environment is provided in an embodiment of the present application. By configuring monitoring cases for each operating environment, the calling relationship between the monitoring cases corresponding to each operating environment is consistent with the calling relationship between each operating environment. According to the execution results of the monitoring cases corresponding to each operating environment and the calling relationship between the monitoring cases, it can be distinguished whether the operating environment with a fault is a system fault of the system itself or a related system fault caused by a fault in the related operating environment, so that the operating environment with a fault can be accurately and quickly located. A detailed embodiment is used for detailed description below.

[0070] Reference Figure 1 , Figure 1 A flow chart of a method for monitoring a business function operating environment provided in an embodiment of the present application Figure 1 In one feasible implementation, the method includes:

[0071] S101: Determine various operating environments corresponding to the business functions to be monitored and the calling relationships between the various operating environments.

[0072] In an embodiment of the present application, you can first select the business scenario that needs to be monitored (such as channel-credit), then select the specific product within the business scenario that needs to be monitored (such as a certain loan product of credit), and finally select the specific business function of the product (such as query function).

[0073] According to the above selection method, in the embodiment of the present application, one or more business functions can be selected as the business functions to be monitored.

[0074] After determining the business functions to be monitored, analyze and determine the associated environments involved in the business functions to be monitored. Different business functions usually involve different numbers of environments and associated relationships. Overall, it is a relationship from the front desk to the middle desk and then to the back desk, and the shape is generally a multi-branch tree structure.

[0075] In order to better understand the embodiments of the present application, refer to Figure 2 , Figure 2 A schematic diagram of the calling relationship between the various operating environments provided in the embodiments of the present application.

[0076] exist Figure 2 In the example, business scenario 1 includes two products, namely product 1 and product 2. Product 1 includes two business functions, namely business function 1 and business function 2. Among them, business function 1 involves five operating environments, namely A, B, C, D, and E. The operating environment A calls the operating environment B, the operating environment B calls the operating environment C and the operating environment D respectively, and the operating environment C calls the operating environment E.

[0077] S102: configuring monitoring cases for respective operating environments, and determining the calling relationships between the monitoring cases corresponding to the respective operating environments according to the calling relationships between the respective operating environments.

[0078] The calling relationship between the various operating environments is the same as the calling relationship between the monitoring cases corresponding to the various operating environments.

[0079] In an embodiment of the present application, after determining the various operating environments corresponding to the business function to be monitored and the calling relationship between the various operating environments, a business transaction monitoring case for the business function is configured for each operating environment respectively, and the monitoring case execution address configured for each operating environment is consistent with the actual link relationship between the operating environments. This consistency can be achieved by verifying the calling relationship configuration of the operating environment of the interface management platform and the specific address of the monitoring case execution.

[0080] Among them, the monitoring cases configured in each operating environment monitor the same business functions.

[0081] In order to better understand the embodiments of the present application, refer to Figure 2 ,exist Figure 2 In the figure, since the A operating environment calls the B operating environment, the B operating environment calls the C operating environment and the D operating environment respectively, and the C operating environment calls the E operating environment, the execution result of the monitoring case corresponding to the A operating environment is affected by the execution results of the monitoring cases corresponding to the B operating environment, the C operating environment, the D operating environment, and the E operating environment, the execution result of the monitoring case corresponding to the B operating environment is affected by the execution results of the monitoring cases corresponding to the C operating environment, the D operating environment, and the E operating environment, and the execution result of the monitoring case corresponding to the C operating environment is affected by the execution result of the monitoring case corresponding to the E operating environment. In this way, a calling relationship is formed between the monitoring cases corresponding to the various operating environments of function point 1.

[0082] In a feasible implementation, the call relationship between monitoring cases can use a JSON data structure to store a bound association tree, and each monitoring node stores the downstream child nodes bound to the node. As shown in the following JSON structure, the current node stores the node ID, name, and downstream node array, and each downstream node is stored hierarchically in this way.

[0083]

[0084]

[0085] S103. Execute monitoring cases corresponding to each operating environment at preset time intervals.

[0086] In the embodiment of the present application, the monitoring cases corresponding to each operating environment can be executed at regular time intervals according to the crontab time expression.

[0087] Alternatively, the monitoring cases corresponding to each operating environment may be executed at a certain execution frequency.

[0088] It is understandable that the monitoring cases corresponding to each operating environment are scheduled and executed according to a uniformly set execution frequency, which can help to subsequently aggregate and analyze the execution results with similar time periods, thereby ensuring the effectiveness of the monitoring results.

[0089] S104: Determine the operating status of each operating environment according to the execution results of the monitoring cases corresponding to each operating environment and the calling relationship between the monitoring cases corresponding to each operating environment.

[0090] It is understandable that the calling relationship of business functions in the system test environment is a long chain. Especially for the front-end system, any failure in any of the middle and back-end systems in the chain will cause the failure of the associated system of the front-end system. In order to accurately measure the availability of the system, it is necessary to distinguish whether the operating environment with the current failure is a system failure of the system itself or a failure of the associated system caused by the failure of the associated operating environment. This embodiment defines the availability status of the operating environment as follows:

[0091] Available status: indicates that the monitoring case corresponding to this operating environment is executed successfully.

[0092] Own system failure status: indicates that the monitoring case corresponding to the current operating environment is not executed successfully, while the monitoring case corresponding to the associated operating environment is executed successfully.

[0093] Associated system failure status: indicates that the monitoring case corresponding to this operating environment is not executed successfully, and the monitoring case corresponding to the associated operating environment is executed successfully.

[0094] In a feasible implementation of the present application, when the first monitoring case corresponding to the current operating environment is executed successfully, the operating status of the current operating environment is determined to be an available status; when the first monitoring case corresponding to the current operating environment fails to execute and the second monitoring case called by the first monitoring case is executed successfully, the operating status of the current operating environment is determined to be a self-system failure status; when the first monitoring case corresponding to the current operating environment and the second monitoring case called by the first monitoring case both fail to execute, the operating status of the current operating environment is determined to be an associated system failure status.

[0095] For example, assume that a, b, c, and d are monitoring cases corresponding to four operating environments A, B, C, and D with a link calling relationship, and the calling relationship is a→b→c→d. Referring to Table 1, Table 1 is a comparison table between the execution results of the four monitoring cases a, b, c, and d and the operating status of each operating environment.

[0096] Table 1: Comparison table of the execution results of monitoring cases a, b, c, and d and the operating status of each operating environment

[0097]

[0098] In the embodiment of the present application, since the calling relationship between each operating environment is consistent with the calling relationship between the monitoring cases corresponding to each operating environment, it is possible to distinguish whether the operating environment with a fault is a system fault of itself or a related system fault caused by a fault in its associated operating environment based on the execution results of the monitoring cases corresponding to each operating environment and the calling relationship between the monitoring cases, thereby accurately and quickly locating the operating environment with a fault.

[0099] Based on the contents described in the above embodiments, Figure 3 , Figure 3 A flow chart of a method for monitoring a business function operating environment provided in an embodiment of the present application Figure 2 In one feasible implementation, the method includes:

[0100] S301: Determine each operating environment corresponding to the business function to be monitored and the calling relationship between each operating environment.

[0101] S302: configuring monitoring cases for respective operating environments, and determining the calling relationships between the monitoring cases corresponding to the respective operating environments according to the calling relationships between the respective operating environments.

[0102] The calling relationship between the various operating environments is the same as the calling relationship between the monitoring cases corresponding to the various operating environments.

[0103] S303: Execute monitoring cases corresponding to each operating environment at preset time intervals.

[0104] S304: Determine the operating status of each operating environment according to the execution results of the monitoring cases corresponding to each operating environment and the calling relationship between the monitoring cases corresponding to each operating environment.

[0105] The contents described in steps S301 to S304 are consistent with the contents described in steps S101 to S104 in the above embodiment. For details, please refer to the description in the above embodiment and will not be repeated here.

[0106] S305. Output monitoring warning signals corresponding to each operating environment according to the operating status of each operating environment and the corresponding relationship between various operating statuses and monitoring warning signals.

[0107] In an embodiment of the present application, a correspondence between various operating states and monitoring warning signals can be pre-established, for example, a red signal light is used to represent the fault state of the system itself, a yellow signal light represents the fault state of the associated system, and a green signal light represents the available state.

[0108] After the operating status of each operating environment is determined, the monitoring warning signal corresponding to each operating environment can be output according to the operating status of each operating environment.

[0109] For example, assume that a, b, c, and d are monitoring cases corresponding to four operating environments A, B, C, and D with a link calling relationship, and the calling relationship is a→b→c→d. Referring to Table 2, Table 2 is a comparison table between the operating status of the four operating environments A, B, C, and D and the monitoring warning signals.

[0110] Table 2: Comparison table between the operating status of the four operating environments A, B, C, and D and the monitoring warning signals

[0111] Environmental Running status Monitoring early warning signals A Related system failure Yellow Light B Related system failure Yellow Light C Own system failure red light D Available Green Light

[0112] The monitoring method of the business function operating environment provided in the embodiment of the present application can quickly and accurately detect the operating environment where a fault exists, and feed back different monitoring warning signals to relevant personnel for processing, which can effectively improve the efficiency of fault location and fault repair.

[0113] Based on the contents described in the above embodiments, in a feasible implementation manner, after determining the operating status of each operating environment, the method further includes:

[0114] The availability rate of each operating environment within a preset time, the failure rate of its own system within a preset time, and the failure rate of the associated system of each operating environment within a preset time are calculated and output respectively.

[0115] In an embodiment of the present application, by counting the number of times each operating environment is in an available state within a preset time period, the number of times it is in its own system failure state, and the number of times it is in an associated system failure state, the availability rate of each operating environment within the preset time period, the failure rate of its own system within the preset time period, and the failure rate of the associated system of each operating environment within the preset time period can be calculated.

[0116] For example, assume that a, b, c, and d are monitoring cases corresponding to four operating environments A, B, C, and D with a link call relationship, and the call relationship is a→b→c→d. At time points 1, 2, 3, and 4 within the preset time, the monitoring cases corresponding to each operating environment are executed respectively, and the execution results are shown in Table 3:

[0117] Table 3 is a schematic diagram of the execution results of the monitoring cases corresponding to each operating environment within the preset time.

[0118]

[0119] In a feasible implementation, the following method is used to calculate the availability L of the i-th operating environment within a preset time period: i :

[0120] L i =sum1 / sum

[0121] The following method is used to calculate the self-system failure rate M of the i-th operating environment within the preset time length: i :

[0122] M i =sum2 / sum

[0123] The associated system failure rate N of the i-th operating environment within the preset time is calculated in the following way: i :

[0124] N i =sum3 / sum

[0125] Among them, sum=sum1+sum2+sum3, sum1 represents the number of times the i-th operating environment is in an available state within the preset time, sum2 represents the number of times the i-th operating environment is in its own system failure state within the preset time, and sum3 represents the number of times the i-th operating environment is in the associated system failure state within the preset time.

[0126] The monitoring method of the business function operating environment provided in the embodiment of the present application has at least the following advantages compared with the prior art:

[0127] 1) For the same financial transaction business, a multi-tree monitoring system with a call relationship consistent with the operating environment can be established from the front-end to the middle-end and then to the back-end. It can not only monitor a single system, but also monitor the entire environment system as a whole based on the call relationship between monitoring cases.

[0128] 2) By defining the state of the operating environment as available, associated system failure, and own system failure, the availability of the entire system environment can be accurately measured based on the operating state corresponding to each operating environment and the calling relationship between the monitoring cases corresponding to each operating environment.

[0129] 3) It can accurately distinguish whether the operating environment with a fault is a system fault of its own or a related system fault caused by a fault in the called operating environment, and use different monitoring and early warning signals to intuitively and clearly display the operating status of each operating environment, which can greatly reduce the location time of environmental faults and improve efficiency.

[0130] 4) By calculating the availability of each operating environment within a preset time, the failure rate of its own system, and the failure rate of the associated system, the reliability of the entire system environment can be accurately evaluated.

[0131] For example, suppose there are four operating environments: A, B, C, and D:

[0132] In the traditional monitoring method, the maintenance personnel of each operating environment usually configure monitoring cases of corresponding functions according to the needs of their own operating environment monitoring. When the monitoring case corresponding to their own operating environment fails to execute, the corresponding developer analyzes from beginning to end which operating environment has the problem. The developers of each operating environment need to participate in the analysis together, and the problem location time is long. In addition, the availability calculation of the operating environment can only perform statistical calculations on the monitoring results of the current operating environment, and cannot involve the impact of related operating environments (failures not caused by problems in the operating environment itself).

[0133] In the monitoring method provided by the implementation of this application, monitoring cases are configured for four operating environments at the same time, and a binding relationship is established for the business monitoring of the specific call relationship to perform global environmental monitoring. When the monitoring case corresponding to the operating environment fails to execute, the current status of each operating environment of the monitoring failure function item is reflected, for example: when operating environment A (associated system failure) → operating environment B (associated system failure) → operating environment C (self-system failure) → operating environment D (available), the faulty node can be quickly located as a specific function of operating environment C, and the availability of the link environment is sent to the stakeholders of each operating environment (the red, yellow, and green status of each operating environment), thereby effectively improving the efficiency of locating fault problems (especially in complex system environments).

[0134] In addition, when calculating the availability of each operating environment, the execution of the entire operating environment system is taken into account, rather than just the execution of a single operating environment. This allows a more objective and accurate evaluation of the availability of operating environments with long links and high complexity.

[0135] Based on the contents described in the above embodiments, a monitoring device for a business function operating environment is also provided in the embodiments of the present application. Figure 4 , Figure 4 A program module diagram of a monitoring device for a business function operating environment provided in an embodiment of the present application, wherein the monitoring device for the business function operating environment comprises:

[0136] The determination module 401 is used to determine the various operating environments corresponding to the business functions to be monitored and the calling relationships between the various operating environments.

[0137] Configuration module 402 is used to configure monitoring cases for each operating environment respectively, and determine the calling relationship between the monitoring cases corresponding to each operating environment based on the calling relationship between the operating environments, wherein the calling relationship between the operating environments is the same as the calling relationship between the monitoring cases corresponding to the operating environments.

[0138] The processing module 403 is used to execute the monitoring cases corresponding to each operating environment at every preset time interval, and determine the operating status of each operating environment according to the execution results of the monitoring cases corresponding to each operating environment and the calling relationship between the monitoring cases corresponding to each operating environment.

[0139] The monitoring device for the business function operating environment provided in the embodiment of the present application is consistent with the calling relationship between the monitoring cases corresponding to the various operating environments. Therefore, it is possible to distinguish whether the operating environment with a fault is a system fault of the system itself or a related system fault caused by a fault in its associated operating environment, based on the execution results of the monitoring cases corresponding to the various operating environments and the calling relationship between the monitoring cases. This allows the operating environment with a fault to be accurately and quickly located.

[0140] In a feasible implementation manner, the processing module 403 is specifically used for:

[0141] When the first monitoring case corresponding to the current operating environment is executed successfully, the operating status of the current operating environment is determined to be an available status; when the first monitoring case corresponding to the current operating environment fails to execute and the second monitoring case called by the first monitoring case is executed successfully, the operating status of the current operating environment is determined to be a self-system failure status; when both the first monitoring case corresponding to the current operating environment and the second monitoring case called by the first monitoring case fail to execute, the operating status of the current operating environment is determined to be an associated system failure status.

[0142] In a feasible implementation manner, the monitoring device for the business function operating environment further includes an early warning module for:

[0143] After the operating status of each operating environment is determined, the monitoring warning signal corresponding to each operating environment is output according to the operating status of each operating environment and the corresponding relationship between various operating statuses and monitoring warning signals.

[0144] In a feasible implementation manner, the processing module 403 is further configured to:

[0145] After determining the operating status of each operating environment, the availability of each operating environment within a preset time, the failure rate of its own system within the preset time, and the failure rate of the associated system of each operating environment within the preset time are calculated and output respectively.

[0146] In a feasible implementation manner, the processing module 403 is specifically used for:

[0147] The availability L of the i-th operating environment within the preset duration is calculated in the following way: i :

[0148] L i =sum1 / sum

[0149] The following method is used to calculate the self-system failure rate M of the i-th operating environment within the preset time length: i :

[0150] M i =sum2 / sum

[0151] The failure rate N of the associated system in the i-th operating environment within the preset time is calculated in the following way: i :

[0152] N i =sum3 / sum

[0153] Among them, sum=sum1+sum2+sum3, sum1 represents the number of times the i-th operating environment is in an available state within the preset time, sum2 represents the number of times the i-th operating environment is in its own system failure state within the preset time, and sum3 represents the number of times the i-th operating environment is in the associated system failure state within the preset time.

[0154] It should be noted that the specific contents of the determination module 401, the configuration module 402, and the processing module 403 in the embodiment of the present application can be referred to in Figure 1 or Figure 3 The various steps of the method for monitoring the business function operating environment described in the illustrated embodiment may be specifically referred to the above embodiment and will not be described in detail here.

[0155] Furthermore, based on the contents described in the above embodiments, an electronic device is also provided in an embodiment of the present application, which includes at least one processor and a memory; wherein the memory stores computer execution instructions; the at least one processor executes the computer execution instructions stored in the memory to implement the various steps of the method for monitoring the business function operating environment as described in the above embodiments. For details, please refer to the above embodiments and will not be repeated here.

[0156] In order to better understand the embodiments of the present application, refer to Figure 5 , Figure 5 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.

[0157] like Figure 5 As shown, the electronic device 50 of this embodiment includes: a processor 501 and a memory 502; wherein:

[0158] Memory 502, used to store computer-executable instructions;

[0159] The processor 501 is used to execute the computer-executable instructions stored in the memory to implement the various steps of the method for monitoring the business function operating environment described in the above embodiment. The details can be referred to the above embodiment and will not be repeated here.

[0160] Optionally, the memory 502 may be independent or integrated with the processor 501 .

[0161] When the memory 502 is independently provided, the device further includes a bus 503 for connecting the memory 502 and the processor 501 .

[0162] Furthermore, based on the contents described in the above embodiments, a computer-readable storage medium is also provided in the embodiments of the present application, in which computer execution instructions are stored. When the processor executes the computer execution instructions, the various steps of the method for monitoring the business function operating environment described in the above embodiments are implemented. For details, please refer to the above embodiments and will not be repeated here.

[0163] Furthermore, based on the contents described in the above embodiments, a computer program product is also provided in the embodiments of the present application. The computer program product includes a computer program. When the computer program is executed by a processor, the various steps of the method for monitoring the business function operating environment described in the above embodiments can be implemented. For details, please refer to the above embodiments and will not be repeated here.

[0164] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.

[0165] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0166] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The above-mentioned module-composed unit can be implemented in the form of hardware or in the form of hardware plus software functional units.

[0167] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present application.

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

[0169] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk, etc.

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

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

[0172] An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the storage medium can also exist as discrete components in an electronic device or a main control device.

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

[0174] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for monitoring a business function operating environment, characterized in that: The method comprises: Determine each operating environment corresponding to the business function to be monitored and the calling relationship between the operating environments; configuring monitoring cases for the respective operating environments, and determining the calling relationships between the monitoring cases corresponding to the respective operating environments according to the calling relationships between the respective operating environments, wherein the calling relationships between the respective operating environments are the same as the calling relationships between the monitoring cases corresponding to the respective operating environments; At preset time intervals, the monitoring cases corresponding to the respective operating environments are executed, and the operating status of the respective operating environments is determined according to the execution results of the monitoring cases corresponding to the respective operating environments and the calling relationships between the monitoring cases corresponding to the respective operating environments; Determining the operating status of each operating environment according to the execution results of the monitoring cases corresponding to each operating environment and the calling relationship between the monitoring cases corresponding to each operating environment includes: When the first monitoring case corresponding to the current operating environment is executed successfully, determining that the operating state of the current operating environment is an available state; When the first monitoring case corresponding to the current operating environment fails to execute and the second monitoring case called by the first monitoring case executes successfully, determining that the operating state of the current operating environment is a self-system failure state; When both the first monitoring case corresponding to the current operating environment and the second monitoring case called by the first monitoring case fail to execute, determining that the operating state of the current operating environment is a related system failure state; After determining the operating status of each operating environment, the method further includes: Outputting monitoring warning signals corresponding to the various operating environments according to the operating status of the various operating environments and the corresponding relationships between the various operating statuses and the monitoring warning signals; After determining the operating status of each operating environment, the method further includes: Calculate and output respectively the availability rate of each operating environment within a preset time, the failure rate of the own system of each operating environment within the preset time, and the failure rate of the associated system of each operating environment within the preset time; The availability L of the i-th operating environment within the preset duration is calculated in the following way: i : L i =sum1 / sum The following method is used to calculate the self-system failure rate M of the i-th operating environment within the preset time length: i : M i =sum2 / sum The associated system failure rate N of the i-th operating environment within the preset time is calculated in the following way: i : N i =sum3 / sum Among them, sum=sum1+sum2+sum3, sum1 represents the number of times the i-th operating environment is in an available state within the preset time length, sum2 represents the number of times the i-th operating environment is in its own system failure state within the preset time length, and sum3 represents the number of times the i-th operating environment is in an associated system failure state within the preset time length.

2. A monitoring device for a business function operating environment, characterized in that: The device comprises: A determination module, used to determine each operating environment corresponding to the business function to be monitored and the calling relationship between the various operating environments; A configuration module, configured to respectively configure monitoring cases for each of the operating environments, and determine the calling relationship between the monitoring cases corresponding to the various operating environments according to the calling relationship between the various operating environments, wherein the calling relationship between the various operating environments is the same as the calling relationship between the monitoring cases corresponding to the various operating environments; A processing module, configured to execute the monitoring cases corresponding to the respective operating environments at preset time intervals, and determine the operating status of the respective operating environments according to the execution results of the monitoring cases corresponding to the respective operating environments and the calling relationships between the monitoring cases corresponding to the respective operating environments; The processing module is specifically used for: When the first monitoring case corresponding to the current operating environment is executed successfully, determining that the operating state of the current operating environment is an available state; When the first monitoring case corresponding to the current operating environment fails to execute and the second monitoring case called by the first monitoring case executes successfully, determining that the operating state of the current operating environment is a self-system failure state; When both the first monitoring case corresponding to the current operating environment and the second monitoring case called by the first monitoring case fail to execute, determining that the operating state of the current operating environment is a related system failure state; The device also includes an early warning module, which is used to: After determining the operating status of each operating environment, outputting the monitoring warning signal corresponding to each operating environment according to the operating status of each operating environment and the corresponding relationship between various operating statuses and monitoring warning signals; The processing module is also used for: After determining the operating status of each operating environment, respectively calculating and outputting the availability rate of each operating environment within a preset time, the failure rate of the own system of each operating environment within the preset time, and the failure rate of the associated system of each operating environment within the preset time; The processing module is specifically used for: The availability L of the i-th operating environment within the preset duration is calculated in the following way: i : L i =sum1 / sum The following method is used to calculate the self-system failure rate M of the i-th operating environment within the preset time length: i : M i =sum2 / sum The associated system failure rate N of the i-th operating environment within the preset time is calculated in the following way: i : N i =sum3 / sum Among them, sum=sum1+sum2+sum3, sum1 represents the number of times the i-th operating environment is in an available state within the preset time length, sum2 represents the number of times the i-th operating environment is in its own system failure state within the preset time length, and sum3 represents the number of times the i-th operating environment is in an associated system failure state within the preset time length.

3. An electronic device, characterized in that: include: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the method for monitoring the business function operating environment as claimed in claim 1.

4. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the processor executes the computer-executable instructions, the method for monitoring the business function operating environment as claimed in claim 1 is implemented.