Traffic switching method, device, computer equipment and storage medium

By calculating and comparing the values ​​and thresholds of monitoring indicators in the unitized system, determining the comprehensive diagnostic results and providing traffic switching suggestions, the problem of lack of effective traffic switching methods in the unitized system is solved, and timely discovering and handling of system abnormalities is realized.

CN115834344BActive Publication Date: 2025-02-14INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211434019.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-16
Publication Date
2025-02-14
Estimated Expiration
2042-11-16

AI Technical Summary

Technical Problem

The prior art lacks a traffic switching method suitable for unitized systems, and cannot effectively monitor and handle abnormal operation of unitized systems.

Method used

A traffic switching method is provided, by calculating index values ​​based on stored unit-based monitoring information and preset monitoring indicators, comparing index values ​​and thresholds, determining comprehensive diagnostic results, and providing traffic switching suggestions based on the results.

Benefits of technology

The traffic switching of the unitized system is realized, and system abnormalities can be detected and handled in a timely manner, improving operation and maintenance efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115834344B_ABST
    Figure CN115834344B_ABST
Patent Text Reader

Abstract

The present application relates to a traffic switching method, device, computer equipment, storage medium and computer program product, and relates to the field of cloud computing technology. The method includes: calculating the index value of each monitoring indicator according to the stored unitized monitoring information and the preset monitoring indicators; the unitized monitoring information includes unitized metadata and the monitoring data corresponding to the unitized metadata; for each monitoring indicator, the index value of the monitoring indicator is compared with the index threshold value corresponding to the preset monitoring indicator to obtain the comparison result of the monitoring indicator; according to the comparison results of each monitoring indicator, the index value of each monitoring indicator and the preset comprehensive diagnosis strategy, the comprehensive diagnosis result is determined; according to the comprehensive diagnosis result, the traffic switching recommendation information is determined; the traffic switching recommendation information is used to indicate the traffic switching of the unitized system. The use of this method can instruct the operation and maintenance personnel to switch the traffic of the unitized system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of cloud computing technology, and in particular to a traffic switching method, apparatus, computer equipment, storage medium and computer program product. Background Art

[0002] A unit is a self-contained collection that can complete all business operations. This collection contains all services required by all businesses and the data assigned to this unit. The unitized architecture uses the unit as the basic unit for system deployment. Several units are deployed in all computer rooms in the entire site. Any unit deploys all applications required by the system, and the data is a part of the total data after being horizontally divided according to a certain dimension (usually the customer dimension). Unitization is the process of designing and transforming services and data to conform to unit characteristics.

[0003] During the operation of the modular system, data such as business data and log data will be generated. In order to ensure the normal operation of the modular system, it is necessary to monitor the data of the modular system, so as to timely discover the abnormal operation of the modular system and give traffic switching suggestions so that the operation and maintenance personnel of the modular system can handle the abnormal operation of the modular system.

[0004] However, there is currently a lack of flow switching methods suitable for unitized systems. Summary of the invention

[0005] Based on this, it is necessary to provide a flow switching method, device, computer equipment, computer-readable storage medium and computer program product that can switch the flow of a unitized system in order to address the above technical problems.

[0006] In a first aspect, the present application provides a traffic switching method. The method comprises:

[0007] Calculating the index value of each monitoring index according to the stored unitized monitoring information and the preset monitoring indexes; the unitized monitoring information includes unitized metadata and monitoring data corresponding to the unitized metadata;

[0008] For each monitoring indicator, the indicator value of the monitoring indicator is compared with the preset indicator threshold corresponding to the monitoring indicator to obtain a comparison result of the monitoring indicator;

[0009] Determine a comprehensive diagnosis result according to the comparison results of each monitoring indicator, the indicator value of each monitoring indicator and a preset comprehensive diagnosis strategy; the comprehensive diagnosis result includes information on each fault condition in the unitized system;

[0010] According to the comprehensive diagnosis result, flow switching recommendation information is determined; the flow switching recommendation information is used to instruct flow switching of the unitized system.

[0011] In one embodiment, determining the comprehensive diagnosis result according to the comparison results of the monitoring indicators, the indicator values ​​of the monitoring indicators and the preset comprehensive diagnosis strategy includes:

[0012] Inputting the comparison results of the monitoring indicators and / or the index values ​​of the monitoring indicators into the pre-stored functional relationships to obtain the prediction results corresponding to the functional relationships; the functional relationships are used to represent the index values ​​of the monitoring indicators and / or the comparison results of the monitoring indicators in the unitized system, changing with the preset parameters;

[0013] The diagnostic result is determined according to the corresponding relationship between the prediction result and the diagnostic result corresponding to each preset functional relationship, and the comprehensive diagnostic result is determined according to the diagnostic result.

[0014] In one embodiment, determining the traffic switching recommendation information according to the comprehensive diagnosis result includes:

[0015] Determine the emergency level corresponding to each fault condition information according to the comprehensive diagnosis result;

[0016] The flow switching recommendation information is determined according to the comprehensive diagnosis result and the emergency level corresponding to each fault condition information.

[0017] In one embodiment, determining the emergency level corresponding to each fault condition information according to the comprehensive diagnosis result includes:

[0018] In the pre-stored correspondence between the diagnosis results and the emergency levels, the target emergency level corresponding to the comprehensive diagnosis result is queried, and the target emergency level is used as the emergency level corresponding to each fault condition information.

[0019] In one embodiment, determining the traffic switching recommendation information according to the comprehensive diagnosis result and the emergency level corresponding to each fault condition information includes:

[0020] Determine a target fault object and a target switching object corresponding to the target fault object according to the comprehensive diagnosis result, the emergency level corresponding to each fault condition information and the index value of each monitoring index;

[0021] Traffic switching recommendation information is determined according to the target fault object and the target switching object corresponding to the target fault object.

[0022] In one embodiment, the traffic switching recommendation information includes switching feedback indication information; the switching feedback indication information is used to instruct the user to evaluate the traffic switching recommendation information; the method further includes:

[0023] Receiving handover evaluation information corresponding to the handover feedback indication information;

[0024] The flow switching mode is determined according to the switching evaluation information and the preset switching form determination rules.

[0025] In one embodiment, determining the traffic switching mode according to the switching evaluation information and a preset switching form determination rule includes:

[0026] When the switching evaluation information indicates that the traffic switching recommendation information meets a preset accuracy condition, performing traffic switching processing based on the traffic switching recommendation information;

[0027] When the switching evaluation information indicates that the traffic switching recommendation information does not meet the preset accuracy condition, a traffic switching process is performed in response to a traffic switching instruction of the user.

[0028] In one embodiment, the method further comprises:

[0029] In the case where the unitized system has been switched, judging the number of abnormalities of each service according to the indicator value of each monitoring indicator of each service included in the unitized system in a preset pre-switching time period before the switching;

[0030] Comparing the number of abnormalities with a preset threshold of the number of abnormalities;

[0031] If the number of abnormalities is less than a preset abnormality threshold, indicator threshold adjustment suggestion information is generated.

[0032] In one embodiment, the method further comprises:

[0033] For each preset architecture governance type, according to the indicator value of each monitoring indicator and the judgment strategy corresponding to the architecture governance type, determine the architecture governance suggestion sub-information corresponding to the architecture governance type;

[0034] The architecture governance suggestion sub-information corresponding to each of the architecture governance types constitutes architecture governance suggestion information; the architecture governance suggestion information is used to instruct architecture governance of the unitized system.

[0035] In a second aspect, the present application also provides a flow switching device. The device comprises:

[0036] A calculation module, used to calculate the index value of each monitoring index according to the stored unitized monitoring information and the preset monitoring indexes; the unitized monitoring information includes unitized metadata and monitoring data corresponding to the unitized metadata;

[0037] A first comparison module is used to compare, for each monitoring indicator, an indicator value of the monitoring indicator with a preset indicator threshold corresponding to the monitoring indicator to obtain a comparison result of the monitoring indicator;

[0038] A first determination module, used to determine a comprehensive diagnosis result according to the comparison results of each monitoring indicator, the indicator value of each monitoring indicator and a preset comprehensive diagnosis strategy; the comprehensive diagnosis result includes information on each fault condition in the unitized system;

[0039] The second determination module is used to determine flow switching recommendation information according to the comprehensive diagnosis result; the flow switching recommendation information is used to instruct flow switching of the unitized system.

[0040] In one embodiment, the first determining module is specifically configured to:

