Delay anomaly determination method, determination device and cloud platform

By constructing and classifying the execution paths of user requests and calculating the compensation response time, the problem of delay anomaly detection of service components in the cloud platform is solved, and the fault handling efficiency and system reliability are improved.

CN116112397BActive Publication Date: 2024-08-30中国邮政储蓄银行股份有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211441731.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-17
Publication Date
2024-08-30
Estimated Expiration
2042-11-17

AI Technical Summary

Technical Problem

Existing technology is difficult to accurately detect delay anomalies in service components in cloud platforms, resulting in low fault handling efficiency and poor reliability.

Method used

By constructing the execution path of user requests on the target service component, classifying request category groups, and calculating the compensation response time, it is determined whether the target service component has a delay failure.

Benefits of technology

It achieves accurate detection of delay faults in the cloud platform and improves fault handling efficiency and system reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116112397B
    Figure CN116112397B
Patent Text Reader

Abstract

The present application provides a method, device and cloud platform for determining a delay anomaly. The determination method includes: constructing the execution path of user requests on each target service component based on the operation log information of each service component to obtain the target path information; classifying each user request based on the target path information of each user request to obtain multiple request category groups, and calculating the compensation response time of the target service component corresponding to each user request when it is executed based on at least each target path information in each request category group; determining whether the corresponding target service component has a delay fault based at least on the compensation response time of each target service component in all request category groups, thereby solving the problem in the prior art that it is difficult to accurately detect the delay anomaly of the service component of the cloud platform, thereby ensuring that the efficiency of the cloud platform's fault handling is high and the reliability of the cloud platform's operation is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing, and in particular, to a method, device and cloud platform for determining a delay anomaly. Background Art

[0002] Cloud computing is a new computing model with strong flexibility, but along with its flexibility comes the complexity of the cloud computing system. Cloud computing integrates massive computing resources (including hardware resources and software resources) and provides services to users through the network in the form of a cloud platform.

[0003] The requests initiated by users are completed by the numerous service components of the cloud platform through mutual invocation and collaborative processing. These service components include virtualization components, security components, user management components, application extension components, etc. These service components are deployed in different computing nodes, even in different clusters and different data centers. The service components also communicate with each other through the Internet or a dedicated network. During the execution of the user request, if a service component fails or has performance abnormalities, the user request cannot be effectively executed, that is, the user request processing fails. Therefore, it is necessary to identify the fault of the cloud platform based on the operation log information of each service component to ensure the normal operation of the cloud platform.

[0004] Since the operation log information of each service component only includes whether each service component successfully executes the user request and the timestamp information of the start and end of the user request, by viewing and analyzing the operation log information of each service component, or viewing the resource utilization of each service component at different time points, the cloud platform can only detect the execution interruption anomaly of the user request. However, when the user request has a delay anomaly, the above fault identification method can only detect the existence of the delay anomaly, and cannot accurately detect which service component has the delay anomaly.

[0005] Therefore, there is an urgent need for a method that can detect delay anomalies of service components in cloud platforms. Summary of the invention

[0006] The main purpose of the present application is to provide a method, device and cloud platform for determining delay anomalies, so as to solve the problem in the prior art that it is difficult to accurately detect delay anomalies of service components of the cloud platform.

[0007] According to one aspect of an embodiment of the present invention, a method for determining a delay anomaly is provided, the determination method being applied in a cloud platform, the cloud platform including a plurality of service components, the determination method including: based on the operation log information of each of the service components, constructing an execution path of a user request on each target service component to obtain target path information, one user request corresponding to one target path information, one target path information including at least two target service components; based on the target path information of each of the user requests, classifying each of the user requests to obtain a plurality of request category groups, at least based on each of the target path information in each of the request category groups, calculating a compensation response time of the target service component corresponding to each of the user requests when being executed, one of the request category groups including a plurality of user requests; at least based on the compensation response time of each of the target service components in all of the request category groups, determining whether a delay failure occurs in the corresponding target service component.

[0008] Optionally, based on the target path information of each user request, each user request is classified to obtain a plurality of request category groups, including: dividing the target path information of each user request to obtain a plurality of path primitives, wherein the path primitive is a path formed by two adjacent target service components on the target path information, and one target path information corresponds to at least one path primitive; and dividing all user requests with the same path primitives into one category to obtain a plurality of request category groups.

[0009] Optionally, the target path information further includes timestamp information of each target service component being called, the timestamp information including a start call time and a stop call time, and at least based on each target path information in each request category group, calculating the compensation response time of the target service component corresponding to each user request when being executed, including: using t j (i)=|Tb j (i)-Te j (i)|-|Tb j+1 (i)-Te j+1 (i)|, calculate the compensation response time of the target service component corresponding to each user request when it is executed, where t j (i) is the compensation response time on the jth target service component in the target path information corresponding to the i-th user request, Tb j (i) is the start call time of the jth target service component in the target path information corresponding to the i-th user request, Te j(i) is the stop call time of the jth target service component in the target path information corresponding to the i-th user request, Tb j+1 (i) is the start call time of the j+1th target service component in the target path information corresponding to the i-th user request, Te j+1 (i) is the stop call time of the j+1th target service component in the target path information corresponding to the i-th user request, i is less than or equal to the total number of user requests in a request category group, and j is less than or equal to the total number of target service components on the target path information.

[0010] Optionally, the target path information also includes timestamp information of each target service component being called, the timestamp information including the start call time and the stop call time, and at least based on the target path information in each request category group, calculating the compensation response time of the target service component corresponding to each user request when it is executed, including: determining the unidirectional link corresponding to the target path information of each user request in each request category group, one target path information corresponds to at least two unidirectional links; at least using Calculate the compensation response time on the target service component corresponding to each of the user requests when being executed, wherein: is the compensation response time of the jth target service component on the kth unidirectional link in the target path information corresponding to the i-th user request, is the start calling time of the jth target service component on the kth unidirectional link in the target path information corresponding to the i-th user request, is the stop calling time of the jth target service component of the kth unidirectional link in the target path information corresponding to the i-th user request, is the start calling time of the j+1th target service component on the kth unidirectional link in the target path information corresponding to the i-th user request, The stop call time of the j+1th target service component on the kth unidirectional link in the target path information corresponding to the ith user request, i is less than or equal to the total number of user requests in a request category group, j is less than or equal to the total number of target service components on a target path information, and k is less than or equal to the total number of unidirectional links of a target path information.

[0011] Optionally, at least based on the compensation response time of each target service component in all the request category groups, determining whether the corresponding target service component has a delay fault, including: at least normalizing all the compensation response times of the target service components in each request category group to obtain the delay fault rate of each target service component in the corresponding request category group; calculating the target delay fault rate of the corresponding target service component based on the delay fault rate of the target service component in each request category group; determining whether the corresponding target service component has a delay fault based on the target delay fault rate and a call ratio of each target service component, wherein one service component corresponds to one call ratio, and the call ratio is the ratio of the total number of times the corresponding target service component is called to the total number of times the cloud platform processes the user requests.

