Cloud platform fault detection and operation and maintenance system, method and device and storage medium

By designing alarm information push, computing node evaluation and fault recovery modules in the cloud platform, multi-dimensional fault assessment and automated recovery are realized, solving the problem of low fault location and recovery efficiency of the cloud platform, improving fault handling accuracy and reducing Operation and maintenance costs.

CN118550752APending Publication Date: 2024-08-27SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202410713828.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

The fault location and recovery efficiency of the existing cloud platform is low, and single alarm analysis is insufficient, resulting in inaccurate fault location and the inability to provide early warning and avoid potential problems.

Method used

A cloud platform fault detection and operation and maintenance system is designed, including an alarm information push module, a computing node evaluation module and a fault recovery module. It monitors key platform alarms in real time, evaluates the health status of computing nodes in multiple dimensions, confirms the cause of the fault, and performs the analysis according to the evaluation rules. Automatically perform fault recovery actions.

Benefits of technology

It improves the accuracy of fault handling and recovery efficiency, reduces operation and maintenance costs, and realizes unattended fault recovery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550752A
    Figure CN118550752A
Patent Text Reader

Abstract

The invention discloses a cloud platform fault detection and operation and maintenance system, method and device and a storage medium, and relates to the field of cloud computing, and the system comprises an alarm information push module which is used for configuring alarm push so as to push alarm information to a computing node evaluation module; the computing node evaluation module is used for screening the alarm information, determining a target alarm, and evaluating the computing node based on the target alarm and a preset evaluation item to obtain an evaluation result; and the fault recovery module is used for determining a fault recovery operation executed on the virtual machine based on the evaluation result, monitoring residual resources of the cloud platform cluster, and if the residual resources are greater than or equal to a target threshold value, sending a fault recovery instruction to the cloud platform cluster based on the fault recovery operation, and monitoring an action execution result of the cloud platform cluster based on the fault recovery instruction so as to carry out corresponding operation based on the action execution result, thereby completing fault detection and operation and maintenance of the cloud platform. According to the invention, unattended accurate and efficient fault recovery is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of cloud computing, and in particular to a cloud platform fault detection and operation and maintenance system, method, device and storage medium. Background Art

[0002] With the development of cloud computing, governments and enterprises are increasingly moving to the cloud. Cloud platforms built on cloud computing technology integrate software and services, providing a reliable, flexible and scalable way to build, deploy and manage services. Cloud platforms can shield the complexity and differences of heterogeneous devices on the underlying physical machines, and support unified and centralized supply of computing, storage, network and other resources.

[0003] As enterprises migrate more businesses to cloud environments, the stability and reliability of cloud platforms have become critical. Once a failure occurs, it may lead to business interruption, data loss, and reduced user experience. Timely detection and recovery of failures can ensure the stability and availability of cloud platform services, improve user experience, and timely warn of potential larger problems, reducing the risk of business interruption.

[0004] The essence of a virtual machine is a complete computer system with complete hardware system functions that runs in a completely isolated environment and is simulated by software. When creating a virtual machine in a physical server, the memory and CPU (Central Processing Unit) of the physical server need to be virtualized and then allocated to the virtual machine. Therefore, when an abnormal failure occurs in a physical server or an abnormality occurs in key cluster indicators, it will affect customer services and cause the ongoing user services to be unexpectedly interrupted. The high availability of virtual machines is crucial to ensuring the stable operation of the system.

[0005] Once an alarm is generated on the cloud platform, if the operation and maintenance personnel are solely responsible for fault location and recovery, there will inevitably be problems of low efficiency. If only a single alarm is considered without a comprehensive analysis of cluster indicators, the root cause of the fault may be inaccurately located, and potential problems cannot be warned or avoided. Therefore, it is necessary to evaluate the fault from multiple dimensions, locate the root cause, and take appropriate recovery measures. Summary of the invention

[0006] In view of this, the purpose of the present invention is to provide a cloud platform fault detection and operation and maintenance system, method, device and storage medium, which can improve the accuracy of fault handling, improve the efficiency of fault location and recovery, reduce operation and maintenance costs, and realize unattended fault recovery. The specific scheme is as follows:

[0007] In a first aspect, the present application discloses a cloud platform fault detection and operation and maintenance system, comprising:

[0008] An alarm information push module is used to configure alarm push in the alarm system of the cloud platform so as to push the corresponding alarm information to the computing node evaluation module through a pre-configured URL pattern based on the alarm push;

[0009] A computing node evaluation module, used to screen the alarm information to determine the target alarm of the computing node, evaluate the computing node based on the target alarm and preset evaluation items, and obtain corresponding evaluation results;

[0010] A fault recovery module is used to determine the fault recovery operation to be performed on the virtual machine based on the evaluation result, monitor the remaining resources of the cloud platform cluster, and if the remaining resources are greater than or equal to the target threshold, send a fault recovery instruction to the cloud platform cluster based on the fault recovery operation, and monitor the action execution result of the cloud platform cluster performing the fault recovery action based on the fault recovery instruction, so as to perform corresponding operations according to the action execution result to complete the fault detection and operation and maintenance of the cloud platform.

[0011] Optionally, the system further includes:

[0012] The blacklist adding module is used to add the name of the computing node to the blacklist and no longer process the computing node in the blacklist if the computing node is undergoing maintenance or expansion and contraction operations, or the virtual machine on the computing node does not accept migration and evacuation.

[0013] Optionally, the target alarm includes any one or a combination of abnormal node Ready state, abnormal nova service corresponding to the node, physical server BMC event, abnormal node control network, business network, storage network, abnormal node bond network card, and abnormal node downtime.

[0014] Optionally, the preset evaluation items include whether a virtual machine exists, nova-compute status, whether the number of open files exceeds a preset threshold, network connectivity detection, whether the Fibre Channel link connection is normal, whether the logical volume management service is normal, whether a restart has occurred within a preset time, whether there is a code error correction failure in the intelligent platform management interface, and whether the file system is read-only.

[0015] Optionally, the computing node evaluation module includes:

[0016] A first evaluation unit is used to perform network connectivity detection on a control network, a service network and a storage network, so as to determine a number of randomly selected computing nodes that can ping a gateway as test nodes, and perform a ping connectivity detection on a faulty node and the test node. If both the faulty node and the test node can be pinged and meet the packet loss rate requirement, the network is determined to be normal, otherwise the evaluation of the network connectivity detection fails, so as to complete the evaluation of the computing node based on the network connectivity detection; the network connectivity detection includes whether the control network is interrupted, whether the service network is interrupted and whether the storage network is interrupted;

[0017] A second evaluation unit is configured to detect whether a target path exists on the computing node, and if so, to count the number of all Fibre Channel ports on the computing node and the number of Fibre Channel ports in an online state, and if the number of all Fibre Channel ports is greater than zero and the number of Fibre Channel ports in an online state is equal to zero, to determine that the Fibre Channel link connection is abnormal, otherwise, to determine that the Fibre Channel link connection is normal, so as to complete the evaluation of the computing node based on the evaluation item of whether the Fibre Channel link connection is normal;

[0018] The third evaluation unit is used to query the storage backend list, and determine whether the computing node has a backend of the target storage protocol based on the corresponding query results. If so, it is determined that the computing node has a logical volume management backend. If the creation of the test logical volume and the reading and writing operations of the test logical volume can be successfully executed, it is determined that the logical volume management service is normal, so as to complete the evaluation of the computing node based on the evaluation item of whether the logical volume management service is normal.

[0019] Optionally, the system further includes:

[0020] The abnormal downtime fault location module is used to directly detect the power status of the physical server if an abnormal downtime fault occurs, and when it is determined that the power status is abnormal, determine whether the logical volume management service is normal, so as to quickly locate the fault according to the corresponding judgment result.

[0021] Optionally, the system further includes:

[0022] A fault recovery switch configuration module is used to configure the fault recovery switch. If the fault recovery switch is in the off state, no operation will be performed after the evaluation result is determined. If the fault recovery switch is in the on state, after the evaluation result is determined, the corresponding fault recovery operation is performed on the virtual machine using the fault recovery operation determined based on the evaluation result.

[0023] Optionally, the fault recovery module includes:

[0024] A backend storage type query unit, used to query the backend storage type of the virtual machine system disk and data disk;

[0025] a recovery strategy determination unit, configured to directly determine a recovery strategy corresponding to the backend storage type if the backend storage types of the system disk and the data disk are the same, and perform a fault recovery operation on the virtual machine based on the recovery strategy; wherein different backend storage types correspond to different recovery strategies, and the backend storage types include distributed file systems, fiber channels, and logical volume management;

[0026] an execution operation unit, configured to count the recovery strategies corresponding to the virtual machines and determine the execution operation in each recovery strategy if the backend storage types of the system disk and the data disk are different;

[0027] an evacuation operation execution unit, configured to execute the evacuation operation on the virtual machine if the evacuation operation exists in each of the recovery strategies;

[0028] a migration operation execution unit, configured to execute the migration operation on the virtual machine if there is no evacuation operation in each of the recovery strategies but there is a migration operation in each of the recovery strategies;

[0029] a log alarm operation execution unit, configured to execute the log alarm operation on the virtual machine if the migration operation does not exist in each of the recovery strategies but the log alarm operation exists in each of the recovery strategies;

[0030] The no-operation unit is used for not performing any operation on the virtual machine if there is no log alarm operation in each of the recovery strategies.

[0031] Optionally, the system further includes:

[0032] The unified operation and management tool utilization module is used to perform network status detection, physical machine power status acquisition and shutdown operations through the pre-deployed unified operation and management tool when performing status assessment and fault recovery on the computing node.

[0033] In a second aspect, the present application discloses a cloud platform fault detection and operation and maintenance method, including:

[0034] Configure alarm push in the alarm system of the cloud platform so as to push corresponding alarm information to the computing node evaluation module through a pre-configured URL pattern based on the alarm push;

[0035] The alarm information is screened by the computing node evaluation module to determine the target alarm of the computing node, and the computing node is evaluated based on the target alarm and preset evaluation items to obtain a corresponding evaluation result;