[0041] Inputting the comparison results of the monitoring indicators and / or the index values ​​of the monitoring indicators into the pre-stored functional relationships to obtain the prediction results corresponding to the functional relationships; the functional relationships are used to represent the index values ​​of the monitoring indicators and / or the comparison results of the monitoring indicators in the unitized system, changing with the preset parameters;

[0042] The diagnostic result is determined according to the corresponding relationship between the prediction result and the diagnostic result corresponding to each preset functional relationship, and the comprehensive diagnostic result is determined according to the diagnostic result.

[0043] In one embodiment, the second determining module is specifically configured to:

[0044] Determine the emergency level corresponding to each fault condition information according to the comprehensive diagnosis result;

[0045] The flow switching recommendation information is determined according to the comprehensive diagnosis result and the emergency level corresponding to each fault condition information.

[0046] In one embodiment, the second determining module is specifically configured to:

[0047] In the pre-stored correspondence between the diagnosis results and the emergency levels, the target emergency level corresponding to the comprehensive diagnosis result is queried, and the target emergency level is used as the emergency level corresponding to each fault condition information.

[0048] In one embodiment, the second determining module is specifically configured to:

[0049] Determine a target fault object and a target switching object corresponding to the target fault object according to the comprehensive diagnosis result, the emergency level corresponding to each fault condition information and the index value of each monitoring index;

[0050] Traffic switching recommendation information is determined according to the target fault object and the target switching object corresponding to the target fault object.

[0051] In one embodiment, the traffic switching recommendation information includes switching feedback indication information; the switching feedback indication information is used to instruct the user to evaluate the traffic switching recommendation information; the device further includes:

[0052] A receiving module, configured to receive the switching evaluation information corresponding to the switching feedback indication information;

[0053] The third determination module is used to determine the flow switching mode according to the switching evaluation information and the preset switching form determination rule.

[0054] In one embodiment, the third determination module is specifically used to:

[0055] When the switching evaluation information indicates that the traffic switching recommendation information meets a preset accuracy condition, performing traffic switching processing based on the traffic switching recommendation information;

[0056] When the switching evaluation information indicates that the traffic switching recommendation information does not meet the preset accuracy condition, a traffic switching process is performed in response to a traffic switching instruction of the user.

[0057] In one embodiment, the device further comprises:

[0058] A fourth determination module, configured to determine the number of abnormalities of each service included in the unitized system according to the indicator value of each monitoring indicator within a preset pre-switching time period before the switching, when the unitized system has been switched;

[0059] A second comparison module, used for comparing the number of abnormalities with a preset threshold of the number of abnormalities;

[0060] A generation module is used to generate indicator threshold adjustment suggestion information if the number of abnormalities is less than a preset abnormality number threshold.

[0061] In one embodiment, the device further comprises:

[0062] A fourth determination module is used to determine, for each preset architecture governance type, architecture governance suggestion sub-information corresponding to the architecture governance type according to the indicator value of each monitoring indicator and the judgment strategy corresponding to the architecture governance type;

[0063] The composition module is used to form the architecture governance suggestion information from the architecture governance suggestion sub-information corresponding to each of the architecture governance types; the architecture governance suggestion information is used to instruct the architecture governance of the unitized system.

[0064] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps described in the first aspect are implemented.

[0065] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps described in the first aspect are implemented.

[0066] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps described in the first aspect are implemented.

[0067] The above-mentioned traffic switching method, device, computer equipment, storage medium and computer program product calculate the index value of each monitoring index according to the stored unitized monitoring information and the preset monitoring indicators; the unitized monitoring information includes unitized metadata and the monitoring data corresponding to the unitized metadata; for each monitoring indicator, the index value of the monitoring indicator is compared with the preset index threshold corresponding to the monitoring indicator to obtain the comparison result of the monitoring indicator; according to the comparison results of each monitoring indicator, the index value of each monitoring indicator and the preset comprehensive diagnosis strategy, the comprehensive diagnosis result is determined; the comprehensive diagnosis result includes each fault condition information in the unitized system; according to the comprehensive diagnosis result, the traffic switching recommendation information is determined; the traffic switching recommendation information is used to instruct the unitized system to switch the traffic. In this way, according to the unitized monitoring information stored in the unitized system and the index threshold corresponding to each monitoring indicator, the fault condition in the unitized system is determined, and according to the fault condition, the traffic switching recommendation is put forward, which can instruct the operation and maintenance personnel to switch the traffic of the unitized system, and timely discover and deal with the abnormal operation of the unitized system. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] Figure 1 A structural block diagram of a unitized monitoring system in one embodiment;

[0069] Figure 2 is a structural diagram of a unitized system in one embodiment;

[0070] Figure 3 A schematic diagram of a flow chart of a flow switching method in an embodiment;

[0071] Figure 4 A schematic diagram of a flow chart of a step of determining a comprehensive diagnosis result in one embodiment;

[0072] Figure 5 A flowchart of a step of determining traffic switching recommendation information according to a comprehensive diagnosis result in an embodiment;

[0073] Figure 6 A flowchart of a step of determining traffic switching recommendation information according to a comprehensive diagnosis result and an emergency level corresponding to each fault condition information in an embodiment;

[0074] Figure 7 A flow chart of a flow switching method according to another embodiment;

[0075] Figure 8 A schematic diagram of a flow chart of steps for determining a flow switching mode in an embodiment;

[0076] Fig. 9 A flow chart of a flow switching method according to another embodiment;

[0077] Fig.10 A flow chart of a flow switching method according to another embodiment;

[0078] Fig.11 is a structural block diagram of a flow switching device in an embodiment;

[0079] Fig.12 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0080] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0081] The flow switching method provided in the embodiment of the present application can be applied to Figure 1In the application environment shown. Among them, the unitized monitoring system 100 includes a collection terminal 102, a data processing node 104 and a server node 106. The unitized monitoring system is used to monitor the unitized system. The unitized monitoring system can be implemented through a cloud computing platform. For example, the unitized monitoring system can be implemented through a platform as a service (Platform as aService, PaaS). It is understandable that the collection terminal 102, the data processing node 104 and the server node 106 included in the unitized monitoring system 100 can be implemented with a separate hardware device or a software module. The unitized system is a system that uses the unit as the basic unit for system deployment. Any unit deploys all applications required by the system, and the data of any unit is a part of the system after the full amount of data is horizontally divided according to a certain dimension (usually the customer dimension). The unit is a self-contained set that can complete all business operations. This set contains all services required for all businesses and data assigned to this unit. The unit can be a physical unit or a logical unit. It is understandable that the unit can be a terminal or a server. The server can be implemented with an independent server or a server cluster consisting of multiple servers. In one embodiment, the unitized system includes: an access unit, a slicing unit, and a common unit, such as Figure 2 As shown. The access unit includes application node A1. The slicing unit includes application node B1, application node C1, application node B2 and application node C2. The public unit includes application B proxy layer and application node D1. Among them, the access unit is a unit for data access. The slicing unit is a unit for processing data. The public unit is a unit for performing public operations.

[0082] In one embodiment, Figure 3 As shown, a flow switching method is provided, which is applied to Figure 1 The unitized monitoring system in the example is used to illustrate, including the following steps:

[0083] Step 301, calculating the indicator value of each monitoring indicator according to the stored unitized monitoring information and the preset monitoring indicators.

[0084] The unitized monitoring information includes unitized metadata and monitoring data corresponding to the unitized metadata.

[0085] In an embodiment of the present application, monitoring data may be data generated by a unitized system during operation. For example, monitoring data may be business data and log data of a unitized system. Unitized metadata is metadata representing unit attributes. Unitized metadata may include physical metadata and logical metadata. Physical metadata is metadata representing physical unit attributes. Logical metadata is metadata representing logical unit attributes. A physical unit is a unit where a physical location of a machine environment deployed by a server or the like is located. For example, A-001 is used to represent a server deployed at unit 001 at address A. A logical unit is a unit in a logical sense with a certain business meaning. For example, it may be divided into 10 units according to the card suffix of a personal account, and person-01 represents a unit with a card suffix of 1 for a personal account. Unitized metadata represents the unit type of a unit in a unitized system. The unit type is the type of a unit in a unitized system. For example, a unitized system may include: an access unit, a sharding unit, and a public unit. The sharding units include: sharding unit 1, sharding unit 2, sharding unit 3, and sharding unit 4. The unit type of sharding unit 1 is sharding unit 1.

[0086] In one embodiment, the unitized monitoring information further includes a type identifier of the monitoring data, wherein the type identifier is used to indicate the unitized indicator type to which the unitized monitoring data belongs.