[0012] Optionally, at least all the compensation response times of the target service components in each request category group are normalized to obtain the delay failure rate of each target service component in the corresponding request category group, including: in one request category group, all the compensation response times of the zth target service component are normalized to obtain multiple normalized probabilities; using Calculate the delay failure rate of the corresponding target service component, H z is the delay failure rate of the zth target service component in a request category group, P z (l) is the lth normalized probability of the zth target service component, m is the total number of the normalized probabilities of the zth target service component, and z is less than or equal to the total number of the target service components in the corresponding request category group.

[0013] Optionally, based on the delay failure rate of the target service component in each of the request category groups, the target delay failure rate of the corresponding target service component is calculated, including: calculating the sum of the delay failure rates of the same target service component in all the request category groups to obtain the sum of the failure rates of the corresponding target service components; calculating the quotient of the sum of the failure rates and the total number of the request category groups to obtain the target delay failure rate.

[0014] Optionally, based on the target delay failure rate and call ratio of each target service component, determining whether the corresponding target service component has a delay failure includes: calculating the product of the target delay failure rate and the corresponding call ratio of each target service component to obtain multiple target failure thresholds; when the target failure threshold is greater than a preset fault identification threshold, determining that the target service component corresponding to the target failure threshold has a delay failure; when the target failure threshold is less than or equal to the preset fault identification threshold, determining that the target service component corresponding to the target failure threshold has not had a delay failure.

[0015] According to another aspect of an embodiment of the present invention, a device for determining a delay anomaly is also provided. The device is applied in a cloud platform, and the cloud platform includes multiple service components. The device includes: a construction unit, which is used to construct an execution path of a user request on each target service component based on the operation log information of each service component to obtain target path information, one user request corresponds to one target path information, and one target path information includes at least two target service components; a calculation unit, which is used to classify each user request based on the target path information of each user request to obtain multiple request category groups, and calculate the compensation response time of the target service component corresponding to each user request when it is executed based on at least each target path information in each request category group, and one request category group includes multiple user requests; a determination unit, which is used to determine whether the corresponding target service component has a delay failure based on at least the compensation response time of each target service component in all request category groups.

[0016] According to another aspect of an embodiment of the present invention, a cloud platform is provided, including: a device for determining a delay anomaly, wherein the device is used to execute any one of the methods for determining a delay anomaly.

[0017] In an embodiment of the present invention, in the method for determining the delay anomaly, first, based on the operation log information of each of the service components, the execution path of the user request on each target service component is constructed to obtain the target path information of each user request; then, based on the target path information of each user request, each of the user requests is classified to obtain a plurality of request category groups, and the compensation response information when each target service component in each request category group executes the corresponding user request is calculated; finally, based at least on the compensation response time of each target service component in all of the request category groups, it is determined whether the corresponding target service component has a delay failure. Compared with the prior art, which only determines whether a cloud platform has a delay failure based on the log information of the service component or the resource utilization of the cloud platform, the present solution determines whether the corresponding target service component has a delay failure based at least on the compensation response time of each target service component in all request category groups. That is, the present solution can not only determine whether a cloud platform has a delay failure, but also more accurately determine which target service component has a delay failure, thereby solving the problem in the prior art that it is difficult to accurately detect delay anomalies of service components of the cloud platform, thereby ensuring that the cloud platform has a high efficiency in fault handling and a high reliability in the operation of the cloud platform. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings constituting part of the present application are used to provide a further understanding of the present application. The exemplary embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0019] Figure 1 A flow chart showing a method for determining a delay anomaly according to an embodiment of the present application is shown;

[0020] Figure 2 A schematic diagram showing target path information of a target service component according to an embodiment of the present application;

[0021] Figure 3 A schematic diagram showing target path information of a target service component according to an embodiment of the present application;

[0022] Figure 4 A schematic diagram showing target path information of a target service component according to another embodiment of the present application is shown.

[0023] The above drawings include the following reference numerals:

[0024] 100, UI service port; 101, first target service component; 102, second target service component; 103, third target service component. DETAILED DESCRIPTION

[0025] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0026] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0028] As mentioned in the background technology, it is difficult to accurately detect delay anomalies of service components of a cloud platform in the prior art. In order to solve the above problem, in a typical implementation of the present application, a method for determining a delay anomaly, a determination device and a cloud platform are provided.

[0029] According to an embodiment of the present application, a method for determining a delay anomaly is provided.

[0030] Figure 1 is a flow chart of a method for determining a delay anomaly according to an embodiment of the present application. The above determination method is applied in a cloud platform, and the above cloud platform includes multiple service components, such as Figure 1 As shown, the determination method includes the following steps:

[0031] Step S101, based on the operation log information of each of the above service components, construct an execution path of the user request on each target service component to obtain target path information, wherein one of the above user request corresponds to one of the above target path information, and one of the above target path information includes at least two of the above target service components;

[0032] Step S102, based on the target path information of each of the user requests, classify each of the user requests to obtain a plurality of request category groups, and calculate the compensation response time of the target service component corresponding to each of the user requests when being executed based at least on the target path information in each of the request category groups, wherein one of the request category groups includes a plurality of the user requests;

[0033] Step S103: determining whether a delay failure occurs in the corresponding target service component at least based on the compensation response time of each target service component in all the request category groups.

[0034] In the above-mentioned method for determining delay anomalies, first, based on the operation log information of each of the above-mentioned service components, the execution path of the user request on each target service component is constructed to obtain the target path information of each user request; then, based on the target path information of each user request, each of the above-mentioned user requests is classified to obtain multiple request category groups, and the compensation response information when each target service component executes the corresponding user request in each request category group is calculated; finally, at least based on the compensation response time of each target service component in all of the above-mentioned request category groups, it is determined whether the corresponding target service component has a delay failure. Compared with the prior art, which only determines whether a cloud platform has a delay failure based on the log information of the service component or the resource utilization of the cloud platform, the present solution determines whether the corresponding target service component has a delay failure based at least on the compensation response time of each target service component in all request category groups. That is, the present solution can not only determine whether a cloud platform has a delay failure, but also more accurately determine which target service component has a delay failure, thereby solving the problem in the prior art that it is difficult to accurately detect delay anomalies of service components of the cloud platform, thereby ensuring that the cloud platform has a high efficiency in fault handling and a high reliability in the operation of the cloud platform.

[0035] In the actual application process, for a cloud platform (i.e., cloud computing service platform), the user inputs the user request at different UI service ports, and the cloud platform directly returns the result. In fact, the user request input by the user through the UI service port needs to be executed in sequence through multiple target service components in the cloud platform. Therefore, the operation log information of each service component in the cloud platform records the timestamp when each target service component starts and ends executing the request when a user request is input, the ID information corresponding to the executed user request, and the source component of the user request (i.e., the parent component). Therefore, based on the operation log information of each service component on the cloud platform, the execution path of each target service component when a user request is executed can be constructed. In a specific embodiment of the present application, assuming that the ID information corresponding to a user request is 00001, its target path information can be constructed as follows: Figure 2The directed graph shown in FIG. 1 is a directed graph in which the user request is input from UI service port A (i.e., UI service port 100), passes through target service component B (i.e., first target service component 101), target service component C (i.e., second target service component 102), and target service component D (i.e., third target service component 103), and its target path information is A—>B, B—>C, and B—>D.