[0036] Based on the evaluation result, a fault recovery operation to be performed on the virtual machine is determined, and the remaining resources of the cloud platform cluster are monitored. If the remaining resources are greater than or equal to the target threshold, a fault recovery instruction is sent to the cloud platform cluster based on the fault recovery operation, and the action execution result of the fault recovery action performed by the cloud platform cluster based on the fault recovery instruction is monitored, so as to perform corresponding operations according to the action execution result to complete fault detection and operation and maintenance of the cloud platform.

[0037] In a third aspect, the present application discloses an electronic device, comprising:

[0038] Memory, used to store computer programs;

[0039] A processor is used to execute the computer program to implement the aforementioned cloud platform fault detection and operation and maintenance method.

[0040] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program, which, when executed by a processor, implements the aforementioned cloud platform fault detection and operation and maintenance method.

[0041] The present application discloses a cloud platform fault detection and operation and maintenance system, including: an alarm information push module, which is used to configure alarm push in the alarm system of the cloud platform, so as to push the corresponding alarm information to the computing node evaluation module through the pre-configured URL mode based on the alarm push; a computing node evaluation module, which is used to screen the alarm information to determine the target alarm of the computing node, evaluate the computing node based on the target alarm and the preset evaluation item, and obtain the corresponding evaluation result; a fault recovery module, which is used to determine the fault recovery operation performed on the virtual machine based on the evaluation result, monitor the remaining resources of the cloud platform cluster, and if the remaining resources are greater than or equal to the target threshold, send a fault recovery instruction to the cloud platform cluster based on the fault recovery operation, and monitor the action execution result of the cloud platform cluster performing the fault recovery action based on the fault recovery instruction, so as to perform corresponding operations according to the action execution result, and complete the fault detection and operation and maintenance of the cloud platform. It can be seen that the present application monitors the key alarms of the platform in real time through the cloud platform fault detection and operation and maintenance system, evaluates the health status of the computing node in multiple dimensions, confirms the cause of the fault, gives a fault recovery strategy according to the evaluation rules, automatically executes the fault recovery action, and automatically recovers the fault in the whole process. This improves the accuracy of fault handling, improves the efficiency of fault location and recovery, reduces operation and maintenance costs, and achieves unattended fault recovery. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in 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 only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0043] Figure 1 A schematic diagram of the structure of a cloud platform fault detection and operation and maintenance system disclosed in this application;

[0044] Figure 2 This is a flow chart of the operation of a cloud platform fault detection and operation and maintenance system disclosed in this application;

[0045] Figure 3 A single virtual machine recovery operation flow chart disclosed in this application;

[0046] Figure 4 A flowchart of a multiple backend virtual machine confirmation recovery operation disclosed in this application;

[0047] Figure 5 A schematic diagram of a cloud platform fault detection and operation and maintenance system architecture disclosed in this application;

[0048] Figure 6 A flow chart of a cloud platform fault detection and operation and maintenance method disclosed in this application;

[0049] Figure 7 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0050] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0051] At present, after an alarm is generated on a cloud platform, it is inevitable that there will be inefficiencies if only the operation and maintenance personnel are used to locate and recover the fault. If only a single alarm is considered without a comprehensive analysis of cluster indicators, the root cause of the fault may be inaccurately located, and potential problems cannot be warned or avoided. In order to solve the above technical problems, the present application discloses a cloud platform fault detection and operation and maintenance system that can monitor key platform alarms in real time, evaluate the health status of computing nodes in multiple dimensions, confirm the cause of the fault, give a fault recovery strategy based on the evaluation rules, automatically execute fault recovery actions, and automatically recover the fault throughout the entire process.

[0052] See also Figure 1 As shown, the embodiment of the present invention discloses a cloud platform fault detection and operation and maintenance system, including:

[0053] The alarm information push module 11 is used to configure alarm push in the alarm system of the cloud platform, so as to push the corresponding alarm information to the computing node evaluation module through a pre-configured URL mode based on the alarm push.

[0054] In this embodiment, Figure 2 As shown, in the alarm system of the cloud platform, the alarm push is configured according to the system requirements to support the system of the present invention to receive platform alarms. When the alarm is pushed, the push URL (uniform resource locator) is uniformly configured as the mode of <domain name: port number>, without exposing information such as the platform environment region, and communicating through the internal network of the cluster to ensure system security. At the same time, it also supports custom configuration blacklists. When the node is undergoing maintenance, expansion and contraction, or the virtual machine on it does not accept migration and evacuation, the node name can be added to the blacklist, and the nodes in the blacklist will not be processed.

[0055] The computing node evaluation module 12 is used to screen the alarm information to determine the target alarm of the computing node, evaluate the computing node based on the target alarm and preset evaluation items, and obtain corresponding evaluation results.