[0087] Unitized indicator types may include indicator classes, system classes, and link classes. Among them, the unitized monitoring data of the indicator class is the unitized monitoring data related to the transaction action and does not involve the transaction link. The unitized monitoring data of the indicator class is used to measure whether a transaction is successful or not. The unitized monitoring data of the indicator class includes but is not limited to the transaction volume, transaction time, transaction success identification, and transaction abnormality type. The unitized monitoring data of the system class is the data of the operating system related to the transaction. The unitized monitoring data of the system class includes but is not limited to the monitoring data of the Java Virtual Machine (JVM) of the operating system and the monitoring data of the operating system (OS). The unitized monitoring data of the link class is the unitized monitoring data related to the transaction action and involving the transaction link. The unitized monitoring data of the link class is used to represent the transaction link. The transaction link is a series of services involved in a transaction. For example, a payment transaction involves multiple services. Before payment, a series of services such as protocol query service, blacklist inspection service, customer authentication service, etc. will be called. The data of the entire link is strung together to form a completed payment transaction. The unitized monitoring data of the link class includes but is not limited to link links and call relationships.

[0088] The specific processing process of step 301 can be as follows: the server node obtains the unitized monitoring information from the storage space storing the unitized monitoring information. The unitized monitoring information can be the monitoring information directly stored after the unitized monitoring system collects it, or it can be the monitoring information stored after the unitized monitoring system processes the collected data. The server node pre-sets the monitoring index. The monitoring index is an index used to monitor the unitized data. The monitoring index includes a first type of monitoring index and a second type of monitoring index. The second type of monitoring index includes the year-on-year growth of the first type of monitoring index and the month-on-month growth of the first type of monitoring index. For example, the first type of monitoring index may include: instantaneous transaction volume, transaction trend, average response time, the number of units passed by the same transaction, transaction success rate and abnormal type. Then, for each monitoring index, the server node calculates the index value of the monitoring index according to the stored unitized monitoring information and the calculation rule of the monitoring index. The server node may be a data computing node.

[0089] Specifically, the server node pre-sets a unit time. For example, the unit time may be 1 hour. Then, the server node counts the unitized monitoring information of each unit in the unitized system within the unit time. For example, the server node may count the unitized monitoring information of each unit in the unitized system within the unit time according to two dimensions: physical unit and logical unit. Then, for each unit, the server node calculates the index value of the monitoring index of the unit within the unit time based on the unitized monitoring information of the unit within the unit time.

[0090] In one example, the server node can collect statistics of the unitized monitoring information of each unit in the unitized system in a unit time in a graded manner. Specifically, the server node pre-sets the statistical grade. The statistical grade is the grade of the monitoring indicator. Then, the server node collects statistics of the unitized monitoring information of each unit in the unitized system in a unit time according to the statistical grade.

[0091] Among them, the monitoring indicator can be the transaction volume under different response times. The server node pre-sets the unit time as 1 hour. At the same time, the server node pre-sets the statistical level as the response time level, including: response time within 30 milliseconds and response time exceeding 8 seconds. Then, the server node counts the unitized monitoring information of each unit in the unitized system within the unit time according to the statistical level. Then, for each unit, the server node calculates the transaction volume of the unit within the unit time based on the unitized monitoring information of the unit within the unit time, and obtains 9,900 transactions with a response time within 30 milliseconds and 100 transactions with a response time exceeding 8 seconds. In this way, through hierarchical statistics, the abnormal data of the monitoring indicators can be clearly counted, the reliability of detecting problems can be improved, and thus the accuracy of traffic switching can be improved.

[0092] Specifically, the server node can also count the transaction volume of data flow between units according to the transaction link dimension. The server node stores the indicator value of each monitoring indicator in the database.

[0093] In one example, the server node also counts the node information of each node through which the transaction corresponding to each link identifier passes according to the link identifier. Among them, each transaction will generate a link identifier, and the link identifier will flow between different nodes as the business logic is processed. Every time it passes a node, the link identifier will be recorded and persisted in the database. The node information includes the unit type of the node. The unit of the unitized system includes multiple nodes. The node can be a server node. Then, for each transaction, the server node determines the unit type corresponding to each node passed by the transaction based on the node information of each node passed by the transaction, and calculates the number of units passed by the transaction.

[0094] Step 302: for each monitoring indicator, compare the indicator value of the monitoring indicator with the indicator threshold value corresponding to the preset monitoring indicator to obtain a comparison result of the monitoring indicator.

[0095] In the embodiment of the present application, the server node pre-sets the indicator threshold corresponding to each monitoring indicator. The server node may be a data comparison node.

[0096] In one example, the server node can dynamically adjust the indicator threshold corresponding to each monitoring indicator by sending data from the dynamic configuration center. In this way, false alarms can be avoided and the accuracy of traffic switching can be improved. For example, the indicator threshold for the exceeded time is set to 8 seconds. During actual operation, due to the complexity of the business transaction link, the processing link exceeded time in a considerable number of scenarios will exceed 8 seconds, but the transaction is completed normally. At this time, adjusting the indicator threshold for the exceeded time to a larger value can avoid false alarms caused by the complexity of the business transaction link.

[0097] Then, the server node obtains the indicator value of each monitoring indicator from the database.

[0098] In one example, the server node may obtain the indicator value of each monitoring indicator from the database at a fixed time, for example, the fixed time may be 5 minutes.

[0099] In another example, the server node may receive an acquisition instruction. The acquisition instruction is used to instruct to acquire the indicator value of each monitoring indicator. Then, in response to the acquisition instruction, the server node acquires the indicator value of each monitoring indicator through the query interface. In this way, it supports manual triggering of acquisition at any time, thereby improving flexibility.

[0100] Then, for each monitoring indicator, the server node compares the indicator value of the monitoring indicator with the indicator threshold value corresponding to the preset monitoring indicator to obtain the comparison result of the monitoring indicator.

[0101] In one example, the server node stores the obtained indicator values ​​of each monitoring indicator in a temporary cache. Then, the server node pulls the mapping relationship between the monitoring indicator and the indicator threshold from the dynamic configuration center to the memory. Among them, the data structure of the indicator value of the monitoring indicator and the data structure of the mapping relationship between the monitoring indicator and the indicator threshold are both in the form of key-value pairs. For example, the monitoring indicator is timeout, the indicator value of the timeout is timeout:20, and the mapping relationship between the exceeded time and the indicator threshold is timeout:8000. Then, the server node obtains the actual calculated indicator value of the monitoring indicator under the same monitoring indicator and the size relationship of the indicator threshold according to the key value of the mapping relationship. The server node processes all the data in the temporary cache in a loop and stores the obtained comparison results in the database.

[0102] Step 303, determining a comprehensive diagnosis result according to the comparison results of each monitoring indicator, the indicator value of each monitoring indicator and a preset comprehensive diagnosis strategy.

[0103] The comprehensive diagnosis result includes information on various fault conditions within the unitized system.

[0104] In the embodiment of the present application, the server node determines the objective function relationship according to the comparison results of each monitoring indicator and the indicator value of each monitoring indicator. Then, the server node determines the comprehensive diagnosis result according to the objective function relationship, the comparison results of each monitoring indicator and the preset comprehensive diagnosis strategy. Among them, the fault condition information can be the fault condition information of the node in the unit.

[0105] Step 304: Determine traffic switching recommendation information based on the comprehensive diagnosis result.

[0106] The flow switching suggestion information is used to instruct to switch the flow of the unitized system.

[0107] In an embodiment of the present application, traffic switching recommendation information may include a target fault object and a target switching object corresponding to the target fault object. The target fault object is an object in a unitized system that has a fault and whose traffic is switched out. The target switching object is an object in a unitized system that has no fault and whose traffic is switched in. That is, the traffic of the target fault object is switched to the target switching object. The server node determines the target fault object and the target switching object corresponding to the target fault object based on the comprehensive diagnosis results. Then, the server node determines the traffic switching recommendation information based on the target fault object and the target switching object corresponding to the target fault object.

[0108] In one example, the server node forms traffic switching recommendation information with the target fault object and the target switching object corresponding to the target fault object.

[0109] In the above-mentioned traffic switching method, the index value of each monitoring indicator is calculated according to the stored unitized monitoring information and the preset monitoring indicators; for each monitoring indicator, the index value of the monitoring indicator is compared with the index threshold value corresponding to the preset monitoring indicator to obtain the comparison result of the monitoring indicator; the comprehensive diagnosis result is determined according to the comparison result of each monitoring indicator, the index value of each monitoring indicator and the preset comprehensive diagnosis strategy; and the traffic switching recommendation information is determined according to the comprehensive diagnosis result. In this way, according to the unitized monitoring information stored in the unitized system and the index threshold value corresponding to each monitoring indicator, the fault condition in the unitized system is determined, and according to the fault condition, a traffic switching recommendation is put forward, which can instruct the operation and maintenance personnel to switch the traffic of the unitized system and timely discover and deal with the abnormal operation of the unitized system.