[0036] In a specific embodiment of the present application, each user request is classified based on the target path information of each user request to obtain multiple request category groups, so that the target service components experienced by each user request in a request category group are the same, which further ensures the subsequent compensation response time based on each target service component and more accurately determines whether the corresponding target service component has a delay failure.

[0037] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0038] In order to classify each user request more simply, in an embodiment of the present application, each user request is classified based on the target path information of each user request to obtain a plurality of request category groups, including: dividing the target path information of each user request to obtain a plurality of path primitives, where the path primitives are paths formed by two adjacent target service components on the target path information, and one target path information corresponds to at least one path primitive; and classifying all the user requests with the same path primitives into one category to obtain a plurality of request category groups.

[0039] In a specific embodiment of the present application, before the target path information corresponding to each user request is divided and the path primitive is obtained, the target path information corresponding to each user request can also be graded to obtain the graded target path information. The process of grading the target path information corresponding to each user request can be: when a user inputs a user request from the UI service port, it will go through each target service component on the execution path, so the first target service component directly connected to the UI service port can directly obtain the user request. When the second target service component of the next level of the first target service component executes the user request, it needs the call command sent by the first target service component, so there is a concept of level in the call of each target service component. Therefore, the target service components at all levels can be graded according to their positions on the execution path of the corresponding user request. Specifically: for a user request, it corresponds to the execution path of a target service component, and this execution path can search for multiple unidirectional links according to the transmission direction of the user request. The level division of each target service component on each unidirectional link is independent of each other. Therefore, for a unidirectional link starting from the UI service port, the levels of its target service components are defined as follows: the target service component directly connected to the UI service port is a first-level target service component, the service component that needs to be connected to the UI service port through a first-level target service component is a second-level target service component, the target component that needs to be connected to the UI service port through a first-level target service component and a second-level target service component is a third-level target service component, the UI service port is a level 0 target service component, and so on.

[0040] In the actual application process, since each user request corresponds to the target path information one by one, that is, user requests with different target path information are definitely not user requests of the same category. Therefore, the target path information corresponding to each user request is divided to obtain path primitives. Specifically, the target path information is divided into the smallest path primitives. Figure 2 Taking the target path information shown in FIG. 1 as an example, it can be divided into three path primitives, namely A—>B, B—>C and B—>D. If the composition of the path primitives of another user request is the same as that of the user request, the two user requests can be divided into one request category group, so that each user request corresponds to one request category group, and the target service component in each user request corresponds to one level on the transmission path of one user request.

[0041] In the actual application process, for a user request, its target path information is as follows: Figure 3As shown, there is only one unidirectional path, from A—>B, B—>C, that is, from the UI service port 100 to the first target service component 101, and then to the second target service component 102. In order to more simply calculate the compensation response time of each target service component in such a case, in another embodiment of the present application, the target path information also includes the timestamp information of each target service component being called, and the timestamp information includes the start call time and the stop call time. At least based on the target path information in each request category group, the compensation response time of the target service component corresponding to each user request when being executed is calculated, including: using t j (i)=|Tb j (i)-Te j (i)|-|Tb j+1 (i)-Te j+1 (i)|, calculate the compensation response time of the target service component corresponding to each of the user requests when being executed, where t j (i) is the compensation response time on the jth target service component in the target path information corresponding to the i-th user request, Tb j (i) is the start call time of the jth target service component in the target path information corresponding to the i-th user request, Te j (i) is the stop call time of the jth target service component in the target path information corresponding to the i-th user request, Tb j+1 (i) is the start call time of the j+1th target service component in the target path information corresponding to the i-th user request, Te j+1 (i) is the stop call time of the j+1th target service component in the target path information corresponding to the i-th user request, i is less than or equal to the total number of user requests in the request category group, and j is less than or equal to the total number of target service components on the target path information.

[0042] In actual application, the value of i starts from 1 and reaches the total number of all user requests in a request category group. The value of j starts from 1 and reaches the total number of target service components in a target path information.

[0043] In a specific embodiment of the present application, Figure 3As shown, on the target path information corresponding to the user request, the compensation response time for the target service component B (the first target service component 101) is the difference between the first response time difference and the second response time difference, wherein the first response time is the absolute value of the difference between the start call time and the stop call time of the target service component B, and the second response time is the absolute value of the difference between the start call time and the stop call time of the target service component C (i.e., the second target service component 102). Of course, for the target service component C, its compensation response time can be only the absolute value of the difference between its own start call time and stop call time.

[0044] In the actual application process, for a user request, its target path information is as follows: Figure 2 As shown, there may be more than two unidirectional paths. In order to more simply calculate the compensation response time of each target service component in such a case, in another embodiment of the present application, the target path information also includes timestamp information of each target service component being called, and the timestamp information includes the start call time and the stop call time, and at least based on the target path information in each request category group, the compensation response time of the target service component corresponding to each user request when it is executed is calculated, including: determining the unidirectional link corresponding to the target path information of each user request in each request category group, one target path information corresponds to at least two unidirectional links; at least using Calculate the compensation response time on the target service component corresponding to each of the user requests when executed, wherein: is the compensation response time of the jth target service component on the kth unidirectional link in the target path information corresponding to the i-th user request, is the start calling time of the jth target service component on the kth unidirectional link in the target path information corresponding to the i-th user request, is the stop calling time of the jth target service component of the kth unidirectional link in the target path information corresponding to the i-th user request, is the start calling time of the j+1th target service component on the kth unidirectional link in the target path information corresponding to the i-th user request, The stop call time of the j+1th target service component on the kth unidirectional link in the target path information corresponding to the ith user request, i is less than or equal to the total number of user requests in the request category group, j is less than or equal to the total number of target service components on the target path information, and k is less than or equal to the total number of unidirectional links of the target path information.

[0045] In actual application, the value of i starts from 1 and reaches the total number of all user requests in a request category group. The value of j starts from 1 and reaches the total number of target service components in a target path information. The value of k starts from 1 and reaches the total number of the above-mentioned unidirectional links in a target path information.

[0046] In a specific embodiment of the present application, Figure 2 As shown, the target path information corresponding to the user request has two unidirectional paths A—>B—>C and A—>B—>D, so the formula can be used The compensation response time of target service component A, target service component B, target service component C, and target service component D are calculated respectively. However, since the target path information corresponding to the user request has two unidirectional paths A—>B—>C and A—>B—>D, when calculating the compensation response time of target service component A, target service component B, target service component C, and target service component D, the calculation can be performed from the unidirectional paths A—>B—>C and A—>B—>D respectively. In this case, the compensation response time of target service component B is calculated twice. Therefore, in this case, the compensation response time of target service component B can be taken as the average of the compensation response times on the two unidirectional paths.