[0056] In this embodiment, the alarm pushed by the alarm push module is received, the alarm information is extracted, and the alarm computing node is evaluated in multiple dimensions to obtain the evaluation results and fault recovery strategies. Specifically, after receiving the cloud platform alarm, the alarm will be filtered, and only the target alarm of the computing node will be focused on. The target alarm includes any one or a combination of abnormal node Ready state, abnormal nova service corresponding to the node, physical server BMC (Baseboard Management Controller) event, node control network, business network, storage network abnormality, node bond network card abnormality, and abnormal node downtime. The above alarms are likely to have a great impact on the business. For the faulty nodes described in the alarm, it is necessary to proceed to the next step and perform a multi-dimensional health status assessment of the node. The multi-dimensional evaluation items of the node include whether there is a virtual machine, nova-compute status, whether the number of open files exceeds the preset threshold, network connectivity detection, whether the fiber channel link connection is normal, whether the logical volume management service is normal, whether a restart has occurred within a preset time, whether there is a code error correction failure in the intelligent platform management interface, and whether the file system is read-only. In addition, the impact of the fault on the cluster is as follows:

[0057] 1) Whether a virtual machine exists: If no virtual machine exists, no fault recovery is required;

[0058] 2) nova-compute status: determines whether virtual machine migration is supported;

[0059] 3) Too many open files: This may cause the node to be in an abnormal Ready state;

[0060] 4) Whether the control network is interrupted: This will cause abnormal node Ready status or abnormal nova service status;

[0061] 5) Whether the business network is interrupted: directly affecting the business;

[0062] 6) Whether the storage network is interrupted: directly affects the virtual machines with Ceph storage as the backend;

[0063] 7) Whether the FC (Fiber Channel) link connection is normal: directly affects the virtual machines with FCSAN (Fiber Channel Storage Area Network) storage as the backend;

[0064] 8) Whether the lvm (Logical Volume Manager) service is normal: directly affects the virtual machine started by the local volume;

[0065] 9) Whether a reboot has occurred within 1 hour: The physical server is unstable and the virtual machine needs to be migrated or evacuated;

[0066] 10) Is there an ECC (Error Correction Code) failure in IPMI (Intelligent Platform Management Interface): There is an abnormality in the memory and the virtual machine needs to be migrated or evacuated;

[0067] 11) Is the file system read-only? This will cause the nova service to be in an abnormal state.

[0068] During the evaluation, the computing node evaluation module includes: a first evaluation unit, which is used to perform network connectivity detection on the control network, the service network and the storage network, so as to determine a number of randomly selected computing nodes that can ping the gateway as test nodes, and perform ping connectivity detection on the faulty node and the test node. If the faulty node and the test node can both ping and meet the packet loss rate requirement, the network is determined to be normal, otherwise the evaluation of the network connectivity detection fails, so as to complete the evaluation of the computing node based on the network connectivity detection; the network connectivity detection includes whether the control network is interrupted, whether the service network is interrupted, and whether the storage network is interrupted. A second evaluation unit, which is used to detect whether there is a target path on the computing node, if so, then count the number of all Fibre Channel ports on the computing node and the number of Fibre Channel ports in an online state, if the number of all Fibre Channel ports is greater than zero, and the number of Fibre Channel ports in an online state is equal to zero, then it is determined that the Fibre Channel link connection is abnormal, otherwise it is determined that the Fibre Channel link connection is normal, so as to complete the evaluation of the computing node based on the evaluation item of whether the Fibre Channel link connection is normal. The third evaluation unit is used to query the storage backend list, and determine whether the computing node has a backend of the target storage protocol according to the corresponding query results. If so, it is determined that the computing node has a logical volume management backend. If the creation of the test logical volume and the read and write operations of the test logical volume can be successfully executed, it is determined that the logical volume management service is normal, and the evaluation of the computing node is completed based on the evaluation item of whether the logical volume management service is normal. It should be pointed out that the evaluation parameters of network fault detection support user customization, including the number of test nodes N, the number of ping connectivity detections, and the ping packet loss rate, in order to adapt to the differences in network stability under different networking modes of cloud platforms in different environments, and support users to customize the severity of network connectivity detection according to their needs. Specifically, when evaluating whether the FC link is normal, first check whether the path / sys / class / fc_host / exists on the node. If so, it means that the node is connected to the FCSAN storage and continue with the subsequent evaluation steps; count the number of FC ports on the node, recorded as fc_port_num; count the number of FC ports in the online state, recorded as fc_port_online; finally, if fc_port_num > 0 but fc_port_online is 0, it indicates that the HBA (Host bus adapter) card is faulty, which means that the FC link is abnormal, otherwise the FC link is normal.

[0069] On the other hand, the system also includes an abnormal downtime fault location module, which is used to directly detect the power status of the physical server if there is an abnormal downtime fault, and when it is determined that the power status is abnormal, it determines whether the logical volume management service is normal, so as to quickly locate the fault according to the corresponding judgment result. That is, for abnormal downtime faults, due to its wide range of faults and great impact on the business, it is necessary to respond quickly and perform fault recovery. This system proposes a fast recovery route, first detecting the power status of the physical server. If the power status is abnormal, then detecting whether the lvm service is normal, and no evaluation items of other dimensions are performed, simplifying the activity evaluation process, realizing rapid fault location, and improving the speed of fault recovery. If the same computing node triggers multiple evaluations, only the currently executing evaluation thread is retained, and the subsequent threads will automatically cancel the evaluation and exit.

