Cloud environment fault handling method and apparatus, and computer-readable storage medium
By applying Bayesian probability theory to process fault alarm information in the cloud environment, fault types can be quickly identified and problems can be located. This solves the problems of excessive team response and high manpower consumption caused by the lack of transparency in fault handling in traditional methods, and improves the availability of cloud services.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- TENCENT TECHNOLOGY (SHENZHEN) CO LTD
- Filing Date
- 2025-09-29
- Publication Date
- 2026-06-04
AI Technical Summary
In traditional fault handling methods, fault alarm information in cloud environments is not transparent, making it impossible to determine the fault type in a timely manner. This leads to joint responses from various business teams, resulting in long problem localization times, high manpower consumption, and impact on business service availability.
By acquiring fault alarm information from the current cloud environment and pre-stored historical fault alarm information, the conditional probability and prior probability are calculated using Bayesian probability theory to determine the posterior probability of the current fault alarm information, thereby filtering out the corresponding fault categories and sending the alarm information to the corresponding business servers.
It enables rapid and accurate identification of fault types, reduces ineffective team responses, lowers manpower consumption, and improves the availability of business services.
Smart Images

Figure CN2025125110_04062026_PF_FP_ABST
Abstract
Description
Cloud environment fault handling methods, devices and computer-readable storage media
[0001] Related applications
[0002] This application claims priority to Chinese patent application filed on November 27, 2024, with application number 202411718980.9, entitled "Method, Apparatus and Computer-Readable Storage Medium for Handling Faults in Cloud Environment", the entire contents of which are incorporated herein by reference. Technical Field
[0003] This application relates to the field of data processing, specifically to a cloud environment fault handling method, apparatus, and computer-readable storage medium. Background Technology
[0004] Cloud Dedicated Cluster (CDC), as a new type of infrastructure-level distributed cloud product, extends the centralized public cloud environment into a near-field service that can be deployed in the user's data center. It combines the advantages of both public cloud and local internet data center (IDC), allowing users to utilize the rich capabilities of the public cloud with localized latency and data security. CDC deploys localized computing power in the user's data center using an integrated rack, with resources connected to nearby public cloud regions for unified management. Users can manage CDC resources through existing public cloud tools (console, application programming interfaces, etc.).
[0005] The Control Center (CDC) can reuse public cloud capabilities. Although deployed in a customer's data center, the CDC can connect to the public cloud's control service via a management channel. The public cloud can then control the CDC to perform a series of operations by issuing signaling commands, and the CDC can also interact with the public cloud control center by uploading signaling commands. Because the CDC introduces an additional control channel, its instability increases, frequently leading to various alarm issues. For example, when the control channel is disconnected, the CDC may be unable to send and receive control signaling commands, causing customers to be unable to use all the capabilities of the CDC. Therefore, it is crucial to analyze the fault types corresponding to various alarm messages promptly and accurately, and then notify the relevant business teams for remediation. The control channel is the channel for signaling interaction between the local dedicated cluster (CDC) and the public cloud control service. The CDC connects to the public cloud's control service through this channel, and the public cloud can control the CDC to perform a series of operations by issuing signaling commands, and the CDC can also interact with the public cloud control center by uploading signaling commands. Control signaling consists of the instruction information used for interaction between the public cloud control service and the local dedicated cluster (CDC). The public cloud center controls the CDC to perform a series of operations by issuing control signals, while the CDC interacts with the public cloud center by uploading control signals. This is the basis for local dedicated clusters to reuse various capabilities on the public cloud.
[0006] However, in traditional fault handling methods, fault alarm information is relatively independent and opaque. When an alarm occurs, the fault type cannot be determined in time, so the business team corresponding to the fault type cannot be notified in time to fix it. Instead, all business teams have to be mobilized to respond together, which results in long problem localization time, many invalid responses, and high manpower consumption, which greatly affects the availability of business services. Summary of the Invention
[0007] This application provides a cloud environment fault handling method, apparatus, and computer-readable storage medium.
[0008] A cloud environment fault handling method includes:
[0009] Obtain current fault alarm information of the current cloud environment, wherein the current fault alarm information includes at least one operating status data;
[0010] Obtain a pre-stored set of fault alarm information, wherein the set of fault alarm information includes at least one historical fault alarm information of the current cloud environment;
[0011] Obtain the conditional probability set and prior probability set corresponding to the historical fault alarm information. The conditional probability set includes the conditional probability corresponding to each category of the operating status data. The prior probability set includes the prior probability corresponding to each preset fault category.
[0012] Based on the category of the running status data, the conditional probabilities corresponding to the running status data are selected from the conditional probability set;
[0013] Based on the conditional probability and the prior probability, determine the posterior probability that the current fault alarm information belongs to each of the preset fault categories;
[0014] Based on the posterior probability, the selected fault category corresponding to the current fault alarm information is selected from the preset fault categories, and the current fault alarm information is sent to the service server corresponding to the selected fault category.
[0015] Accordingly, embodiments of this application provide a cloud environment fault handling device, including:
[0016] The first acquisition unit is used to acquire the current fault alarm information of the current cloud environment, wherein the current fault alarm information includes at least one operating status data;
[0017] The second acquisition unit is used to acquire a pre-stored set of fault alarm information, wherein the set of fault alarm information includes at least one historical fault alarm information of the current cloud environment;
[0018] The third acquisition unit is used to acquire the conditional probability set and the prior probability set corresponding to the historical fault alarm information. The conditional probability set includes the conditional probability corresponding to each category of the operating status data, and the prior probability set includes the prior probability corresponding to each preset fault category.
[0019] The filtering unit is used to filter out the conditional probabilities corresponding to the running status data from the conditional probability set based on the category of the running status data;
[0020] The determining unit is configured to determine the posterior probability that the current fault alarm information belongs to each of the preset fault categories based on the conditional probability and the prior probability.
[0021] The sending unit is configured to, based on the posterior probability, filter out the selected fault category corresponding to the current fault alarm information from the preset fault categories, and send the current fault alarm information to the service server corresponding to the selected fault category.
[0022] Furthermore, this application also provides an electronic device, including a processor and a memory, wherein the memory stores an application program, and the processor is used to run the application program in the memory to execute the cloud environment fault handling method provided in this application.
[0023] Furthermore, embodiments of this application also provide a computer-readable storage medium storing a plurality of instructions adapted for loading by a processor to execute the steps in the cloud environment fault handling method provided in embodiments of this application.
[0024] Furthermore, this application also provides a computer program product, including a computer program or instructions, which, when executed by a processor, implement the steps in the cloud environment fault handling method provided in this application.
[0025] Details of one or more embodiments of this application are set forth in the following drawings and description. Other features, objects, and advantages of this application will become apparent from the specification, drawings, and claims. Attached Figure Description
[0026] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the published drawings without creative effort.
[0027] Figure 1 is a schematic diagram of the deployment of a distributed cloud environment provided in an embodiment of this application;
[0028] Figure 2 is a schematic diagram of the traditional fault handling process;
[0029] Figure 3 is a schematic diagram of the application scenario of the cloud environment fault handling method provided in the embodiment of this application;
[0030] Figure 4 is a flowchart illustrating the cloud environment fault handling method provided in an embodiment of this application;
[0031] Figure 5 is a schematic diagram of the cloud environment fault handling process provided in the embodiments of this application, starting from historical fault alarm information;
[0032] Figure 6 is a schematic diagram of a pre-stored set of fault alarm information provided in an embodiment of this application;
[0033] Figure 7 is a schematic diagram of the cloud environment fault handling process provided in the embodiment of this application;
[0034] Figure 8 is another flowchart illustrating the cloud environment fault handling method provided in an embodiment of this application.
[0035] Figure 9 is a schematic diagram of the cloud environment fault handling device provided in an embodiment of this application;
[0036] Figure 10 is a schematic diagram of the structure of the electronic device provided in an embodiment of this application. Detailed Implementation
[0037] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0038] This application provides a cloud environment fault handling method, apparatus, and computer-readable storage medium. The cloud environment fault handling apparatus can be integrated into an electronic device, which can be a server corresponding to a cloud resource provider. For ease of distinction, the server corresponding to the cloud resource provider can be referred to as a cloud server. The cloud resource provider is the entity providing cloud services, responsible for the operation, governance, updates, and evolution of public cloud services. It can distribute public cloud services to different physical locations and deploy public cloud computing, storage, network, and other resource facilities corresponding to distributed cloud products in a hardware and software integrated manner to the customer's local data center.
[0039] A cloud server can be a server that provides basic cloud computing services such as cloud environment, cloud database, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), and big data and artificial intelligence platforms. A cloud server can be a standalone physical server or a server cluster or distributed system composed of multiple physical servers.
[0040] Public cloud resources can be divided into multiple regions based on geographical location. A region refers to a physical data center; each region is an independent physical data center, and the internal networks of different regions are not interconnected. Figure 1 shows a deployment diagram of the distributed cloud environment provided in this application embodiment. As shown in Figure 1, for any region of the public cloud, it includes the cloud servers corresponding to that region. This region can have multiple data centers, each of which is an available zone (AZ), such as Available Zone 1, Available Zone 2, ..., Available Zone n (n is a natural number greater than 2). An available zone can only belong to one region, and each available zone is independent of others, for example, having its own independent network and power supply system. Although each available zone has its own independent network (at the high availability level), at the network level, available zones within each region can communicate with each other.
[0041] Distributed cloud is a cloud computing service where cloud resource providers distribute public cloud services to different physical locations, with the provider centrally responsible for the operation, governance, updates, and evolution of these services. As shown in Figure 1, cloud resource providers can deploy public cloud computing, storage, and network resources corresponding to distributed cloud products in a hardware-software integrated manner to the customer's local data center (for clarity, distributed cloud products deployed in the customer's local data center can be called local dedicated clusters, or CDCs for short), thereby meeting the customer's business needs for data security and low latency. Because distributed cloud products reuse the capabilities of public clouds, their management and control are the same as those on the public cloud. Although the distributed cloud product is deployed at the customer's site (i.e., the customer's data center), it connects to the management and control services of the public cloud center through a management channel. The public cloud center can control the distributed cloud product to perform a series of operations by issuing signaling commands, and the distributed cloud product can also interact with the public cloud center's management and control by uploading signaling commands. The local dedicated cluster deployed at the customer's site can directly interconnect with the customer's local internet data center, allowing users to utilize the rich capabilities of the public cloud with localized latency and data security.
[0042] Virtual Private Networks (VPNs) serve as a management channel connecting public and distributed cloud products. Based on network tunneling technology, they establish a secure and reliable encrypted channel over the internet, enabling resource connectivity between local data centers, office networks, mobile clients, and cloud products provided by cloud resource providers. In distributed cloud scenarios, the local dedicated cluster deployed at the customer site shares a cloud central control system with the adjacent public cloud region. This cloud central control can be implemented through cloud servers and uses the VPN for control traffic transmission. Control traffic is primarily used for issuing and sending control signaling, forming the basis for the local dedicated cluster to reuse various capabilities on the public cloud. All public cloud capabilities require signaling to be issued through the cloud central control system, while simultaneously, the local dedicated cluster also sends signaling to the cloud central control system.
[0043] Cloud services can provide various sub-services for local dedicated clusters, each with its own dedicated business team. For example, these sub-services may include Virtual Network Connection Service (VPN service), Cloud Disk Service (CBS service), Cloud Virtual Machine Service (CVM service), Cloud Object Storage Service (COS service), and so on. Correspondingly, the business team corresponding to the VPN service can be called the VPN business team, the CBS service the CBS business team, the CVM service the CVM business team, and the COS service the COS business team. These business teams can be collectively referred to as the local dedicated cluster's associated team (CDC associated team for short).
[0044] Virtual network connection service can be understood as a technical service that establishes a secure connection on a public network. It establishes communication between the client's local server and the public cloud server by using encryption protocols and authentication mechanisms, and performs communication encryption and protection.
[0045] Cloud Block Storage (CBS) service allows users to create, mount, and manage hard drives in the cloud.
[0046] Cloud Virtual Machines (CVMs) are general-purpose cloud servers, suitable for applications of all sizes, including web applications, big data processing, and artificial intelligence. CVM services offer a wide range of configuration options, allowing for customization based on user needs. This includes adjusting the quantity and size of resources such as CPUs, memory, and storage, providing high flexibility and enabling users to configure resources more precisely according to their business requirements.
[0047] Tencent Cloud Object Storage (COS) is a secure, reliable, low-cost, and highly scalable cloud-based storage service. It can store various unstructured data, including images, videos, audio, and text. Supporting standard Hypertext Transfer Protocol / Hypertext Secure Transfer Protocol (HTTP / HTTPS), COS allows data uploading, downloading, and management via Application Programming Interface (API), Software Development Kit (SDK), and a console. COS also provides multiple security measures, including data protection, backup, recovery, and data transmission encryption, ensuring the security and reliability of user data. Furthermore, it supports automated and intelligent data lifecycle management, helping users reduce data storage costs. COS is a crucial component of storage services in the cloud computing field, widely used in cloud storage, backup, archiving, and content distribution scenarios.
[0048] As mentioned earlier, the introduction of additional management channels in the local dedicated cluster increases its instability, and various alarm problems often occur during cloud service. However, in the traditional fault handling method, alarm information is relatively independent and opaque. When alarm information occurs, it is impossible to determine the fault type in time. It is necessary to call up all business teams to respond jointly. The problem location time is long, there are many invalid responses, and the manpower consumption is large, which greatly affects the availability of business services. For example, Figure 2 shows a schematic diagram of the traditional fault handling method. Specifically, it can be as follows: (1) If the CBS business team finds that the task execution has failed when performing cloud disk snapshot rollback, it triggers an alarm for the team; (2) After the alarm is received by the operation and maintenance personnel of the team, it is found that it is not a CBS service problem. It is necessary to call up all teams under the local dedicated cluster (CDC) product for joint investigation. In the investigation process, start with CBS problems. If it is found that the problem is caused by calling the COS service, and the COS service is located to find that the problem is caused by calling the CVM service, then ask The problem will be transferred to the CVM team; (3) The CVM business team found that the network was not working and first suspected that the VPN connection was disconnected. They then got involved with the VPN team to confirm, but the result was that the VPN connection was normal; (4) The CVM business team could only continue to check the logs to investigate and finally found that the corresponding host machine was unreachable by ping; (5) The CVM business team informed the relevant teams of the CDC of the final investigation results; (6) The relevant teams of the CDC received the conclusion and finally passed it to the CBS business team. The CBS business team waited for the host machine ping unreachable problem to be fixed and blocked the relevant alarms.
[0049] As shown in Figure 2, the information transmission chain reveals that the service became unavailable due to the CVM team's host machine being unreachable via ping. In this situation, the CVM business team should have received the alarm and resolved the issue promptly; other related business teams would not have needed to respond and could have simply waited for the CVM team to fix the problem. However, due to the broken information chain, each business team, upon receiving the alarm for their own service, mobilized all related product teams under the CDC and systematically located the problem through the service chain. This resulted in significant manpower expenditure for both the business and CDC teams. This manpower expenditure could have been avoided, but because the non-problem teams discovered the alarm first, the investigation chain was too long, causing the problem teams to get involved too late and consuming excessive manpower, which is extremely detrimental to the live network operation and maintenance.
[0050] Figure 3 illustrates an application scenario of the cloud environment fault handling method provided in this embodiment. As shown in Figure 3, to solve the above problems, the cloud server corresponding to the public cloud region of the cloud resource provider and the local server corresponding to the local dedicated cluster of the customer site can be connected through a virtual private network (VPN). This allows the computing, storage, and network resources of the public cloud to be deployed in a hardware and software integrated manner in the customer's local data center, meeting the customer's business needs for data security and low latency. Furthermore, the public cloud region can also include multiple business servers. The business servers establish communication connections with the cloud servers. The business servers can be understood as the servers corresponding to each business team that provide segmented services to the local dedicated cluster during the cloud service process in the cloud environment. For example, segmented services may include virtual network connection service (VPN service), cloud disk service (CBS service), cloud virtual machine service (CVM service), cloud object storage service (COS service), etc.
[0051] In this embodiment, the cloud server can obtain current fault alarm information of the current cloud environment, which includes at least one operational status data; obtain a pre-stored set of fault alarm information, which includes at least one historical fault alarm information of the current cloud environment; obtain a set of conditional probabilities and a set of prior probabilities corresponding to the historical fault alarm information, where the set of conditional probabilities includes the conditional probability corresponding to the category of each operational status data, and the set of prior probabilities includes the prior probability corresponding to each preset fault category; based on the category of the operational status data, filter out the conditional probabilities corresponding to the operational status data from the set of conditional probabilities; determine the posterior probability that the current fault alarm information belongs to each preset fault category based on the conditional probability and the prior probability; based on the posterior probability, filter out the selected fault category corresponding to the current fault alarm information from the preset fault categories, and send the current fault alarm information to the business server corresponding to the selected fault category.
[0052] The following sections provide detailed descriptions of each example. It should be noted that the order in which the embodiments are described is not intended to limit the preferred order of the embodiments.
[0053] This embodiment will be described from the perspective of a cloud environment fault handling device, which can be integrated into an electronic device, which can be a cloud server.
[0054] A cloud environment fault handling method includes: acquiring current fault alarm information of the current cloud environment, the current fault alarm information including at least one operational status data; acquiring a pre-stored fault alarm information set, the fault alarm information set including at least one historical fault alarm information of the current cloud environment; acquiring a conditional probability set and a prior probability set corresponding to the historical fault alarm information, the conditional probability set including the conditional probability corresponding to the category of each operational status data, and the prior probability set including the prior probability corresponding to each preset fault category; based on the category of the operational status data, filtering out the conditional probabilities corresponding to the operational status data from the conditional probability set; determining the posterior probability that the current fault alarm information belongs to each preset fault category based on the conditional probability and the prior probability; based on the posterior probability, filtering out the selected fault category corresponding to the current fault alarm information from the preset fault categories, and sending the current fault alarm information to the business server corresponding to the selected fault category.
[0055] Figure 4 shows a flowchart of the cloud environment fault handling method provided in this embodiment of the application. As shown in Figure 4, the specific flow of the cloud environment fault handling method is as follows:
[0056] 101. Obtain the current fault alarm information of the current cloud environment. The current fault alarm information includes at least one running status data.
[0057] The current cloud environment can be understood as the cloud environment in which the cloud services provided to the customer's site are located at the current moment.
[0058] The current fault alarm information can be understood as alarm information initiated when an anomaly occurs during the operation of the cloud services provided by the current cloud environment. In this embodiment, there are multiple ways to obtain the current fault alarm information of the current cloud environment. For example, the cloud server can detect the current cloud environment during operation, and generate current fault alarm information based on the detected fault. Alternatively, the business servers corresponding to each business team can also detect the current cloud environment during operation, generate current fault alarm information based on the detected fault, and send the current fault alarm information to the cloud server, which can then obtain the current fault alarm information.
[0059] The current fault alarm information may include at least one operational status data point. Operational status data can be understood as the status data corresponding to each evaluation indicator reflecting the current cloud environment status. The evaluation indicators reflecting the current cloud environment status can be understood as the categories of operational status data. For example, evaluation indicators may include fault scope, switch packet forwarding rate, VPN slave machine traffic rate, host machine traffic rate, etc. In other words, the categories of operational status data can be divided into fault scope, switch packet forwarding rate, VPN slave machine traffic rate, host machine traffic rate, etc.
[0060] The fault range can be understood as the percentage of services experiencing failures (i.e., the number of failures) out of the total number of services in the current cloud environment. For ease of distinction, the fault range can be represented by a1. The value of the fault range can be between 0 and 100; the larger the ratio, the larger the fault range. For example, if a1 = 100, meaning the corresponding operational status data for the fault range is 100, it indicates that all services have failed.
[0061] Switch packet forwarding rate refers to the number of millions of data packets (Mpps) a switch can forward per second. It represents the switching capacity of a switch, expressed in units of data packets. For ease of understanding, the switch packet forwarding rate can be represented by a2. The value of the switch packet forwarding rate can range from 0 to 100. A higher packet forwarding rate means the switch is less prone to packet loss or latency in high-traffic environments. For example, if a2 = 50, the corresponding operating status data for the switch packet forwarding rate is 50, indicating that the switch packet forwarding rate is 50%, and only internal network traffic is being transmitted.
[0062] The VPN sub-machine traffic rate is the percentage of current VPN sub-machine traffic relative to the total VPN bandwidth. For clarity, it can be represented by a3. The VPN sub-machine traffic rate can range from 0 to 100. For example, if a3 = 0, the corresponding running status data is 0, indicating that the VPN tunnel is completely disconnected and there is no traffic on the VPN sub-machine.
[0063] The host machine traffic rate is the percentage of current host machine traffic relative to the total bandwidth of the host machine. For ease of distinction, the host machine traffic rate can be represented by a4. The value of the host machine traffic rate can be between 0 and 100. For example, if a4 = 50, the corresponding operating status data for the host machine traffic rate is 50, indicating that the traffic within the host machine is 50%, which is only internal network host machine traffic.
[0064] The categories of operational status data included in the current fault alarm information may be one or more of the aforementioned evaluation indicators. The categories of operational status data included in the current fault alarm information are based on the actual detected data. For example, the current fault alarm information may only include operational status data corresponding to the fault range; or, the current fault alarm information may also include operational status data corresponding to the fault range and VPN sub-machine traffic rate; or, the current fault alarm information may also simultaneously include operational status data corresponding to the fault range, switch packet forwarding rate, VPN sub-machine traffic rate, and host machine traffic rate, and so on.
[0065] Operational status data refers to the specific numerical values corresponding to each category of operational status data at the current moment, i.e., the values of a1, a2, a3, and a4 at the current moment. For example, a1 = 100, a2 = 50, a3 = 0, and a4 = 50. It should be understood that the operational status data can also be other values; the above are merely examples of possible values and are not restrictive. Operational status data reflects the status values of various evaluation indicators in the current cloud environment, and therefore indicates the current operational status of the cloud environment. At different times, the operational status data corresponding to the same evaluation indicator may be the same or different.
[0066] 102. Obtain a pre-stored set of fault alarm information, which includes at least one historical fault alarm information from the current cloud environment.
[0067] The pre-stored fault alarm information set can be understood as a set of sample data corresponding to historical fault alarm information generated before the current moment.
[0068] 103. Obtain the conditional probability set and prior probability set corresponding to historical fault alarm information. The conditional probability set includes the conditional probability corresponding to the category of each operating status data, and the prior probability set includes the prior probability corresponding to each preset fault category.
[0069] The conditional probability set and the prior probability set can be understood as sets of Bayesian probabilities calculated from historical fault alarm information in a pre-stored fault alarm information set. The preset fault category can be understood as the possible fault type corresponding to the current fault alarm information when a current fault alarm information for the current cloud environment is detected. In this application embodiment, practical experience has shown that the fault types for the current cloud environment mainly include three categories: "VPN tunnel disconnected"; "Host machine Internet packet explorer unreachable," or simply "Host machine ping unreachable"; and "Support service unavailable." For ease of distinction, the preset fault category can be represented as T, where T can be any one of T1, T2, and T3. T1 represents the preset fault category "VPN tunnel disconnected," T2 represents the preset fault category "Host machine ping unreachable," and T3 represents the preset fault category "Support service unavailable."
[0070] In this embodiment, the cloud server can obtain a prior probability set corresponding to historical fault alarm information. The prior probability set includes the prior probability corresponding to each preset fault category. The prior probability is the probability that a sample belongs to a certain preset fault category without any feature information. The prior probability can be expressed as P(Ti), where i can be 1, 2, or 3. For example, if T1 = 0.11, T2 = 0.53, and T3 = 0.36, it means that without any feature information, the probability of a sample belonging to T1 is 11%, the probability of a sample belonging to T2 is 53%, and the probability of a sample belonging to T3 is 36%.
[0071] As mentioned above, assessment metrics reflecting the current cloud environment status may include fault scope, switch packet forwarding rate, virtual private network (VPN) slave device traffic rate, and host machine traffic rate, etc. For ease of description, in this embodiment, the above assessment metrics are referred to as categories of operational status data. Therefore, the categories of operational status data include fault scope, switch packet forwarding rate, VPN slave device traffic rate, and host machine traffic rate. In this embodiment, the cloud server can also obtain a set of conditional probabilities corresponding to historical fault alarm information. The set of conditional probabilities may include the conditional probabilities corresponding to each of the fault scope (a1), switch packet forwarding rate (a2), VPN slave device traffic rate (a3), and host machine traffic rate (a4).
[0072] In Bayesian theory, conditional probability is the probability distribution of a sample within a certain category. In this embodiment, conditional probability can be understood as the probability that a sample belongs to a certain operational state data within a certain evaluation metric when a preset fault category occurs. Conditional probability can be expressed as P(X|Ti), where X = a1, a2, a3, or a4. For example, P(a1|T1) represents the probability that a sample belongs to a certain operational state data within the fault range when the preset fault category is "VPN channel disconnected," and P(a2|T1) represents the probability that a sample belongs to a certain operational state data within the switch packet forwarding rate when the preset fault category is "VPN channel disconnected."
[0073] In this embodiment of the application, the conditional probability set corresponding to the category of each operational status data may include the conditional probabilities of the operational status data category under T1, T2, and T3, respectively. For example, the conditional probability set corresponding to the operational status data category of switch packet forwarding rate includes P(a2|T1), P(a2|T2), and P(a2|T3).
[0074] The process of obtaining the conditional probability set and prior probability set corresponding to historical fault alarm information may include: obtaining historical operating status data corresponding to historical fault alarm information and preset fault categories corresponding to historical status parameters; and determining the conditional probability set and prior probability set based on historical operating status data and preset fault categories.
[0075] Figure 5 illustrates a schematic diagram of a cloud environment fault handling process starting from historical fault alarm information, as provided in this embodiment of the application. As shown in Figure 5, the cloud environment fault handling method starting from historical fault alarm information mainly includes three stages: a preprocessing stage, a training stage, and an application stage. The preprocessing stage includes acquiring historical fault alarm information and determining the category of historical operating status data and a preset fault category based on the historical operating status data in the historical fault alarm information. Then, in the training stage, Bayesian probability distribution calculations can be performed based on the data obtained in the preprocessing stage to obtain a set of prior probabilities P(Ti) and a set of conditional probabilities P(X|Ti). Finally, in the application stage, the posterior probability of the current fault alarm information's operating status data for each preset fault category can be further calculated based on the set of prior probabilities P(Ti) and the set of conditional probabilities P(X|Ti). The posterior probabilities are then fused, and the preset fault category corresponding to the highest probability term is selected as the result.
[0076] Figure 6 illustrates a schematic diagram of a pre-stored fault alarm information set provided in an embodiment of this application. As shown in Figure 6, the pre-stored fault alarm information set may include multiple historical fault alarm information, for example, the pre-stored fault alarm information set may include historical fault alarm information 1, historical fault alarm information 2, historical fault alarm information 3, ..., historical fault alarm information m, where m is a natural number greater than 3.
[0077] As mentioned earlier, the pre-stored fault alarm information set can be understood as a collection of sample data corresponding to historical fault alarm information generated before the current moment. Since the historical fault alarm information occurred before the current moment, it means that the cloud server has already performed risk positioning on the historical fault alarm information and determined the fault category corresponding to the historical fault alarm information. Therefore, the historical fault alarm information may also include the preset fault category corresponding to the historical fault alarm information. Accordingly, each historical fault alarm information in this application embodiment may include two parts: the first part is at least one historical operating status data included in the historical fault alarm information; the second part is the preset fault category corresponding to the historical fault alarm information, that is, the preset fault category corresponding to the historical operating status data in the historical fault alarm information.
[0078] For any historical fault alarm message, it can be represented as {a1, a2, a3, a4, T}, where a1 is the historical operating status data corresponding to the fault range, a2 is the historical operating status data corresponding to the switch packet forwarding rate, a3 is the historical operating status data corresponding to the VPN slave machine traffic rate, and a4 is the historical operating status data corresponding to the master machine traffic rate. T is a preset fault category, which can be any one of T1, T2, and T3. T1 represents the fault category "VPN tunnel disconnected", T2 represents the fault category "master machine Internet packet explorer unreachable", abbreviated as "master machine ping unreachable", and T3 represents the fault category "support services unavailable".
[0079] If the sample data of the pre-stored fault alarm information set is as follows:
[0080] Historical fault alarm information 1: {100, 50, 0, 50, T1};
[0081] Historical fault alarm information 2: {50, 80, 95, 90, T3};
[0082] Historical fault alarm information 3: {10, 20, 80, 0, T2};
[0083] Historical fault alarm information 4: {12, 23, 88, 0, T2};
[0084] Historical fault alarm information 5: {49, 79, 95, 90, T3};
[0085] Historical fault alarm information 6: {100, 52, 0, 46, T1};
[0086] Historical fault alarm information 7: {100, 54, 0, 49, T1};
[0087] Historical fault alarm information 8: {11, 28, 100, 0, T2};
[0088] Historical fault alarm information 9: {53, 78, 93, 89, T3};
[0089] Historical fault alarm information 10: {52, 81, 94, 91, T3};
[0090] Historical fault alarm information 11: {10, 25, 89, 0, T2};
[0091] ...
[0092] Taking historical fault alarm information 2 as an example, it can be represented as {50, 80, 95, 90, T3}. Here, 50, 80, 95, and 90 belong to the historical operational status data in the first part, and T3 belongs to the preset fault category in the second part. That is, the preset fault category corresponding to historical fault alarm information 2 is "Support service unavailable". In historical fault alarm information 2, 50 represents the historical operational status data corresponding to the fault range (a1), 80 represents the historical operational status data corresponding to the switch packet forwarding rate (a2), 95 represents the historical operational status data corresponding to the virtual private network submachine traffic rate (a3), and 90 represents the historical operational status data corresponding to the master machine traffic rate (a4).
[0093] The conditional probability set and the prior probability set can be calculated based on the pre-stored fault alarm information set. Specifically, the conditional probability set and the prior probability set can be determined based on historical operating status data and preset fault categories.
[0094] The process of determining the conditional probability set and prior probability set based on historical operating status data and preset fault categories may include: counting the number of historical fault alarm messages corresponding to each preset fault category in historical fault alarm information to obtain the category sample number; calculating the prior probability of each preset fault category based on the category sample number to obtain the prior probability set; extracting the mapping relationship between historical operating status data and preset fault categories from historical fault alarm information; and calculating at least one conditional probability of the category of historical operating status data under each preset fault category based on the mapping relationship to obtain the conditional probability set.
[0095] The pre-stored fault alarm information set includes multiple historical fault alarm messages. Each historical fault alarm message includes its corresponding preset fault category. Therefore, the number of historical fault alarm messages corresponding to each preset fault category can be calculated from the pre-stored fault alarm information set to obtain the category sample size corresponding to that preset fault category. For example, if the pre-stored fault alarm information set includes 100,000 historical fault alarm messages, of which 55,000 historical fault alarm messages correspond to the preset fault category of VPN tunnel disconnection (T1), 27,000 historical fault alarm messages correspond to the preset fault category of host machine ping unreachable (T2), and the remaining 18,000 historical fault alarm messages correspond to the preset fault category of support service unavailable (T3), then the category sample size for VPN tunnel disconnection (T1) is 55,000, the category sample size for host machine ping unreachable (T2) is 27,000, and the category sample size for support service unavailable (T3) is 18,000.
[0096] For any preset fault category, after determining the number of samples corresponding to that category, the prior probability of that preset fault category can be calculated based on the number of samples, thus obtaining a prior probability set. The prior probability set includes the prior probability corresponding to each preset fault category. Specifically, calculating the prior probability of each preset fault category based on the number of samples can include: obtaining the total number of historical fault alarm messages in a pre-stored fault alarm information set to obtain the total number of samples; and using the proportion of the category sample count in the total sample count as the prior probability to obtain the prior probability set.
[0097] The total number of samples is the number of historical fault alarm messages contained in the pre-stored fault alarm information set. For example, in the example above, if the pre-stored fault alarm information set includes 100,000 historical fault alarm messages, then the total number of samples is 100,000.
[0098] After determining the total number of samples and the number of samples for each preset fault category, the proportion of each category sample in the total number of samples can be calculated to obtain the prior probability corresponding to the preset fault category. For example, if the number of samples for the VPN tunnel disconnection (T1) category is 55,000, then the prior probability P(T1) for VPN tunnel disconnection (T1) is 55%; if the number of samples for the host machine ping unreachable (T2) category is 27,000, then the prior probability P(T2) for host machine ping unreachable (T2) is 27%; and if the number of samples for the support service unavailable (T3) category is 18,000, then the prior probability P(T3) for support service unavailable (T3) is 18%.
[0099] As mentioned above, the conditional probability in this embodiment can be understood as the probability that a sample belongs to a certain operating state data in a certain evaluation index when a certain preset fault category occurs, denoted as P(X|Ti), where X = a1, a2, a3 or a4, i = 1, 2 or 3. For example, P(a1|T1) represents the probability that historical fault alarm information belongs to a certain historical operating state data in evaluation index a1 when the preset fault category T1 occurs. Since the value range of historical operating state data of evaluation index a1 is 0-100, that is, the historical operating state data is a continuous value, P(a1|T1) can represent the probability that historical fault alarm information belongs to any historical operating state data in evaluation index a1 between 0 and 100 when the preset fault category T1 occurs. For example, P(a1|T1) can represent the probability that when a preset fault category T1 occurs, the historical fault alarm information belongs to the historical operating status data of a1 when it is 100; P(a1|T1) can also represent the probability that when a preset fault category T1 occurs, the historical fault alarm information belongs to the historical operating status data of a1 when it is 20, and so on.
[0100] For different historical fault alarm messages, the historical operating status data contained therein may be the same as or different from the preset fault category. This means that the mapping relationship between the historical operating status data and the preset fault category may be the same or different in different historical fault alarm messages. For example, in the aforementioned pre-stored fault alarm message set, taking the category of historical operating status data as a1 and the preset fault category as T1 as an example, in historical fault alarm messages 1, 6, and 7, the historical operating status data 100 of a1 has a mapping relationship with the preset fault category T1; in historical fault alarm message 2, the historical operating status data 50 of a1 has a mapping relationship with the preset fault category T1; and in historical fault alarm message 3, the historical operating status data 10 of a1 has a mapping relationship with the preset fault category T1.
[0101] Therefore, to determine the conditional probabilities, it is necessary to first determine the mapping relationship between the historical operating status data in each historical fault alarm information in the pre-stored fault alarm information set and the preset fault categories; then, based on the mapping relationship, calculate at least one conditional probability of the category of historical operating status data under each preset fault category to obtain a set of conditional probabilities. Specifically, calculating at least one conditional probability of the category of historical operating status data under each preset fault category based on the mapping relationship to obtain a set of conditional probabilities may include: obtaining at least two preset discrete intervals corresponding to the category of each historical operating status data, and a preset range corresponding to each preset discrete interval, wherein the preset discrete intervals indicate the data distribution intervals corresponding to the historical operating status data; determining the historical operating status data contained in each preset discrete interval based on the preset range to obtain interval historical status parameters; calculating the interval conditional probability of each preset discrete interval corresponding to the category of historical operating status data under the preset fault category based on the mapping relationship and the interval historical status parameters; and using the interval conditional probabilities as conditional probabilities to obtain a set of conditional probabilities corresponding to the category of historical operating status data.
[0102] Since the historical operating status data ranges from 0 to 100, and can be any value between 0 and 100, meaning it is a continuous variable, it is not suitable to calculate probabilities based on a specific value within this range. In this embodiment, the historical operating status data can be divided into at least two discrete intervals. For ease of description, each discrete interval is referred to as a preset discrete interval. For example, the historical operating status data can be divided into two preset discrete intervals, three preset discrete intervals, four, or other preset discrete intervals.
[0103] The preset range corresponding to each preset discrete interval can be set according to the actual situation. When there are two or more preset discrete intervals corresponding to each category of historical operation status data, the preset range span of each preset discrete interval can be the same or different. Taking the historical operation status data corresponding to category a1 of historical operation status data as an example, the preset ranges corresponding to these three preset discrete intervals can be set to [0,30), [30,60), and [60,100] respectively.
[0104] It should be understood that for different categories of historical operational status data, the number of their respective preset discrete intervals and the preset range of each preset discrete interval can be the same or different. For example, for category a2 of historical operational status data, there can be three preset discrete intervals, and the preset ranges corresponding to these three preset discrete intervals can be set to [0,30), [30,60), and [60,100).
[0105] After determining the preset discrete interval corresponding to the category of each historical operating status data, and the preset range corresponding to each preset discrete interval, the historical operating status data in each historical fault alarm information can be divided into the corresponding preset discrete interval according to the preset range, thereby determining the historical operating status data contained in each preset discrete interval. At this time, the preset discrete interval can indicate the data distribution range corresponding to each historical operating status data.
[0106] For example, if the category a1 of historical operating status data corresponds to three preset discrete intervals, and the preset ranges of each preset discrete interval are [0,30), [30,60), and [60,100] respectively, then in the aforementioned pre-stored fault alarm information set, the historical operating status data with a1=100 in historical fault alarm information 1 falls within the interval [60,100], the historical operating status data with a1=50 in historical fault alarm information 2 falls within the interval [30,60), and so on. Therefore, the historical operating status data contained in each preset discrete interval can be statistically analyzed to obtain the interval's historical status parameters. Based on this, for the preset discrete interval [0, 30) corresponding to category a1 of historical operating status data, the historical operating status data contained in the preset discrete interval [0, 30) includes: a1 (a1 = 10) in historical fault alarm information 3, a1 (a1 = 12) in historical fault alarm information 4, a1 (a1 = 11) in historical fault alarm information 8, a1 (a1 = 10) in historical fault alarm information 11, and so on. Similarly, for the preset discrete interval [30, 60) corresponding to category a2 of historical operating status data, the historical operating status data contained in the preset discrete interval [30, 60) includes: a1 (a1 = 50) in historical fault alarm information 2, a1 (a1 = 49) in historical fault alarm information 5, a1 (a1 = 53) in historical fault alarm information 9, a1 (a1 = 52) in historical fault alarm information 10, and so on.
[0107] After determining the interval historical state parameters, the interval conditional probability of each preset discrete interval corresponding to the category of historical operating state data under the preset fault category can be calculated based on the mapping relationship and the interval historical state parameters. This interval conditional probability is then used as the conditional probability to obtain the set of conditional probabilities corresponding to the categories of historical operating state data. Specifically, calculating the interval conditional probability of each preset discrete interval corresponding to the category of historical operating state data under the preset fault category based on the mapping relationship and the interval historical state parameters can include: taking each preset fault category as a selected fault category and taking the number of category samples corresponding to the selected fault category as the selected category sample quantity; taking each preset discrete interval corresponding to the category of historical operating state data as a target first discrete interval; finding the number of target historical state parameters that have a mapping relationship with the selected fault category from the interval historical state parameters of the target first discrete interval to obtain the target data quantity; and calculating the proportion of the target data quantity in the selected category sample quantity to obtain the interval conditional probability of the target first discrete interval under the selected fault category.
[0108] The target first discrete interval is the number of target historical state parameters that have a mapping relationship with the selected fault category when calculating the interval conditional probability of each preset discrete interval corresponding to the category of historical operating state data under the preset fault category.
[0109] For any category of historical operational status data, its conditional probability set includes the interval conditional probabilities of each preset discrete interval under each preset fault category. For example, for category a1 of historical operational status data, its conditional probability set includes three interval conditional probabilities under the preset discrete interval [0,30), namely P(a1|T1), P(a1|T2), and P(a1|T3); three interval conditional probabilities under the preset discrete interval [30,60), namely P(a1|T1), P(a1|T2), and P(a1|T3); and three interval conditional probabilities under the preset discrete interval [60,100], namely P(a1|T1), P(a1|T2), and P(a1|T3).
[0110] Similarly, for category a2 of historical operating status data, its conditional probability set includes three interval conditional probabilities under the preset discrete interval [0,30), namely P(a2|T1), P(a2|T2), and P(a2|T3), three interval conditional probabilities under the preset discrete interval [30,60), namely P(a2|T1), P(a2|T2), and P(a2|T3), and three interval conditional probabilities under the preset discrete interval [60,100], namely P(a2|T1), P(a2|T2), and P(a2|T3).
[0111] Based on the above, for any interval conditional probability, the calculation method is as follows: determine the corresponding selected fault category and take the number of category samples corresponding to the selected fault category as the selected category sample quantity; determine the corresponding target discrete interval and filter out the number of target historical state parameters that have a mapping relationship with the selected fault category in the target discrete interval to obtain the target data quantity; then divide the target data quantity by the selected category sample quantity, and the ratio obtained is the interval conditional probability.
[0112] Taking the calculation of the interval conditional probability P(a1|T1) under the preset discrete interval [0,30) as an example, T1 is the selected fault category. As mentioned earlier, the number of category samples of T1 in the pre-stored fault alarm information set is 55,000, so the number of selected category samples is 55,000. At this time, the preset discrete interval [0,30) is taken as the target first discrete interval. If the number of interval historical state parameters of category a1 containing historical operating state data in the preset discrete interval [0,30) is 20,000, and the number of target historical state parameters that have a mapping relationship with T1 are selected from the interval historical state parameters of the preset discrete interval [0,30) is 3,850 (target data volume). After determining the number of samples in the selected category and the target data volume, the proportion of the target data volume in the number of samples in the selected category can be calculated. The calculation yields 3850 / 55000 = 0.07. Therefore, the interval conditional probability of the preset discrete interval [0,30) of category a1 of historical operating status data under T1 is 0.07, which means that when T1 occurs, the probability that the historical operating status data belongs to the preset discrete interval [0,30) of category a1 is 0.07.
[0113] Taking the calculation of the interval conditional probability P(a1|T1) under the preset discrete interval [30,60) as an example, T1 is the selected fault category. As mentioned earlier, the number of category samples of T1 in the pre-stored fault alarm information set is 55,000, so the number of selected category samples is 55,000. At this time, the preset discrete interval [30,60) is taken as the target first discrete interval. If the number of interval historical state parameters of category a1 containing historical operating state data in the preset discrete interval [30,60) is 20,000, and the number of target historical state parameters that have a mapping relationship with T1 are selected from the interval historical state parameters of the preset discrete interval [30,60) is 4,400 (target data volume). After determining the number of samples in the selected category and the target data volume, the proportion of the target data volume in the number of samples in the selected category can be calculated. The calculation yields 4400 / 55000 = 0.08. Therefore, the interval conditional probability of the preset discrete interval [30, 60) of category a1 of historical operating status data under T1 is 0.08, which means that when T1 occurs, the probability that the historical operating status data belongs to the preset discrete interval [30, 60) of category a1 is 0.08.
[0114] Taking the calculation of the interval conditional probability P(a1|T1) under the preset discrete interval [60,100] as an example, T1 is the selected fault category. As mentioned earlier, the number of category samples of T1 in the pre-stored fault alarm information set is 55,000, so the number of selected category samples is 55,000. At this time, the preset discrete interval [60,100] is taken as the target first discrete interval. If the number of interval historical state parameters of category a1 containing historical operating state data in the preset discrete interval [60,100] is 60,000, and the number of target historical state parameters that have a mapping relationship with T1 are selected from the interval historical state parameters of the preset discrete interval [60,100] is 46,750 (target data volume). After determining the number of samples in the selected category and the target data volume, the proportion of the target data volume in the number of samples in the selected category can be calculated. The calculation yields 46750 / 55000 = 0.85. Therefore, the interval conditional probability of the preset discrete interval [60,100] of category a1 of historical operating status data under T1 is 0.85, which means that when T1 occurs, the probability that the historical operating status data belongs to the preset discrete interval [60,100] of category a1 is 0.85.
[0115] For ease of explanation, based on the aforementioned pre-stored fault alarm information set, the conditional probabilities corresponding to the categories of each historical operating state data are calculated according to the method described above, resulting in a set of conditional probabilities, as shown in Table 1 below. It should be understood that the set of conditional probabilities listed in Table 1 is merely for illustrative purposes and does not impose any limitations on the actual set of conditional probabilities.
[0116] Table 1. Set of conditional probabilities corresponding to the pre-stored set of fault alarm information
[0117] Table 1 contains four conditional probability sets: the conditional probability set corresponding to a1, a2, a3, and a4. Each conditional probability set further includes multiple preset discrete intervals with interval conditional probabilities for each preset fault category. For example, the set of conditional probabilities corresponding to a1 includes three interval conditional probabilities in the interval [0,30), three interval conditional probabilities in the interval [30,60), and three interval conditional probabilities in the interval [60,100]. The three interval conditional probabilities in the interval [0,30) are P(a1|T1) = 0.07, P(a1|T2) = 0.72, and P(a1|T3) = 0.13, respectively; the three interval conditional probabilities in the interval [30,60) are P(a1|T1) = 0.08, P(a1|T2) = 0.17, and P(a1|T3) = 0.73, respectively; and the three interval conditional probabilities in the interval [60,100] are P(a1|T1) = 0.85, P(a1|T2) = 0.11, and P(a1|T3) = 0.14, respectively.
[0118] 104. Based on the category of the running status data, select the conditional probabilities corresponding to the running status data from the conditional probability set.
[0119] After obtaining the conditional probability set and prior probability set corresponding to the pre-stored fault alarm information set, the conditional probability corresponding to the category of the running status data can be filtered out from the conditional probability set based on the current fault alarm information detected in the current cloud environment.
[0120] In this embodiment, the category of operational status data is the evaluation metrics involved in the pre-stored fault alarm information set, which may include fault scope (a1), switch packet forwarding rate (a2), virtual private network (VPN) slave device traffic rate (a3), and host machine traffic rate (a4). The current fault alarm information may include all evaluation metrics or only some of them. If the current fault alarm information includes operational status data for all evaluation metrics, the category of operational status data includes all evaluation metrics; if the current fault alarm information only includes operational status data for some evaluation metrics, the category of operational status data includes only some evaluation metrics. That is, the category of operational status data in the current fault alarm information may include at least one of fault scope (a1), switch packet forwarding rate (a2), VPN slave device traffic rate (a3), and host machine traffic rate (a4).
[0121] Based on this, the conditional probabilities corresponding to the operational status data are selected from the conditional probability set according to the category of the operational status data. This may include: selecting a target conditional probability set corresponding to the category of each operational status data from the conditional probability set, wherein the target conditional probability set includes conditional probabilities of at least two preset discrete intervals, and the preset discrete intervals correspond to a preset range; and extracting the conditional probability of the operational status data under each preset fault category from the target conditional probability set based on the preset range.
[0122] The target conditional probability set is a set of each category of operational status data selected from the conditional probability set. It includes conditional probabilities of at least two preset discrete intervals. Each preset discrete interval corresponds to a preset range, from which the conditional probability of operational status data under each preset fault category can be extracted.
[0123] For example, if the current fault alarm information's operational status data includes four categories simultaneously: fault range (a1), switch packet forwarding rate (a2), virtual private network submachine traffic rate (a3), and host traffic rate (a4), then the conditional probability sets corresponding to a1, a2, a3, and a4 are all target conditional probability sets. However, if the current fault alarm information's operational status data only includes fault range (a1) and switch packet forwarding rate (a2), then only the conditional probability sets corresponding to a1 and a2 are target conditional probability sets.
[0124] For each selected target conditional probability set, there are at least two preset discrete intervals and a preset range corresponding to each preset discrete interval. Since the preset range indicates the upper and lower limits of the operating state data of its corresponding preset discrete interval, the preset discrete intervals corresponding to the operating state data can be selected from the target conditional probability set according to the preset range, and the interval conditional probability corresponding to the selected preset discrete intervals can be used as the conditional probability of the operating state data under each preset fault category.
[0125] Furthermore, as mentioned earlier, the target conditional probability set also includes the interval conditional probability of each preset discrete interval under each preset fault category. Therefore, based on this, extracting the conditional probability of the operating status data under each preset fault category from the target conditional probability set, based on a preset range, can include: filtering the target discrete interval corresponding to the operating status data from the preset discrete intervals under the category of the operating status data, based on the preset range; filtering the conditional probability corresponding to the target discrete interval from the target conditional probability set to obtain the target interval conditional probability; and using the target interval conditional probability as the conditional probability of the operating status data under the preset fault category. The target interval conditional probability is the conditional probability corresponding to the target discrete interval, filtered from the target conditional probability set, and this probability will be used as the conditional probability of the operating status data under the preset fault category.
[0126] For example, if the current fault alarm information for the current cloud environment is {90, 45, 10, 69}, where 90 is the operating status data of the fault range (a1), 45 is the operating status data of the switch packet forwarding rate (a2), 10 is the operating status data of the virtual private network submachine traffic rate (a3), and 69 is the operating status data of the host machine traffic rate (a4), then it can be determined that a1 = 90 falls within the interval [60, 100]. That is, in the conditional probability set corresponding to a1, the target discrete interval is [60, 100]. The interval conditional probability of the target discrete interval is the target interval conditional probability. That is, the target interval conditional probability includes three parts, namely P(a1|T1) = 0.85, P(a1|T2) = 0.11, and P(a1|T3) = 0.14. The above three target interval conditional probabilities can be used as the conditional probability of the operating status data a1 = 90 under the preset fault category.
[0127] For the operating status data a2 = 45, it falls within the interval [30, 60). That is, in the conditional probability set corresponding to a2, the target discrete interval is [30, 60). The interval conditional probability of the target discrete interval is the target interval conditional probability. That is, the target interval conditional probability includes three parts, namely P(a2|T1) = 0.69, P(a2|T2) = 0.09, and P(a2|T3) = 0.15. The above three target interval conditional probabilities can be used as the conditional probability of the operating status data a2 = 45 under the preset fault category.
[0128] Similarly, for the operating status data a3 = 10, it falls within the interval [0, 20). The target interval conditional probabilities of being within this interval are P(a3|T1) = 0.85, P(a3|T2) = 0.03, and P(a3|T3) = 0.10. These three target interval conditional probabilities can be used as the conditional probabilities of the operating status data a3 = 10 under the preset fault category. For the operating status data a4 = 69, it falls within the interval [60, 100]. The target interval conditional probabilities of being within this interval are P(a4|T1) = 0.15, P(a4|T2) = 0.04, and P(a4|T3) = 0.80. These three target interval conditional probabilities can be used as the conditional probabilities of the operating status data a4 = 69 under the preset fault category.
[0129] 105. Based on conditional probability and prior probability, determine the posterior probability that the current fault alarm information belongs to each preset fault category.
[0130] In the embodiments of this application, the posterior probability can be understood as the probability that a sample belongs to a certain preset fault category under given operating state data. The posterior probability can be expressed as P(Ti|X), where i = 1, 2 or 3, and X = a1, a2, a3 or a4.
[0131] Since the Naive Bayes algorithm assumes that each feature attribute an is independent, according to Bayes' theorem, we can deduce: P(Ti|X)=P(X|Ti)P(Ti) / P(X). Since the denominator is a constant for all categories, we only need to maximize the numerator. Furthermore, because the features are mutually independent, we ultimately derive: Where P(Ci) is the prior probability that X is classified into a certain category, and it is a constant in the pre-stored fault alarm information set.
[0132] Similarly, it can be deduced that:
[0133] Where P(T) i |X) represents the sample belonging to a preset fault category T given the operating status data X. i The posterior probability; P(X|T) i ) indicates that in the preset fault category T i When it occurs, the conditional probability that the sample belongs to the running state data X; P(T) i ) indicates the preset fault category T i The prior probability; P(X) represents the probability of the occurrence of the running state data X.
[0134] Determining the posterior probability of each preset fault category based on conditional and prior probabilities can include: using each preset fault category as a candidate fault category and determining at least two conditional probabilities of the current fault alarm information under the candidate fault categories; fusing the conditional probabilities to obtain the target conditional probability corresponding to the candidate fault category; and fusing the prior probability of the candidate fault category with the target conditional probability to obtain the posterior probability of the candidate fault category. For example, the target conditional probability corresponding to the candidate fault category can be obtained by multiplying the at least two conditional probabilities of the current fault alarm information under the candidate fault categories. For example, if the current fault alarm information contains operating status data a1, a2, ..., a n In candidate fault category T i The conditional probabilities under the following conditions are P(a1|T) i ),P(a2|T i ),…,P(a n |T i If ), then the conditional probability of the target is
[0135] Candidate fault categories are determined by sequentially assigning each preset fault category to a candidate fault category when calculating the posterior probability of the current fault alarm information belonging to that category. The posterior probability of the candidate fault category is obtained by determining at least two conditional probabilities of the current fault alarm information under each candidate fault category and performing fusion operations.
[0136] Taking the current fault alarm information in the current cloud environment containing the running status data {90, 45, 10, 69} as an example, when the candidate fault category is T1 (VPN channel disconnected), according to Table 1, the conditional probability of running status data 90 under T1 is P(a1|T1) = 0.85, the conditional probability of running status data 45 under T1 is P(a2|T1) = 0.69, the conditional probability of running status data 10 under T1 is P(a3|T1) = 0.85, and the conditional probability of running status data 69 under T1 is P(a4|T1) = 0.15. At this time, the target conditional probability corresponding to the candidate fault category (T1) is equal to the product of the above conditional probabilities, that is, the target conditional probability = 0.85 × 0.69 × 0.85 × 0.15 = 0.07477875. After determining the target conditional probability corresponding to the candidate fault category (T1), the target conditional probability can be multiplied by the prior probability of the candidate fault category to obtain the posterior probability of the candidate fault category. As mentioned earlier, in the pre-stored fault alarm information set described in Table 1, T1 = 55%. Therefore, the posterior probability of the candidate fault category (T1) = 0.07477875 × 0.55 = 0.0411283125, indicating that the probability of the current fault alarm information being a "VPN channel disconnected" type fault is 0.0411283125.
[0137] When the candidate fault category is T2 (master machine ping unreachable), referring to Table 1, the conditional probability of running status data 90 under T2 is P(a1|T2) = 0.11, the conditional probability of running status data 45 under T2 is P(a2|T2) = 0.09, the conditional probability of running status data 10 under T2 is P(a3|T2) = 0.03, and the conditional probability of running status data 69 under T2 is P(a4|T2) = 0.04. At this time, the target conditional probability corresponding to the candidate fault category (T2) is equal to the product of the above conditional probabilities, i.e., target conditional probability = 0.11 × 0.09 × 0.03 × 0.04 = 0.00001188. After determining the target conditional probability corresponding to the candidate fault category (T2), this target conditional probability can be multiplied by the prior probability of the candidate fault category to obtain the posterior probability of the candidate fault category. As mentioned earlier, in the pre-stored fault alarm information set described in Table 1, T2 = 27%. Therefore, the posterior probability of the candidate fault category (T2) is 0.00001188 × 0.27 = 0.0000032076, which means that the probability of the current fault alarm information being a "master machine ping unreachable" type fault is 0.0000032076.
[0138] When the candidate fault category is T3 (support services unavailable), referring to Table 1, the conditional probability of running status data 90 under T3 is P(a1|T3) = 0.14, the conditional probability of running status data 45 under T3 is P(a2|T3) = 0.15, the conditional probability of running status data 10 under T3 is P(a3|T3) = 0.10, and the conditional probability of running status data 69 under T3 is P(a4|T3) = 0.80. At this point, the target conditional probability corresponding to the candidate fault category (T3) is equal to the product of the above conditional probabilities, i.e., target conditional probability = 0.14 × 0.15 × 0.10 × 0.80 = 0.00168. After determining the target conditional probability corresponding to the candidate fault category (T3), this target conditional probability can be multiplied by the prior probability of the candidate fault category to obtain the posterior probability of the candidate fault category. As mentioned earlier, in the pre-stored fault alarm information set described in Table 1, T3 = 18%, and the posterior probability of the candidate fault category (T3) is 0.00168 × 0.18 = 0.0003024, which means that the probability of the current fault alarm information being a "support service unavailable" type fault is 0.0003024.
[0139] 106. Based on the posterior probability, select the fault category corresponding to the current fault alarm information from the preset fault categories, and send the current fault alarm information to the business server corresponding to the selected fault category.
[0140] After determining the posterior probability of the current fault alarm information for each preset fault category in the current cloud environment, a preset fault category can be selected as the chosen fault category based on the specific probability value of each posterior probability. The current fault alarm information is then sent to the business server corresponding to the chosen fault category so that the business server can repair the current fault alarm information. Specifically, selecting the chosen fault category corresponding to the current fault alarm information from the preset fault categories based on the posterior probability can include: sorting the posterior probabilities of each preset fault category to obtain a posterior probability sorting result; and selecting the chosen fault category corresponding to the current fault alarm information from the preset fault categories based on the posterior probability sorting result.
[0141] The posterior probability ranking result is obtained by sorting the posterior probabilities of each preset fault category. Based on this result, the selected fault category corresponding to the current fault alarm information can be filtered from the preset fault categories. The sorting method can be from largest to smallest or from smallest to largest.
[0142] In this embodiment, the preset fault category with the largest posterior probability value can be selected as the selected fault category. Therefore, the posterior probabilities of each preset fault category calculated above can be sorted in descending order, and the preset fault category ranked first can be selected as the selected fault category; alternatively, the posterior probabilities of each preset fault category calculated above can be sorted in ascending order, and the preset fault category ranked last can be selected as the selected fault category.
[0143] Regardless of whether the order is sorted from largest to smallest or smallest to largest, 0.0411283125 is determined to be the first value. Therefore, the selected fault category corresponding to the current fault alarm information can be determined to be T1, i.e., "VPN channel disconnected".
[0144] Sending the current fault alarm information to the business server corresponding to the selected fault category may include: filtering the business server corresponding to the selected fault category from the set of business servers corresponding to the current cloud environment to obtain the target business server; sending the current fault alarm information and the selected fault category to the target business server so that the target business server can perform fault troubleshooting based on the current fault alarm information and the selected fault category.
[0145] A business server set is a collection of multiple business servers within the current cloud environment. Different business servers correspond to different business teams, and each business team is responsible for resolving specific faults. The cloud server can filter from this set to select the business server corresponding to the chosen fault category.
[0146] The set of business servers includes multiple business servers, each corresponding to a different business team, and each business team is responsible for resolving specific faults. In this embodiment, a correspondence between business servers and preset fault categories can be pre-established so that, after determining a selected fault category, the corresponding business server can be determined based on the correspondence. The correspondence between business servers and preset fault categories can be shown in Table 2.
[0147] Table 2. Correspondence between business servers and preset fault categories
[0148] As shown in Table 2, "VPN tunnel disconnected (T1)" corresponds to the VPN service team. This means that when the selected fault category is "VPN tunnel disconnected (T1)," the cloud server will route the current fault alarm information to the VPN service server corresponding to the VPN service team. In this case, the VPN service server is the target service server, which will then investigate and repair the current fault alarm information. "Host machine ping unreachable (T2)" corresponds to the CVM service team. This means that when the selected fault category is "Host machine ping unreachable (T2)," the cloud server will route the current fault alarm information to the CVM service server corresponding to the CVM service team. In this case, the CVM service server is the target service server, which will then investigate and repair the current fault alarm information. Support Service Unavailable (T3) corresponds to the CBS business team. It means that when the selected fault category is Support Service Unavailable (T3), the cloud server will route the current fault alarm information to the CBS business server corresponding to the CBS business team. At this time, the CBS business server is the target business server, which will investigate and repair the current fault alarm information.
[0149] Figure 7 illustrates a cloud environment fault handling process provided in some embodiments of this application. As shown in Figure 7, after the current fault alarm information is input into the cloud server, if the cloud server identifies the selected fault category of the current fault alarm information as T1, it will route the current fault alarm information to the VPN service server corresponding to the VPN service team. That is, the VPN service server is used as the target service server, and the VPN service server will investigate and repair the current fault alarm information. In addition, during the process of the cloud server routing the current fault alarm information to the VPN service server, the cloud server can also synchronously send the current fault alarm information and its corresponding selected fault category to other service servers (such as CVM service server, CBS service server) to inform other service servers that there is a fault in the current cloud environment. However, other servers that receive the current fault alarm information and its corresponding selected fault category do not need to respond to it, that is, they do not need to participate in the investigation and repair of the current fault alarm information.
[0150] As mentioned earlier, after receiving the current fault alarm information and selected fault category from the cloud server, the target service server can perform fault troubleshooting based on these information. Since the selected fault category is predicted by the cloud server based on data from a pre-stored set of fault alarm information, the prediction result is merely a probability-maximizing choice and still carries some uncertainty. Therefore, during the fault troubleshooting process of the target service server based on the current fault alarm information, the troubleshooting result may have two possibilities: First, the detection result after the target service server's troubleshooting of the current fault alarm information indicates that the selected fault category matches the corresponding fault handling category of the target service server, meaning the fault category prediction is correct; second, the detection result after the target service server's troubleshooting of the current fault alarm information indicates that the selected fault category differs from the corresponding fault handling category of the target service server, meaning the fault category prediction is incorrect.
[0151] In the first possible scenario, it means that the selected fault category calculated by the cloud server is correct. In this case, the selection of the target business server is also correct, and the target business server can directly repair the current fault alarm information.
[0152] The second possible scenario implies a deviation in the selected fault category calculated by the cloud server. In this case, the located target business server also has an error, and the target business server cannot repair the fault alarm. To address this, the cloud server can designate other business servers in the business server set (excluding the target business server) as candidate business servers and send the current fault alarm information to these candidate business servers, requesting each candidate business server to troubleshoot based on the current fault alarm information.
[0153] In the second possible scenario, the cloud server in this embodiment can adopt any one of the following two methods to solve the problem. The first method, after sending the current fault alarm information and the selected fault category to the target service server, may include: when receiving fault feedback information returned by the target service server in response to the current fault alarm information, determining the detection result of the selected fault category based on the fault feedback information; when the detection result indicates that the selected fault category is incorrect, selecting service servers other than the target service server in the service server set as candidate service servers; sending the current fault alarm information to the candidate service servers so that the candidate service servers can perform fault troubleshooting based on the current fault alarm information. The fault feedback information is the information returned by the target service server to the cloud server after troubleshooting the current fault alarm information, and the cloud server can determine the detection result of the selected fault category based on this information.
[0154] For example, taking the aforementioned target service server as a VPN service server, the cloud server can send current fault alarm information to all candidate service servers (such as CVM service server and CBS service server) other than the target service server, requesting the VPN service server and CVM service server to simultaneously investigate the current fault alarm information, thereby determining the actual fault category corresponding to the current fault alarm information.
[0155] The second solution, after determining the detection result of the selected fault category based on the fault feedback information, may further include: when the detection result indicates that the selected fault category is incorrect, selecting a substitute fault category corresponding to the current fault alarm information from the preset fault categories based on the posterior probability, wherein the posterior probability of the substitute fault category is only less than the posterior probability corresponding to the selected fault category; and sending the current fault alarm information to the service server corresponding to the substitute fault category so that the service server corresponding to the substitute fault category can perform fault troubleshooting based on the current fault alarm information and the substitute fault category.
[0156] For example, the cloud server can reorder the preset fault categories based on the posterior probabilities calculated above, and select the preset fault category with the second largest posterior probability value as a substitute fault category. It then sends the current fault alarm information to the business server corresponding to this substitute fault category, requesting the business server to troubleshoot based on the current fault alarm information and the preset fault category. For instance, in the data example above, the probability of the current fault alarm information being of the "Support Service Unavailable" type is 0.0003024, ranking second in probability value from largest to smallest; therefore, "Support Service Unavailable" can be used as the substitute fault category. Since the business server corresponding to "Support Service Unavailable" is the CBS business server, the cloud server can route the current fault alarm information to the CBS business server so that the CBS business server can re-troubleshoot the current fault alarm information.
[0157] If the CBS service server determines after re-troubleshooting that the current fault alarm information is still outside its service processing scope, the cloud server can select the preset fault category corresponding to the third largest posterior probability value and send the current fault alarm information to the service server corresponding to the preset fault category, requesting the service server to troubleshoot based on the current fault alarm information and the preset fault category until the service server corresponding to the current fault alarm information is located.
[0158] In this embodiment of the application, after selecting the business servers other than the target business server in the business server set as candidate business servers, the method may further include: updating the preset range corresponding to the preset discrete interval based on the detection result to obtain the updated first discrete interval and the updated first range corresponding to the updated first discrete interval; updating the conditional probability set according to the updated first range to obtain the updated conditional probability set; and using the updated conditional probability set as the conditional probability set corresponding to the category of the historical running status data.
[0159] The updated first discrete interval is obtained by updating the preset range corresponding to the preset discrete interval based on the detection results after considering all business servers in the business server set except the target business server as candidate business servers. The updated first range is the range corresponding to the updated first discrete interval after updating the preset range corresponding to the preset discrete interval based on the detection results, using the same criteria. The updated conditional probability set is obtained by recalculating the conditional probability of each category of historical operating status data in the pre-stored fault alarm information set under each preset fault category, based on the updated first discrete interval and the updated first range, according to the method for calculating conditional probability.
[0160] When the target service server's detection results after investigating the current fault alarm information indicate that the selected fault category differs from the fault handling category corresponding to the target service server, it means that the cloud server's prediction of the selected fault category has a certain deviation. This is because the selected fault category is obtained by the cloud server sorting according to the posterior probabilities of each preset fault category. The calculation of the posterior probability depends on the conditional probability of the category of historical operating status data under each preset fault category. As mentioned earlier, when calculating the conditional probability, the historical operating status data needs to be divided into corresponding preset discrete intervals. The preset range of these discrete intervals determines the accuracy of the historical operating status data division. If the preset range is scientifically divided, the accuracy of the conditional probability calculated based on the historical fault alarm information in the pre-stored fault alarm information set will be high, and correspondingly, the prediction accuracy of the selected fault category for each current fault alarm information will also be high.
[0161] For example, if the target service server's detection result after investigating the current fault alarm information indicates that the selected fault category is different from the fault handling category corresponding to the target service server, the number and range of preset discrete intervals can be adjusted according to the distribution of operating status data in historical fault alarm information. If the operating status data distribution in a certain interval is found to be too concentrated, the interval can be further subdivided; if the operating status data distribution in several intervals is relatively small, these intervals can be merged. For example, for the operating status data category of fault range, the original preset discrete intervals are [0,30), [30,60), and [60,100]. If the data distribution in the interval [30,60) is found to be too concentrated, the interval can be subdivided into [30,45) and [45,60). Alternatively, the mean, median, and other statistics of the operating status data in historical fault alarm information can be calculated, and the preset range can be adjusted using these statistics as boundaries. For example, if the median of a certain operating status data is calculated to be m, the preset discrete intervals can be adjusted to [0,m) and [m,100]. The updated first discrete interval and the corresponding updated first range are obtained through the above methods.
[0162] In this embodiment, when the target service server's detection result after investigating the current fault alarm information indicates that the selected fault category is different from the fault handling category corresponding to the target service server, the preset discrete interval of each historical operating status data category can be updated. For example, the number of preset discrete intervals can be adjusted, and the preset range of the adjusted preset discrete intervals can be adjusted to obtain the updated first discrete interval and the updated first range corresponding to the updated first discrete interval. Specifically, the number of preset discrete intervals can be adjusted according to the distribution of operating status data in historical fault alarm information. If the operating status data distribution in a certain interval is found to be too concentrated, the interval can be further subdivided; if the operating status data distribution in several intervals is relatively small, these intervals can be merged. The preset range of the adjusted preset discrete intervals is then adjusted to obtain the updated first discrete interval and the updated first range corresponding to the updated first discrete interval.
[0163] For example, the preset range of the preset discrete interval can be directly adjusted to obtain the updated first discrete interval and the updated first range corresponding to the updated first discrete interval. Specifically, the mean, median, and other statistical quantities of the operating status data in the historical fault alarm information can be calculated, and the preset range can be adjusted using these statistical quantities as boundaries to obtain the updated first discrete interval and the updated first range corresponding to the updated first discrete interval.
[0164] After obtaining the updated first discrete interval and the corresponding updated first range, the conditional probability of each category of historical operating status data in the pre-stored fault alarm information set under each preset fault category can be recalculated based on the updated first discrete interval and the updated first range, according to the aforementioned conditional probability calculation method, to obtain the updated conditional probability set. This updated conditional probability set is then used as the conditional probability set corresponding to the categories of historical operating status data, and the selected fault category corresponding to each current fault alarm information is calculated based on this set.
[0165] As can be seen from the above, the embodiments of this application can obtain current fault alarm information of the current cloud environment, which includes at least one operating status data; obtain a pre-stored set of fault alarm information, which includes at least one historical fault alarm information of the current cloud environment; obtain a set of conditional probabilities and a set of prior probabilities corresponding to the historical fault alarm information, where the set of conditional probabilities includes the conditional probability corresponding to the category of each operating status data, and the set of prior probabilities includes the prior probability corresponding to each preset fault category; based on the category of the operating status data, filter out the conditional probabilities corresponding to the operating status data from the set of conditional probabilities; determine the posterior probability that the current fault alarm information belongs to each preset fault category based on the conditional probability and the prior probability; based on the posterior probability, filter out the selected fault category corresponding to the current fault alarm information from the preset fault categories, and send the current fault alarm information to the business server corresponding to the selected fault category. This solution employs a Bayesian algorithm to perform probabilistic analysis on detected current fault alarm information, determining the selected fault category corresponding to the current fault alarm information. This improves the classification efficiency and accuracy of fault types corresponding to alarm information, thereby quickly locating the fault type. Once the selected fault category is determined, the corresponding business server can be accurately and quickly launched to repair the problem without launching all business servers for joint response and troubleshooting one by one. This reduces invalid responses, avoids excessive resource consumption, improves the response and processing efficiency for current fault alarm information, and enhances the availability of business services.
[0166] Based on the method described in the above embodiments, the following examples will provide further detailed explanations.
[0167] In this embodiment, the cloud environment fault handling device will be specifically integrated into an electronic device, and the electronic device will be a cloud server corresponding to the cloud resource provider, as an example for explanation.
[0168] Figure 8 illustrates another flowchart of the cloud environment fault handling method provided in this embodiment. As shown in Figure 8, the specific process of a cloud environment fault handling method is as follows:
[0169] 201. The cloud server obtains the current fault alarm information of the current cloud environment. The current fault alarm information includes at least one running status data.
[0170] For example, a cloud server can monitor the current cloud environment during operation and generate a fault alarm upon detection. Specifically, the cloud server can monitor the current cloud environment by real-time monitoring the operating status and performance indicators of various services, such as service response time, resource utilization, and network connection status. When the operating status or performance indicator of a service exceeds the normal range, a fault is detected, and a fault alarm is generated based on the fault type, severity, and other information.
[0171] Specifically, cloud servers can monitor the current cloud environment by monitoring the operational status and performance metrics of various services in the current cloud environment in real time. For example, they can monitor service response time, resource utilization, and network connection status. For service response time, a normal response time threshold range [t] can be preset. min ,t max When the response time t of a certain service is detected to exceed this range (i.e., t...), <t min or t>t max When the response time is abnormal, the service is deemed to have an abnormal response time; for resource utilization, a normal resource utilization threshold range can be set [u min ,u max When resource utilization u is detected to exceed this range (i.e., u... min or u>u max When this occurs, resource utilization is deemed abnormal; for network connectivity, indicators such as packet loss rate and latency can be detected, and when the packet loss rate exceeds a preset packet loss rate threshold p... max Or the delay exceeds the preset delay threshold d max When an abnormality is detected in the running status or performance indicators of a service, it is determined that a fault has been detected, and a current fault alarm message is generated based on the fault type, severity, and other information.
[0172] For another example, the business servers corresponding to each business team can also detect the current cloud environment during operation. After detecting a fault, a current fault alarm message is generated based on the fault, and the current fault alarm message is sent to the cloud server, which can then obtain the current fault alarm message. Specifically, the business servers corresponding to each business team can detect the current cloud environment by monitoring the key metrics of the services they are responsible for (such as the throughput, error rate, latency, etc. of the services). For the throughput of the service, a normal throughput threshold range [s_min, s_max] can be preset in advance. When it is detected that the throughput s of the service exceeds this range (i.e., s < s_min or s > s_max), it is determined that the throughput is abnormal; for the error rate, a normal error rate threshold e_max can be set. When it is detected that the error rate e exceeds this threshold (i.e., e > e_max), it is determined that the error rate is abnormal; for the latency, a normal latency threshold d_max can be set. When it is detected that the latency d exceeds this threshold (i.e., d > d_max), it is determined that the latency is abnormal. When it is detected that the above abnormal conditions occur in the key metrics, it is determined that a fault has been detected, and a current fault alarm message is generated based on the relevant information of the fault (such as the time, location, scope of influence, etc. of the fault occurrence), and the current fault alarm message is sent to the cloud server, which can then obtain the current fault alarm message. For example, the categories of the operation status data can include the fault scope, switch packet forwarding rate, virtual private network sub-machine traffic rate, mother machine traffic rate, and so on.
[0173] 202. The cloud server obtains the pre-stored set of fault alarm messages, and the set of fault alarm messages includes at least one historical fault alarm message of the current cloud environment.
[0174] Among them, the pre-stored set of fault alarm messages can be understood as a set composed of sample data corresponding to the historical fault alarm messages generated before the current moment.
[0175] 203. The cloud server obtains the historical operation status data corresponding to the historical fault alarm message, and the preset fault category corresponding to the historical operation status data.
[0176] 204. The cloud server determines the conditional probability set and the prior probability set based on the historical operation status data and the preset fault category.
[0177] For example, a cloud server can count the number of historical fault alarm messages corresponding to each preset fault category in historical fault alarm information to obtain the category sample number; based on the category sample number, calculate the prior probability of each preset fault category to obtain the prior probability set; extract the mapping relationship between historical operating status data and preset fault categories from historical fault alarm information; and based on the mapping relationship, calculate at least one conditional probability of the category of historical operating status data under each preset fault category to obtain the conditional probability set.
[0178] For example, a cloud server can obtain the total number of historical fault alarm messages in a pre-stored fault alarm message set to get the total number of samples; and use the proportion of the number of category samples in the total number of samples as the prior probability to obtain the prior probability set.
[0179] For example, a cloud server can obtain at least two preset discrete intervals corresponding to the category of each historical operating status data, as well as a preset range corresponding to each preset discrete interval. The preset discrete intervals indicate the data distribution range corresponding to the historical operating status data. Based on the preset range, the historical operating status data contained in each preset discrete interval is determined to obtain the interval historical status parameters. Based on the mapping relationship and the interval historical status parameters, the interval conditional probability of each preset discrete interval corresponding to the category of historical operating status data under the preset fault category is calculated. The interval conditional probability is used as the conditional probability to obtain the set of conditional probabilities corresponding to the category of historical operating status data.
[0180] For example, a cloud server can use each preset fault category as the selected fault category and the number of category samples corresponding to the selected fault category as the number of selected category samples; use each preset discrete interval corresponding to the category of historical operating status data as the target first discrete interval, find the number of target historical state parameters that have a mapping relationship with the selected fault category from the interval historical state parameters of the target first discrete interval, and obtain the target data volume; calculate the proportion of the target data volume in the number of selected category samples, and obtain the interval conditional probability of the target first discrete interval under the selected fault category.
[0181] 205. Based on the category of the running status data, the cloud server selects the conditional probability corresponding to the running status data from the conditional probability set.
[0182] For example, a cloud server can filter out a target conditional probability set corresponding to each category of operational status data from a set of conditional probabilities. The target conditional probability set includes conditional probabilities of at least two preset discrete intervals, each of which corresponds to a preset range. Based on the preset range, the conditional probability of operational status data under each preset fault category is extracted from the target conditional probability set.
[0183] For example, a cloud server can filter the target discrete interval corresponding to the running status data within a preset discrete interval under the category of running status data based on a preset range; filter the conditional probability corresponding to the target discrete interval from the target conditional probability set to obtain the target interval conditional probability; and use the target interval conditional probability as the conditional probability of the running status data under the preset fault category.
[0184] 206. The cloud server determines the posterior probability of the current fault alarm information belonging to each preset fault category based on conditional probability and prior probability.
[0185] For example, a cloud server can use each preset fault category as a candidate fault category and determine at least two conditional probabilities of the current fault alarm information under the candidate fault category; fuse the conditional probabilities to obtain the target conditional probability corresponding to the candidate fault category; and fuse the prior probability of the candidate fault category with the target conditional probability to obtain the posterior probability of the candidate fault category.
[0186] 207. The cloud server uses posterior probability to filter out the selected fault category corresponding to the current fault alarm information from the preset fault categories.
[0187] For example, the cloud server can sort the posterior probabilities of each preset fault category to obtain the posterior probability sorting result; based on the posterior probability sorting result, the selected fault category corresponding to the current fault alarm information can be selected from the preset fault categories.
[0188] 208. The cloud server sends the current fault alarm information to the business server corresponding to the selected fault category.
[0189] For example, a cloud server can filter out the business server corresponding to the selected fault category from the set of business servers in the current cloud environment to obtain the target business server; and send the current fault alarm information and the selected fault category to the target business server so that the target business server can perform fault troubleshooting based on the current fault alarm information and the selected fault category.
[0190] As described above, this embodiment obtains current fault alarm information of the current cloud environment through a cloud server. The current fault alarm information includes at least one operational status data. It also obtains a pre-stored set of fault alarm information, which includes at least one historical fault alarm information of the current cloud environment. Furthermore, it obtains historical operational status data corresponding to the historical fault alarm information, and a preset fault category corresponding to the historical operational status data. Then, the cloud server determines a conditional probability set and a prior probability set based on the historical operational status data and the preset fault category. Next, the cloud server filters out the conditional probability corresponding to the operational status data from the conditional probability set based on the category of the operational status data. Then, the cloud server determines the posterior probability that the current fault alarm information belongs to each preset fault category based on the conditional probability and the prior probability. Next, the cloud server filters out the selected fault category corresponding to the current fault alarm information from the preset fault categories based on the posterior probability. Finally, the cloud server sends the current fault alarm information to the business server corresponding to the selected fault category. Because the cloud server in this solution can use Bayesian algorithm to perform probability analysis on the detected current fault alarm information and determine the selected fault category corresponding to the current fault alarm information, after the selected fault category is determined, the corresponding business server can be accurately and quickly launched to repair the problem, without having to launch all business servers for joint response and troubleshooting one by one. This can reduce the fault category location time, reduce invalid responses, and improve the efficiency of alarm information processing and the availability of business services.
[0191] To better implement the above methods, this application also provides a cloud environment fault handling device, which can be integrated into network devices, such as servers or terminals. The server can be a cloud server, and the terminal can include tablet computers, laptops, and / or personal computers.
[0192] Figure 9 shows a schematic diagram of the cloud environment fault handling device provided in an embodiment of this application. As shown in Figure 9, the cloud environment fault handling device may include a first acquisition unit 301, a second acquisition unit 302, a third acquisition unit 303, a filtering unit 304, a determining unit 305, and a sending unit 306, as follows:
[0193] (1) First acquisition unit 301;
[0194] The first acquisition unit 301 is used to acquire the current fault alarm information of the current cloud environment, which includes at least one operating status data.
[0195] (2) Second acquisition unit 302;
[0196] The second acquisition unit 302 is used to acquire a pre-stored set of fault alarm information, which includes at least one historical fault alarm information of the current cloud environment.
[0197] (3) Third acquisition unit 303;
[0198] The third acquisition unit 303 is used to acquire the conditional probability set and prior probability set corresponding to historical fault alarm information. The conditional probability set includes the conditional probability corresponding to the category of each operating status data, and the prior probability set includes the prior probability corresponding to each preset fault category.
[0199] For example, the third acquisition unit 303 can be used to acquire historical operating status data corresponding to historical fault alarm information, as well as preset fault categories corresponding to historical operating status data; and determine the conditional probability set and the prior probability set based on historical operating status data and preset fault categories.
[0200] For example, the third acquisition unit 303 can be used to count the number of historical fault alarm messages corresponding to each preset fault category in the historical fault alarm information to obtain the category sample number; based on the category sample number, calculate the prior probability of each preset fault category to obtain the prior probability set; extract the mapping relationship between historical operating status data and preset fault categories from the historical fault alarm information; and based on the mapping relationship, calculate at least one conditional probability of the category of historical operating status data under each preset fault category to obtain the conditional probability set.
[0201] For example, the third acquisition unit 303 can be used to acquire the total number of historical fault alarm information in the pre-stored fault alarm information set to obtain the total number of samples; and use the proportion of the number of category samples in the total number of samples as the prior probability to obtain the prior probability set.
[0202] For example, the third acquisition unit 303 can be specifically used to acquire at least two preset discrete intervals corresponding to the category of each historical operating status data, and a preset range corresponding to each preset discrete interval. The preset discrete intervals indicate the data distribution intervals corresponding to the historical operating status data. Based on the preset range, the historical operating status data contained in each preset discrete interval is determined to obtain the interval historical status parameters. Based on the mapping relationship and the interval historical status parameters, the interval conditional probability of each preset discrete interval corresponding to the category of the historical operating status data under the preset fault category is calculated. The interval conditional probability is used as the conditional probability to obtain the set of conditional probabilities corresponding to the category of the historical operating status data.
[0203] For example, the third acquisition unit 303 can be specifically used to take each preset fault category as the selected fault category and take the number of category samples corresponding to the selected fault category as the number of selected category samples; take each preset discrete interval corresponding to the category of historical operating status data as the target first discrete interval, find the number of target historical state parameters that have a mapping relationship with the selected fault category from the interval historical state parameters of the target first discrete interval, and obtain the target data volume; calculate the proportion of the target data volume in the number of selected category samples, and obtain the interval conditional probability of the target first discrete interval under the selected fault category.
[0204] (4) Filtering unit 304;
[0205] The filtering unit 304 is used to filter out the conditional probabilities corresponding to the running status data from the set of conditional probabilities based on the category of the running status data.
[0206] For example, the filtering unit 304 can be used to filter out the target conditional probability set corresponding to the category of each running status data from the conditional probability set. The target conditional probability set includes conditional probabilities of at least two preset discrete intervals, and the preset discrete intervals correspond to a preset range. Based on the preset range, the conditional probability of the running status data under each preset fault category is extracted from the target conditional probability set.
[0207] For example, the filtering unit 304 can be used to filter the target discrete interval corresponding to the running status data in the preset discrete interval under the category of running status data based on a preset range; filter the conditional probability corresponding to the target discrete interval from the target conditional probability set to obtain the conditional probability of the target interval; and use the conditional probability of the target interval as the conditional probability of the running status data under the preset fault category.
[0208] (5) Determine unit 305;
[0209] The determining unit 305 is used to determine the posterior probability that the current fault alarm information belongs to each preset fault category based on the conditional probability and the prior probability.
[0210] For example, the determining unit 305 can be used to take each preset fault category as a candidate fault category and determine at least two conditional probabilities of the current fault alarm information under the candidate fault category; fuse the conditional probabilities to obtain the target conditional probability corresponding to the candidate fault category; and fuse the prior probability of the candidate fault category with the target conditional probability to obtain the posterior probability of the candidate fault category.
[0211] (6) Transmitting unit 306;
[0212] The sending unit 306 is used to filter out the selected fault category corresponding to the current fault alarm information from the preset fault categories based on the posterior probability, and send the current fault alarm information to the service server corresponding to the selected fault category.
[0213] For example, the sending unit 306 can be used to sort the posterior probabilities of each preset fault category to obtain the posterior probability sorting result; based on the posterior probability sorting result, the selected fault category corresponding to the current fault alarm information can be selected from the preset fault categories.
[0214] For example, the sending unit 306 can be used to filter out the business server corresponding to the selected fault category from the set of business servers corresponding to the current cloud environment to obtain the target business server; and send the current fault alarm information and the selected fault category to the target business server so that the target business server can perform fault troubleshooting based on the current fault alarm information and the selected fault category.
[0215] For example, the sending unit 306 can be used to determine the detection result of the selected fault category based on the fault feedback information when it receives the fault feedback information returned by the target service server in response to the current fault alarm information; when the detection result indicates that the selected fault category is incorrect, it can select the service servers other than the target service server in the service server set as candidate service servers; and send the current fault alarm information to the candidate service servers so that the candidate service servers can perform fault troubleshooting based on the current fault alarm information.
[0216] In practice, each of the above units can be implemented as an independent entity or can be arbitrarily combined to be implemented as the same or several entities. For the specific implementation of each of the above units, please refer to the previous method embodiments, which will not be repeated here.
[0217] As described above, this embodiment acquires current fault alarm information of the current cloud environment through the first acquisition unit 301, which includes at least one operating status data; and acquires a pre-stored fault alarm information set through the second acquisition unit 302, which includes at least one historical fault alarm information of the current cloud environment; acquires the conditional probability set and prior probability set corresponding to the historical fault alarm information through the third acquisition unit 303, where the conditional probability set includes the conditional probability corresponding to the category of each operating status data, and the prior probability set includes the prior probability corresponding to each preset fault category; then, the filtering unit 304 filters out the conditional probability corresponding to the operating status data from the conditional probability set based on the category of the operating status data; then, the determining unit 305 determines the posterior probability that the current fault alarm information belongs to each preset fault category based on the conditional probability and the prior probability; finally, the sending unit 306 filters out the selected fault category corresponding to the current fault alarm information from the preset fault categories based on the posterior probability, and sends the current fault alarm information to the business server corresponding to the selected fault category. This solution employs a Bayesian algorithm to perform probabilistic analysis on detected current fault alarm information, determining the selected fault category corresponding to the current fault alarm information. This improves the classification efficiency and accuracy of fault types corresponding to alarm information, thereby quickly locating the fault type. Once the selected fault category is determined, the corresponding business server can be accurately and quickly launched to repair the problem without launching all business servers for joint response and troubleshooting one by one. This reduces invalid responses, avoids excessive resource consumption, improves the response and processing efficiency for current fault alarm information, and enhances the availability of business services.
[0218] This application also provides an electronic device, as shown in FIG10, which illustrates a schematic diagram of the structure of the electronic device involved in this application embodiment. Specifically:
[0219] The electronic device may include components such as a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will understand that the electronic device structure shown in FIG10 does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:
[0220] The processor 401 is the control center of the electronic device, connecting various parts of the device via various interfaces and lines. It executes software programs and / or modules stored in the memory 402, and calls data stored in the memory 402, to perform various functions and process data. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 401.
[0221] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
[0222] The electronic device also includes a power supply 403 that supplies power to the various components. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 403 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0223] The electronic device may also include an input unit 404, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0224] Although not shown, the electronic device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 401 in the electronic device loads the executable files corresponding to the processes of one or more applications into the memory 402 according to the following instructions, and the processor 401 runs the applications stored in the memory 402 to realize various functions, as follows:
[0225] The system retrieves current fault alarm information from the current cloud environment, including at least one operational status data point; retrieves a pre-stored set of fault alarm information, including at least one historical fault alarm from the current cloud environment; retrieves a set of conditional probabilities and a set of prior probabilities corresponding to the historical fault alarm information, where the conditional probability set includes the conditional probability corresponding to the category of each operational status data point, and the prior probability set includes the prior probability corresponding to each preset fault category; based on the category of the operational status data, it filters out the conditional probabilities corresponding to the operational status data from the set of conditional probabilities; based on the conditional probabilities and prior probabilities, it determines the posterior probability that the current fault alarm information belongs to each preset fault category; based on the posterior probability, it filters out the selected fault category corresponding to the current fault alarm information from the preset fault categories and sends the current fault alarm information to the business server corresponding to the selected fault category.
[0226] For example, an electronic device can acquire current fault alarm information of the current cloud environment, which includes at least one operational status data; acquire a pre-stored set of fault alarm information, which includes at least one historical fault alarm information of the current cloud environment; acquire historical operational status data corresponding to the historical fault alarm information, and a preset fault category corresponding to the historical operational status data; then, based on the historical operational status data and the preset fault category, determine a set of conditional probabilities and a set of prior probabilities; then, based on the category of the operational status data, filter out the conditional probabilities corresponding to the operational status data from the set of conditional probabilities; then, based on the conditional probabilities and prior probabilities, determine the posterior probability that the current fault alarm information belongs to each preset fault category; then, based on the posterior probabilities, filter out the selected fault category corresponding to the current fault alarm information from the preset fault categories; finally, send the current fault alarm information to the business server corresponding to the selected fault category.
[0227] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0228] As described above, this application embodiment obtains current fault alarm information of the current cloud environment, which includes at least one operational status data, and obtains a pre-stored fault alarm information set, which includes at least one historical fault alarm information of the current cloud environment. It also obtains a conditional probability set and a priori probability set corresponding to the historical fault alarm information. The conditional probability set includes the conditional probability corresponding to the category of each operational status data, and the priori probability set includes the priori probability corresponding to each preset fault category. In the above process, the obtained conditional probability set and priori probability set are used as a basis so that the conditional probability corresponding to the operational status data can be filtered from the conditional probability set based on the category of the operational status data. After determining the conditional probability corresponding to the operational status data, further steps can be taken based on... Conditional probability and prior probability are used to perform probabilistic analysis on the current fault alarm information to determine the posterior probability of the current fault alarm information belonging to each preset fault category. Then, based on the posterior probability, the selected fault category corresponding to the current fault alarm information is selected from the preset fault categories. This can improve the classification efficiency and accuracy of the fault type corresponding to the current fault alarm information, and quickly locate the fault type. After the selected fault category is determined, the current fault alarm information can be sent to the business server corresponding to the selected fault category, so that the corresponding business server can be accurately and quickly launched to fix the problem, without having to launch all business servers for joint response and troubleshooting one by one. This reduces invalid responses, avoids excessive resource consumption, improves the response efficiency and processing efficiency of the current fault alarm information, and improves the availability of business services.
[0229] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0230] Therefore, embodiments of this application provide a computer-readable storage medium storing a plurality of instructions that can be loaded by a processor to execute steps in any of the cloud environment fault handling methods provided in embodiments of this application. For example, the instructions can execute the following steps:
[0231] The system retrieves current fault alarm information from the current cloud environment, including at least one operational status data point; retrieves a pre-stored set of fault alarm information, including at least one historical fault alarm from the current cloud environment; retrieves a set of conditional probabilities and a set of prior probabilities corresponding to the historical fault alarm information, where the conditional probability set includes the conditional probability corresponding to the category of each operational status data point, and the prior probability set includes the prior probability corresponding to each preset fault category; based on the category of the operational status data, it filters out the conditional probabilities corresponding to the operational status data from the set of conditional probabilities; based on the conditional probabilities and prior probabilities, it determines the posterior probability that the current fault alarm information belongs to each preset fault category; based on the posterior probability, it filters out the selected fault category corresponding to the current fault alarm information from the preset fault categories and sends the current fault alarm information to the business server corresponding to the selected fault category.
[0232] For example, the system acquires current fault alarm information of the current cloud environment, which includes at least one operational status data; it also acquires a pre-stored set of fault alarm information, which includes at least one historical fault alarm information of the current cloud environment; it then acquires historical operational status data corresponding to the historical fault alarm information, and preset fault categories corresponding to the historical operational status data; based on the historical operational status data and preset fault categories, it determines a set of conditional probabilities and a set of prior probabilities; then, based on the category of the operational status data, it filters out the conditional probabilities corresponding to the operational status data from the set of conditional probabilities; then, based on the conditional probabilities and prior probabilities, it determines the posterior probability that the current fault alarm information belongs to each preset fault category; then, based on the posterior probabilities, it filters out the selected fault category corresponding to the current fault alarm information from the preset fault categories; finally, it sends the current fault alarm information to the business server corresponding to the selected fault category.
[0233] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0234] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0235] Since the instructions stored in the computer-readable storage medium can execute the steps in any of the cloud environment fault handling methods provided in the embodiments of this application, the beneficial effects that any of the cloud environment fault handling methods provided in the embodiments of this application can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.
[0236] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform the methods provided in the various alternative implementations of the above-described alarm information processing.
[0237] In summary, this application provides a cloud environment fault handling method, apparatus, electronic device, computer-readable storage medium, and computer program product. It acquires current fault alarm information of the current cloud environment, which includes at least one operational status data point. It then acquires a pre-stored set containing at least one historical fault alarm information point of the current cloud environment, as well as a conditional probability set and a prior probability set corresponding to the historical fault alarm information. The conditional probability set covers the conditional probability of each operational status data category, and the prior probability set contains the prior probability of each preset fault category. Based on the category of the operational status data, it filters the corresponding conditional probabilities from the conditional probability set. Combining the conditional probabilities and prior probabilities, it determines the posterior probability that the current fault alarm information belongs to each preset fault category. Finally, based on the posterior probability, it selects the chosen fault category and sends the current fault alarm information to the corresponding business server. This Bayesian algorithm-based processing method can use historical data to perform probabilistic analysis on current fault alarm information. Since historical data reflects the actual correlation between different operating states and fault types, the judgment of fault types is more scientific and accurate. It avoids the uncertainty of blind joint response and individual investigation in traditional methods, thereby improving the efficiency and accuracy of fault type classification, reducing the time and resource consumption of fault location, and improving the efficiency of fault handling.
[0238] Furthermore, when acquiring the conditional probability set and prior probability set corresponding to historical fault alarm information, historical operating state data and its corresponding preset fault categories are obtained, and the probability set is determined based on this. This ensures that probability calculations are based on actual historical fault situations. Historical operating state data records the specific states when different faults occur, and preset fault categories clarify the fault types. The conditional and prior probabilities calculated based on this actual data can more accurately reflect the patterns of fault occurrence, providing a more reliable basis for subsequent analysis of current fault alarm information, thereby improving the accuracy of fault judgment and reducing the possibility of misjudgment.
[0239] Furthermore, when determining the probability set based on historical operating status data and preset fault categories, the number of historical fault alarm messages for each preset fault category is counted to obtain the category sample size. Based on this, the prior probability is calculated, and simultaneously, the mapping relationship between historical operating status data and preset fault categories is extracted to calculate the conditional probability. Through systematic statistical analysis of historical data, a more comprehensive understanding of the frequency of occurrence of different fault categories in history and their correlation with operating status data can be obtained. The prior probability reflects the likelihood of each preset fault category in the overall picture, while the conditional probability reflects the probability of different operating status data occurring under a specific fault category. Combining the two can more accurately describe the probability distribution of fault occurrence, improve the accuracy of fault type judgment, and optimize the fault handling process.
[0240] Furthermore, when calculating the prior probability based on the number of category samples, the total number of historical fault alarm messages is obtained to obtain the total sample size, and the proportion of the category samples in the total sample size is used as the prior probability. This proportion-based calculation method can objectively reflect the relative importance of each preset fault category in historical data, avoiding interference from subjective factors. The prior probability serves as the basis for subsequent Bayesian calculations, and its accuracy directly affects the calculation result of the posterior probability, thus influencing the final fault type determination. Therefore, accurate prior probabilities can improve the reliability of fault determination.
[0241] Furthermore, when calculating conditional probabilities based on mapping relationships, historical operating state data is divided into preset discrete intervals. Historical state parameters for each interval are determined based on a preset range. The interval conditional probability is then calculated by combining the mapping relationship and the historical state parameters. Since historical operating state data is a continuous variable, directly calculating the probability is complex. Dividing the data into preset discrete intervals discretizes the continuous data, facilitating calculation and analysis. By analyzing the mapping relationship between historical state parameters and preset fault categories within each discrete interval, a more detailed understanding of the association between different operating state intervals and fault types can be obtained, improving the accuracy of conditional probabilities and thus enhancing the precision of fault type judgment.
[0242] Furthermore, when calculating the interval conditional probability, preset fault categories are sequentially selected as fault categories, and the corresponding number of samples for each selected category is determined. A preset discrete interval is used as the first target discrete interval. The number of target historical state parameters that have a mapping relationship with the selected fault categories is found to obtain the target data volume. The proportion of the target data volume in the number of samples for each selected category is calculated to obtain the interval conditional probability. This method of accurately calculating the interval conditional probability of each preset discrete interval under different preset fault categories can more meticulously characterize the relationship between operating state data and fault categories, enabling the conditional probability set to more accurately reflect the correlation between different operating states and fault types, thereby improving the accuracy and reliability of fault type judgment.
[0243] Furthermore, when filtering conditional probabilities based on the categories of operational status data, a target conditional probability set corresponding to each operational status data category is selected. The conditional probabilities of the operational status data under each preset fault category are then extracted from the target conditional probability set within a preset range. This filtering and extraction method can accurately obtain relevant conditional probabilities from the conditional probability set based on the actual situation of the current operational status data, avoiding interference from irrelevant information and providing accurate data support for subsequent calculations of posterior probabilities, thereby improving the accuracy of fault type judgment.
[0244] Furthermore, when the target conditional probability set contains the conditional probability of each preset discrete interval under each preset fault category, the target discrete interval corresponding to the operating status data is selected based on a preset range. The conditional probability corresponding to the target discrete interval is then selected from the target conditional probability set as the conditional probability of the operating status data under the preset fault category. This precise method of selecting target discrete intervals and conditional probabilities can more accurately determine the conditional probability of operating status data under different preset fault categories, making the calculation of posterior probability more consistent with the actual situation and improving the accuracy of fault type judgment.
[0245] Furthermore, when determining the posterior probability, preset fault categories are sequentially used as candidate fault categories. At least two conditional probabilities are determined for the current fault alarm information under each candidate fault category. These conditional probabilities are then fused to obtain the target conditional probability. Finally, the prior probabilities of the candidate fault categories are fused with the target conditional probability to obtain the posterior probability. By fusing conditional and prior probabilities to calculate the posterior probability, the correlation between different operating state data and fault categories, as well as the probability of each fault category within the overall context, can be comprehensively considered. This allows the posterior probability to more comprehensively reflect the likelihood of the current fault alarm information belonging to each preset fault category, improving the accuracy and reliability of fault type determination.
[0246] Furthermore, when selecting fault categories, the posterior probabilities of the preset fault categories are sorted, and the selected fault categories are selected based on the sorting results. Sorting clearly compares the probability of each preset fault category, allowing the most likely fault category to be quickly determined. This probability-based sorting method avoids the uncertainty of subjective judgment and improves the efficiency and accuracy of fault type localization.
[0247] Furthermore, when sending the current fault alarm information to the business server corresponding to the selected fault category, the target business server is selected from the set of business servers, and the current fault alarm information and the selected fault category are sent to that server for fault diagnosis. This method of accurately selecting the target business server and sending relevant information ensures that the fault information is accurately transmitted to the business server responsible for handling the fault, avoiding mistransmission of information and waste of resources, and improving the targeting and efficiency of fault handling.
[0248] Furthermore, after sending the information to the target service server, the detection result of the selected fault category is determined based on the fault feedback information returned by the target service server. If the detection result indicates that the selected fault category is incorrect, service servers other than the target service server are selected as candidate service servers, and the current fault alarm information is sent for investigation. This method of adjusting the investigation scope in a timely manner when the selected fault category is incorrect can expand the scope of fault investigation, avoid the failure to resolve the fault in a timely manner due to an incorrect initial judgment, and improve the comprehensiveness and accuracy of fault investigation.
[0249] Furthermore, if the detection result indicates that the selected fault category is incorrect, a backup fault category is selected based on the posterior probability, and the current fault alarm information is sent to the business server corresponding to the backup fault category for investigation. This method of selecting backup fault categories provides a backup plan when the initial judgment is incorrect, increases the success rate of fault location, avoids getting stuck due to a single misjudgment, and improves the efficiency of fault handling.
[0250] Furthermore, after identifying all service servers other than the target service server as candidate service servers, the preset range corresponding to the preset discrete interval is updated based on the detection results, and the conditional probability set is updated according to the updated range. Since the detection results reflect the difference between the actual fault situation and the previous judgment, updating the preset range and conditional probability set makes subsequent fault type judgments more consistent with the actual situation and adapts to changes in fault occurrence patterns. The updated conditional probability set can more accurately reflect the correlation between different operating states and fault types, improving the accuracy and reliability of fault location and continuously optimizing the fault handling process.
[0251] The cloud server monitors the current cloud environment in various ways, such as real-time monitoring of service operation status and performance metrics. This makes the acquired fault alarm information more timely and accurate. By monitoring aspects such as service response time, resource utilization, and network connection status, a comprehensive and detailed understanding of the cloud environment's state can be achieved. Any anomalies can be quickly detected and alarm information generated. This comprehensive monitoring mechanism provides a solid foundation for subsequent fault analysis and handling, improving the timeliness and accuracy of fault handling. Simultaneously, the business servers of each business team also monitor the current cloud environment from different service perspectives, further increasing the comprehensiveness of fault detection. Different business servers focus on their respective key metrics, such as service throughput, error rate, and latency, enabling the discovery of potential faults from multiple dimensions. This provides a richer source of fault alarm information for the cloud server, increasing the probability of fault detection and thus enhancing the reliability of the entire cloud environment fault handling system.
[0252] The above provides a detailed description of a cloud environment fault handling method, apparatus, and computer-readable storage medium provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
[0253] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0254] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A cloud environment fault handling method, executed by an electronic device, comprising: Obtain current fault alarm information of the current cloud environment, wherein the current fault alarm information includes at least one operating status data; Obtain a pre-stored set of fault alarm information, wherein the set of fault alarm information includes at least one historical fault alarm information of the current cloud environment; Obtain the conditional probability set and prior probability set corresponding to the historical fault alarm information. The conditional probability set includes the conditional probability corresponding to each category of the operating status data. The prior probability set includes the prior probability corresponding to each preset fault category. Based on the category of the running status data, the conditional probabilities corresponding to the running status data are selected from the conditional probability set; Based on the conditional probability and the prior probability, determine the posterior probability that the current fault alarm information belongs to each of the preset fault categories; and Based on the posterior probability, the selected fault category corresponding to the current fault alarm information is selected from the preset fault categories, and the current fault alarm information is sent to the service server corresponding to the selected fault category.
2. The cloud environment fault handling method as described in claim 1, wherein obtaining the conditional probability set and prior probability set corresponding to the historical fault alarm information includes: Obtain the historical operating status data corresponding to the historical fault alarm information, and the preset fault category corresponding to the historical operating status data; Based on the historical operating status data and the preset fault categories, the conditional probability set and the prior probability set are determined.
3. The cloud environment fault handling method as described in claim 2, wherein determining the conditional probability set and the prior probability set based on the historical operating status data and the preset fault category includes: The number of historical fault alarm messages corresponding to each preset fault category is counted in the historical fault alarm information to obtain the category sample number; Based on the number of samples in the aforementioned categories, the prior probability of each of the preset fault categories is calculated to obtain the prior probability set. Extract the mapping relationship between the historical operating status data and the preset fault category from the historical fault alarm information; Based on the mapping relationship, calculate at least one conditional probability of the category of the historical operating status data under each preset fault category to obtain the conditional probability set.
4. The cloud environment fault handling method as described in claim 3, wherein calculating the prior probability of each preset fault category based on the number of samples of the category to obtain the prior probability set includes: Obtain the total number of historical fault alarm messages in the pre-stored fault alarm information set to get the total number of samples; The proportion of the number of samples in the category to the total number of samples is used as the prior probability to obtain the prior probability set.
5. The cloud environment fault handling method as described in claim 3 or 4, wherein calculating at least one conditional probability of the category of the historical operating status data under each preset fault category based on the mapping relationship, to obtain the conditional probability set, includes: Obtain at least two preset discrete intervals corresponding to the category of each historical operating state data, and a preset range corresponding to each preset discrete interval, wherein the preset discrete intervals indicate the data distribution intervals corresponding to the historical operating state data; Based on the preset range, the historical operating status data contained in each preset discrete interval is determined to obtain the interval historical status parameters; Based on the mapping relationship and the interval historical state parameters, calculate the interval conditional probability of each preset discrete interval corresponding to the category of the historical operating state data under the preset fault category; The interval conditional probability is used as the conditional probability to obtain the set of conditional probabilities corresponding to the categories of the historical operating state data.
6. The cloud environment fault handling method as described in claim 5, wherein calculating the interval conditional probability of each preset discrete interval corresponding to the category of the historical operating state data under the preset fault category based on the mapping relationship and the interval historical state parameters includes: Each of the preset fault categories is taken as the selected fault category, and the number of category samples corresponding to the selected fault category is taken as the number of selected category samples; Each preset discrete interval corresponding to the category of the historical operating status data is taken as the target first discrete interval. The number of target historical status parameters that have the mapping relationship with the selected fault category is found from the interval historical status parameters of the target first discrete interval to obtain the target data volume. Calculate the proportion of the target data volume in the number of samples in the selected category to obtain the interval conditional probability of the target first discrete interval under the selected fault category.
7. The cloud environment fault handling method according to any one of claims 1 to 6, wherein the step of filtering the conditional probability corresponding to the operating status data from the conditional probability set based on the category of the operating status data includes: Filter out the target conditional probability set corresponding to each category of the running state data from the conditional probability set. The target conditional probability set includes conditional probabilities of at least two preset discrete intervals, and the preset discrete intervals correspond to a preset range. Based on the preset range, the conditional probability of the operating status data under each preset fault category is extracted from the target conditional probability set.
8. The cloud environment fault handling method as described in claim 7, wherein the target conditional probability set further includes the conditional probability of each of the preset discrete intervals under each of the preset fault categories. The step of extracting the conditional probability of the operating status data under each preset fault category from the target conditional probability set based on the preset range includes: Based on the preset range, the target discrete interval corresponding to the running status data is filtered from the preset discrete interval under the category of the running status data. The conditional probabilities corresponding to the target discrete intervals are selected from the target conditional probability set to obtain the target interval conditional probabilities; The conditional probability of the target interval is used as the conditional probability of the operating status data under the preset fault category.
9. The cloud environment fault handling method according to any one of claims 1 to 8, wherein determining the posterior probability that the current fault alarm information belongs to each of the preset fault categories based on the conditional probability and the prior probability includes: Each of the preset fault categories is used as a candidate fault category, and at least two conditional probabilities of the current fault alarm information under the candidate fault category are determined. The conditional probabilities are fused to obtain the target conditional probability corresponding to the candidate fault category; The prior probability of the candidate fault category is fused with the target conditional probability to obtain the posterior probability of the candidate fault category.
10. The cloud environment fault handling method according to any one of claims 1 to 9, wherein the step of selecting the selected fault category corresponding to the current fault alarm information from the preset fault categories based on the posterior probability includes: The posterior probabilities of each preset fault category are sorted to obtain the posterior probability sorting result; Based on the posterior probability ranking result, the selected fault category corresponding to the current fault alarm information is filtered out from the preset fault categories.
11. The cloud environment fault handling method according to any one of claims 1 to 10, wherein sending the current fault alarm information to the service server corresponding to the selected fault category includes: The target business server is obtained by filtering the business server corresponding to the selected fault category from the set of business servers corresponding to the current cloud environment; The current fault alarm information and the selected fault category are sent to the target service server so that the target service server can perform fault troubleshooting based on the current fault alarm information and the selected fault category.
12. The cloud environment fault handling method as described in claim 11, further comprising, after sending the current fault alarm information and the selected fault category to the target service server: When the target service server returns fault feedback information in response to the current fault alarm information, the detection result of the selected fault category is determined based on the fault feedback information. When the detection result indicates that the selected fault category is incorrect, the business servers in the set of business servers other than the target business server are selected as candidate business servers. The current fault alarm information is sent to the candidate service server so that the candidate service server can perform fault troubleshooting based on the current fault alarm information.
13. The cloud environment fault handling method as described in claim 12, after determining the detection result of the selected fault category based on the fault feedback information, further includes: When the detection result indicates that the selected fault category is incorrect, based on the posterior probability, a substitute fault category corresponding to the current fault alarm information is selected from the preset fault categories. The posterior probability of the substitute fault category is less than the posterior probability corresponding to the selected fault category. The current fault alarm information is sent to the service server corresponding to the alternative fault category, so that the service server corresponding to the alternative fault category can perform fault troubleshooting based on the current fault alarm information and the alternative fault category.
14. The cloud environment fault handling method as described in claim 12 or 13, further comprising, after selecting the business servers other than the target business server in the set of business servers as candidate business servers: Based on the detection results, the preset range corresponding to the preset discrete interval is updated to obtain the updated first discrete interval and the updated first range corresponding to the updated first discrete interval. Based on the updated first range, the conditional probability set is updated to obtain the updated conditional probability set; The updated conditional probability set is used as the conditional probability set corresponding to the category of the historical operating state data.
15. A cloud environment fault handling device, comprising: The first acquisition unit is used to acquire the current fault alarm information of the current cloud environment, wherein the current fault alarm information includes at least one operating status data; The second acquisition unit is used to acquire a pre-stored set of fault alarm information, wherein the set of fault alarm information includes at least one historical fault alarm information of the current cloud environment; The third acquisition unit is used to acquire the conditional probability set and the prior probability set corresponding to the historical fault alarm information. The conditional probability set includes the conditional probability corresponding to each category of the operating status data, and the prior probability set includes the prior probability corresponding to each preset fault category. The filtering unit is used to filter out the conditional probabilities corresponding to the running status data from the conditional probability set based on the category of the running status data; The determining unit is configured to determine the posterior probability that the current fault alarm information belongs to each of the preset fault categories based on the conditional probability and the prior probability. and The sending unit is configured to, based on the posterior probability, filter out the selected fault category corresponding to the current fault alarm information from the preset fault categories, and send the current fault alarm information to the service server corresponding to the selected fault category.
16. An electronic device comprising a processor and a memory, the memory storing an application program, the processor being configured to run the application program within the memory to perform the steps of the cloud environment fault handling method according to any one of claims 1 to 14.
17. A computer program product comprising computer instructions that, when executed by a processor, implement the steps of the cloud environment fault handling method according to any one of claims 1 to 14.
18. A computer-readable storage medium storing a plurality of instructions adapted for loading by a processor to perform the steps of the cloud environment fault handling method according to any one of claims 1 to 14.