[0047] In another embodiment of the present application, at least based on the above-mentioned compensation response time of each target service component in all the above-mentioned request category groups, determining whether the corresponding target service component has a delay fault includes: at least normalizing all the above-mentioned compensation response times of the target service components in each of the above-mentioned request category groups to obtain the delay fault rate of each of the above-mentioned target service components in the corresponding request category groups; based on the above-mentioned delay fault rate of the target service components in each of the above-mentioned request category groups, calculating the target delay fault rate of the corresponding target service component; based on the above-mentioned target delay fault rate and call ratio of each of the above-mentioned target service components, determining whether the corresponding target service component has a delay fault, wherein one of the above-mentioned service components corresponds to one of the above-mentioned call ratios, and the above-mentioned call ratio is the ratio of the total number of times the corresponding target service component is called to the total number of times the above-mentioned cloud platform processes the above-mentioned user requests. In this embodiment, based on the target delay fault rate and call ratio of the target service component in all request category groups, it is possible to accurately determine whether the corresponding target service component has a delay fault.

[0048] In one embodiment of the present application, at least all the above-mentioned compensation response times of the above-mentioned target service components in each of the above-mentioned request category groups are normalized to obtain the above-mentioned delay failure rate of each of the above-mentioned target service components in the corresponding above-mentioned request category groups, including: in one of the above-mentioned request category groups, all the above-mentioned compensation response times of the z-th above-mentioned target service components are normalized to obtain multiple normalized probabilities; using Calculate the above delay failure rate of the corresponding target service component, H z is the delay failure rate of the zth target service component in a request category group, P z (l) is the lth normalized probability of the zth target service component, m is the total number of the normalized probabilities of the zth target service component, and z is less than or equal to the total number of the target service components in the corresponding request category group. In this embodiment, in a request category group, all the compensation response times of a target service component in the request category group are first normalized to obtain a plurality of normalized probabilities, and then the delay failure rate of the target service component is calculated based on the normalized probability of the target service component, which can avoid the influence of singular sample data, ensure that the delay failure rate obtained is relatively accurate, and further ensure that it can be more accurately determined whether the target service component fails in the subsequent process.

[0049] In the actual application process, for a target service component, its compensation response time in the same type of user requests should be concentrated around one or several fixed values. This is because for the same type of user requests, the corresponding target service component completes such user requests in roughly the same way. Therefore, for different user requests of the same type, the compensation response time of each target service component should be concentrated around one or several fixed values. The more random and discrete this distribution is, the more likely it is that the target service component will have a delay failure. Therefore, based on this logic, the failure rate of each target service component is calculated. The specific calculation method is as follows:

[0050] For a target service component, its compensation response time under a user request has been obtained, so the compensation response time of all user requests of the target service component in a request category group can be mapped to a one-dimensional space, and the maximum compensation response time T is set max , divide the one-dimensional space into the minimum compensation response time 0 and the maximum compensation response time T maxRestrictions are imposed, all the compensation response times obtained by the target service component are normalized, and the normalized compensation response times are graded, 0 to 0.1 is graded as level 1, 0.1 to 0.2 is graded as level 2, and so on, 0 to 1 is graded into 10 levels, and P(j) represents the probability of compensation response time level j appearing in one-dimensional space. Therefore, the delay failure rate of the target service component is calculated as follows:

[0051] In the actual application process, after obtaining the delay failure rate of a target service component in a request category group, in order to eliminate the influence of singular data and further more accurately determine whether the corresponding target service component has a delay failure, in another embodiment of the present application, based on the delay failure rate of the target service component in each of the request category groups, the target delay failure rate of the corresponding target service component is calculated, including: calculating the sum of the delay failure rates of the same target service component in all the request category groups to obtain the sum of the failure rates of the corresponding target service component; calculating the quotient of the sum of the failure rates and the total number of the request category groups to obtain the target delay failure rate. In other words, based on the delay failure rate of the same target service component in each request category group, the average value of the delay failure rate of the target service component is calculated to obtain the target delay failure rate of the target service component, which can avoid the influence of the sudden change of the delay failure rate in a certain request category group, and further ensure that it can be more accurately determined whether the corresponding target service component has a delay failure.

[0052] In order to more simply determine whether the corresponding target service component has a fault, in another embodiment of the present application, based on the above-mentioned target delay failure rate and call ratio of each of the above-mentioned target service components, it is determined whether the corresponding above-mentioned target service component has a delay failure, including: calculating the product of the above-mentioned target delay failure rate and the corresponding above-mentioned call ratio of each of the above-mentioned target service components to obtain multiple target fault thresholds; when the above-mentioned target fault threshold is greater than the preset fault identification threshold, determining that the above-mentioned target service component corresponding to the above-mentioned target fault threshold has a delay failure; when the above-mentioned target fault threshold is less than or equal to the above-mentioned preset fault identification threshold, determining that the above-mentioned target service component corresponding to the above-mentioned target fault threshold has no delay failure.

[0053] In the actual application process, for the nth target service component in the cloud platform, if its own target delay failure rate is The ratio of the total number of times the target service component is called to the total number of times the cloud platform processes user requests is , and the preset fault identification threshold is φ. Then it is determined that the target service component has a delay failure; if It is determined that the target service component has no delay failure.

[0054] The embodiment of the present application also provides a device for determining a delay anomaly. It should be noted that the device for determining a delay anomaly in the embodiment of the present application can be used to execute the method for determining a delay anomaly provided in the embodiment of the present application. The device for determining a delay anomaly provided in the embodiment of the present application is introduced below.

[0055] Figure 4 is a schematic diagram of the structure of a device for determining a delay anomaly according to an embodiment of the present application. The above-mentioned determination device is applied in a cloud platform, and the above-mentioned cloud platform includes multiple service components, such as Figure 4 As shown, the determining device includes:

[0056] The construction unit 10 is used to construct the execution path of the user request on each target service component based on the operation log information of each of the above service components, and obtain the target path information, wherein one of the above user request corresponds to one of the above target path information, and one of the above target path information includes at least two of the above target service components;

[0057] The calculation unit 20 is used to classify each of the user requests based on the target path information of each of the user requests to obtain a plurality of request category groups, and calculate the compensation response time of the target service component corresponding to each of the user requests when being executed based at least on the target path information in each of the request category groups, wherein one of the request category groups includes a plurality of the user requests;

[0058] The determination unit 30 is configured to determine whether a delay failure occurs in the corresponding target service component at least based on the compensation response time of each target service component in all the request category groups.