[0070] The rules for determining the fault recovery strategy based on the evaluation results are shown in the following three tables. Among them, ceph_ops refers to the virtual machine recovery strategy for mounting ceph backend storage, fc_ops refers to the virtual machine recovery strategy for mounting FC backend storage, and lvm_ops refers to the virtual machine recovery strategy for mounting local storage. For non-abnormal downtime scenarios and the case where the computing node is not lvm backend, follow Table 1:

[0071] Table 1

[0072]

[0073] For non-abnormal downtime scenarios, and the computing node is the lvm backend, as shown in Table 2:

[0074] Table 2

[0075]

[0076] For the downtime scenario, as shown in Table 3:

[0077] Table 3

[0078]

[0079] The fault recovery module 13 is used to determine the fault recovery operation to be performed on the virtual machine based on the evaluation result, monitor the remaining resources of the cloud platform cluster, and if the remaining resources are greater than or equal to the target threshold, send a fault recovery instruction to the cloud platform cluster based on the fault recovery operation, and monitor the action execution result of the cloud platform cluster performing the fault recovery action based on the fault recovery instruction, so as to perform corresponding operations according to the action execution result to complete the fault detection and operation and maintenance of the cloud platform.

[0080] In this embodiment, the fault recovery operation performed on the virtual machine is confirmed based on the evaluation result, and the remaining resources of the cluster are detected. If the remaining resources are sufficient, a fault recovery instruction is sent to the cluster, and the result of the action execution is monitored. When performing fault recovery, the system also includes: a fault recovery switch configuration module, which is used to configure the fault recovery switch. If the fault recovery switch is in the off state, no operation will be performed after the evaluation result is determined. If the fault recovery switch is in the on state, after the evaluation result is determined, the fault recovery operation determined based on the evaluation result is used to perform the corresponding fault recovery operation on the virtual machine. The recovery strategy obtained according to the evaluation result will traverse each virtual machine on the computing node, obtain the backend storage type of the virtual machine, match the backend storage type with the operation of the recovery strategy one by one, and finally obtain an operation list of all virtual machines. The judgment process for a single virtual machine is as follows: Figure 3 As shown. The fault recovery module includes: a backend storage type query unit, which is used to query the backend storage type of the virtual machine system disk and data disk; a recovery strategy determination unit, which is used to directly determine the recovery strategy corresponding to the backend storage type if the backend storage types of the system disk and the data disk are the same, and perform a fault recovery operation on the virtual machine based on the recovery strategy; wherein different backend storage types correspond to different recovery strategies, and the backend storage types include distributed file systems, fiber channels, and logical volume management; an execution operation unit, which is used to count the recovery strategies corresponding to the virtual machine if the backend storage types of the system disk and the data disk are different. and determining the execution operation in each of the recovery strategies; an evacuation operation execution unit, for executing the evacuation operation on the virtual machine if there is an evacuation operation in each of the recovery strategies; a migration operation execution unit, for executing the migration operation on the virtual machine if there is no evacuation operation in each of the recovery strategies but there is a migration operation in each of the recovery strategies; a log alarm operation execution unit, for executing the log alarm operation on the virtual machine if there is no migration operation in each of the recovery strategies but there is a log alarm operation in each of the recovery strategies; and a no operation unit, for not executing any operation on the virtual machine if there is no log alarm operation in each of the recovery strategies. Wherein, if the backend storage type of the system disk and the data disk is a distributed file system, the distributed file system recovery strategy is executed on the virtual machine to complete the fault recovery; if the backend storage type of the system disk and the data disk is a fiber channel, the fiber channel recovery strategy is executed on the virtual machine to complete the fault recovery; if the backend storage type of the system disk and the data disk is a logical volume management, the logical volume management recovery strategy is executed on the virtual machine to complete the fault recovery.

[0081] In other words, for a single virtual machine, query the backend storage type of its system disk and data disk, and confirm the recovery strategy executed by the virtual machine based on the different backend storage types. The recovery strategy may include ceph_ops, fc_ops, and lvm_ops, and the corresponding recovery operations may be evacuation, migration, log alarm, and no operation. If the system disk and data disk of the virtual machine are of the same backend storage type, you can directly confirm the corresponding recovery strategy and perform fault recovery on the virtual machine according to the operations in the recovery strategy; however, if the system disk and data disk of the virtual machine are not of the same backend storage type, there will be a situation where one virtual machine corresponds to multiple recovery strategies. In this case, you should Figure 4 Specifically, the operations corresponding to the recovery strategy of the virtual machine are counted, and if there is evacuation, the evacuation operation is performed on the virtual machine; otherwise, if there is migration, the migration operation is performed on the virtual machine; otherwise, if there is a log alarm, the log alarm operation is performed, otherwise no operation is performed.

[0082] It should be pointed out that after confirming the virtual machine recovery strategy, the resources required by the virtual machine on the node will be counted, and the number of remaining resources in the same host aggregation will be evaluated. If the remaining resources are not enough to support the virtual machine recovery, no action will be performed. In addition, when an evacuation task begins to execute, if other computing nodes fail, when the recovery strategy is to evacuate the virtual machine, there are the following constraints: only one evacuation is performed within 10 minutes, in order to avoid the problem of insufficient resources caused by multiple evacuations in a short period of time. In addition, the nodes deployed in this system can remotely send instructions to other nodes in the cluster. During the operation of the computing node health status assessment module and the fault recovery module, the unified operation and management tools provided by this system are relied on to perform network status detection, physical machine power status acquisition, and shutdown operations.