[0110] In one embodiment, Figure 4 As shown, according to the comparison results of each monitoring indicator, the indicator value of each monitoring indicator and the preset comprehensive diagnosis strategy, the specific process of determining the comprehensive diagnosis result includes the following steps:

[0111] Step 401: input the comparison results of each monitoring indicator and / or the indicator value of each monitoring indicator into each pre-stored functional relationship to obtain the prediction results corresponding to each functional relationship.

[0112] The functional relationship is used to represent the indicator value of the monitoring indicator and / or the comparison result of the monitoring indicator in the unitized system, which changes with the preset parameters.

[0113] In an embodiment of the present application, the preset parameter may be one or more of time, monitoring indicators, and comparison results of monitoring indicators. That is, the functional relationship may be a functional relationship of a single monitoring indicator or a comparison result of a monitoring indicator changing over time, or may be a functional relationship between multiple monitoring indicators and / or comparison results of monitoring indicators. Functional relationships include but are not limited to high-order functional relationships.

[0114] The server node stores the functional relationship in advance. Then, for each functional relationship, the server node determines the input parameters of the functional relationship. Then, based on the input parameters of the functional relationship, the server node queries the value of each input parameter in the comparison results of each monitoring indicator and the indicator value of each monitoring indicator. Then, the server node inputs the value of each input parameter into the functional relationship to obtain the prediction result corresponding to the functional relationship. Among them, the input parameter is the independent variable of the functional relationship. The input parameter can be a monitoring indicator or a comparison result of the monitoring indicator. The input parameter can be one or more. The prediction result is the dependent variable of the functional relationship. The prediction result can be a monitoring indicator. The prediction result can be one or more.

[0115] The specific processing process of pre-storing the functional relationship in the server node may be as follows: the server node pre-establishes each functional relationship. Then, the server node stores each functional relationship.

[0116] The specific processing process of the server node pre-establishing each functional relationship can be as follows: the server node pre-acquires the historical unitized monitoring information of the unitized system. Then, the server node calculates the historical value of each monitoring indicator according to the historical unitized monitoring information and the preset monitoring indicators. Then, for each monitoring indicator, the historical value of the monitoring indicator is compared with the indicator threshold corresponding to the preset monitoring indicator to obtain the historical comparison result of the monitoring indicator. Then, for each preset indicator combination strategy, the server node determines the indicator combination corresponding to the indicator combination strategy. Among them, the indicator combination includes at least one monitoring indicator and / or the comparison result of the monitoring indicator. For example, the indicator combination may include a monitoring indicator of transaction success rate; the indicator combination may include the comparison result of timeout time and the transaction success rate; the indicator combination may include two monitoring indicators of current limiting anomaly and transaction success rate; the indicator combination may include three monitoring indicators of the number of abnormal transactions without a provider, transaction success rate and transaction volume. Then, the server node determines the functional relationship corresponding to the indicator combination according to the historical value of the monitoring indicator included in the indicator combination in each unit time and / or the historical comparison result of the monitoring indicator. It can be understood that any relevant algorithm that can determine the functional relationship can be applied to determine the functional relationship corresponding to the indicator combination, and this application is not limited. For example, the server node pre-sets a function form. Then, the server node performs parameter fitting on the indicator value of the monitoring indicator corresponding to each unit time and / or the comparison result of the monitoring indicator within each unit time according to the function form, and determines the functional relationship corresponding to the indicator combination. The function form includes but is not limited to a high-order function.

[0117] In one embodiment, the indicator combination includes a monitoring indicator and a comparison result of a monitoring indicator, that is, a comparison result of a transaction success rate and a timeout time. For each unit time, the server node counts a first number of comparison results of each timeout time and a second number of timeout times greater than an indicator threshold corresponding to the timeout time based on the comparison results of each timeout time within the unit time. Then, the server node divides the second number by the first number and uses the obtained quotient as the target ratio corresponding to the unit time. Then, the server node determines the functional relationship between the target ratio and the transaction success rate based on the target ratio corresponding to each unit time and the indicator value of the transaction success rate within each unit time. If the larger the target ratio, the lower the transaction success rate, then the functional relationship between the target ratio and the transaction success rate is that the transaction success rate decreases as the timeout time increases.

[0118] Step 402, determining a diagnosis result according to the corresponding relationship between the prediction result and the diagnosis result corresponding to each preset functional relationship, and determining a comprehensive diagnosis result according to the diagnosis result.

[0119] In the embodiment of the present application, the comprehensive diagnosis result may include the diagnosis result corresponding to each node in the unitized system, and may also include the diagnosis result corresponding to each unit in the unitized system. The diagnosis result of the node is used to indicate whether the node of the unitized system is faulty. The diagnosis result of the unit is used to indicate whether the unit of the unitized system is faulty.

[0120] The server node pre-sets the corresponding relationship between the prediction result and the diagnosis result corresponding to each functional relationship. Then, for each node in the unitized system, the server node determines the diagnosis result corresponding to the node according to the corresponding relationship between the prediction result and the diagnosis result corresponding to each functional relationship and the prediction result corresponding to each functional relationship of the node. Then, the server node forms a comprehensive diagnosis result with the diagnosis results corresponding to each node.

[0121] In the above-mentioned flow switching method, the comparison results of each monitoring indicator and / or the index value of each monitoring indicator are input into each pre-stored functional relationship to obtain the prediction results corresponding to each functional relationship; the diagnosis result is determined according to the correspondence between the prediction results and the diagnosis results corresponding to each preset functional relationship, and the comprehensive diagnosis result is determined according to the diagnosis result. In this way, the prediction results corresponding to each functional relationship are determined by the pre-stored functional relationship, and then the fault conditions in the unitized system are determined according to the prediction results corresponding to each functional relationship. It is not just based on the monitoring indicator exceeding the threshold at a single moment that the node of the unitized system is judged to be faulty, but the changing trend of the index value of the monitoring indicator of the node is also considered to comprehensively judge whether the node is faulty or not, which can improve the accuracy of the comprehensive diagnosis and thus improve the accuracy of flow switching.

[0122] In one embodiment, Figure 5 As shown, according to the comprehensive diagnosis results, the specific process of determining the traffic switching recommendation information includes the following steps:

[0123] Step 501, determining the emergency level corresponding to each fault condition information according to the comprehensive diagnosis result.

[0124] In an embodiment of the present application, the emergency level is the fault level of the unitized system. The emergency level may include intra-unit node failure, unit-level failure, park-level failure, and city-level failure. Intra-unit node failure means that some nodes in a unit of the unitized system fail, and other nodes in the unit do not fail. Unit-level failure means that all nodes in some units of the unitized system fail, and other units in the unitized system do not fail. Park-level failure means that all units in the park fail. City-level failure means that all units deployed in the city fail. The server node can determine the emergency level corresponding to each fault condition information based on the diagnosis results of each node in the comprehensive diagnosis result and the judgment rules of each emergency level.

[0125] Step 502: Determine traffic switching recommendation information based on the comprehensive diagnosis result and the emergency level corresponding to each fault condition information.

[0126] In an embodiment of the present application, the server node determines the type of the target fault object and the type of the target switching object according to the emergency level corresponding to each fault condition information. Among them, the type of the target fault object and the type of the target switching object are the same. The type of the target fault object and the type of the target switching object both include: node, unit and park. Then, the server node can determine the target fault object and the target switching object corresponding to the target fault object according to the diagnosis results of each node in the comprehensive diagnosis results, the type of the target fault object and the type of the target switching object. Then, the server node forms the traffic switching recommendation information with the emergency level, the target fault object and the target switching object corresponding to the target fault object.

[0127] In the above-mentioned traffic switching method, the emergency level corresponding to each fault condition information is determined according to the comprehensive diagnosis result; and the traffic switching recommendation information is determined according to the comprehensive diagnosis result and the emergency level corresponding to each fault condition information. In this way, the emergency level is first determined through the comprehensive diagnosis result, and then the specific fault object and switching object are determined in combination with the emergency level, and the traffic switching recommendation information is obtained to clarify the emergency level, the specific type and specific object of the traffic switching, and the traffic switching recommendation information is clear and concise, thereby improving the accuracy of traffic switching.