[0059] In the above-mentioned delay anomaly determination device, the construction unit is used to construct the execution path of the user request on each target service component based on the operation log information of each of the above-mentioned service components, and obtain the target path information of each user request; the calculation unit is used to classify each of the above-mentioned user requests based on the target path information of each user request, obtain multiple request category groups, and calculate the compensation response information when each target service component executes the corresponding user request in each request category group; the determination unit is used to determine whether the corresponding target service component has a delay failure based at least on the compensation response time of each target service component in all of the above-mentioned request category groups. Compared with the prior art, which only determines whether a cloud platform has a delay failure based on the log information of the service component or the resource utilization of the cloud platform, the present solution determines whether the corresponding target service component has a delay failure based at least on the compensation response time of each target service component in all request category groups. That is, the present solution can not only determine whether a cloud platform has a delay failure, but also more accurately determine which target service component has a delay failure, thereby solving the problem in the prior art that it is difficult to accurately detect delay anomalies of service components of the cloud platform, thereby ensuring that the cloud platform has a high efficiency in fault handling and a high reliability in the operation of the cloud platform.

[0060] In the actual application process, for a cloud platform (i.e., cloud computing service platform), the user inputs the user request at different UI service ports, and the cloud platform directly returns the result. In fact, the user request input by the user through the UI service port needs to be executed in sequence through multiple target service components in the cloud platform. Therefore, the operation log information of each service component in the cloud platform records the timestamp when each target service component starts and ends executing the request when a user request is input, the ID information corresponding to the executed user request, and the source component of the user request (i.e., the parent component). Therefore, based on the operation log information of each service component on the cloud platform, the execution path of each target service component when a user request is executed can be constructed. In a specific embodiment of the present application, assuming that the ID information corresponding to a user request is 00001, its target path information can be constructed as follows: Figure 2 The directed graph shown in FIG. 1 is a directed graph in which the user request is input from UI service port A (i.e., UI service port 100), passes through target service component B (i.e., first target service component 101), target service component C (i.e., second target service component 102), and target service component D (i.e., third target service component 103), and its target path information is A—>B, B—>C, and B—>D.

[0061] In a specific embodiment of the present application, each user request is classified based on the target path information of each user request to obtain multiple request category groups, so that the target service components experienced by each user request in a request category group are the same, which further ensures the subsequent compensation response time based on each target service component and more accurately determines whether the corresponding target service component has a delay failure.

[0062] In order to classify each user request more simply, in an embodiment of the present application, the above-mentioned computing unit includes a first division module and a second division module, wherein the above-mentioned first division module is used to divide the above-mentioned target path information of each of the above-mentioned user requests to obtain multiple path primitives, and the above-mentioned path primitives are paths formed by two adjacent target service components on the above-mentioned target path information, and one above-mentioned target path information corresponds to at least one above-mentioned path primitive; the above-mentioned second division module is used to divide the above-mentioned user requests with the same above-mentioned path primitives into one category to obtain multiple above-mentioned request category groups.

[0063] In a specific embodiment of the present application, before the target path information corresponding to each user request is divided and the path primitive is obtained, the target path information corresponding to each user request can also be graded to obtain the graded target path information. The process of grading the target path information corresponding to each user request can be: when a user inputs a user request from the UI service port, it will go through each target service component on the execution path, so the first target service component directly connected to the UI service port can directly obtain the user request. When the second target service component of the next level of the first target service component executes the user request, it needs the call command sent by the first target service component, so there is a concept of level in the call of each target service component. Therefore, the target service components at all levels can be graded according to their positions on the execution path of the corresponding user request. Specifically: for a user request, it corresponds to the execution path of a target service component, and this execution path can search for multiple unidirectional links according to the transmission direction of the user request. The level division of each target service component on each unidirectional link is independent of each other. Therefore, for a unidirectional link starting from the UI service port, the levels of its target service components are defined as follows: the target service component directly connected to the UI service port is a first-level target service component, the service component that needs to be connected to the UI service port through a first-level target service component is a second-level target service component, the target component that needs to be connected to the UI service port through a first-level target service component and a second-level target service component is a third-level target service component, the UI service port is a level 0 target service component, and so on.

[0064] In the actual application process, since each user request corresponds to the target path information one by one, that is, user requests with different target path information are definitely not user requests of the same category. Therefore, the target path information corresponding to each user request is divided to obtain path primitives. Specifically, the target path information is divided into the smallest path primitives. Figure 2 Taking the target path information shown in FIG. 1 as an example, it can be divided into three path primitives, namely A—>B, B—>C and B—>D. If the composition of the path primitives of another user request is the same as that of the user request, the two user requests can be divided into one request category group, so that each user request corresponds to one request category group, and the target service component in each user request corresponds to one level on the transmission path of one user request.

[0065] In the actual application process, for a user request, its target path information is as follows: Figure 3 As shown, there is only one unidirectional path, from A—>B, B—>C, that is, from the UI service port 100 to the first target service component 101, and then to the second target service component 102. In order to more simply calculate the compensation response time of each target service component in this case, in another embodiment of the present application, the target path information also includes the timestamp information of each target service component being called, and the timestamp information includes the start call time and the stop call time. The calculation unit also includes a first calculation module for using t j (i)=|Tb j (i)-Te j (i)|-|Tb j+1 (i)-Te j+1 (i)|, calculate the compensation response time of the target service component corresponding to each of the user requests when being executed, where t j (i) is the compensation response time on the jth target service component in the target path information corresponding to the i-th user request, Tb j (i) is the start call time of the jth target service component in the target path information corresponding to the i-th user request, Te j (i) is the stop call time of the jth target service component in the target path information corresponding to the i-th user request, Tb j+1 (i) is the start call time of the j+1th target service component in the target path information corresponding to the i-th user request, Te j+1(i) is the stop call time of the j+1th target service component in the target path information corresponding to the i-th user request, i is less than or equal to the total number of user requests in the request category group, and j is less than or equal to the total number of target service components on the target path information.

[0066] In actual application, the value of i starts from 1 and reaches the total number of all user requests in a request category group. The value of j starts from 1 and reaches the total number of target service components in a target path information.

[0067] In a specific embodiment of the present application, Figure 3 As shown, on the target path information corresponding to the user request, the compensation response time for the target service component B (the first target service component 101) is the difference between the first response time difference and the second response time difference, wherein the first response time is the absolute value of the difference between the start call time and the stop call time of the target service component B, and the second response time is the absolute value of the difference between the start call time and the stop call time of the target service component C (i.e., the second target service component 102). Of course, for the target service component C, its compensation response time can be only the absolute value of the difference between its own start call time and stop call time.

[0068] In the actual application process, for a user request, its target path information is as follows: Figure 2 As shown, there may be more than two unidirectional paths. In order to more easily calculate the compensation response time of each target service component in such a case, in another embodiment of the present application, the target path information also includes the timestamp information of each target service component being called, and the timestamp information includes the start call time and the stop call time. The calculation unit also includes a first determination module and a second calculation module, wherein the first determination module is used to determine the unidirectional link corresponding to the target path information of each user request in each request category group, and one target path information corresponds to at least two unidirectional links; the second calculation module is used to use at least Calculate the compensation response time on the target service component corresponding to each of the user requests when executed, wherein: is the compensation response time of the jth target service component on the kth unidirectional link in the target path information corresponding to the i-th user request, is the start calling time of the jth target service component on the kth unidirectional link in the target path information corresponding to the i-th user request, is the stop calling time of the jth target service component of the kth unidirectional link in the target path information corresponding to the i-th user request, is the start calling time of the j+1th target service component on the kth unidirectional link in the target path information corresponding to the i-th user request, The stop call time of the j+1th target service component on the kth unidirectional link in the target path information corresponding to the ith user request, i is less than or equal to the total number of user requests in the request category group, j is less than or equal to the total number of target service components on the target path information, and k is less than or equal to the total number of unidirectional links of the target path information.