[0083] In summary, the present application discloses a cloud platform fault detection and operation and maintenance system, including: an alarm information push module, which is used to configure alarm push in the alarm system of the cloud platform, so that the corresponding alarm information is pushed to the computing node evaluation module through a pre-configured URL mode based on the alarm push; a computing node evaluation module, which is used to screen the alarm information to determine the target alarm of the computing node, evaluate the computing node based on the target alarm and preset evaluation items, and obtain the corresponding evaluation result; a fault recovery module, which is used to determine the fault recovery operation performed on the virtual machine based on the evaluation result, monitor the remaining resources of the cloud platform cluster, and if the remaining resources are greater than or equal to the target threshold, send a fault recovery instruction to the cloud platform cluster based on the fault recovery operation, and monitor the action execution result of the fault recovery action performed by the cloud platform cluster based on the fault recovery instruction, so as to perform corresponding operations according to the action execution result to complete the fault detection and operation and maintenance of the cloud platform. It can be seen that this application uses the cloud platform fault detection and operation and maintenance system to monitor the key platform alarms in real time, evaluate the health status of computing nodes in multiple dimensions, confirm the cause of the fault, give a fault recovery strategy based on the evaluation rules, automatically execute the fault recovery action, and automatically recover the fault throughout the entire process. In this way, the accuracy of fault handling is improved, the efficiency of fault location and recovery is improved, the operation and maintenance costs are reduced, and unattended fault recovery is achieved.

[0084] Based on the previous embodiment, the present application discloses a cloud platform fault detection and operation and maintenance system, the implementation principle of which is as follows: 1. Monitor the key alarm information of the cloud platform computing nodes and extract the node information; 2. Obtain the relevant information of the abnormal computing nodes and the virtual machine instances they carry; 3. Perform fault assessment from multiple dimensions such as service status, network connectivity, and physical machine event logs, determine the fault scenario, and derive the fault recovery strategy based on the assessment rules; 4. Perform fault recovery on virtual machines of different types of storage backends respectively. The cloud platform fault detection and operation and maintenance system, specifically, Figure 5 As shown, it mainly includes the following 5 parts:

[0085] Infrastructure: A cloud platform fault detection and intelligent operation and maintenance system supports multiple types of servers including X86 / ARM (Advanced RISC Machines); supports distributed storage, centralized storage and multiple storage devices.

[0086] Physical machine management: A cloud platform fault detection and intelligent operation and maintenance system that supports physical machine management through IPMI (Intelligent Platform Management Interface), including power status management, physical machine event reading, etc.; the management of IPMI login information includes but is not limited to bare metal service management software MAAS (Metal as a Service) and other physical server management software used by the cloud platform. The present invention supports plug-in access to physical server management software, and only needs to provide an interface for obtaining IPMI login information to perform secondary development and uniformly manage physical machines under different management modes.

[0087] Physical machine events: A cloud platform fault detection and intelligent operation and maintenance system that supports obtaining the power status of the physical machine, BMC logs, etc., for checking abnormal downtime and evaluating the health status of computing nodes.

[0088] Cluster: A cloud platform fault detection and intelligent operation and maintenance system is deployed in the cloud platform cluster, and mainly interacts with the cluster in the following three aspects: 1. Monitor the status of the cluster control network, business network, and storage network, and report status information regularly; 2. Query the cluster service status and the status of the virtual machines on the computing nodes during fault assessment; 3. Send a virtual machine recovery request to the cluster after completing fault classification.

[0089] Intelligent operation and maintenance: A cloud platform fault detection and operation and maintenance system detects the cluster network status, connects to the monitoring and alarm system, obtains cluster alarm information, integrates the above information, triggers fault assessment, evaluates the health status of computing nodes from multiple dimensions such as virtual machine status, network status, physical machine events, etc., completes fault classification, and performs fault recovery operations for faults that affect the business.

[0090] In this way, the entire process of fault discovery, fault location, and fault recovery can be automated, and detailed logs can be recorded to facilitate fault tracing and the issuance of fault reports; it supports deployment and use on x86, arm, and hybrid architecture platforms, and is compatible with mainstream domestic CPU chips, providing platform stability guarantees for government and enterprise customers in various industries; it supports users to customize the trigger conditions and detection parameters of network detection to adapt to differences in network stability under different networking modes; it supports the definition of a blacklist of computing nodes, and does not process the nodes on the blacklist, to adapt to the platform expansion and reduction and maintenance of nodes, and avoid unnecessary actions; it supports customized fault recovery switches, which can only provide fault location functions and give fault handling suggestions, thereby increasing user freedom; before the fault recovery action is executed, it supports the judgment of environmental resources to avoid virtual machine recovery failures.

[0091] See also Figure 6As shown, an embodiment of the present invention discloses a cloud platform fault detection and operation and maintenance method, including:

[0092] Step S11: configure alarm push in the alarm system of the cloud platform, so as to push corresponding alarm information to the computing node evaluation module through a pre-configured URL pattern based on the alarm push.

