Resource pool fault positioning method and device
Through an automated method based on time slicing and device topology in the cloud computing resource pool, the fault topology is merged and the root cause device is determined, which solves the problem of low fault location efficiency in the cloud computing resource pool and achieves fast and accurate fault identification and location.
Patent Information
- Application Number
- CN202410933150.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-07-12
AI Technical Summary
Cloud computing resource pool fault location efficiency is low and cannot achieve timeliness and accuracy. This is mainly due to the reliance on the experience and professional skills of operation and maintenance engineers, resulting in human judgment errors and difficulty in fault identification.
By merging the fault topology of multiple time slices based on the frequency of abnormal events and device topology based on time slices, the impact of the root cause device can be determined, automatic fault location can be achieved, and human intervention can be reduced.
It improves the efficiency and accuracy of resource pool fault location, achieves rapid identification and precise location, lowers the technical threshold for operation and maintenance personnel, and enhances the operation and maintenance capabilities of the resource pool.
Smart Images

Figure CN118869462A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of cloud computing technology, and in particular to a method and device for locating a resource pool fault. Background Art
[0002] The development of cloud computing technology has changed the deployment architecture of the original business system. By pooling physical resources such as computing, storage, and network, it has realized on-demand resource acquisition and flexible migration of services, thereby improving the utilization rate of physical resources and the high availability of services. The resource pool corresponding to cloud computing includes physical and virtual devices from multiple professions and manufacturers such as computing, storage, network, security, and virtualization. The failure of one device usually triggers alarms or other abnormal events in the peer device or cross-level physical and virtual devices, which makes it difficult to detect and locate the fault.
[0003] The relevant technology needs to rely on operation and maintenance engineers with operation and maintenance experience and professional skills to locate faults in the resource pool corresponding to cloud computing. The efficiency of fault location is low and it is impossible to achieve the timeliness and accuracy of fault location. Summary of the invention
[0004] The present application provides a resource pool fault locating method and device, which are used to solve the technical problem of how to improve the efficiency of fault locating and improve the timeliness and accuracy of fault locating.
[0005] The present application provides a resource pool fault location method, including: Determining that a current fault occurs in the resource pool based on the frequency of abnormal events in the resource pool in the current time slice; Determine a fault topology corresponding to the current time slice based on an abnormal event in the current time slice and a device topology corresponding to the resource pool in the current time slice; Merging the fault topologies corresponding to the multiple time slices corresponding to the current fault to determine the fault topology corresponding to the current fault; Based on the degree of influence of each device in the fault topology corresponding to the current fault on other devices in the resource pool, a root cause device corresponding to the current fault is determined.
[0006] In some embodiments, determining that a current fault occurs in the resource pool based on the frequency of abnormal events in the resource pool in the current time slice includes: Obtaining the frequency of abnormal events of the resource pool in the current time slice; When the frequency of abnormal events in the current time slice is greater than a preset frequency threshold, determining that a current fault occurs in the resource pool; The preset frequency threshold is determined based on the mean and standard deviation of the frequency of abnormal events occurring in the resource pool during normal operation.
[0007] In some embodiments, determining the fault topology corresponding to the current time slice based on the abnormal event in the current time slice and the device topology corresponding to the resource pool in the current time slice includes: Obtain the devices corresponding to the current time slice of the resource pool and the corresponding relationship between the devices; Based on the devices and the corresponding relationships between the devices, construct a device topology of the resource pool corresponding to the current time slice; Devices in the device topology are marked based on abnormal events in the current time slice to obtain a fault topology corresponding to the current time slice.
[0008] In some embodiments, merging the fault topologies corresponding to the multiple time slices corresponding to the current fault to determine the fault topology corresponding to the current fault includes: Determine a plurality of time slices corresponding to the current fault; Taking the fault topology corresponding to the first time slice among the multiple time slices as the initial fault topology corresponding to the current fault; Merge the first devices corresponding to the remaining time slices in the multiple time slices into the initial fault topology to obtain the fault topology corresponding to the current fault; The first device is the device where the abnormal event occurs in the remaining time slices.
[0009] In some embodiments, the step of merging the first devices corresponding to the remaining time slices in the multiple time slices into the initial fault topology to obtain the fault topology corresponding to the current fault includes: Determine the current time slice to be merged; Determine a first device set and a second device set corresponding to the current time slice to be merged; In the case where the first device set and the initial fault topology have an intersection, or the first device set and the initial fault topology do not have an intersection and the second device set and the initial fault topology have an intersection, merge the devices in the first device set into the initial fault topology to obtain an updated initial fault topology; In a case where the current time slice to be merged is the last remaining time slice, using the updated initial fault topology as the fault topology corresponding to the current fault; The second device is a device adjacent to the first device and where no abnormal event occurs.
[0010] In some embodiments, determining the root cause device corresponding to the current fault based on the degree of influence of each device in the fault topology corresponding to the current fault on the remaining devices in the resource pool includes: Determine the current device to be analyzed based on the fault topology corresponding to the current fault; Determine, based on the degree of influence of the current device to be analyzed on other devices in the resource pool, a set of influencing devices and a set of non-influencing devices corresponding to the current device to be analyzed; In the case where the object device of the abnormal event belongs to the set of influencing devices, increasing the influence degree coefficient of the current device to be analyzed; In the case where the target device of the abnormal event belongs to the non-influence device set, reducing the influence degree coefficient of the current device to be analyzed; The device corresponding to the maximum value of the influence degree coefficient in the fault topology corresponding to the current fault is determined as the root cause device corresponding to the current fault.
[0011] In some embodiments, determining the affecting device set and the non-affecting device set corresponding to the current device to be analyzed based on the degree of influence of the current device to be analyzed on other devices in the resource pool includes: The remaining devices in the resource pool are divided into piles based on the abnormal event propagation relationship to determine the affecting device set and the non-affecting device set corresponding to the current device to be analyzed.
[0012] The present application provides a resource pool fault locating device, comprising: A fault judgment module, used to determine the current fault of the resource pool based on the frequency of abnormal events of the resource pool in the current time slice; A topology generation module, configured to determine a fault topology corresponding to the current time slice based on an abnormal event in the current time slice and a device topology corresponding to the resource pool in the current time slice; A slice merging module, used to merge the fault topologies corresponding to the multiple time slices corresponding to the current fault, and determine the fault topology corresponding to the current fault; The fault location module is used to determine the root cause device corresponding to the current fault based on the degree of influence of each device in the fault topology corresponding to the current fault on the remaining devices in the resource pool.
[0013] The present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the resource pool fault locating method when executing the computer program.
[0014] The present application provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the resource pool fault locating method is implemented.
[0015] The resource pool fault locating method and device provided in the present application determine the current fault of the resource pool based on the frequency of abnormal events in the resource pool in the current time slice; determine the fault topology corresponding to the current time slice based on the abnormal events in the current time slice and the device topology corresponding to the resource pool in the current time slice; merge the fault topologies corresponding to multiple time slices corresponding to the current fault to determine the fault topology corresponding to the current fault; determine the root cause device corresponding to the current fault based on the degree of influence of each device in the fault topology corresponding to the current fault on the remaining devices in the resource pool; achieve independent reliance on the operation and maintenance experience and professional knowledge of the operation and maintenance engineers, but instead locate the fault of the resource pool based on the frequency of abnormal events, device topology and the degree of influence of each device on the remaining devices in the resource pool, thereby reducing errors in human judgment, achieving rapid identification and accurate location of resource pool faults, improving the efficiency of resource pool fault location, and improving the timeliness and accuracy of resource pool fault location. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0017] In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0018] Figure 1 This is one of the flow charts of the resource pool fault locating method provided in this application.
[0019] Figure 2 is a schematic diagram of the fault topology provided in this application.
[0020] Figure 3 This is one of the fault topology diagrams after time slice merging provided in this application.
[0021] Figure 4 This is the second fault topology diagram after time slice merging provided by this application.
[0022] Figure 5 This is the third fault topology diagram after time slice merging provided by this application.
[0023] Figure 6 This is a schematic diagram of the selection of time slices provided in this application.
[0024] Figure 7 It is a schematic diagram of the root cause device stack matching provided by this application.
[0025] Figure 8 It is a schematic diagram of the abnormal event propagation relationship provided by this application.
[0026] Fig. 9 This is the second flow chart of the resource pool fault locating method provided in this application.
[0027] Fig.10 It is a structural diagram of the resource pool fault locating device provided in this application.
[0028] Fig.11 It is a schematic diagram of the structure of the electronic device provided by this application. DETAILED DESCRIPTION
[0029] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0030] It should be noted that the terms "first", "second" etc. in the present application are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable in appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, the process, method, system, product or equipment comprising a series of steps or units or modules need not be limited to those steps or units or modules clearly listed, but may include other steps or units or modules that are not clearly listed or inherent to these processes, methods, products or equipment.
[0031] In the technical solution of this application, the collection, storage, use, processing, transmission, provision and disclosure of personal information involved comply with the provisions of relevant laws and regulations, take necessary confidentiality measures, and do not violate public order and good morals.
[0032] During the operation of cloud computing resource pools, there may be a large number of known abnormal events (such as confirmed version defects, planned network operations, etc.) or prompt alarm information (such as account expiration, license capacity, etc.). Usually, this type of information is mixed with abnormal events caused by sudden failures, which interferes with the diagnosis of faults. For example, a host in a resource pool goes down, triggering 36 resource pool-related alarms, including: 32 alarms caused by 6 switches, 2 alarms caused by 1 host, and 2 alarms caused by storage. At the same time, there are 21 alarms that are not related to this failure during this period.
[0033] The related technology mainly relies on the manual experience and professional skills of operation and maintenance engineers to identify and locate resource pool faults: 1) Monitor resource pool alarms and abnormal events. When unconfirmed alarms or abnormal events occur, it can be judged that a fault has occurred and simple faults can be located. 2) When a large number of cross-professional and cross-device abnormal events and alarms occur, operation and maintenance engineers are required to locate faulty equipment based on their professional knowledge and experience according to the timeline of the alarms or abnormal events.
[0034] Since the fault identification and location of resource pools is completely dependent on operation and maintenance engineers with operation and maintenance experience and professional skills, the efficiency of fault location is affected and the timeliness and accuracy of fault identification and location cannot be met.
[0035] In order to solve the shortcomings of related technologies, Figure 1 This is one of the flow charts of the resource pool fault location method provided by this application, such as Figure 1 As shown, the method includes step 110 , step 120 , step 130 and step 140 .
[0036] Step 110: Based on the frequency of abnormal events in the resource pool in the current time slice, determine that the resource pool has a current fault.
[0037] Specifically, the execution subject of the resource pool fault location method provided in the embodiment of the present application is a resource pool fault location device. The device can be implemented by software, such as a resource pool fault location program; or it can be a device for executing the resource pool fault location method, such as a mobile terminal, a tablet computer, a desktop computer or a server.
[0038] Resource pool refers to a mechanism or entity that centrally manages and allocates available resources in the field of computer and information technology. Resource pools can include various types of resources, such as computing resources (such as processors, memory), storage resources (such as hard disk space), network bandwidth, software licenses, virtual machine instances, container instances, etc. These resources can also be divided into physical resources and virtual resources. Physical resources refer to actual hardware resources. Virtual resources refer to resources obtained through software virtualization based on physical resources.
[0039] Fault identification refers to determining whether a resource pool has or is experiencing a fault. Fault location refers to determining which of the numerous device objects involved in the abnormal events that occurred during the fault process is the root cause device, and which abnormal event is the root cause abnormal event. The root cause device refers to the device or system involved in the root cause of the abnormal event in the resource pool.
[0040] Abnormal events usually refer to unusual or abnormal events or situations that occur during system operation. These anomalies may come from software, hardware or environmental factors, and may affect the stability, performance or security of the system. The frequency of abnormal events refers to the number of times an abnormal event occurs.
[0041] A time slice refers to a time segment for analyzing and counting abnormal events. For example, the length of a time slice can be determined with a granularity of 1 minute.
[0042] The length of the time slice can be determined, and the frequency of abnormal events in the resource pool in each time slice can be counted. If the frequency of abnormal events in the current time slice is greater than the preset value or changes rapidly, it can be considered that the resource pool has a fault. Considering that the resource pool may have multiple faults, the fault that occurred in the current time slice can be determined as the current fault (also called the current fault).
[0043] Step 120: Based on the abnormal events in the current time slice and the device topology corresponding to the resource pool in the current time slice, determine the fault topology corresponding to the current time slice.
[0044] Specifically, in the field of computer networking and communications, topology refers to the structure and layout of the physical or logical connections between devices, describing how devices are connected and how data is transmitted between them.
[0045] The device topology can be constructed based on the physical devices, virtual devices, and the corresponding relationships between devices (including dynamic mapping relationships and connection relationships, etc.) in the resource pool. For example, in daily operation and maintenance work, the device topology of the resource pool can be generated through the resource pool configuration management database (CMDB). The generated device topology can also be called the dynamic three-dimensional topology of the resource pool. Dynamic means that the corresponding relationship between devices in the resource pool needs to be updated in real time, such as the corresponding relationship between the host and the virtual machine, so the device topology is updated in real time. The device topology corresponding to the current time slice may be inconsistent with the device topology corresponding to the previous time slice. Three-dimensional means that the device topology includes devices at all levels in the resource pool, such as physical devices, virtual devices, business systems, etc.
[0046] Fault topology refers to the device topology that contains the device information corresponding to the abnormal event. You can determine the object devices corresponding to each abnormal event in the current time slice (devices that generate or propagate abnormal events, etc.), mark the device topology corresponding to the current time slice in the resource pool, and obtain the fault topology corresponding to the current time slice.
[0047] Step 130: Merge the fault topologies corresponding to multiple time slices corresponding to the current fault to determine the fault topology corresponding to the current fault.
[0048] Specifically, abnormal events caused by resource pool failures usually last for a long time and are generally not fully output within one time slice. Therefore, there may be multiple continuous or discontinuous time slices belonging to the same failure. In actual operations, multiple time slices belonging to the same failure need to be merged.
[0049] Merging multiple time slices actually merges the fault topologies corresponding to the multiple time slices. The devices where abnormal events occur in the fault topologies corresponding to the various time slices corresponding to the current fault may be different, and these devices may all be the root cause devices corresponding to the current fault. Therefore, the fault topologies corresponding to the multiple time slices corresponding to the current fault can be merged to obtain a fault topology that can ultimately include the devices that generated abnormal events in the current fault.
[0050] Step 140: Determine the root cause device corresponding to the current fault based on the degree of influence of each device in the fault topology corresponding to the current fault on the remaining devices in the resource pool.
[0051] Specifically, taking any device in the fault topology corresponding to the current fault as an example, the device may or may not affect the other devices in the resource pool. The greater the impact, the more likely the device is to be the root cause device corresponding to the current fault; the smaller the impact, the less likely the device is to be the root cause device corresponding to the current fault.
[0052] The object device corresponding to the abnormal event can be determined to determine whether the object device is an impact device of any device in the fault topology corresponding to the current fault (the object device is affected by the device). And the degree of impact of the device on the remaining devices in the resource pool is determined based on the number of impact devices of the device. It can be understood that the greater the impact, the more likely the device is to be the root cause device corresponding to the current fault.
[0053] The resource pool fault locating method provided in the embodiment of the present application determines the current fault of the resource pool based on the frequency of abnormal events in the resource pool in the current time slice; determines the fault topology corresponding to the current time slice based on the abnormal events in the current time slice and the device topology corresponding to the resource pool in the current time slice; merges the fault topologies corresponding to multiple time slices corresponding to the current fault to determine the fault topology corresponding to the current fault; determines the root cause device corresponding to the current fault based on the degree of influence of each device in the fault topology corresponding to the current fault on the remaining devices in the resource pool; achieves independent reliance on the operation and maintenance experience and professional knowledge of the operation and maintenance engineers, but instead locates the fault of the resource pool based on the frequency of abnormal events, device topology and the degree of influence of each device on the remaining devices in the resource pool, thereby reducing errors in human judgment, achieving rapid identification and accurate location of resource pool faults, improving the efficiency of resource pool fault location, and improving the timeliness and accuracy of resource pool fault location.
[0054] It should be noted that each implementation method of the present application can be freely combined, the order can be changed, or it can be executed separately, and does not need to rely on or depend on a fixed execution order.
[0055] In some embodiments, determining that a current fault occurs in a resource pool based on the frequency of abnormal events in the resource pool in the current time slice includes: Get the frequency of abnormal events in the resource pool in the current time slice; When the frequency of abnormal events in the current time slice is greater than a preset frequency threshold, it is determined that a current fault occurs in the resource pool; The preset frequency threshold is determined based on the mean and standard deviation of the frequency of abnormal events that occur during normal operation of the resource pool.
[0056] Specifically, the frequency (number of abnormal events per unit time) of abnormal events (alarms, logs, etc.) during the normal operation of the resource pool (no faults, no dynamic network operations) can be counted to obtain statistical characteristics. Usually, these statistical characteristics are relatively stable. KS test, histogram and other methods can be used to determine whether they conform to the normal distribution characteristics. Based on the statistical frequency of abnormal events, the mean can be calculated. and standard deviation .
[0057] Get the resource pool slice at the current time The frequency of abnormal events The k-sigma algorithm can be used to determine the preset frequency threshold and identify the frequency of abnormal events in the time slice. For example, the k value of the k-sigma algorithm can be 3, and the preset frequency threshold can be If the current time slice Frequency of abnormal events Greater than the preset frequency threshold, that is , it can be determined that the frequency of abnormal events in the current time slice is high and the resource pool has a current fault. The k value can be adjusted according to the actual operation situation.
[0058] The resource pool fault locating method provided in the embodiment of the present application determines a preset frequency threshold based on the mean and standard deviation of the frequency of abnormal events occurring in the resource pool during normal operation, and compares the frequency of abnormal events in the current time slice with the preset frequency threshold to determine the current fault occurring in the resource pool, thereby improving the timeliness and accuracy of resource pool fault locating.
[0059] In some embodiments, based on the abnormal event in the current time slice and the device topology corresponding to the resource pool in the current time slice, determining the fault topology corresponding to the current time slice includes: Get the devices corresponding to the resource pool in the current time slice and the corresponding relationship between the devices; Based on the corresponding relationships between devices, build the device topology corresponding to the resource pool in the current time slice; Based on the abnormal events in the current time slice, the devices in the device topology are marked to obtain the fault topology corresponding to the current time slice.
[0060] Specifically, Figure 2 is a schematic diagram of the fault topology provided by this application, such as Figure 2 As shown in the figure, a resource pool includes virtual hard disks (vDisk0, vDisk1, and vDisk2), storage management devices (DSM0, DSM1, and DSM2), switches (MTOR, STTOR, and TTOR), hosts (Host0, Host1, and Host2), and virtual machines (vm0, vm1, and vm2). The solid lines in the figure represent the corresponding relationships between devices. The corresponding relationships can include connection relationships, data transmission relationships, and dynamic mapping relationships. The solid-line boxes in the figure represent devices marked by abnormal events (abnormal), and the dotted-line boxes represent devices not marked by abnormal events (no abnormality).
[0061] Based on the correspondence between devices and devices, the device topology corresponding to the resource pool in the current time slice can be constructed. Abnormal events usually involve object devices. By marking the object devices involved in the abnormal events in the current time slice in the constructed device topology, the fault topology corresponding to the current time slice can be obtained.
[0062] The fault topology not only represents the corresponding relationship between the devices corresponding to the current time slice in the resource pool, but also represents the device information related to the abnormal event.
[0063] The resource pool fault locating method provided in the embodiment of the present application determines the fault topology corresponding to the current time slice based on the abnormal events in the current time slice and the device topology corresponding to the resource pool in the current time slice. It can accurately represent the devices in the resource pool, the device correspondence, and the devices involved in the abnormal events, thereby improving the timeliness and accuracy of resource pool fault locating.
[0064] In some embodiments, merging the fault topologies corresponding to the multiple time slices corresponding to the current fault to determine the fault topology corresponding to the current fault includes: Determine multiple time slices corresponding to the current fault; Taking the fault topology corresponding to the first time slice among the multiple time slices as the initial fault topology corresponding to the current fault; Merge the first devices corresponding to the remaining time slices in the multiple time slices into the initial fault topology to obtain the fault topology corresponding to the current fault; The first device is the device where the abnormal event occurs in the remaining time slices.
[0065] Specifically, the current fault usually lasts in multiple time slices, and there may be a situation where multiple continuous or discontinuous time slices belong to the current fault.
[0066] The fault topology corresponding to the first time slice among multiple time slices is used as the initial fault topology corresponding to the current fault. The first device is defined as the device where an abnormal event occurs in the remaining time slices; the second device is a device adjacent to the first device (there is a corresponding relationship in the device topology) and where no abnormal event occurs.
[0067] The first device corresponding to the remaining time slices in multiple time slices may be associated with the device in the initial fault topology corresponding to the current fault, that is, it may be the root cause device that caused the abnormal event. Therefore, the first device can be incorporated into the initial fault topology to realize the merging of multiple time slices and obtain the fault topology corresponding to the current fault.
[0068] The resource pool fault locating method provided in the embodiment of the present application merges the fault topologies corresponding to multiple time slices corresponding to the current fault to determine the fault topology corresponding to the current fault. It can comprehensively consider all possible root cause devices, thereby improving the timeliness and accuracy of resource pool fault locating.
[0069] In some embodiments, the first devices corresponding to the remaining time slices in the multiple time slices are merged into the initial fault topology to obtain the fault topology corresponding to the current fault, including: Determine the current time slice to be merged; Determine a first device set and a second device set corresponding to the current time slice to be merged; When the first device set and the initial fault topology have an intersection, or when the first device set and the initial fault topology do not have an intersection and the second device set and the initial fault topology have an intersection, merge the devices in the first device set into the initial fault topology to obtain an updated initial fault topology; When the current time slice to be merged is the last remaining time slice, the updated initial fault topology is used as the fault topology corresponding to the current fault; The second device is a device that is adjacent to the first device and where no abnormal event occurs.
[0070] Specifically, the initial fault topology can be represented as G. It can be defined as For time slices, Representing time slices The corresponding first device set (device where the abnormal event occurred), Representing time slices A corresponding set of second devices (devices adjacent to the first device and without abnormal events). is the updated initial fault topology, that is, the time slice and time slice The fault topology obtained by merging the previous time slices. Indicates the set of first devices corresponding to the current fault after the slices are merged (all devices where the abnormal event occurred). Represents the set of second devices corresponding to the current fault after slice merging (all devices adjacent to the first device and without abnormal events).
[0071] The time slice merging methods can include: Step 1: Set the first time slice (time slice) of the current fault detection ), and according to The resulting fault topology is the initial fault topology G of the current fault; Step 2: Slice by time Determine the first device set for the current time slice to be merged and the second device collection .
[0072] If the first device set If there is an intersection with the initial fault topology G, the devices in the first device set are merged into the initial fault topology to obtain the updated initial fault topology, which can be expressed as .
[0073] Or, if the first device sets There is no intersection with the initial fault topology G and the second device set If there is an intersection with the initial fault topology G, the devices in the first device set are merged into the initial fault topology to obtain the updated initial fault topology, which can be expressed as .
[0074] Step 3: If the conditions in step 2 are not met, there is no need to incorporate the devices in the first device set into the initial fault topology, which can be expressed as .
[0075] When the current time slice to be merged is the last remaining time slice, the updated initial fault topology is used as the fault topology corresponding to the current secondary fault.
[0076] The following is an example of the fault topology in the above embodiment. When an abnormal event occurs, the first device set, the second device set and the initial fault topology can be obtained. It can be expressed as:
[0077] Figure 3 This is one of the fault topology diagrams after the time slices are merged provided by this application, such as Figure 3 As shown, time slices are further detected Abnormal events also occur, time slice The faults are marked. And the time slice is obtained The first device set and the second device set can be expressed as:
[0078] judge and There is an intersection, then:
[0079] Figure 4 This is the second schematic diagram of the fault topology after the time slices are merged provided by this application, such as Figure 4 As shown, time slices are further detected An abnormal event also occurred, and the time slice The faults are marked. And the time slice is obtained The first device set and the second device set can be expressed as:
[0080] judge and There is no intersection, but and There is no intersection, then:
[0081] Figure 5 This is the third fault topology diagram after time slice merging provided by this application. Figure 5 Indicates that after time slicing , time slice and time slices The fault topology obtained after merging.
[0082] The resource pool fault locating method provided in the embodiment of the present application incorporates the first device corresponding to the remaining time slices into the initial fault topology to obtain the fault topology corresponding to the current fault, which can comprehensively consider all possible root cause devices and improve the timeliness and accuracy of resource pool fault locating.
[0083] In some embodiments, the present application provides a method for selecting multiple time slices corresponding to the current fault, and the method steps are as follows: Step 1. Determine that the time slice when the current failure of the resource pool occurs is the first time slice, select 9 time slices by preset time length (for example, the preset time length can be 30 minutes) or the first preset number (for example, the first preset number can be 9), and merge the 9 time slices after the first time slice according to the method of the above-mentioned embodiment.
[0084] In the aforementioned embodiment, the merged time slices may be referred to as valid slices, and the unmerged time slices may be referred to as invalid slices.
[0085] Step 2: In addition to the above-mentioned subsequent 9 fault slices, multiple consecutive time slices after the last valid slice (the merged fault slice) are examined and merged. The multiple consecutive time slices can be selected according to a second preset number (for example, the second preset number can be 3).
[0086] If all the time slices in the second preset number are invalid slices, the time slices after the last time slice in the second preset number are no longer considered, and the time slices in the first preset number and the second preset number are used as the selected time slices.
[0087] If there are valid slices among the time slices in the second preset number, the second preset number of time slices are determined again for inspection based on the last valid slice in the second preset number of time slices. If there are valid slices among the time slices determined again, continue to select time slices for inspection according to the above method until all the time slices in the second preset number are determined to be invalid slices.
[0088] Figure 6 This is a schematic diagram of the selection of time slices provided by this application, such as Figure 6 As shown, according to time slice 1, it is determined that the current fault has occurred in the resource pool, and the fault merging process is started, and the subsequent time slices 2 to 10 are examined. At the same time, the three slices after time slice 10 (valid slice) are examined. Slice 13 is a valid slice, and slices 14-16 are further examined. Slices 14-16 do not contain valid slices, so subsequent slices are no longer examined. The solid lines in the figure are valid slices, and the dotted lines are invalid slices.
[0089] In some embodiments, determining the root cause device corresponding to the current fault based on the degree of influence of each device in the fault topology corresponding to the current fault on other devices in the resource pool includes: Based on the fault topology corresponding to the current fault, determine the current device to be analyzed; Based on the degree of influence of the current device to be analyzed on other devices in the resource pool, determine the influencing device set and non-influencing device set corresponding to the current device to be analyzed; When the object device of the abnormal event belongs to the set of influencing devices, the influence degree coefficient of the current device to be analyzed is increased; When the target device of the abnormal event belongs to the set of non-influencing devices, reduce the influence degree coefficient of the current device to be analyzed; The device corresponding to the maximum value of the influence degree coefficient in the fault topology corresponding to the current fault is determined as the root cause device corresponding to the current fault.
[0090] Specifically, a heap matching algorithm may be used for each of the object devices corresponding to the abnormal event on the fault topology to determine the root cause device corresponding to the current fault.
[0091] In the fault topology corresponding to the current fault, object devices corresponding to the abnormal event may be selected one by one as the current devices to be analyzed.
[0092] According to the degree of influence of the current device to be analyzed on the other devices in the resource pool, the other devices are divided into two piles, namely, the influence device set and the non-influence device set. The other devices that can be influenced by the current device to be analyzed can be divided into the influence device set, and the other devices that cannot be influenced by the current device to be analyzed can be divided into the non-influence device set.
[0093] Use the following steps to determine the root cause device for the current fault: Step 1: Set the influence coefficient It is used to indicate the degree of influence of the current device to be analyzed on the other devices in the resource pool. The initial value of can be 0.
[0094] Match the object device of each abnormal event with the set of affected devices and the set of non-affected devices. If the object device of the abnormal event belongs to the set of affected devices, increase the influence degree coefficient of the current device to be analyzed, for example, add one to the influence degree coefficient; if the object device of the abnormal event belongs to the set of non-affected devices, reduce the influence degree coefficient of the current device to be analyzed, for example, subtract one from the influence degree coefficient. After analyzing the object devices of all abnormal events according to the above method, the influence degree coefficient of the current device to be analyzed can be obtained.
[0095] Therefore, the influence coefficient can also be called matching degree.
[0096] Step 2: Analyze the devices in the fault topology corresponding to the current fault one by one to obtain the influence coefficient of each device. The corresponding device is determined to be the root cause device corresponding to the current fault.
[0097] Figure 7 This is a schematic diagram of the root cause device stack matching provided by this application, such as Figure 7 As shown in the figure, Host0 and STTOR are the devices to be analyzed (hypothesized fault points), the influence coefficient (matching degree) of Host0 is 6, and the influence coefficient (matching degree) of STTOR is -2. Check the matching degree of each "hypothesized fault point" one by one, and find the "hypothesized fault point" with the highest matching degree, which is the root cause device of the current fault.
[0098] The resource pool fault locating method provided in the embodiment of the present application uses a stack matching algorithm to determine the root cause device corresponding to the current fault according to the degree of influence of each device in the fault topology corresponding to the current fault on the remaining devices in the resource pool, thereby improving the timeliness and accuracy of resource pool fault locating.
[0099] In some embodiments, based on the degree of influence of the current device to be analyzed on other devices in the resource pool, determining the influencing device set and the non-influencing device set corresponding to the current device to be analyzed includes: The remaining devices in the resource pool are divided into piles based on the abnormal event propagation relationship to determine the affected device set and the non-affected device set corresponding to the current device to be analyzed.
[0100] Specifically, once a physical device or a virtual device in the resource pool fails, the surrounding related devices will detect the abnormality in a short time and report an alarm or other abnormal event.
[0101] That is to say, there is an abnormal event propagation relationship between the devices in the resource pool. For example, the device causing the abnormal event can be the abnormal event source object, and the device detecting the abnormal event can be the abnormal event propagation object, and then there is an abnormal event propagation relationship between the source object and the propagation object.
[0102] Figure 8 is a schematic diagram of the abnormal event propagation relationship provided by this application, such as Figure 8 As shown, in the device topology, the abnormal event propagation relationship between adjacent device objects may have multiple situations such as "many-to-many", "one-to-many", and "one-to-one".
[0103] An abnormal event propagation model can be established based on the abnormal event propagation relationship. The abnormal event propagation model is used to describe the abnormal event source object, the abnormal event propagation object, and the propagation direction of the abnormal event.
[0104] The abnormal event propagation model can be determined when a physical device such as a host, switch, storage node, storage pool, or virtual device fails. It is understandable that the abnormal event propagation model corresponding to different abnormal events is different. Since the object device of the abnormal event may continue to propagate the abnormal message to more devices to form an abnormal propagation chain, at least two devices may be included in the abnormal event propagation model.
[0105] The resource pool fault locating method provided in the embodiment of the present application groups the remaining devices in the resource pool according to the abnormal event propagation relationship, determines the influencing device set and the non-influencing device set corresponding to the current device to be analyzed, and improves the timeliness and accuracy of resource pool fault locating.
[0106] Fig. 9 This is the second flow chart of the resource pool fault location method provided by this application, such as Fig. 9 As shown, the method includes: Step 910: Obtain statistical characteristics of abnormal events during normal operation of the resource pool; Step 920: Obtain dynamic three-dimensional topology of resource pool; Step 930: Acquire abnormal event propagation models of different devices; Step 940, examining the frequency change of abnormal events by time slice; Step 950: Generate an initial fault topology; Step 960: Merge time slices; Step 970: Determine the device that is the root cause of the fault by matching the stacks.
[0107] The resource pool fault location method provided in this application uses the statistical characteristics of abnormal events, the dynamic three-dimensional topology of the resource pool and the abnormal event propagation model, and through the time slice merging algorithm and the fault root cause device stack matching algorithm to achieve rapid identification and accurate location of resource pool faults, lowering the technical threshold for operation and maintenance personnel, enhancing the operation and maintenance capabilities of the resource pool, and improving user perception.
[0108] The device provided in the embodiment of the present application is described below. The device described below and the method described above can be referenced to each other.
[0109] Fig.10 is a schematic diagram of the structure of the resource pool fault location device provided by the present application, such as Fig.10 As shown, the device comprises: A fault judgment module 1010 is used to determine the current fault of the resource pool based on the frequency of abnormal events of the resource pool in the current time slice; The topology generation module 1020 is used to determine the fault topology corresponding to the current time slice based on the abnormal event in the current time slice and the device topology corresponding to the resource pool in the current time slice; The slice merging module 1030 is used to merge the fault topologies corresponding to the multiple time slices corresponding to the current fault to determine the fault topology corresponding to the current fault; The fault location module 1040 is used to determine the root cause device corresponding to the current fault based on the degree of influence of each device in the fault topology corresponding to the current fault on other devices in the resource pool.
[0110] The resource pool fault locating device provided in the embodiment of the present application determines the current fault of the resource pool based on the frequency of abnormal events in the resource pool in the current time slice; determines the fault topology corresponding to the current time slice based on the abnormal events in the current time slice and the device topology corresponding to the resource pool in the current time slice; merges the fault topologies corresponding to multiple time slices corresponding to the current fault to determine the fault topology corresponding to the current fault; determines the root cause device corresponding to the current fault based on the degree of influence of each device in the fault topology corresponding to the current fault on the remaining devices in the resource pool; achieves independent reliance on the operation and maintenance experience and professional knowledge of the operation and maintenance engineers, but instead locates the fault of the resource pool based on the frequency of abnormal events, device topology and the degree of influence of each device on the remaining devices in the resource pool, thereby reducing errors in human judgment, achieving rapid identification and accurate location of resource pool faults, improving the efficiency of resource pool fault location, and improving the timeliness and accuracy of resource pool fault location.
[0111] In some embodiments, the fault determination module is used to: Get the frequency of abnormal events in the resource pool in the current time slice; When the frequency of abnormal events in the current time slice is greater than a preset frequency threshold, it is determined that a current fault occurs in the resource pool; The preset frequency threshold is determined based on the mean and standard deviation of the frequency of abnormal events that occur during normal operation of the resource pool.
[0112] In some embodiments, the topology generation module is used to: Get the devices corresponding to the resource pool in the current time slice and the corresponding relationship between the devices; Based on the corresponding relationships between devices, build the device topology corresponding to the resource pool in the current time slice; Based on the abnormal events in the current time slice, the devices in the device topology are marked to obtain the fault topology corresponding to the current time slice.
[0113] In some embodiments, the slice merging module is used to: Determine multiple time slices corresponding to the current fault; Taking the fault topology corresponding to the first time slice among the multiple time slices as the initial fault topology corresponding to the current fault; Merge the first devices corresponding to the remaining time slices in the multiple time slices into the initial fault topology to obtain the fault topology corresponding to the current fault; The first device is the device where the abnormal event occurs in the remaining time slices.
[0114] In some embodiments, the slice merging module is used to: Determine the current time slice to be merged; Determine a first device set and a second device set corresponding to the current time slice to be merged; When the first device set and the initial fault topology have an intersection, or when the first device set and the initial fault topology do not have an intersection and the second device set and the initial fault topology have an intersection, merge the devices in the first device set into the initial fault topology to obtain an updated initial fault topology; When the current time slice to be merged is the last remaining time slice, the updated initial fault topology is used as the fault topology corresponding to the current fault; The second device is a device that is adjacent to the first device and where no abnormal event occurs.
[0115] In some embodiments, the fault location module is used to: Based on the fault topology corresponding to the current fault, determine the current device to be analyzed; Based on the degree of influence of the current device to be analyzed on other devices in the resource pool, determine the influencing device set and non-influencing device set corresponding to the current device to be analyzed; When the object device of the abnormal event belongs to the set of influencing devices, the influence degree coefficient of the current device to be analyzed is increased; When the target device of the abnormal event belongs to the set of non-influencing devices, reduce the influence degree coefficient of the current device to be analyzed; The device corresponding to the maximum value of the influence degree coefficient in the fault topology corresponding to the current fault is determined as the root cause device corresponding to the current fault.
[0116] In some embodiments, the fault location module is used to: The remaining devices in the resource pool are divided into piles based on the abnormal event propagation relationship to determine the affected device set and the non-affected device set corresponding to the current device to be analyzed.
[0117] Fig.11 is a schematic diagram of the structure of the electronic device provided by this application, such as Fig.11 As shown, the electronic device may include: a processor (Processor) 1110, a communication interface (Communications Interface) 1120, a memory (Memory) 1130 and a communication bus (Communications Bus) 1140, wherein the processor 1110, the communication interface 1120, and the memory 1130 communicate with each other through the communication bus 1140. The processor 1110 may call the logic command in the memory 1130 to execute the method described in the above embodiment, for example: Based on the frequency of abnormal events in the resource pool in the current time slice, determine the current fault of the resource pool; based on the abnormal events in the current time slice and the device topology corresponding to the resource pool in the current time slice, determine the fault topology corresponding to the current time slice; merge the fault topologies corresponding to multiple time slices corresponding to the current fault to determine the fault topology corresponding to the current fault; based on the degree of influence of each device in the fault topology corresponding to the current fault on the remaining devices in the resource pool, determine the root cause device corresponding to the current fault.
[0118] In addition, the logical commands in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several commands to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program code.
[0119] The processor in the electronic device provided in the embodiment of the present application can call the logic instructions in the memory to implement the above method. Its specific implementation method is consistent with the implementation method of the aforementioned method and can achieve the same beneficial effects, which will not be repeated here.
[0120] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the methods provided in the above embodiments are implemented.
[0121] Its specific implementation is consistent with the aforementioned method implementation and can achieve the same beneficial effects, so it will not be repeated here.
[0122] An embodiment of the present application provides a computer program product, including a computer program, which implements the above method when executed by a processor.
[0123] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0124] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0125] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A resource pool fault location method, It is characterized in that include: Determining that a current fault occurs in the resource pool based on the frequency of abnormal events in the resource pool in the current time slice; Determine a fault topology corresponding to the current time slice based on an abnormal event in the current time slice and a device topology corresponding to the resource pool in the current time slice; Merging the fault topologies corresponding to the multiple time slices corresponding to the current fault to determine the fault topology corresponding to the current fault; Based on the degree of influence of each device in the fault topology corresponding to the current fault on other devices in the resource pool, a root cause device corresponding to the current fault is determined.
2. The resource pool fault location method according to claim 1, It is characterized in that The determining that a current fault occurs in the resource pool based on the frequency of abnormal events in the resource pool in the current time slice includes: Obtaining the frequency of abnormal events of the resource pool in the current time slice; When the frequency of abnormal events in the current time slice is greater than a preset frequency threshold, determining that a current fault occurs in the resource pool; The preset frequency threshold is determined based on the mean and standard deviation of the frequency of abnormal events occurring in the resource pool during normal operation.
3. The resource pool fault location method according to claim 1, It is characterized in that The determining, based on the abnormal event in the current time slice and the device topology corresponding to the current time slice by the resource pool, the fault topology corresponding to the current time slice includes: Obtain the devices corresponding to the current time slice of the resource pool and the corresponding relationship between the devices; Based on the devices and the corresponding relationships between the devices, construct a device topology of the resource pool corresponding to the current time slice; Devices in the device topology are marked based on abnormal events in the current time slice to obtain a fault topology corresponding to the current time slice.
4. The resource pool fault location method according to claim 1, It is characterized in that The merging of the fault topologies corresponding to the multiple time slices corresponding to the current fault to determine the fault topology corresponding to the current fault includes: Determine a plurality of time slices corresponding to the current fault; Taking the fault topology corresponding to the first time slice among the multiple time slices as the initial fault topology corresponding to the current fault; Merge the first devices corresponding to the remaining time slices in the multiple time slices into the initial fault topology to obtain the fault topology corresponding to the current fault; The first device is the device where the abnormal event occurs in the remaining time slices.
5. The resource pool fault location method according to claim 4, It is characterized in that The step of merging the first devices corresponding to the remaining time slices in the multiple time slices into the initial fault topology to obtain the fault topology corresponding to the current fault includes: Determine the current time slice to be merged; Determine a first device set and a second device set corresponding to the current time slice to be merged; In the case where the first device set and the initial fault topology have an intersection, or the first device set and the initial fault topology do not have an intersection and the second device set and the initial fault topology have an intersection, merge the devices in the first device set into the initial fault topology to obtain an updated initial fault topology; In a case where the current time slice to be merged is the last remaining time slice, using the updated initial fault topology as the fault topology corresponding to the current fault; The second device is a device adjacent to the first device and where no abnormal event occurs.
6. The resource pool fault location method according to claim 1, It is characterized in that The determining the root cause device corresponding to the current fault based on the degree of influence of each device in the fault topology corresponding to the current fault on other devices in the resource pool includes: Determine the current device to be analyzed based on the fault topology corresponding to the current fault; Determine, based on the degree of influence of the current device to be analyzed on other devices in the resource pool, a set of influencing devices and a set of non-influencing devices corresponding to the current device to be analyzed; In the case where the object device of the abnormal event belongs to the set of influencing devices, increasing the influence degree coefficient of the current device to be analyzed; In the case where the target device of the abnormal event belongs to the non-influence device set, reducing the influence degree coefficient of the current device to be analyzed; The device corresponding to the maximum value of the influence degree coefficient in the fault topology corresponding to the current fault is determined as the root cause device corresponding to the current fault.
7. The resource pool fault locating method according to claim 6, It is characterized in that The determining, based on the degree of influence of the current device to be analyzed on other devices in the resource pool, a set of influencing devices and a set of non-influencing devices corresponding to the current device to be analyzed includes: The remaining devices in the resource pool are divided into piles based on the abnormal event propagation relationship to determine the affecting device set and the non-affecting device set corresponding to the current device to be analyzed.
8. A resource pool fault location device, It is characterized in that include: A fault judgment module, used to determine the current fault of the resource pool based on the frequency of abnormal events of the resource pool in the current time slice; A topology generation module, configured to determine a fault topology corresponding to the current time slice based on an abnormal event in the current time slice and a device topology corresponding to the resource pool in the current time slice; A slice merging module, used to merge the fault topologies corresponding to the multiple time slices corresponding to the current fault, and determine the fault topology corresponding to the current fault; The fault location module is used to determine the root cause device corresponding to the current fault based on the degree of influence of each device in the fault topology corresponding to the current fault on the remaining devices in the resource pool.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the method for locating a resource pool fault according to any one of claims 1 to 7 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method for locating a resource pool fault according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Method and device for carrying out alarm processing on Internet data center
CN113835976A
Abnormal root cause positioning method and device based on equipment topology and causal relationship
CN115720186A
Fault analysis method and device, electronic equipment and computer readable storage medium
CN117102950A
Fault early warning method based on big data analysis
CN117235568A
Failure analysis device, failure analysis method, and failure analysis program
US20210019653A1