[0069] In actual application, the value of i starts from 1 and reaches the total number of all user requests in a request category group. The value of j starts from 1 and reaches the total number of target service components in a target path information. The value of k starts from 1 and reaches the total number of the above-mentioned unidirectional links in a target path information.

[0070] In a specific embodiment of the present application, Figure 2 As shown, the target path information corresponding to the user request has two unidirectional paths A—>B—>C and A—>B—>D, so the formula can be used The compensation response time of target service component A, target service component B, target service component C, and target service component D are calculated respectively. However, since the target path information corresponding to the user request has two unidirectional paths A—>B—>C and A—>B—>D, when calculating the compensation response time of target service component A, target service component B, target service component C, and target service component D, the calculation can be performed from the unidirectional paths A—>B—>C and A—>B—>D respectively. In this case, the compensation response time of target service component B is calculated twice. Therefore, in this case, the compensation response time of target service component B can be taken as the average of the compensation response times on the two unidirectional paths.

[0071] In another embodiment of the present application, the determination unit includes a processing module, a third calculation module and a second determination module, wherein the processing module is used to at least normalize all the above-mentioned compensation response times of the above-mentioned target service components in each of the above-mentioned request category groups to obtain the delay failure rate of each of the above-mentioned target service components in the corresponding request category groups; the third calculation module is used to calculate the target delay failure rate of the corresponding target service component based on the delay failure rate of the above-mentioned target service component in each of the above-mentioned request category groups; the second determination module is used to determine whether the corresponding target service component has a delay failure based on the target delay failure rate and the call ratio of each of the above-mentioned target service components, wherein one of the above-mentioned service components corresponds to one of the above-mentioned call ratios, and the above-mentioned call ratio is the ratio of the total number of times the corresponding target service component is called to the total number of times the above-mentioned cloud platform processes the above-mentioned user requests. In this embodiment, based on the target delay failure rate and the call ratio of the target service component in all request category groups, it is possible to accurately determine whether the corresponding target service component has a delay failure.

[0072] In one embodiment of the present application, the processing module includes a normalization submodule and a first calculation submodule, wherein the normalization submodule is used to normalize all the compensation response times of the zth target service component in one of the request category groups to obtain multiple normalized probabilities; the first calculation submodule is used to adopt Calculate the above delay failure rate of the corresponding target service component, H z is the delay failure rate of the zth target service component in a request category group, P z (l) is the lth normalized probability of the zth target service component, m is the total number of the normalized probabilities of the zth target service component, and z is less than or equal to the total number of the target service components in the corresponding request category group. In this embodiment, in a request category group, all the compensation response times of a target service component in the request category group are first normalized to obtain a plurality of normalized probabilities, and then the delay failure rate of the target service component is calculated based on the normalized probability of the target service component, which can avoid the influence of singular sample data, ensure that the delay failure rate obtained is relatively accurate, and further ensure that it can be more accurately determined whether the target service component fails in the subsequent process.

[0073] In the actual application process, for a target service component, its compensation response time in the same type of user requests should be concentrated around one or several fixed values. This is because for the same type of user requests, the corresponding target service component completes such user requests in roughly the same way. Therefore, for different user requests of the same type, the compensation response time of each target service component should be concentrated around one or several fixed values. The more random and discrete this distribution is, the more likely it is that the target service component will have a delay failure. Therefore, based on this logic, the failure rate of each target service component is calculated. The specific calculation method is as follows:

[0074] For a target service component, its compensation response time under a user request has been obtained, so the compensation response time of all user requests of the target service component in a request category group can be mapped to a one-dimensional space, and the maximum compensation response time T is set max , divide the one-dimensional space into the minimum compensation response time 0 and the maximum compensation response time T max Restrictions are imposed, all the compensation response times obtained by the target service component are normalized, and the normalized compensation response times are graded, 0 to 0.1 is graded as level 1, 0.1 to 0.2 is graded as level 2, and so on, 0 to 1 is graded into 10 levels, and P(j) represents the probability of compensation response time level j appearing in one-dimensional space. Therefore, the delay failure rate of the target service component is calculated as follows:

[0075] In the actual application process, after obtaining the delay failure rate of a target service component in a request category group, in order to eliminate the influence of singular data and further more accurately determine whether the corresponding target service component has a delay failure, in another embodiment of the present application, the third calculation module includes a second calculation submodule and a third calculation submodule, wherein the second calculation submodule is used to calculate the sum of the delay failure rates of the same target service component in all the request category groups to obtain the sum of the failure rates of the corresponding target service component; the third calculation submodule is used to calculate the quotient of the sum of the failure rates and the total number of the request category groups to obtain the target delay failure rate. That is to say, based on the delay failure rates of the same target service component in each request category group, the average value of the delay failure rate of the target service component is calculated to obtain the target delay failure rate of the target service component, which can avoid the influence of the sudden change of the delay failure rate in a certain request category group, and further ensure that it can be more accurately determined whether the corresponding target service component has a delay failure.

[0076] In order to more simply determine whether the corresponding target service component has a fault, in another embodiment of the present application, the above-mentioned second determination module includes a fourth calculation submodule, a first determination submodule and a second determination submodule, wherein the above-mentioned fourth calculation submodule is used to calculate the product of the above-mentioned target delay failure rate and the corresponding above-mentioned call ratio of each of the above-mentioned target service components to obtain multiple target fault thresholds; the above-mentioned first determination submodule is used to determine that the above-mentioned target service component corresponding to the above-mentioned target fault threshold has a delay fault when the above-mentioned target fault threshold is greater than the preset fault identification threshold; the above-mentioned second determination submodule is used to determine that the above-mentioned target service component corresponding to the above-mentioned target fault threshold has no delay fault when the above-mentioned target fault threshold is less than or equal to the above-mentioned preset fault identification threshold.

[0077] In the actual application process, for the nth target service component in the cloud platform, if its own target delay failure rate is The ratio of the total number of times the target service component is called to the total number of times the cloud platform processes user requests is , and the preset fault identification threshold is φ. Then it is determined that the target service component has a delay failure; if It is determined that the target service component has no delay failure.

[0078] The above-mentioned delay anomaly determination device includes a processor and a memory. The above-mentioned construction unit, calculation unit and determination unit are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.

[0079] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set to solve the problem of the difficulty in accurately detecting the delay anomaly of the service components of the cloud platform in the prior art by adjusting the kernel parameters.