[0093] Step S12: screening the alarm information through the computing node evaluation module to determine the target alarm of the computing node, evaluating the computing node based on the target alarm and preset evaluation items, and obtaining a corresponding evaluation result.

[0094] Step S13: determine the fault recovery operation to be performed on the virtual machine based on the evaluation result, monitor the remaining resources of the cloud platform cluster, and if the remaining resources are greater than or equal to the target threshold, send a fault recovery instruction to the cloud platform cluster based on the fault recovery operation, and monitor the action execution result of the cloud platform cluster performing the fault recovery action based on the fault recovery instruction, so as to perform corresponding operations according to the action execution result to complete the fault detection and operation and maintenance of the cloud platform.

[0095] In summary, when the present application performs fault detection and operation and maintenance on the cloud platform, the present application first configures the alarm push in the alarm system of the cloud platform, so that the corresponding alarm information is pushed to the computing node evaluation module through the pre-configured URL mode based on the alarm push; then the alarm information is screened by the computing node evaluation module to determine the target alarm of the computing node, and the computing node is evaluated based on the target alarm and the preset evaluation items to obtain the corresponding evaluation results; finally, the fault recovery operation performed on the virtual machine is determined based on the evaluation results, and the remaining resources of the cloud platform cluster are monitored. If the remaining resources are greater than or equal to the target threshold, a fault recovery instruction is sent to the cloud platform cluster based on the fault recovery operation, and the action execution result of the fault recovery action performed by the cloud platform cluster based on the fault recovery instruction is monitored, so as to perform corresponding operations according to the action execution results, and complete the fault detection and operation and maintenance of the cloud platform. It can be seen that the present application monitors the key alarms of the platform in real time, evaluates the health status of the computing nodes in multiple dimensions, confirms the cause of the fault, gives a fault recovery strategy according to the evaluation rules, automatically executes the fault recovery action, and automatically recovers the fault in the whole process. This improves the accuracy of fault handling, improves the efficiency of fault location and recovery, reduces operation and maintenance costs, and achieves unattended fault recovery.

[0096] Furthermore, the present application also discloses an electronic device. Figure 7 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be regarded as any limitation on the scope of use of the present application.

[0097] Figure 7 A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the cloud platform fault detection and operation and maintenance method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0098] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0099] In addition, the memory 22 as a carrier for resource storage may be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon may include an operating system 221, a computer program 222, etc., and the storage method may be temporary storage or permanent storage.

[0100] The operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including computer programs that can be used to complete the cloud platform fault detection and operation and maintenance method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include computer programs that can be used to complete other specific tasks.

[0101] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the cloud platform fault detection and operation and maintenance method disclosed above is implemented. The specific steps of the method can refer to the corresponding contents disclosed in the above embodiments, and will not be repeated here.

[0102] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0103] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0104] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0105] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0106] The technical solution provided by the present application is introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technicians in this field, according to the idea of ​​the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A cloud platform fault detection and operation and maintenance system, characterized in that: include: An alarm information push module is used to configure alarm push in the alarm system of the cloud platform so as to push the corresponding alarm information to the computing node evaluation module through a pre-configured URL pattern based on the alarm push; A computing node evaluation module, used to screen the alarm information to determine the target alarm of the computing node, evaluate the computing node based on the target alarm and preset evaluation items, and obtain corresponding evaluation results; A fault recovery module is used to determine the fault recovery operation to be performed on the virtual machine based on the evaluation result, monitor the remaining resources of the cloud platform cluster, and if the remaining resources are greater than or equal to the target threshold, send a fault recovery instruction to the cloud platform cluster based on the fault recovery operation, and monitor the action execution result of the cloud platform cluster performing the fault recovery action based on the fault recovery instruction, so as to perform corresponding operations according to the action execution result to complete the fault detection and operation and maintenance of the cloud platform.

2. The cloud platform fault detection and operation and maintenance system according to claim 1, characterized in that: Also includes: The blacklist adding module is used to add the name of the computing node to the blacklist and no longer process the computing node in the blacklist if the computing node is undergoing maintenance or expansion and contraction operations, or the virtual machine on the computing node does not accept migration and evacuation.

3. The cloud platform fault detection and operation and maintenance system according to claim 1, characterized in that: The target alarm includes any one or a combination of abnormal node Ready state, abnormal nova service corresponding to the node, physical server BMC event, abnormal node control network, business network, storage network, abnormal node bond network card, and abnormal node downtime.

4. The cloud platform fault detection and operation and maintenance system according to claim 1, characterized in that: The preset evaluation items include whether a virtual machine exists, nova-compute status, whether the number of open files exceeds a preset threshold, network connectivity detection, whether the fiber channel link connection is normal, whether the logical volume management service is normal, whether a restart has occurred within a preset time, whether there is a code error correction failure in the intelligent platform management interface, and whether the file system is read-only.