[0128] In one embodiment, the specific process of determining the emergency level corresponding to each fault condition information based on the comprehensive diagnosis result includes the following steps: in the pre-stored correspondence between the diagnosis result and the emergency level, query the target emergency level corresponding to the comprehensive diagnosis result, and use the target emergency level as the emergency level corresponding to each fault condition information.

[0129] In the embodiment of the present application, the comprehensive diagnosis result includes the diagnosis result of each node in the unitized system. The server node pre-stores the corresponding relationship between the diagnosis result and the emergency level. Then, in the pre-stored corresponding relationship between the diagnosis result and the emergency level, the server node queries the target emergency level corresponding to the comprehensive diagnosis result. Then, the server node uses the target emergency level as the emergency level corresponding to each fault condition information.

[0130] In one example, for each node, if the diagnosis result of the node is a fault, the node is a faulty node. If the diagnosis result of the node is non-faulty, the node is a non-faulty node. For each unit in the unitized system, the proportion of faulty nodes in the unit is calculated based on the number of faulty nodes in the unit and the number of nodes in the unit. If the proportion of faulty nodes in the unit is less than the preset faulty node proportion threshold, the emergency level of the unit is a node failure in the unit. If the proportion of faulty nodes in the unit is greater than or equal to the preset faulty node proportion threshold and the standby unit has the ability to undertake the traffic of the unit, the emergency level of the unit is a unit-level failure. Among them, the faulty node proportion threshold is used to measure the degree of failure of the unit in the unitized system. For example, the faulty node proportion threshold is 50%. Specifically, the server node can determine whether the standby unit has the ability to undertake the traffic of the unit based on the index values ​​of each monitoring index of the standby unit. In one embodiment, the server node can determine whether the standby unit has the ability to undertake the traffic of the unit based on the index value of the success rate of the standby unit and the index value of the transaction volume.

[0131] In one example, the comprehensive diagnostic result also includes the diagnostic results of each unit in the unitized system. For each unit, if the diagnostic result of the unit is a fault, the unit is a faulty unit. If the diagnostic result of the unit is not a fault, the unit is a non-faulty unit. According to the number of faulty units in the unitized system and the number of units in the unitized system, the proportion of faulty units in the unitized system is calculated. If the proportion of faulty units in the unitized system is greater than or equal to the preset faulty unit proportion threshold, and the success rate of the park where the unitized system is located is lower than the preset success rate threshold, the emergency level of the unitized system is a park-level fault. Among them, the faulty unit proportion threshold is used to measure the degree of failure of the unitized system. For example, the faulty unit proportion threshold is 50%. Specifically, the server node can aggregate the unitized monitoring information according to the park dimension to obtain the unitized monitoring information of the park where the unitized system is located. Then, the server node calculates the success rate of the park based on the unitized monitoring information of the park where the unitized system is located. Then, the server node compares the success rate of the park with the preset success rate threshold.

[0132] In the above-mentioned traffic switching method, the target emergency level corresponding to the comprehensive diagnosis result is queried in the correspondence between the pre-stored diagnosis results and the emergency level, and the target emergency level is used as the emergency level corresponding to each fault condition information. In this way, the emergency level is determined through the correspondence between the pre-stored diagnosis results and the emergency level and the comprehensive diagnosis results, so that the obtained traffic switching recommendation information clearly defines the emergency level, and the traffic switching recommendation information is clear and concise, thereby improving the accuracy of traffic switching.

[0133] In one embodiment, Figure 6 As shown, according to the comprehensive diagnosis result and the emergency level corresponding to each fault condition information, the specific process of determining the traffic switching recommendation information includes the following steps:

[0134] Step 601, determining a target fault object and a target switching object corresponding to the target fault object according to the comprehensive diagnosis result, the emergency level corresponding to each fault condition information and the index value of each monitoring index.

[0135] In an embodiment of the present application, the server node determines the type of the target fault object and the type of the target switching object according to the emergency level corresponding to each fault condition information. Then, the server node can determine the target fault object according to the diagnosis results of each node in the comprehensive diagnosis result and the type of the target fault object. Then, the server node can determine the target switching object corresponding to the target fault object according to the diagnosis results of each node in the comprehensive diagnosis result, the type of the target switching object and the indicator value of each monitoring indicator.

[0136] In one example, the server node can determine the alternative switching object corresponding to the target fault object based on the diagnostic results of each node in the comprehensive diagnostic result and the type of the target switching object. Then, the server node can determine whether the alternative switching object meets the preset switching object condition based on the indicator value of each monitoring indicator of the alternative switching object. Among them, the switching object condition may include the indicator threshold of the monitoring indicator. If the alternative switching object meets the preset switching object condition, the server node uses the alternative switching object as the target switching object corresponding to the target fault object.

[0137] Step 602: Determine traffic switching recommendation information according to the target fault object and the target switching object corresponding to the target fault object.

[0138] In an embodiment of the present application, the server node combines the emergency level, the target fault object, and the target switching object corresponding to the target fault object into traffic switching recommendation information.

[0139] In the above-mentioned traffic switching method, the target fault object and the target switching object corresponding to the target fault object are determined according to the comprehensive diagnosis results, the emergency level corresponding to each fault situation information, and the index value of each monitoring index; the traffic switching recommendation information is determined according to the target fault object and the target switching object corresponding to the target fault object. In this way, not only the specific fault object and the specific switching object are determined by the comprehensive diagnosis results and the emergency level corresponding to each fault situation information, but also the index value of each monitoring index, so that the switching object is not only non-faulty, but also has the ability to take over the traffic of the fault object, further improving the accuracy of traffic switching.

[0140] In one embodiment, the traffic switching suggestion information includes switching feedback indication information. The switching feedback indication information is used to instruct the user to evaluate the traffic switching suggestion information.

[0141] like Figure 7 As shown, the flow switching method also includes the following steps:

[0142] Step 701: Receive handover evaluation information corresponding to handover feedback indication information.

[0143] In an embodiment of the present application, the server node receives switching evaluation information corresponding to the switching feedback indication information. The switching evaluation information is information on the user's evaluation of the traffic switching recommendation information. The switching evaluation information may include an evaluation form. The evaluation form includes but is not limited to: a score and a grade.

[0144] Step 702, determining the traffic switching mode according to the switching evaluation information and the preset switching mode determination rules.

[0145] In an embodiment of the present application, the traffic switching method is a method for switching the traffic of a unitized system. The traffic switching methods include direct switching and manual switching. Direct switching is to switch the traffic of a unitized system according to the traffic switching suggestion. Manual switching is for a user to manually switch the traffic of a unitized system. Manual switching can be to switch the traffic of a unitized system according to the traffic switching suggestion. The switching form determination rule may include a correspondence between the switching evaluation information and the traffic switching method. The server node determines the traffic switching method based on the correspondence between the switching evaluation information and the traffic switching method and the switching evaluation information.

[0146] In the above-mentioned traffic switching method, the switching evaluation information corresponding to the switching feedback indication information is received; and the traffic switching mode is determined according to the switching evaluation information and the preset switching form determination rule. In this way, the traffic switching suggestion information also includes the switching feedback indication information for instructing the user to evaluate the traffic switching suggestion information, and the traffic switching mode is allocated through the received switching evaluation information, taking into account the efficiency and accuracy of the traffic switching.

[0147] In one embodiment, Figure 8 As shown, according to the switching evaluation information and the preset switching form determination rule, the specific process of determining the flow switching mode includes the following steps:

[0148] Step 801: When the switching evaluation information indicates that the traffic switching recommendation information meets a preset accuracy condition, a traffic switching process is performed based on the traffic switching recommendation information.

[0149] In an embodiment of the present application, the server node pre-sets an accuracy condition. The accuracy condition is used to measure whether the traffic switching recommendation information is accurate. The accuracy condition may include an accuracy threshold. The accuracy threshold corresponds to the evaluation form, and the form of the accuracy threshold is the same as the evaluation form. For example, when the evaluation form is a score, the accuracy threshold is a score. When the evaluation form is a grade, the accuracy threshold is a grade. Then, the server node determines whether the traffic switching recommendation meets the accuracy condition based on the switching evaluation information and the accuracy threshold.

[0150] In one embodiment, the switching evaluation information is a score. The accuracy threshold is 90 points. If the score of the switching evaluation information is greater than or equal to the accuracy threshold, the traffic switching suggestion meets the accuracy condition. If the score of the switching evaluation information is less than the accuracy threshold, the traffic switching suggestion does not meet the accuracy condition.