[0080] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0081] An embodiment of the present invention provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the method for determining the delay exception is implemented.

[0082] An embodiment of the present invention provides a processor, and the processor is used to run a program, wherein the method for determining the delay exception is executed when the program is running.

[0083] In a typical embodiment of the present application, a cloud platform is further provided, which includes a delay anomaly determination device, and the above-mentioned determination device is used to execute any one of the above-mentioned delay anomaly determination methods.

[0084] The above-mentioned cloud platform includes a delay anomaly determination device, and the above-mentioned determination device is used to execute any one of the above-mentioned delay anomaly determination methods. In the above-mentioned determination method, first, based on the operation log information of each of the above-mentioned service components, the execution path of the user request on each target service component is constructed to obtain the target path information of each user request; then, based on the target path information of each user request, each of the above-mentioned user requests is classified to obtain multiple request category groups, and the compensation response information of each target service component in each request category group when executing the corresponding user request is calculated; finally, at least based on the compensation response time of each target service component in all of the above-mentioned request category groups, it is determined whether the corresponding target service component has a delay failure. Compared with the prior art, which only determines whether a cloud platform has a delay failure based on the log information of the service component or the resource utilization of the cloud platform, the present solution determines whether the corresponding target service component has a delay failure based at least on the compensation response time of each target service component in all request category groups. That is, the present solution can not only determine whether a cloud platform has a delay failure, but also more accurately determine which target service component has a delay failure, thereby solving the problem in the prior art that it is difficult to accurately detect delay anomalies of service components of the cloud platform, thereby ensuring that the cloud platform has a high efficiency in fault handling and a high reliability in the operation of the cloud platform.

[0085] An embodiment of the present invention provides a device, the device including a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, at least the following steps are implemented:

[0086] Step S101, based on the operation log information of each of the above service components, construct an execution path of the user request on each target service component to obtain target path information, one of the above user request corresponds to one of the above target path information, and one of the above target path information includes at least two of the above target service components;

[0087] Step S102, based on the target path information of each of the user requests, classify each of the user requests to obtain a plurality of request category groups, and calculate the compensation response time of the target service component corresponding to each of the user requests when being executed based at least on the target path information in each of the request category groups, wherein one of the request category groups includes a plurality of the user requests;

[0088] Step S103: determining whether a delay failure occurs in the corresponding target service component at least based on the compensation response time of each target service component in all the request category groups.

[0089] The devices in this article can be servers, PCs, PADs, mobile phones, etc.

[0090] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing at least the following method steps:

[0091] Step S101, based on the operation log information of each of the above service components, construct an execution path of the user request on each target service component to obtain target path information, wherein one of the above user request corresponds to one of the above target path information, and one of the above target path information includes at least two of the above target service components;

[0092] Step S102, based on the target path information of each of the user requests, classify each of the user requests to obtain a plurality of request category groups, and calculate the compensation response time of the target service component corresponding to each of the user requests when being executed based at least on the target path information in each of the request category groups, wherein one of the request category groups includes a plurality of the user requests;

[0093] Step S103: determining whether a delay failure occurs in the corresponding target service component at least based on the compensation response time of each target service component in all the request category groups.

[0094] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0095] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the above-mentioned units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

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

[0097] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0098] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0099] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:

[0100] 1) In the method for determining delay anomalies of the present application, first, based on the operation log information of each of the above-mentioned service components, the execution path of the user request on each target service component is constructed to obtain the target path information of each user request; then, based on the target path information of each user request, each of the above-mentioned user requests is classified to obtain multiple request category groups, and the compensation response information of each target service component in each request category group when executing the corresponding user request is calculated; finally, based at least on the compensation response time of each target service component in all of the above-mentioned request category groups, it is determined whether the corresponding target service component has a delay failure. Compared with the prior art, which only determines whether a cloud platform has a delay failure based on the log information of the service component or the resource utilization of the cloud platform, the present solution determines whether the corresponding target service component has a delay failure based at least on the compensation response time of each target service component in all request category groups. That is, the present solution can not only determine whether a cloud platform has a delay failure, but also more accurately determine which target service component has a delay failure, thereby solving the problem in the prior art that it is difficult to accurately detect delay anomalies of service components of the cloud platform, thereby ensuring that the cloud platform has a high efficiency in fault handling and a high reliability in the operation of the cloud platform.

[0101] 2) In the delay anomaly determination device of the present application, the construction unit is used to construct the execution path of the user request on each target service component based on the operation log information of each of the above-mentioned service components, and obtain the target path information of each user request; the calculation unit is used to classify each of the above-mentioned user requests based on the target path information of each user request, obtain multiple request category groups, and calculate the compensation response information when each target service component executes the corresponding user request in each request category group; the determination unit is used to determine whether the corresponding target service component has a delay failure based at least on the compensation response time of each target service component in all of the above-mentioned request category groups. Compared with the prior art, which only determines whether a cloud platform has a delay failure based on the log information of the service component or the resource utilization of the cloud platform, the present solution determines whether the corresponding target service component has a delay failure based at least on the compensation response time of each target service component in all request category groups. That is, the present solution can not only determine whether a cloud platform has a delay failure, but also more accurately determine which target service component has a delay failure, thereby solving the problem in the prior art that it is difficult to accurately detect delay anomalies of service components of the cloud platform, thereby ensuring that the cloud platform has a high efficiency in fault handling and a high reliability in the operation of the cloud platform.

[0102] 3) The cloud platform of the present application includes a delay anomaly determination device, and the above-mentioned determination device is used to execute any one of the above-mentioned delay anomaly determination methods. In the above-mentioned determination method, first, based on the operation log information of each of the above-mentioned service components, the execution path of the user request on each target service component is constructed to obtain the target path information of each user request; then, based on the target path information of each user request, each of the above-mentioned user requests is classified to obtain multiple request category groups, and the compensation response information of each target service component in each request category group when executing the corresponding user request is calculated; finally, at least based on the compensation response time of each target service component in all of the above-mentioned request category groups, it is determined whether the corresponding target service component has a delay failure. Compared with the prior art, which only determines whether a cloud platform has a delay failure based on the log information of the service component or the resource utilization of the cloud platform, the present solution determines whether the corresponding target service component has a delay failure based at least on the compensation response time of each target service component in all request category groups. That is, the present solution can not only determine whether a cloud platform has a delay failure, but also more accurately determine which target service component has a delay failure, thereby solving the problem in the prior art that it is difficult to accurately detect delay anomalies of service components of the cloud platform, thereby ensuring that the cloud platform has a high efficiency in fault handling and a high reliability in the operation of the cloud platform.