5. The cloud platform fault detection and operation and maintenance system according to claim 4, characterized in that: The computing node evaluation module comprises: A first evaluation unit is used to perform network connectivity detection on a control network, a service network and a storage network, so as to determine a number of randomly selected computing nodes that can ping a gateway as test nodes, and perform a ping connectivity detection on a faulty node and the test node. If both the faulty node and the test node can be pinged and meet the packet loss rate requirement, the network is determined to be normal, otherwise the evaluation of the network connectivity detection fails, so as to complete the evaluation of the computing node based on the network connectivity detection; the network connectivity detection includes whether the control network is interrupted, whether the service network is interrupted and whether the storage network is interrupted; A second evaluation unit is configured to detect whether a target path exists on the computing node, and if so, to count the number of all Fibre Channel ports on the computing node and the number of Fibre Channel ports in an online state, and if the number of all Fibre Channel ports is greater than zero and the number of Fibre Channel ports in an online state is equal to zero, to determine that the Fibre Channel link connection is abnormal, otherwise, to determine that the Fibre Channel link connection is normal, so as to complete the evaluation of the computing node based on the evaluation item of whether the Fibre Channel link connection is normal; The third evaluation unit is used to query the storage backend list, and determine whether the computing node has a backend of the target storage protocol based on the corresponding query results. If so, it is determined that the computing node has a logical volume management backend. If the creation of the test logical volume and the reading and writing operations of the test logical volume can be successfully executed, it is determined that the logical volume management service is normal, so as to complete the evaluation of the computing node based on the evaluation item of whether the logical volume management service is normal.

6. The cloud platform fault detection and operation and maintenance system according to claim 1, characterized in that: Also includes: The abnormal downtime fault location module is used to directly detect the power status of the physical server if an abnormal downtime fault occurs, and when it is determined that the power status is abnormal, determine whether the logical volume management service is normal, so as to quickly locate the fault according to the corresponding judgment result.

7. The cloud platform fault detection and operation and maintenance system according to claim 1, characterized in that: Also includes: A fault recovery switch configuration module is used to configure the fault recovery switch. If the fault recovery switch is in the off state, no operation will be performed after the evaluation result is determined. If the fault recovery switch is in the on state, after the evaluation result is determined, the corresponding fault recovery operation is performed on the virtual machine using the fault recovery operation determined based on the evaluation result.

8. The cloud platform fault detection and operation and maintenance system according to claim 1, characterized in that: The fault recovery module comprises: A backend storage type query unit, used to query the backend storage type of the virtual machine system disk and data disk; a recovery strategy determination unit, configured to directly determine a recovery strategy corresponding to the backend storage type if the backend storage types of the system disk and the data disk are the same, and perform a fault recovery operation on the virtual machine based on the recovery strategy; wherein different backend storage types correspond to different recovery strategies, and the backend storage types include distributed file systems, fiber channels, and logical volume management; an execution operation unit, configured to count the recovery strategies corresponding to the virtual machines and determine the execution operation in each recovery strategy if the backend storage types of the system disk and the data disk are different; an evacuation operation execution unit, configured to execute the evacuation operation on the virtual machine if the evacuation operation exists in each of the recovery strategies; a migration operation execution unit, configured to execute the migration operation on the virtual machine if there is no evacuation operation in each of the recovery strategies but there is a migration operation in each of the recovery strategies; a log alarm operation execution unit, configured to execute the log alarm operation on the virtual machine if the migration operation does not exist in each of the recovery strategies but the log alarm operation exists in each of the recovery strategies; The no-operation unit is used for not performing any operation on the virtual machine if there is no log alarm operation in each of the recovery strategies.

9. The cloud platform fault detection and operation and maintenance system according to any one of claims 1 to 8, characterized in that: Also includes: The unified operation and management tool utilization module is used to perform network status detection, physical machine power status acquisition and shutdown operations through the pre-deployed unified operation and management tool when performing status assessment and fault recovery on the computing node.

10. A cloud platform fault detection and operation and maintenance method, characterized in that: include: Configure alarm push in the alarm system of the cloud platform so as to push corresponding alarm information to the computing node evaluation module through a pre-configured URL pattern based on the alarm push; The alarm information is screened by the computing node evaluation module to determine the target alarm of the computing node, and the computing node is evaluated based on the target alarm and preset evaluation items to obtain a corresponding evaluation result; Based on the evaluation result, a fault recovery operation to be performed on the virtual machine is determined, and the remaining resources of the cloud platform cluster are monitored. If the remaining resources are greater than or equal to the target threshold, a fault recovery instruction is sent to the cloud platform cluster based on the fault recovery operation, and the action execution result of the fault recovery action performed by the cloud platform cluster based on the fault recovery instruction is monitored, so as to perform corresponding operations according to the action execution result to complete fault detection and operation and maintenance of the cloud platform.

11. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the cloud platform fault detection and operation and maintenance method as claimed in claim 10.

12. A computer-readable storage medium, characterized in that: Used to store a computer program, which, when executed by a processor, implements the cloud platform fault detection and operation and maintenance method as described in claim 10.

Citation Information

Cited By

  • Virtual machine fault detection and recovery system and control method thereof

    CN119271357A

  • System and method for supporting multi-scene cross-platform computing node high availability

    CN119996150A

  • A system and method for supporting multi-scene cross-platform computing node high availability

    CN119996150B

  • Equipment fault processing method and device based on bcache, equipment and storage medium

    CN121116698A