Cloud computing system, fault site reserving method, device, equipment and medium
By introducing on-site acquisition module, fault detection module and fault site processing server in the cloud computing system, automated fault site data collection and storage are realized, solving the problems of large workload, high cost and inaccurate data in the existing technology, and improving the efficiency of fault location and resolution.
Patent Information
- Application Number
- CN202411773090.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-04
- Publication Date
- 2025-04-11
AI Technical Summary
When the existing technology retains the fault site of cloud computing system, the workload is huge and costly, and it is difficult to distinguish between the normal site and the fault site, resulting in inaccurate data storage.
A cloud computing system is designed, including a computing node and a cloud management center. The computing node has a field acquisition module and a cloud management center has a fault detection module and a fault field processing server. The on-site acquisition module collects and transmits on-site data, the fault detection module detects software and hardware failures and sends fault reports, and the fault site processing server performs persistent storage and data query.
Automatically collects and saves fault site data, reduces storage costs and data storage time, improves data accuracy and management efficiency, and facilitates operation and maintenance personnel to quickly locate and resolve faults.
Smart Images

Figure CN119814524A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of cloud computing-cloud base technology, and in particular to a cloud computing system, a method, a device, an electronic device and a computer-readable storage medium for retaining a fault scene in a cloud computing system. Background Art
[0002] Cloud computing systems are composed of hardware such as servers, switches, power supplies, cables, and software such as operating systems and databases. Problems such as hardware aging, cable detachment, hacker attacks, and unconventional inputs may affect the normal operation of cloud computing systems. We call these hardware and software problems that affect the normal operation of the system failures. Failures are unpredictable and difficult to reproduce. Preserving the fault site can help operation and maintenance personnel shorten the time to locate the fault and find the root cause of difficult and complicated problems.
[0003] One of the existing technical solutions is to manually piece together the fault scene based on persistent data. When a fault occurs, the operation and maintenance personnel collect data from logs, monitoring, alarms and other dimensions according to the faulty hardware and software to piece together the fault scene, but this is a huge workload. Persistent data such as logs, monitoring, and alarms generally have a validity period and will be cleared after a while, resulting in the failure scene being unable to be restored. Another method is to retain the fault scene through environmental snapshots, and regularly save the entire environment through snapshots to retain the fault scene, but this method requires high storage costs and a snapshot takes a long time. Summary of the invention
[0004] In view of the above problems, embodiments of the present invention are proposed to provide a cloud computing system, a method, an apparatus, an electronic device and a computer-readable storage medium for retaining a fault scene in a cloud computing system that overcome the above problems or at least partially solve the above problems.
[0005] In order to solve the above problems, an embodiment of the present invention discloses a cloud computing system, including: computing nodes, a cloud management center;
[0006] The computing node includes a field acquisition module, and the cloud management center includes a fault detection module and a fault field processing server;
[0007] The on-site collection module is used to collect on-site data of the cloud computing system and transmit the on-site data to the fault on-site processing server;
[0008] The fault detection module is used to detect whether the software and hardware of the cloud computing system have failed, and send a fault report to the fault site processing server; the fault report includes the failed software and hardware and the time when the fault occurred;
[0009] The fault site processing server is used to persistently store the field data collected by the field collection module; and, after receiving the fault report sent by the fault detection module, retrieve the fault site data of the corresponding equipment according to the fault report, and provide fault site data query and statistics functions for operation and maintenance personnel.
[0010] Optionally, the on-site collection module is used to obtain detection requirements and call corresponding plug-ins to collect on-site data of the cloud computing system according to the detection requirements.
[0011] Optionally, the fault detection module is used to obtain a fault judgment rule, and judge whether a fault occurs in the software and hardware of the cloud computing system according to the fault judgment rule.
[0012] Optionally, the fault site processing server module is further used to delete the field data for which the fault is not reported after the field data has been stored for a preset period.
[0013] In a second aspect, an embodiment of the present invention further discloses a method for retaining a fault scene in a cloud computing system, comprising:
[0014] Collecting on-site data of the cloud computing system and transmitting the on-site data to a fault on-site processing server;
[0015] Detect whether software and hardware of the cloud computing system fail, and send a failure report to the failure site processing server; the failure report includes the failed software and hardware and the time when the failure occurred;
[0016] The on-site data is persistently stored; and after receiving the fault report, the fault on-site data of the corresponding device is retrieved according to the fault report, and the fault on-site data query and statistics functions are provided for operation and maintenance personnel.
[0017] Optionally, collecting on-site data of the cloud computing system includes:
[0018] Acquire detection requirements, and call corresponding plug-ins according to the detection requirements to collect on-site data of the cloud computing system.
[0019] Optionally, the detecting whether software and hardware of the cloud computing system fails includes:
[0020] Obtain a fault judgment rule, and judge whether a fault occurs in the software and hardware of the cloud computing system according to the fault judgment rule.
[0021] Optionally, the step of persistently storing the on-site data further includes:
[0022] After the field data has been stored for a preset period, the field data for which no fault has been reported is deleted.
[0023] In a third aspect, an embodiment of the present invention further discloses an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of the method for retaining a fault site in a cloud computing system as described above are implemented.
[0024] In a fourth aspect, an embodiment of the present invention further discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for retaining a fault site in a cloud computing system as described above are implemented.
[0025] The embodiments of the present invention include the following advantages:
[0026] In an embodiment of the present invention, a cloud computing system includes a computing node and a cloud management center; the computing node includes a field collection module, and the cloud management center includes a fault detection module and a fault field processing server; the field collection module is used to collect field data of the cloud computing system and transmit it to the fault field processing server; the fault detection module is used to detect whether the software and hardware of the cloud computing system have failed, and send a fault report including the failed software and hardware and the time of the failure to the fault field processing server; the fault field processing server is used to store the field data persistently, and retrieve the fault field data of the corresponding equipment according to the report after receiving the fault report, and provide the operation and maintenance personnel with the function of querying and statistics of fault field data. The collection and storage of fault field data can save more storage space, the data storage accuracy is higher, and the data is accurately and appropriately stored; and the field and fault site are stored and managed separately for easy query. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 is a structural diagram of a cloud computing system provided by an embodiment of the present invention;
[0028] Figure 2 This is an architecture diagram of a fault scene acquisition module of a cloud computing system provided by an embodiment of the present invention;
[0029] Figure 3 This is an architecture diagram of a fault detection module of a cloud computing system provided by an embodiment of the present invention;
[0030] Figure 4 This is a diagram of a fault scene processing server architecture of a cloud computing system provided by an embodiment of the present invention;
[0031] Figure 5 It is a flowchart of a method for preserving a fault scene in a cloud computing system provided by an embodiment of the present invention;
[0032] Figure 6The present invention is a schematic diagram of an embodiment of a method for preserving a fault scene in a cloud computing system in a fault self-healing system. DETAILED DESCRIPTION
[0033] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0034] The present invention provides a method and device for preserving a fault scene, which automatically preserves the fault scene with a relatively low storage cost, helping operation and maintenance personnel to shorten the positioning time and find the root cause of difficult and complicated problems.
[0035] One of the core concepts of the embodiments of the present invention is to design a field collection module that supports flexible expansion of plug-ins as needed. Compared with the existing technology, it can collect more types of field data, including but not limited to monitoring, logs, memory status, request parameters, message queue messages, database records, etc., and can be expanded as needed; when a fault occurs, the fault scene is retained according to the configured fault window, which can save costs to a greater extent and have higher accuracy than the existing technology. Only the field data for a period of time before and after the fault occurs is retained, and it is accurately and appropriately saved; the field and fault site are managed separately. Compared with the existing technology, which cannot distinguish between the field and the fault site, it can only retain the data as frequently and as comprehensively as possible, and more accurately retain the fault site at a lower cost.
[0036] Reference Figure 1 , shows a structural diagram of a cloud computing system provided by an embodiment of the present invention, including a computing node 10 and a cloud management center 11. The system may specifically include:
[0037] The computing node 10 includes a field acquisition module 101, and the cloud management center 11 includes a fault detection module 111 and a fault field processing server 112;
[0038] The cloud computing system is an Internet-based computing model that provides scalable computing resources and services through the network. The cloud computing system allows users to access and use computing resources such as servers, storage, databases, networks, software, etc. on demand without having to manage the underlying infrastructure. In the cloud computing system, computing nodes and cloud management centers are two key components, which are responsible for different functions and together constitute the basic architecture of cloud computing.
[0039] Computing nodes are the basic computing units in cloud computing systems, responsible for executing specific computing tasks. Each computing node is usually composed of one or more physical servers, which are abstracted into multiple virtual machines or containers through virtualization technology for users to use.
[0040] The cloud management center is the management and control center of the cloud computing system, responsible for resource management, task scheduling, monitoring and maintenance of the entire cloud computing system. The cloud management center is usually composed of a group of servers and software, providing a centralized management platform.
[0041] Computing nodes and the cloud management center are two closely related components in the cloud computing system. Computing nodes provide computing resources, and the cloud management center is responsible for managing and scheduling these resources; computing nodes perform specific computing tasks, and the cloud management center is responsible for assigning tasks to appropriate computing nodes; the cloud management center monitors the operating status of computing nodes, discovers and handles faults in a timely manner, and ensures the stable operation of the system; the cloud management center provides user management and service interfaces, and users access and use the resources provided by computing nodes through the cloud management center.
[0042] In the implementation of the present invention, a field collection module 101 is set in the computing node 10, which can directly and timely collect field data of the cloud computing system. A fault detection module 111 and a fault field processing server 112 are set in the cloud management center 11, which can conveniently process and trace the field data as needed to ensure the security of the cloud computing system.
[0043] The on-site collection module 101 is used to collect on-site data of the cloud computing system and transmit the on-site data to the fault on-site processing server 112;
[0044] In the management and maintenance of systems or equipment, "site" and "fault site" are two important concepts, referring to the normal operating state of the system or equipment and the state when a fault occurs, respectively. Site usually refers to the state of the system or equipment in normal operating state. In this state, the system or equipment operates as expected and provides the required functions and services. In normal operating state, the system or equipment will collect various operating status data in real time, such as system logs, sensor data, operating parameters, application logs, network data packets, etc. The collected data is usually stored in a local or remote database for subsequent analysis and query. In normal operating state, the system or equipment will be monitored and maintained in real time to ensure the stability and reliability of the system. By analyzing the data in normal operating state, performance bottlenecks in the system can be found and optimized and improved. In normal operating state, the system will record various operations and events for subsequent security audits and investigations.
[0045] The site and the fault site are two important states in the operation of the system or equipment, which refer to the normal operation state and the state when a fault occurs. By collecting and storing the data of the site and the fault site in real time, system monitoring, performance optimization, fault analysis, problem reproduction, security audit and other tasks can be carried out to improve the reliability and stability of the system.
[0046] Reference Figure 2 , showing an architecture diagram of a fault scene collection module of a cloud computing system provided by an embodiment of the present invention, the field collection module 101 is mainly responsible for collecting various field data and reporting them to the fault scene processing server 112, and the specific uploading method can be that the field collection module 101 actively uploads at a fixed time and in a fixed quantity, or the field collection module 101 passively transmits according to the requirements of the fault scene processing server 112, and the field collection module 101 and the fault scene processing server 112 can interact in a push or pull manner to realize the transmission of field data or fault scene data.
[0047] In some embodiments of the present invention, the on-site data collection module 101 is used to obtain detection requirements and call corresponding plug-ins to collect on-site data of the cloud computing system according to the detection requirements.
[0048] like Figure 2 As shown, the field acquisition module 101 can be implemented in different parameter acquisition modes according to different data types, and typical data types include monitoring, logs, memory status, interface call parameters, message queue messages, database records, etc. These different types of field data can be flexibly expanded according to business needs.
[0049] In the embodiment of the present invention, the field acquisition module 101 provides an extensible architecture, and the specific data source and acquisition method of the acquisition are implemented by plug-in extension. The collected data includes but is not limited to the monitoring data of the computing node, the system log of the computing node, the memory status exposed by the business application, etc. The specific data type collected is controlled by the specific plug-in of the field acquisition module 101, and each plug-in is different. For example, the plug-in for collecting the monitoring data of the computing node needs to configure the address of the monitoring server and authentication related information; and the plug-in for collecting the monitoring data of the computing node can request the monitoring server to collect data through the http protocol (HyperTextTransfer Protocol).
[0050] The fault detection module 111 is used to detect whether the software and hardware of the cloud computing system have failed, and send a fault report to the fault site processing server 112; the fault report includes the failed software and hardware and the time when the fault occurred;
[0051] The fault scene usually refers to the state of the system or device when the fault occurs. In this state, the system or device cannot operate as expected, and may experience functional failure, performance degradation, data loss, and other problems. By monitoring the state of the system or device, the occurrence of the fault can be detected in time. Fault detection can be achieved through predefined fault conditions, anomaly detection algorithms, etc.
[0052] By analyzing the saved fault site data, the cause and root cause of the fault can be found, helping developers and operation and maintenance personnel to quickly locate and solve the problem; the saved fault site data can help reproduce the system status when the fault occurred, which is convenient for developers to debug and test; by analyzing the system performance data before and after the fault, the performance bottlenecks in the system can be discovered, and optimization and improvement can be carried out; in some cases, the fault may be related to security incidents, such as hacker attacks, and the saved fault site data can be used for security audits and investigations.
[0053] In the embodiment of the present invention, the fault detection module 111 is mainly responsible for detecting the status of the target hardware and software devices. When the hardware and software are found to be faulty, the fault site processing server 112 is informed of the device and time when the fault occurred. The fault detection module 111 is implemented through a fault discovery framework and an existing monitoring system. The fault detection module 111 manages all detected hardware and software, regularly re-queries the hardware and software status in the monitoring system to see if there is a fault, and immediately pushes the faulty hardware and software information to the fault site processing server 112 after the fault is found. In this way, the fault object and time can be locked in time, which greatly improves the accuracy of the subsequent retrieval of fault site data and saves costs.
[0054] In some inventive embodiments, the fault detection module 111 is used to obtain fault judgment rules, and judge whether the software and hardware of the cloud computing system have faults according to the fault judgment rules.
[0055] Reference Figure 3 , shows an architecture diagram of a fault detection module of a cloud computing system provided by an embodiment of the present invention. The fault discovery framework of the fault detection module 111 is rule-driven and pre-sets fault judgment rules.
[0056] Fault judgment rule configuration refers to the pre-definition of a series of rules in the management and maintenance of systems or devices to detect and judge whether a system or device has a fault. These rules are usually based on the operating status data of the system or device, such as sensor data, system logs, operating parameters, etc. The configuration of fault judgment rules usually includes the following elements: specifying the data source for fault detection, such as sensor data, system logs, operating parameters, etc.; defining the conditions for fault detection, such as a certain sensor data exceeds the threshold, specific error information appears in the system log, etc.; defining the logical relationship between multiple conditions, such as "AND", "OR", "NOT", etc.; defining the type of fault detected, such as power failure, sensor failure, network failure, etc.; defining the severity of the fault, such as severe, moderate, minor, etc.; defining the processing mechanism triggered after the fault is detected, such as automatic recovery, alarm notification, manual intervention, etc.
[0057] In one embodiment of the present invention, the fault determination rules may be configured as follows:
[0058] a) Configure the rule power_state=0 as a fault. (power_state=0 usually means that the power state of the computing node or device is "off" or "power off". The specific meaning may vary depending on the system or device, but generally speaking, power_state is a variable or indicator that indicates the power state, and 0 usually means that the power is off or the device is not powered on.) First, define a fault rule to treat power_state=0 as a fault. This rule can be configured in the fault detection module as a basis for fault detection; the fault detection module is responsible for polling the indicators of the computing node and detecting faults according to the configured rules, regularly sending requests to the computing node to obtain its operating status indicators such as power_state, CPU (central processing unit) usage, memory usage, etc. The polling frequency can be configured according to demand, such as once per second or once per minute; according to the configured rules, detect whether a fault occurs. For example, when power_state=0 is detected, the fault handling mechanism is triggered, that is, if a fault is found, the faulty device and the time of the fault occurrence are sent to the fault site processing server 112.
[0059] b) The configuration rule log{content=“OOM Kill”}>0 is a fault. When the collected computing node system log contains OOM Kill, it indicates that the computing node has failed. log{content="OOM Kill"}>0 is an expression used for log monitoring and analysis, and is usually used to detect whether a specific error or event has occurred in the system log. The "log{content="OOM Kill"}" part of the expression means to find log entries containing the "OOM Kill" string in the log. "OOM Kill" usually refers to the operation of forcibly terminating a process in order to prevent the system from crashing when the operating system is out of memory (Out of Memory, OOM). The ">0" part of the expression means to determine whether the number of log entries containing the "OOM Kill" string is greater than 0. If the number is greater than 0, the expression is true; otherwise, it is false. Through this expression, it is possible to promptly discover whether the system has a situation where a process is forced to terminate due to insufficient memory, and take corresponding processing measures, that is, if a fault is found, the faulty device and the time of the fault will be sent to the fault site processing server 112.
[0060] The fault site processing server 112 is used to persistently store the field data collected by the field collection module 101; and, after receiving the fault report sent by the fault detection module 111, retrieve the fault site data of the corresponding equipment according to the fault report, and provide fault site data query and statistics functions for operation and maintenance personnel.
[0061] Reference Figure 4 , shows a fault scene processing server architecture diagram of a cloud computing system provided by an embodiment of the present invention, which is responsible for the storage, processing and display of fault scene data. Storage refers to actively pulling from the fault scene acquisition module 101 or passively receiving the field data pushed by the fault scene acquisition module 101 and persisting it; processing mainly refers to the preservation of field data for a period of time before and after the fault according to the configured fault window after the fault detection module 111 reports a fault; display mainly refers to the query and statistical functions provided when the operation and maintenance personnel need to retrieve the field data of a hardware or software fault.
[0062] The fault site processing server needs to implement site management and fault site management functions. The site and fault site data are stored in TSDB, which is the abbreviation of Time Series Database. A time series database is a database system specially designed to store and query time series data. Time series data refers to data points recorded in chronological order, usually including timestamps and corresponding numerical values or status information. The time series database is optimized for the storage, query, and analysis of time series data, and has efficient timestamp indexing and query capabilities. Storing the collected data in TSDB can fully utilize the advantages of the time series database, improve the efficiency of data storage and query, and facilitate subsequent data analysis and decision support.
[0063] In some embodiments of the present invention, the fault scene processing server module 112 is further configured to delete the field data for which no fault is reported after the field data has been stored for a preset period of time.
[0064] When the fault detection module 111 reports a fault, the fault site processing server 112 saves the field data for a period of time before and after the fault according to the configured fault window, and the field data that has not reported the fault is stored and aged and deleted after a configured period. The fault window refers to a period of time before and after the fault occurs. This time range is usually pre-configured and can be adjusted according to the characteristics of the system and the needs of fault analysis. For example, the fault window can be set to 10 seconds before the fault occurs to 30 seconds after the fault occurs. Saving the field data for a period of time before and after the fault according to the configured fault window is an effective fault analysis and problem diagnosis method. By saving and analyzing the system status data before and after the fault occurs, it can help developers and operation and maintenance personnel quickly locate and solve problems, and improve the reliability and stability of the system. The field data that has not failed can be deleted after a preset time period to avoid taking up more memory and saving storage costs.
[0065] The embodiment of the present invention provides a cloud computing system, including a computing node and a cloud management center; the computing node includes a field collection module, and the cloud management center includes a fault detection module and a fault field processing server; the field collection module is used to collect field data of the cloud computing system and transmit it to the fault field processing server; the fault detection module is used to detect whether the software and hardware of the cloud computing system have failed, and send a fault report including the failed software and hardware and the time of the failure to the fault field processing server; the fault field processing server is used to store the field data persistently, and retrieve the fault field data of the corresponding device according to the report after receiving the fault report, and provide the operation and maintenance personnel with the function of querying and counting the fault field data. The problem of incomplete and unorganized fault field data is solved. The field status when the fault occurs is fully and three-dimensionally displayed, helping the operation and maintenance personnel to quickly locate general faults and smoothly locate the root causes of difficult faults; the problem of huge cost of retaining the fault field by environmental snapshot technology is solved, the field data is regularly aged and deleted according to the configuration, and the fault field data is persistently stored according to the configured fault window, which greatly saves costs.
[0066] Reference Figure 5 , shows a flowchart of a method for retaining a fault scene in a cloud computing system provided by an embodiment of the present invention. The method may specifically include:
[0067] Step 501, collecting on-site data of the cloud computing system, and transmitting the on-site data to a fault on-site processing server;
[0068] In some embodiments of the present invention, step 501 may include:
[0069] Acquire detection requirements, and call corresponding plug-ins according to the detection requirements to collect on-site data of the cloud computing system.
[0070] Collecting fault site data for persistence means collecting various data related to the fault in real time when a system or device fails, and saving these data to a persistent storage medium for subsequent analysis and diagnosis. These data may include: system logs, which record various events and state changes during system operation; sensor data, such as temperature, pressure, current, voltage and other sensor data; operating parameters, which refer to the parameters required to call an API (Application Programming Interface); application logs, which record various events and state changes during application operation; network data packets, such as network traffic, data packet content, etc. Saving data to a persistent storage medium ensures that the data can still be accessed after the system is restarted or the fault is recovered.
[0071] Step 502, detecting whether software and hardware of the cloud computing system fail, and sending a fault report to the fault site processing server; the fault report includes the failed device and the time of the failure;
[0072] In some embodiments of the present invention, step 502 may include:
[0073] Obtain a fault judgment rule, and judge whether a fault occurs in the software and hardware of the cloud computing system according to the fault judgment rule.
[0074] By monitoring the status of the system or equipment, the occurrence of faults can be detected in time. Fault detection can be achieved through predefined fault conditions, abnormal detection algorithms, etc. After the fault is detected, the detected fault-occurring device and the time of occurrence are immediately uploaded to the report, and the fault site is discovered and data retrieved in time.
[0075] Step 503, persistently storing the field data; and, after receiving the fault report, retrieving the fault field data of the corresponding device according to the fault report, and providing fault field data query and statistics functions for operation and maintenance personnel.
[0076] In some embodiments of the present invention, step 503 may include:
[0077] After the field data has been stored for a preset period, the field data for which no fault has been reported is deleted.
[0078] After a fault is detected, immediately retrieve the on-site data related to the fault. According to the type and severity of the fault, trigger the corresponding fault handling mechanism, such as automatic recovery, alarm notification, manual intervention, etc.; analyze the saved fault site data to facilitate operation and maintenance personnel to find the cause and root cause of the fault. Storing the on-site and fault site data in TSDB can make full use of TSDB's efficient timestamp indexing and query capabilities to ensure data persistence and queryability. And according to the fault report sent by the fault detection module, the normal on-site data of the fault that has not occurred that has been saved after a period of time can be deleted to save storage space.
[0079] The embodiment of the present invention provides a method for retaining a fault scene in a cloud computing system, including a computing node and a cloud management center; the computing node includes a field collection module, and the cloud management center includes a fault detection module and a fault scene processing server; the field collection module is used to collect field data of the cloud computing system and transmit it to the fault scene processing server; the fault detection module is used to detect whether the software and hardware of the cloud computing system have failed, and send a fault report including the failed software and hardware and the time of the failure to the fault scene processing server; the fault scene processing server is used to store the field data persistently, and retrieve the fault field data of the corresponding device according to the report after receiving the fault report, and provide the operation and maintenance personnel with the function of querying and counting the fault field data. The problem of incomplete and unorganized fault field data is solved. The field status when the fault occurs is fully and three-dimensionally displayed, helping the operation and maintenance personnel to quickly locate general faults and smoothly locate the root causes of difficult faults; the problem of huge cost of retaining the fault scene by environmental snapshot technology is solved, the field data is regularly aged and deleted according to the configuration, and the fault field data is persistently stored according to the configured fault window, which greatly saves costs.
[0080] Reference Figure 6 , showing a schematic diagram of an embodiment of a method for retaining a fault scene in a cloud computing system provided by an embodiment of the present invention in a fault self-healing system:
[0081] The device that implements the field collection module, fault detection module, and fault field processing server can be used in the fault self-healing system. The field collection module is implemented through a plug-in architecture, defines the interface that the plug-in needs to implement, and expands itself according to business needs to implement monitoring, logs, memory status, request parameters, message queue messages, database records and other field data collection plug-ins. The field collection module calls and transmits the field data to the fault field processing server module through active push or passive pull; the fault detection module is implemented through a fault discovery framework and an existing monitoring system. The fault discovery module manages all detected hardware and software, regularly re-queries the hardware and software status in the monitoring system to see if there is a fault, and immediately pushes the fault hardware and software information to the fault field processing server module after the fault is found; the fault field processing server module needs to implement field management and fault field management functions, and the field and fault field data are stored in TSDB for subsequent analysis and query.
[0082] Site management mainly includes actively pulling / passively pushing site data, querying or counting site data; fault site management mainly includes: passively accepting faults reported by the fault detection module and saving, querying or counting the fault site according to the fault window. Regularly poll the operating status indicators of the computing node, such as power status, CPU usage, memory usage, network connection status, etc.; detect whether a fault occurs according to predefined fault conditions. For example, when power_state=0 is detected, the fault handling mechanism is triggered. Try to automatically restore the status of the computing node, such as restarting the computing node, reallocating tasks, etc. Notify relevant personnel through email, SMS, instant messaging tools, etc. for manual intervention. Record the time of the fault, the identification of the computing node, the type of fault, and other information for subsequent analysis and diagnosis.
[0083] In the cloud computing system, the method for retaining the fault scene in the embodiment of the fault self-healing system can realize the collection, storage and analysis of the fault scene data through the steps of real-time monitoring, fault detection, fault self-healing, data collection, data storage and fault analysis, so as to perform fault self-healing and subsequent fault analysis. By reasonably configuring and optimizing the fault self-healing system, the accuracy and reliability of fault detection can be improved, and the faults of the system or equipment can be discovered and handled in time to ensure its stable operation and efficient work.
[0084] A method and device for preserving a fault scene can fully and three-dimensionally preserve the fault scene, solving the problem of slow and difficult positioning by operation and maintenance personnel; applying a method and device for preserving a fault scene to a fault self-healing system, combined with an approval function, can achieve fault discovery in a production environment, configure a self-healing strategy based on the fault scene, and realize self-healing of newly added faults after operation and maintenance approval, greatly shortening the time period for fault self-healing to go online.
[0085] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0086] An embodiment of the present invention also provides an electronic device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, the various processes of the above-mentioned cloud computing system fault scene retention method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0087] An embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned cloud computing system fault scene retention method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0088] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0089] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0090] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1A device that provides the functions specified in a block or multiple blocks.
[0091] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0092] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0093] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0094] 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 terminal 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 terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0095] The cloud computing system and the method for retaining a fault scene in a cloud computing system provided by the present invention are introduced in detail above. The principles and implementation methods of the present invention are explained in detail using specific examples. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A cloud computing system, characterized in that: include: Computing nodes, cloud management center; The computing node includes a field acquisition module, and the cloud management center includes a fault detection module and a fault field processing server; The on-site collection module is used to collect on-site data of the cloud computing system and transmit the on-site data to the fault on-site processing server; The fault detection module is used to detect whether the software and hardware of the cloud computing system have failed, and send a fault report to the fault site processing server; the fault report includes the failed software and hardware and the time when the fault occurred; The fault scene processing server is used to persistently store the field data collected by the field collection module; And, after receiving the fault report sent by the fault detection module, the fault site data of the corresponding equipment is retrieved according to the fault report, and the fault site data query and statistics functions are provided for the operation and maintenance personnel.
2. The system according to claim 1, characterized in that The on-site collection module is used to obtain detection requirements and call corresponding plug-ins to collect on-site data of the cloud computing system according to the detection requirements.
3. The system according to claim 1, characterized in that The fault detection module is used to obtain fault judgment rules and judge whether the software and hardware of the cloud computing system have faults according to the fault judgment rules.
4. The system according to claim 1, characterized in that The fault scene processing server module is also used to delete the field data for which the fault is not reported after the field data has been stored for a preset period.
5. A method for retaining a fault scene in a cloud computing system, characterized in that: include: Collecting on-site data of the cloud computing system and transmitting the on-site data to a fault on-site processing server; Detect whether software and hardware of the cloud computing system fail, and send a failure report to the failure site processing server; the failure report includes the failed software and hardware and the time when the failure occurred; Persistently storing the on-site data; And, after receiving the fault report, the fault site data of the corresponding equipment is retrieved according to the fault report, and the fault site data query and statistics functions are provided to the operation and maintenance personnel.
6. The method according to claim 5, characterized in that The collecting of on-site data of the cloud computing system includes: Acquire detection requirements, and call corresponding plug-ins according to the detection requirements to collect on-site data of the cloud computing system.
7. The method according to claim 5, characterized in that The detecting whether software and hardware of the cloud computing system fail comprises: Obtain a fault judgment rule, and judge whether a fault occurs in the software and hardware of the cloud computing system according to the fault judgment rule.
8. The method according to claim 5, characterized in that The persistent storage of the on-site data further includes: After the field data has been stored for a preset period, the field data for which no fault has been reported is deleted.
9. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of the method for preserving a fault scene in a cloud computing system as described in any one of claims 5 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for preserving a fault site in a cloud computing system according to any one of claims 5 to 7 are implemented.
Citation Information
Patent Citations
Monitoring management system based on cloud computing
CN103812699A
Data acquisition method and device
CN106383764A
Management system, control method, and storage medium
US20160373542A1