[0103] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A method for determining delay anomaly, characterized in that: The determination method is applied in a cloud platform, the cloud platform includes multiple service components, and the determination method includes: Based on the operation log information of each of the service components, construct an execution path of the user request on each target service component to obtain target path information, wherein one user request corresponds to one target path information, and one target path information includes at least two target service components; Based on the target path information of each user request, classify each user request to obtain a plurality of request category groups, and calculate the compensation response time of the target service component corresponding to each user request when it is executed based at least on the target path information in each request category group, wherein one request category group includes a plurality of user requests; At least based on the compensated response time of each target service component in all the request category groups, determining whether a delay failure occurs in the corresponding target service component; The target path information also includes timestamp information of each target service component being called, the timestamp information including a start calling time and a stop calling time, and calculating the compensation response time of the target service component corresponding to each user request when being executed based at least on each target path information in each request category group, including: Use t j (i)=|Tb j (i)-Te j (i)|-|Tb j+1 (i)-Te j+1 (i)|, calculate the compensation response time of the target service component corresponding to each user request when it is executed, where t j (i) is the compensation response time on the jth target service component in the target path information corresponding to the i-th user request, Tb j (i) is the start call time of the jth target service component in the target path information corresponding to the i-th user request, Te j (i) is the stop call time of the jth target service component in the target path information corresponding to the i-th user request, Tb j+1 (i) is the start call time of the j+1th target service component in the target path information corresponding to the i-th user request, Te j+1 (i) is the stop call time of the j+1th target service component in the target path information corresponding to the i-th user request, i is less than or equal to the total number of user requests in a request category group, and j is less than or equal to the total number of target service components on the target path information.

2. The determination method according to claim 1, characterized in that: Based on the target path information of each user request, each user request is classified to obtain a plurality of request category groups, including: Dividing the target path information requested by each user to obtain a plurality of path primitives, wherein the path primitive is a path formed by two adjacent target service components on the target path information, and one target path information corresponds to at least one path primitive; All the user requests with the same path primitives are classified into one category to obtain a plurality of request category groups.

3. The determination method according to claim 1, characterized in that: The target path information also includes timestamp information of each target service component being called, the timestamp information including a start calling time and a stop calling time, and calculating the compensation response time of the target service component corresponding to each user request when being executed based at least on each target path information in each request category group, including: Determine the unidirectional link corresponding to the target path information of each user request in each request category group, where one target path information corresponds to at least two unidirectional links; At least adopt Calculate the compensation response time on the target service component corresponding to each of the user requests when being executed, wherein: is the compensation response time of the jth target service component on the kth unidirectional link in the target path information corresponding to the i-th user request, is the start calling time of the jth target service component on the kth unidirectional link in the target path information corresponding to the i-th user request, is the stop calling time of the jth target service component of the kth unidirectional link in the target path information corresponding to the i-th user request, is the start calling time of the j+1th target service component on the kth unidirectional link in the target path information corresponding to the i-th user request, The stop call time of the j+1th target service component on the kth unidirectional link in the target path information corresponding to the ith user request, i is less than or equal to the total number of user requests in a request category group, j is less than or equal to the total number of target service components on a target path information, and k is less than or equal to the total number of unidirectional links of a target path information.

4. The determination method according to any one of claims 1 to 3, characterized in that: At least based on the compensation response time of each target service component in all the request category groups, determining whether the corresponding target service component has a delay failure includes: Normalizing at least all the compensation response times of the target service components in each of the request category groups to obtain a delay failure rate of each of the target service components in the corresponding request category group; Based on the delay failure rate of the target service component in each of the request category groups, calculating a target delay failure rate of the corresponding target service component; Based on the target delay failure rate and call ratio of each target service component, determine whether the corresponding target service component has a delay failure, wherein one service component corresponds to one call ratio, and the call ratio is the ratio of the total number of times the corresponding target service component is called to the total number of times the cloud platform processes the user requests.

5. The determination method according to claim 4, characterized in that: Normalizing at least all the compensation response times of the target service components in each of the request category groups to obtain the delay failure rate of each of the target service components in the corresponding request category group includes: In one of the request category groups, normalizing all the compensation response times of the z-th target service component to obtain a plurality of normalized probabilities; use Calculate the delay failure rate of the corresponding target service component, H z is the delay failure rate of the zth target service component in a request category group, P z (l) is the lth normalized probability of the zth target service component, m is the total number of the normalized probabilities of the zth target service component, and z is less than or equal to the total number of the target service components in the corresponding request category group.

6. The determination method according to claim 4, characterized in that: Calculating a target delay failure rate of the corresponding target service component based on the delay failure rate of the target service component in each of the request category groups includes: Calculating the sum of the delay failure rates of the same target service component in all the request category groups to obtain the sum of the failure rates of the corresponding target service component; The target delay failure rate is obtained by calculating the quotient of the total failure rate and the total number of the request category groups.

7. The determination method according to claim 4, characterized in that: Determining whether a delay failure occurs in the corresponding target service component based on the target delay failure rate and the call ratio of each target service component includes: Calculate the product of the target delay failure rate of each target service component and the corresponding call ratio to obtain multiple target failure thresholds; When the target fault threshold is greater than a preset fault identification threshold, determining that a delay fault occurs in the target service component corresponding to the target fault threshold; When the target fault threshold is less than or equal to the preset fault identification threshold, it is determined that the target service component corresponding to the target fault threshold has no delay fault.

8. A device for determining delay anomaly, characterized in that: The determining device is applied in a cloud platform, the cloud platform includes a plurality of service components, and the determining device includes: A construction unit, configured to construct an execution path of a user request on each target service component based on the operation log information of each service component, and obtain target path information, wherein one user request corresponds to one target path information, and one target path information includes at least two target service components; a calculation unit, configured to classify each of the user requests based on the target path information of each of the user requests to obtain a plurality of request category groups, and to calculate a compensation response time of the target service component corresponding to each of the user requests when being executed based at least on the target path information of each of the request category groups, wherein one of the request category groups includes a plurality of the user requests; a determining unit, configured to determine whether a delay fault occurs in the corresponding target service component at least based on the compensated response time of each target service component in all the request category groups; The target path information also includes timestamp information of each target service component being called, wherein the timestamp information includes the start time and the stop time of the call. The calculation unit also includes a first calculation module for using t j (i)=|Tb j (i)-Te j (i)|-|Tb j+1 (i)-Te j+1 (i)|, calculate the compensation response time of the target service component corresponding to each user request when it is executed, where t j (i) is the compensation response time on the jth target service component in the target path information corresponding to the i-th user request, Tb j (i) is the start call time of the jth target service component in the target path information corresponding to the i-th user request, Te j (i) is the stop call time of the jth target service component in the target path information corresponding to the i-th user request, Tb j+1 (i) is the start call time of the j+1th target service component in the target path information corresponding to the i-th user request, Te j+1 (i) is the stop call time of the j+1th target service component in the target path information corresponding to the i-th user request, i is less than or equal to the total number of user requests in a request category group, and j is less than or equal to the total number of target service components on the target path information.

9. A cloud platform, characterized in that: include: A device for determining a delay anomaly, wherein the device is used to execute the method for determining a delay anomaly as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Cluster service process exception handling method and device and medium

    CN115098224A

  • Active and passive dataplane performance monitoring of service function chaining

    US20160099853A1