[0151] When the switching evaluation information indicates that the traffic switching recommendation information meets the preset accuracy condition, the server node performs traffic switching processing based on the traffic switching recommendation information.

[0152] In one example, the server node performs traffic switching processing on the unitized system based on the traffic switching recommendation information.

[0153] In another example, the server node sends a first control instruction to a third-party device to control the third-party device to perform traffic switching processing on the unitized system based on the traffic switching recommendation information. The first control instruction is used to instruct the third-party device to process the unitized system. The first control instruction includes the traffic switching recommendation information.

[0154] Step 802: When the switching evaluation information indicates that the traffic switching recommendation information does not meet the preset accuracy condition, perform traffic switching processing in response to the user's traffic switching instruction.

[0155] In an embodiment of the present application, when the switching evaluation information indicates that the traffic switching recommendation information does not meet the preset accuracy condition, the server node responds to the user's traffic switching instruction and performs traffic switching processing on the unitized system. The traffic switching instruction is used to instruct the server node to process the unitized system. The traffic switching instruction includes traffic switching information. The traffic switching information is used to instruct the unitized system to switch traffic. The traffic switching information may be different from the traffic switching recommendation information.

[0156] In one example, the server node performs traffic switching processing on the unitized system in response to a traffic switching instruction from a user.

[0157] In another example, the server node sends a second control instruction to a third-party device in response to a user's traffic switching instruction, and controls the third-party device to perform traffic switching processing on the unitized system based on the traffic switching information. The second control instruction is used to instruct the third-party device to process the unitized system. The second control instruction includes the traffic switching information.

[0158] In the above-mentioned traffic switching method, when the switching evaluation information indicates that the traffic switching suggestion information meets the preset accuracy condition, the traffic switching process is performed based on the traffic switching suggestion information; when the switching evaluation information indicates that the traffic switching suggestion information does not meet the preset accuracy condition, the traffic switching process is performed in response to the user's traffic switching instruction. In this way, when the traffic switching suggestion information is accurate, the switch is directly performed based on the traffic switching suggestion information, reducing the transaction loss caused by manual intervention and improving the efficiency of traffic switching; when the traffic switching suggestion information is inaccurate, the user uses the traffic switching suggestion information as a reference and switches manually, further improving the accuracy of traffic switching.

[0159] In one embodiment, Fig. 9 As shown, the flow switching method also includes the following steps:

[0160] Step 901, when the unitized system has been switched, the number of abnormalities of each service is determined according to the indicator value of each monitoring indicator of each service included in the unitized system within a preset pre-switching time period before the switching.

[0161] In an embodiment of the present application, the server node pre-sets a pre-switching time period. For example, the pre-switching time period can be 1 hour. When the unitized system has been switched, for each monitoring indicator, the server node compares the index value of the monitoring indicator of each service included in the unitized system in the preset pre-switching time period before the switch with the index threshold value corresponding to the monitoring indicator. If the index value of the monitoring indicator is greater than or equal to the index threshold value corresponding to the monitoring indicator, the service is abnormal. The server node counts the number of times the service is abnormal in the preset pre-switching time period before the switch, and obtains the number of abnormalities (also referred to as the first number of abnormalities for ease of distinction).

[0162] Step 902: compare the number of abnormalities with a preset threshold of the number of abnormalities.

[0163] In an embodiment of the present application, the server node pre-sets an abnormal number threshold (also referred to as a first abnormal number threshold for ease of distinction). The first abnormal number threshold corresponds to the pre-switching time period. For example, if the pre-switching time period is 1 hour and the first abnormal number threshold is 30 times, then if the pre-switching time period is 2 hours, the first abnormal number threshold is 60 times. Then, the server node compares the first abnormal number with the preset first abnormal number threshold.

[0164] Step 903: If the number of abnormalities is less than the preset abnormality threshold, then generate indicator threshold adjustment suggestion information.

[0165] In an embodiment of the present application, if the first abnormal number is less than the preset first abnormal number threshold, the indicator threshold is too small. Then, the server node generates indicator threshold adjustment suggestion information according to the indicator threshold being too small. The indicator threshold adjustment suggestion information is used to indicate that the indicator threshold is adjusted.

[0166] In one example, the server node uses the indicator threshold being too small as indicator threshold adjustment suggestion information.

[0167] In another example, the server node determines that the indicator threshold adjustment suggestion information is a suggestion to increase the indicator threshold based on the indicator threshold being too small.

[0168] In the above-mentioned traffic switching method, when the unitized system has been switched, the number of abnormalities of each service is determined according to the index value of each monitoring index of each service included in the unitized system in the preset pre-switching time period before the switching; the number of abnormalities is compared with the preset threshold of the number of abnormalities; if the number of abnormalities is less than the preset threshold of the number of abnormalities, the index threshold adjustment suggestion information is generated. In this way, after the unitized system has been switched, the index value of the monitoring index is used to provide the index threshold adjustment suggestion, and the index threshold is corrected in real time, thereby further improving the accuracy of traffic switching.

[0169] In one embodiment, the traffic switching method also includes the following steps: if the unitized system is still abnormal after switching, determining the second abnormal number of times abnormalities occurred in each service before switching according to the indicator value of each monitoring indicator of each service included in the unitized system within a preset pre-switching time period before switching; determining the third abnormal number of times abnormalities occurred in each service after switching according to the indicator value of each monitoring indicator of each service included in the unitized system within a preset post-switching time period after switching; comparing the second abnormal number with a preset second abnormal number threshold, and comparing the third abnormal number with a preset third abnormal number threshold; if the second abnormal number is greater than or equal to the preset second abnormal number threshold, and the third abnormal number is greater than or equal to the preset third abnormal number threshold, generating manual detection suggestion information.

[0170] In an embodiment of the present application, the server node pre-sets a pre-switching time period and a post-switching time period. The pre-switching time period and the post-switching time period may be the same or different. In the case where the unitized system is still abnormal after switching, for each monitoring indicator, the server node compares the index value of the monitoring indicator of each service included in the unitized system in the preset pre-switching time period before switching with the index threshold value corresponding to the monitoring indicator. If the index value of the monitoring indicator is greater than or equal to the index threshold value corresponding to the monitoring indicator, the service is abnormal. The server node counts the number of times the service is abnormal in the preset pre-switching time period before switching for each service, and obtains the second abnormal number. At the same time, for each monitoring indicator, the server node compares the index value of the monitoring indicator of each service included in the unitized system in the preset post-switching time period after switching with the index threshold value corresponding to the monitoring indicator. If the index value of the monitoring indicator is greater than or equal to the index threshold value corresponding to the monitoring indicator, the service is abnormal. The server node counts the number of times the service is abnormal in the preset post-switching time period after switching for each service, and obtains the third abnormal number. The server node pre-sets the second abnormal number threshold value and the third abnormal number threshold value. The second abnormal number threshold value corresponds to the pre-switching time period. The third abnormal number threshold corresponds to the time period after the switch. The second abnormal number threshold and the third abnormal number threshold may be the same or different. Then, the server node compares the second abnormal number with the preset second abnormal number threshold. At the same time, the server node compares the third abnormal number with the preset third abnormal number threshold. If the second abnormal number is greater than or equal to the preset second abnormal number threshold, and the third abnormal number is greater than or equal to the preset third abnormal number threshold, the switch does not solve the problem. Then, the server node generates manual detection suggestion information based on the problem that was not solved by the switch. Among them, the manual detection suggestion information is used to instruct the user to manually detect the business logic or equipment of the unitized system.

[0171] In the above-mentioned traffic switching method, in the case that the unitized system is still abnormal after switching, the second abnormal number of abnormalities before the switching of each service is determined according to the index value of each monitoring index of each service included in the unitized system in the preset pre-switching time period before switching; the third abnormal number of abnormalities after the switching of each service is determined according to the index value of each monitoring index of each service included in the unitized system in the preset post-switching time period after switching; the second abnormal number is compared with the preset second abnormal number threshold, and the third abnormal number is compared with the preset third abnormal number threshold; if the second abnormal number is greater than or equal to the preset second abnormal number threshold, and the third abnormal number is greater than or equal to the preset third abnormal number threshold, then manual detection suggestion information is generated. In this way, in the case that the unitized system is still abnormal after switching, manual detection suggestions are provided through the index value of the monitoring index, and corrections are provided for the traffic switching suggestions, further improving the accuracy and comprehensiveness of the traffic switching.

[0172] In one embodiment, Fig.10 As shown, the flow switching method also includes the following steps:

[0173] Step 1001 , for each preset architecture governance type, according to the indicator value of each monitoring indicator and the judgment strategy corresponding to the architecture governance type, determine the architecture governance suggestion sub-information corresponding to the architecture governance type.

[0174] In an embodiment of the present application, for each preset architecture governance type, the server node determines the architecture governance suggestion sub-information corresponding to the architecture governance type based on the indicator value of each monitoring indicator and the judgment strategy corresponding to the architecture governance type. Among them, the architecture governance type is the governance direction for governing the architecture of the unitized system. The architecture governance types include cross-unit traffic anomalies, intra-unit traffic anomalies, and unit traffic distribution anomalies. The architecture governance suggestion information is used to indicate the governance of the architecture of the unitized system.

[0175] In one example, when the architecture governance type is cross-unit traffic anomaly, the server node pre-sets the unitized dimension. Among them, the unitized dimension is a dimension used to divide the unitized system. The unitized dimension includes at least the unit dimension. In the order of the divided range from large to small, the unitized dimension includes but is not limited to: unit dimension, application dimension, group dimension, service / resource dimension, fault domain dimension, host IP dimension and container ID dimension. The unit dimension is a dimension for dividing the unitized system according to the unit. The application dimension, group dimension, service / resource dimension, fault domain dimension, host IP dimension and container ID dimension are similar to the unit dimension. Then, the server node aggregates and calculates the unitized monitoring information according to the unit dimension to obtain the transaction volume of each unit under the unit dimension. Then, the server node calculates the cross-unit transaction volume based on the transaction volume of each unit under the unit dimension. Then, the server node calculates the cross-unit transaction volume ratio based on the transaction volume of each unit under the unit dimension and the cross-unit transaction volume. Then, the server node compares the cross-unit transaction volume ratio with the preset cross-unit transaction volume ratio threshold. For example, the cross-unit transaction volume ratio threshold is 50%. If the proportion of cross-unit transaction volume is greater than or equal to the cross-unit transaction volume proportion threshold, the server node determines whether there is a sharding logic inconsistency based on the indicator values ​​of each monitoring indicator. If there is an inconsistency in the sharding logic, the server node generates the architecture governance suggestion sub-information corresponding to the architecture governance type based on the inconsistency in the sharding logic. For example, the server node will recommend adjusting the sharding logic based on the inconsistency in the sharding logic as the architecture governance suggestion sub-information corresponding to the architecture governance type. In this way, by analyzing whether the sharding logic of the unitized system is consistent through the proportion of cross-unit transaction volume, and generating architecture governance suggestion information, users can adjust the sharding logic according to the architecture governance suggestion information, so that transactions are closed within the unit as much as possible, thereby improving the efficiency of the unitized system.

[0176] In one example, when the architecture governance type is abnormal traffic within the unit, for each second-type monitoring indicator, the server node compares the indicator value of the second-type monitoring indicator of the unit with the preset threshold value corresponding to the second-type monitoring indicator. If the indicator value of the second-type monitoring indicator of the unit is greater than or equal to the threshold value corresponding to the second-type monitoring indicator, the server node determines the business rationality and equipment resource rationality of the unit based on the business transaction volume in the unit. Then, the server node generates architecture governance suggestion sub-information corresponding to the architecture governance type based on the business rationality and equipment resource rationality of the unit. Generating architecture governance suggestion information in this way can enable users to adjust the business and equipment resources of the unit according to the architecture governance suggestion information, so that the business and equipment resources of the unit are more reasonable, and improve the efficiency and reliability of the unitized system.

[0177] In one example, when the architecture governance type is abnormal traffic within a unit, for each preset traffic distribution indicator, the server node calculates the index value of each traffic distribution indicator of each unit. Among them, the traffic distribution indicator is used to represent the traffic distribution of the unit. The traffic distribution indicator includes but is not limited to the transaction volume. Then, the server node calculates the traffic distribution proportion corresponding to each unit according to the index value of each traffic distribution indicator of each unit. Then, for each unit, the server node compares the traffic distribution proportion of the unit with the preset traffic distribution proportion threshold. If there is a unit whose traffic distribution proportion is greater than or equal to the traffic distribution proportion threshold, the server node determines the rationality of the sharding and the rationality of the equipment resources of the unitized system. Then, the server node generates the architecture governance suggestion sub-information corresponding to the architecture governance type according to the rationality of the sharding and the rationality of the equipment resources of the unitized system. Generating the architecture governance suggestion information in this way can enable the user to adjust the sharding and equipment resources of the unitized system according to the architecture governance suggestion information, so that the sharding and equipment resources of the unitized system are more reasonable, and the efficiency and reliability of the unitized system are improved.

[0178] Step 1002: The architecture governance suggestion sub-information corresponding to each architecture governance type is combined into architecture governance suggestion information.

[0179] The architecture governance suggestion information is used to instruct to perform architecture governance on the unitized system.

[0180] In the embodiment of the present application, the server node forms the architecture governance suggestion information with the architecture governance suggestion sub-information corresponding to each architecture governance type.

[0181] In the above-mentioned traffic switching method, for each preset architecture governance type, the architecture governance suggestion sub-information corresponding to the architecture governance type is determined according to the indicator value of each monitoring indicator and the judgment strategy corresponding to the architecture governance type; the architecture governance suggestion sub-information corresponding to each architecture governance type is used to form architecture governance suggestion information. In this way, according to the indicator value of each monitoring indicator and the judgment strategy corresponding to the architecture governance type, the architecture governance suggestion information is generated to instruct the unitized system to perform architecture governance, which can improve the rationality and reliability of the unitized system.

[0182] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0183] Based on the same inventive concept, the embodiment of the present application also provides a flow switching device for implementing the flow switching method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more flow switching device embodiments provided below can refer to the limitations on the flow switching method above, and will not be repeated here.

[0184] In one embodiment, Fig.11 As shown, a flow switching device 1100 is provided, comprising: a calculation module 1110, a first comparison module 1120, a first determination module 1130 and a second determination module 1140, wherein:

[0185] The calculation module 1110 is used to calculate the index value of each monitoring index according to the stored unitized monitoring information and the preset monitoring indexes; the unitized monitoring information includes unitized metadata and the monitoring data corresponding to the unitized metadata;

[0186] The first comparison module 1120 is used to compare the indicator value of each monitoring indicator with the preset indicator threshold corresponding to the monitoring indicator to obtain a comparison result of the monitoring indicator;

[0187] The first determination module 1130 is used to determine a comprehensive diagnosis result according to the comparison results of the monitoring indicators, the indicator values ​​of the monitoring indicators and the preset comprehensive diagnosis strategy; the comprehensive diagnosis result includes information on various fault conditions in the unitized system;

[0188] The second determination module 1140 is used to determine flow switching recommendation information according to the comprehensive diagnosis result; the flow switching recommendation information is used to instruct to switch the flow of the unitized system.

[0189] Optionally, the first determining module 1130 is specifically configured to:

[0190] Inputting the comparison results of the monitoring indicators and / or the index values ​​of the monitoring indicators into the pre-stored functional relationships to obtain the prediction results corresponding to the functional relationships; the functional relationships are used to represent the index values ​​of the monitoring indicators and / or the comparison results of the monitoring indicators in the unitized system, changing with the preset parameters;

[0191] The diagnostic result is determined according to the corresponding relationship between the prediction result and the diagnostic result corresponding to each preset functional relationship, and the comprehensive diagnostic result is determined according to the diagnostic result.

[0192] Optionally, the second determining module 1140 is specifically configured to:

[0193] Determine the emergency level corresponding to each fault condition information according to the comprehensive diagnosis result;

[0194] The flow switching recommendation information is determined according to the comprehensive diagnosis result and the emergency level corresponding to each fault condition information.

[0195] Optionally, the second determining module 1140 is specifically configured to:

[0196] In the pre-stored correspondence between the diagnosis results and the emergency levels, the target emergency level corresponding to the comprehensive diagnosis result is queried, and the target emergency level is used as the emergency level corresponding to each fault condition information.

[0197] Optionally, the second determining module 1140 is specifically configured to:

[0198] Determine a target fault object and a target switching object corresponding to the target fault object according to the comprehensive diagnosis result, the emergency level corresponding to each fault condition information and the index value of each monitoring index;

[0199] Traffic switching recommendation information is determined according to the target fault object and the target switching object corresponding to the target fault object.

[0200] Optionally, the traffic switching recommendation information includes switching feedback indication information; the switching feedback indication information is used to instruct the user to evaluate the traffic switching recommendation information; the device 1100 further includes:

[0201] A receiving module, configured to receive the switching evaluation information corresponding to the switching feedback indication information;

[0202] The third determination module is used to determine the flow switching mode according to the switching evaluation information and the preset switching form determination rule.

[0203] Optionally, the third determining module is specifically configured to:

[0204] When the switching evaluation information indicates that the traffic switching recommendation information meets a preset accuracy condition, performing traffic switching processing based on the traffic switching recommendation information;

[0205] When the switching evaluation information indicates that the traffic switching recommendation information does not meet the preset accuracy condition, a traffic switching process is performed in response to a traffic switching instruction of the user.

[0206] Optionally, the device 1100 further includes:

[0207] A fourth determination module, configured to determine the number of abnormalities of each service included in the unitized system according to the indicator value of each monitoring indicator within a preset pre-switching time period before the switching, when the unitized system has been switched;

[0208] A second comparison module, used for comparing the number of abnormalities with a preset threshold of the number of abnormalities;

[0209] A generation module is used to generate indicator threshold adjustment suggestion information if the number of abnormalities is less than a preset abnormality number threshold.

[0210] Optionally, the device 1100 further includes:

[0211] A fourth determination module is used to determine, for each preset architecture governance type, architecture governance suggestion sub-information corresponding to the architecture governance type according to the indicator value of each monitoring indicator and the judgment strategy corresponding to the architecture governance type;

[0212] The composition module is used to form the architecture governance suggestion information from the architecture governance suggestion sub-information corresponding to each of the architecture governance types; the architecture governance suggestion information is used to instruct the architecture governance of the unitized system.

[0213] Each module in the above-mentioned flow switching device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0214] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.12As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used 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 and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a flow switching method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0215] Those skilled in the art will understand that Fig.12 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0216] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0217] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0218] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0219] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0220] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0221] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0222] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A flow switching method, characterized in that: The method comprises: Calculating the index value of each monitoring index according to the stored unitized monitoring information and the preset monitoring indexes; the unitized monitoring information includes unitized metadata and monitoring data corresponding to the unitized metadata; For each monitoring indicator, the indicator value of the monitoring indicator is compared with the preset indicator threshold corresponding to the monitoring indicator to obtain a comparison result of the monitoring indicator; Determine a comprehensive diagnosis result according to the comparison results of each monitoring indicator, the indicator value of each monitoring indicator and a preset comprehensive diagnosis strategy; the comprehensive diagnosis result includes information on each fault condition in the unitized system; Determining flow switching recommendation information according to the comprehensive diagnosis result; the flow switching recommendation information is used to instruct to switch the flow of the unitized system; Wherein, the method of determining the comprehensive diagnosis result according to the comparison results of each monitoring indicator, the indicator value of each monitoring indicator and the preset comprehensive diagnosis strategy includes: inputting the comparison results of each monitoring indicator and / or the indicator value of each monitoring indicator into each pre-stored functional relationship to obtain the prediction results corresponding to each functional relationship; the functional relationship is used to represent the indicator value of the monitoring indicator and / or the comparison result of the monitoring indicator in the unitized system, which changes with the preset parameters; the preset parameters are one or more of time, monitoring indicators and the comparison results of the monitoring indicators; the prediction result is the prediction result of the monitoring indicator; the functional relationship is used to represent the relationship between the parameters in the indicator combination; the monitoring indicators included in the same indicator combination are different from the monitoring indicators corresponding to the comparison results included in the indicator combination; the diagnosis result is determined according to the correspondence between the prediction results and the diagnosis results corresponding to each preset functional relationship, and the comprehensive diagnosis result is determined according to the diagnosis result; Among them, determining the traffic switching recommendation information according to the comprehensive diagnosis result includes: determining the emergency level corresponding to each fault condition information according to the comprehensive diagnosis result; determining the type of target fault object and the type of target switching object according to the emergency level corresponding to each fault condition information; the type of target fault object and the type of target switching object both include nodes, units and parks; determining the target fault object and the target switching object corresponding to the target fault object according to the diagnosis result of each node in the comprehensive diagnosis result, the type of the target fault object and the type of the target switching object; determining the traffic switching recommendation information according to the target fault object and the target switching object corresponding to the target fault object.

2. The method according to claim 1, characterized in that Determining the emergency level corresponding to each fault condition information according to the comprehensive diagnosis result includes: In the pre-stored correspondence between the diagnosis results and the emergency levels, the target emergency level corresponding to the comprehensive diagnosis result is queried, and the target emergency level is used as the emergency level corresponding to each fault condition information.

3. The method according to claim 1, characterized in that The traffic switching suggestion information includes switching feedback indication information; The switching feedback indication information is used to instruct the user to evaluate the traffic switching suggestion information; the method further includes: Receiving handover evaluation information corresponding to the handover feedback indication information; The flow switching mode is determined according to the switching evaluation information and the preset switching form determination rules.

4. The method according to claim 3, characterized in that Determining the traffic switching mode according to the switching evaluation information and the preset switching form determination rule includes: When the switching evaluation information indicates that the traffic switching recommendation information meets a preset accuracy condition, performing traffic switching processing based on the traffic switching recommendation information; When the switching evaluation information indicates that the traffic switching recommendation information does not meet the preset accuracy condition, a traffic switching process is performed in response to a traffic switching instruction of the user.

5. The method according to claim 1, characterized in that The method further comprises: In the case where the unitized system has been switched, determining the number of abnormalities of each service according to the indicator value of each monitoring indicator of each service included in the unitized system within a preset pre-switching time period before the switching; Comparing the number of abnormalities with a preset threshold of the number of abnormalities; If the number of abnormalities is less than a preset abnormality threshold, indicator threshold adjustment suggestion information is generated.

6. The method according to claim 1, characterized in that The method further comprises: For each preset architecture governance type, according to the indicator value of each monitoring indicator and the judgment strategy corresponding to the architecture governance type, determine the architecture governance suggestion sub-information corresponding to the architecture governance type; The architecture governance suggestion sub-information corresponding to each of the architecture governance types constitutes architecture governance suggestion information; the architecture governance suggestion information is used to instruct architecture governance of the unitized system.

7. A flow switching device, characterized in that: The device comprises: A calculation module, used to calculate the index value of each monitoring index according to the stored unitized monitoring information and the preset monitoring indexes; the unitized monitoring information includes unitized metadata and monitoring data corresponding to the unitized metadata; A first comparison module is used to compare, for each monitoring indicator, an indicator value of the monitoring indicator with a preset indicator threshold corresponding to the monitoring indicator to obtain a comparison result of the monitoring indicator; A first determination module, used to determine a comprehensive diagnosis result according to the comparison results of each monitoring indicator, the indicator value of each monitoring indicator and a preset comprehensive diagnosis strategy; the comprehensive diagnosis result includes information on each fault condition in the unitized system; A second determination module is used to determine flow switching recommendation information according to the comprehensive diagnosis result; the flow switching recommendation information is used to instruct to switch the flow of the unitized system; Among them, the first determination module is specifically used to: input the comparison results of each monitoring indicator and / or the indicator value of each monitoring indicator into each pre-stored functional relationship to obtain the prediction results corresponding to each functional relationship; the functional relationship is used to represent the indicator value of the monitoring indicator and / or the comparison result of the monitoring indicator in the unitized system, which changes with the preset parameters; the preset parameters are one or more of time, monitoring indicators and the comparison results of monitoring indicators; the prediction result is the prediction result of the monitoring indicator; the functional relationship is used to represent the relationship between the parameters in the indicator combination; the monitoring indicators included in the same indicator combination are different from the monitoring indicators corresponding to the comparison results included in the indicator combination; according to the corresponding relationship between the prediction results and the diagnostic results corresponding to each preset functional relationship, the diagnosis result is determined, and according to the diagnosis result, the comprehensive diagnosis result is determined; Among them, the second determination module is specifically used to: determine the emergency level corresponding to each fault condition information according to the comprehensive diagnosis result; determine the type of target fault object and the type of target switching object according to the emergency level corresponding to each fault condition information; the type of target fault object and the type of target switching object both include nodes, units and parks; determine the target fault object and the target switching object corresponding to the target fault object according to the diagnosis result of each node in the comprehensive diagnosis result, the type of the target fault object and the type of the target switching object; determine the traffic switching recommendation information according to the target fault object and the target switching object corresponding to the target fault object.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Flow switching method and device, equipment and storage medium

    CN112866030A

  • Unit monitoring method and device based on distributed architecture

    CN114968710A