Fault processing method and device

By using startup identification information to automatically switch operating systems on computing nodes, the problem of low operating system fault handling efficiency in distributed business systems is solved, automatic failover and fault recovery are realized, and user experience and system reliability are improved.

CN118733309APending Publication Date: 2024-10-01HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310363546.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-31
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In a distributed business system, when the operating system of a certain node fails, the existing technology requires manual intervention, which is inefficient and labor-consuming, and cannot achieve automatic failover.

Method used

By implementing an automatic operating system switching mechanism on computing nodes and using preset startup identification information to switch between multiple operating systems, it is ensured that when one operating system fails, another operating system can automatically take over its work and recover from the failure. Then restore the original operating system.

Benefits of technology

It realizes automatic switching and fault handling without manual participation when the operating system fails, improves fault handling efficiency, reduces labor costs, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733309A_ABST
    Figure CN118733309A_ABST
Patent Text Reader

Abstract

The invention provides a fault processing method and equipment, the method can be applied to a computing node comprising a plurality of operating systems, specifically, after the computing node receives a first starting instruction, preset starting identification information is determined to be arranged on a first system disk corresponding to a first operating system in the plurality of operating systems, and the first system disk corresponds to the first operating system; if yes, starting the first operating system; and then, deleting the starting identification information set on the first system disk, and setting the starting identification information on a second system disk corresponding to a second operating system except the first operating system. And automatically starting the second operating system to replace the first operating system to work when it is detected that the currently running first operating system breaks down and it is determined that the starting identification information is set in the second system disk. Manual intervention for restarting is not needed, the fault processing efficiency can be improved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a fault handling method and device. Background Art

[0002] In recent years, with the popularization of distributed architecture of Internet technology (IT) systems, a large number of business systems built by single nodes have gradually emerged. At present, when the operating system of a node in a business system fails, it can only be handled manually, which is inefficient and labor-intensive. Summary of the invention

[0003] The present application provides a fault handling method and device to improve fault handling efficiency and reduce costs.

[0004] In a first aspect, the present application provides a fault handling method, which can be applied to a computing node containing multiple operating systems. Specifically, the method includes: after receiving a first startup instruction, the computing node first determines on which system disk corresponding to the multiple operating systems the preset startup identification information is located. For example, if it is determined that the preset startup identification information is set on the first system disk corresponding to the first operating system among multiple operating systems, the first operating system is started. Then, after starting the first operating system, the computing node deletes the startup identification information set on the first system disk, and sets the startup identification information on the second system disk, which is a system disk corresponding to any second operating system among the multiple operating systems except the first operating system. Finally, when it is detected that the currently running first operating system has a fault, when it is determined that the startup identification information is set on the second system disk, the second operating system is started to take over the work of the first operating system.

[0005] Through the above technical solution, when the operating system of the computing node fails, the operating system can be automatically switched to other normal operating systems according to the startup identification information, without the need for manual participation in the restart process, which can improve fault handling efficiency and enhance user experience.

[0006] In a possible implementation, before the computing node detects that the currently running first operating system fails, the method further includes: the computing node synchronizing a first configuration file of the first operating system to the second system disk.

[0007] Through the above technical solution, after the first operating system is started, the computing node can synchronize the first configuration file of the first operating system to the second system disk to ensure data consistency of the opposite system disk.

[0008] In a possible implementation, after the computing node starts the second operating system to take over the first operating system, the method further includes: after the failure of the first operating system is eliminated, deleting the startup identification information set on the second system disk, and setting the startup identification information on the first system disk.

[0009] Through the above technical solution, when the second operating system takes over the first operating system to continue working, the startup identification information of the second system disk can be updated to the first system disk, so that when the first operating system resumes normal operation, the first operating system can be restarted subsequently to achieve a cyclic startup of the operating system.

[0010] In a possible implementation, after the startup identification information is set on the first system disk, the method further includes: the computing node determines that the second system disk fails, and when it is determined that the startup identification information is set on the first system disk, starts the first operating system to take over the second operating system.

[0011] Through the above technical solution, when a system disk failure of the peer operating system is detected, the startup identification information can be restored to the original system disk, thereby avoiding data synchronization abnormalities caused by system disk hardware failure.

[0012] In a possible implementation, after the computing node starts the second operating system to take over the work of the first operating system, the method further includes: the computing node synchronizes the second configuration file of the second operating system to the first system disk. Through the above technical solution, the second configuration file can be synchronized to the first system disk to ensure that the data on the two data disks are consistent.

[0013] In a possible implementation, the method further includes: the computing node sending the first configuration file on the second system disk to the first system disk, and then the computing node recovers data of the first operating system according to the first configuration file.

[0014] Through the above technical solution, the data of the operating system corresponding to the first system disk can be restored by using the files synchronized from the first system disk to the second system disk before the failure occurs.

[0015] In a possible implementation, before the computing node synchronizes the first configuration file of the first operating system to the second system disk, the method further includes: the computing node detecting a file change status of the first configuration file; and determining, based on the detection result, whether the file change status of the first configuration file is a file size modification or a file content modification.

[0016] In a possible implementation, before the computing node synchronizes the second configuration file of the second operating system to the first system disk, the method further includes: the computing node detects the file change status of the second configuration file, and determines, based on the detection result, that the file change status of the second configuration file is a file size modification or a file content modification.

[0017] The above technical solution can avoid synchronization of faults caused by misoperation and the like to the opposite system disk.

[0018] In a second aspect, the present application provides a fault handling device, which may include: a receiving module and a processing module. Exemplarily, the receiving module card is used to receive a first startup instruction. The processing module can be used to delete the startup identification information set on the first system disk, and set the startup identification information on the second system disk, the second system disk being a system disk corresponding to any second operating system other than the first operating system among the multiple operating systems; and when it is detected that the currently running first operating system has a fault, when it is determined that the startup identification information is set on the second system disk, the second operating system is started to take over the work of the first operating system.

[0019] In a third aspect, the present application also provides a computing device cluster, comprising at least one computing device, each computing device comprising a processor and a memory; the processor of the at least one computing device is used to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method described in the first aspect or any possible implementation of the first aspect.

[0020] In a fourth aspect, the present application further provides a computer-readable storage medium, comprising computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster executes the method described in the above-mentioned first aspect or any possible implementation manner of the first aspect.

[0021] In a fifth aspect, the present application further provides a computer program product comprising instructions, which, when executed by a computing device cluster, enables the computing device cluster to execute the method described in the first aspect or any possible implementation of the first aspect.

[0022] Regarding the technical effects brought about by the various implementations of the second to fifth aspects, reference can be made to the introduction to the technical effects of the first aspect or the various implementations of the first aspect, and no further details will be given here. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application;

[0024] Figure 2 A flowchart of a fault handling method provided in an embodiment of the present application;

[0025] Figure 3 A schematic diagram of a fault handling method provided in an embodiment of the present application;

[0026] Figure 4 A flow chart of a method for switching an operating system provided in an embodiment of the present application;

[0027] Figure 5 A schematic diagram of operating system switching provided in an embodiment of the present application;

[0028] Figure 6 A flow chart of a data synchronization method provided in an embodiment of the present application;

[0029] Figure 7 A schematic diagram of the structure of a fault handling device provided in an embodiment of the present application;

[0030] Figure 8 A schematic diagram of the structure of a computing device provided in an embodiment of the present application;

[0031] Fig. 9 A schematic diagram of the structure of a computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION

[0032] The implementation of this embodiment will be described in detail below with reference to the accompanying drawings.

[0033] The multiple involved in the embodiments of the present application means greater than or equal to two. It should be noted that in the description of the embodiments of the present application, the words "first", "second", etc. are only used for the purpose of distinguishing the description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying an order.

[0034] like Figure 1 FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present application. Figure 1 As shown, the application scenario may include multiple computing nodes, such as computing node 1, computing node 2, and computing node 3. It should be understood that Figure 1 Only three computing nodes are used as an example. In the embodiment of the present application, the application scenario may also include more or fewer computing nodes, such as one computing node, or four computing nodes, etc., without specific limitation. Among them, the computing node may be a physical machine, a server, a virtual machine, a container, etc. Moreover, each computing node may include multiple operating systems.

[0035] In some embodiments, assuming that computing node 1 includes operating system 1 and operating system 2, when the operating system currently used by computing node 1 during operation, such as operating system 1, fails, any other operating system in the operating system of computing node 1 except operating system 1 can be automatically restarted, such as automatically starting operating system 2. This does not require human intervention to restart the system, which can improve fault handling efficiency.

[0036] It should be understood that the fault handling method of the embodiment of the present application can be applied to a single computing node failure (for example, Figure 1 In the scenario of any computing node in the schematic diagram shown in the figure, Figure 1 The computing node 1 shown is taken as an example to describe in detail the fault handling method of the embodiment of the present application.

[0037] For example, Figure 2 , which is a flow chart of a fault handling method provided by an embodiment of the present application. Figure 2 As shown, the method may include the following steps:

[0038] Step 201: Computing node 1 receives a startup instruction.

[0039] The start instruction may be triggered by a user, for example, by voice, or by clicking a physical button or a virtual button on the computing node 1 .

[0040] Step 202: Computing node 1 determines that preset startup identification information is set on a first system disk corresponding to a first operating system.

[0041] In some embodiments, the system disk of computing node 1 may include a startup identification. After receiving the startup instruction, computing node 1 may detect which system disk among the system disks included in the computing node has the startup identification information, and then determine that the operating system corresponding to the system disk with the startup identification information is the operating system started this time. Exemplarily, for example, computing node 1 includes a first system disk and a second system disk. After computing node 1 receives the startup instruction, it may detect which system disk among the first system disk and the second system disk has the startup identification information. For example, if the first system disk has the startup identification information, then it is determined that the operating system started this time is the operating system corresponding to the first system disk.

[0042] Step 203: Computing node 1 starts and runs the first operating system.

[0043] After computing node 1 determines that the operating system started this time is the first operating system, it may start and run the first operating system.

[0044] In some embodiments, during operation, computing node 1 can synchronize a first configuration file (or: configuration data) of a first operating system to a second system disk corresponding to a second operating system, so that data recovery can be automatically performed based on the data of the second system disk during subsequent fault processing without manual intervention.

[0045] Step 204: Computing node 1 deletes the startup identification information set on the first system disk, and sets the startup identification information on the second system disk.

[0046] The second system disk is a system disk corresponding to any second operating system other than the first operating system among the multiple operating systems of the computing node 1 .

[0047] In some embodiments, after the first operating system of computing node 1 is successfully started, computing node 1 may delete the startup identification information on the first system disk and set the startup identification information on the second system disk. In other words, after the first system disk of computing node 1 is successfully started, the startup identification information may be changed from the first system disk to the second system disk.

[0048] Step 205: When computing node 1 detects that a failure occurs in the currently running first operating system, it is determined that the startup identification information is set on the second system disk.

[0049] It should be understood that in the embodiment of the present application, the first operating system failure may include two situations: a failure of the system disk of the first operating system and a failure of the system file of the first operating system.

[0050] In some embodiments, when the first operating system fails, the computing node 1 can restart the system, and at this time, it can determine which system disk corresponding to the operating system to restart based on the startup identification information on the system disk. Specifically, the computing node 1 can detect which system disk between the first system disk and the second system disk has the startup identification information, and then restart the operating system corresponding to the system disk with the startup identification information. Since the startup identification information has been updated to the second system disk after the first system disk is started, after the first operating system fails, it can be determined that the startup identification information is on the second system disk, and then the restarted operating system is the operating system corresponding to the second system disk.

[0051] Step 206: Computing node 1 starts the second operating system to take over the operation of the first operating system.

[0052] In some embodiments, when computing node 1 determines that the restarted operating system is the second operating system, it can automatically start and run the second operating system, and the second operating system will take over the first operating system to continue working. In this way, there is no need for manual participation in the restart operation. Computing node 1 can automatically restart the system disk, which can improve the efficiency of fault handling.

[0053] During the operation of the second operating system, computing node 1 can synchronize the configuration data on the second system disk to the first system disk, so that the operating system corresponding to the first system disk completes recovery and data synchronization. In addition, after the second operating system is successfully started, computing node 1 can clear the startup identification information on the second system disk and set the startup identification information to the new first system disk.

[0054] That is to say, in the embodiment of the present application, the operating systems corresponding to the first system disk and the second system disk can be controlled to start alternately (or: cyclically start) through the startup identification information, so that the business system can be self-repaired directly through the normal system at the next startup.

[0055] Through the above embodiments, when the computing node detects that the currently running operating system fails and needs to restart the system, it can realize automatic switching of the operating system, and solve the problem of the current operating system failure by restarting other operating systems, without the need for manual participation in the restart, which can improve the efficiency of fault handling.

[0056] like Figure 3 As shown, it is a schematic diagram of a fault handling method provided by an embodiment of the present application. Specifically, a startup command is first issued. After the computing node receives the startup command, it can check which system disk between system disk 1 and system disk 2 has the system startup identification information, and then automatically select the operating system according to the startup identification information. For example, if there is startup identification information on system disk 1, then operating system 1 is started. After operating system 1 is started, user data mounting can be performed. At the same time, during the operation of operating system 1, core data can be synchronized to operating system 2, and the startup identification information on system disk 1 can be deleted, and the startup identification information can be set to system disk 2. Then, if an operating system 1 failure is detected during the operation of operating system 1, the restart process is entered. The computing node can check the startup identification information. At this time, if there is startup identification information on system disk 2, operating system 2 is automatically selected. After operating system 2 is started, user data is mounted and business applications are started. In addition, the core data of operating system 2 can be synchronized to operating system 1 during the operation of operating system 2. Operating system 1 can perform fault repair and data recovery, and automatically select operating system 1 to start at the next startup. It should be understood that Figure 3 The core data in the illustrated embodiment refers to a configuration file of the operating system.

[0057] The following describes how to implement automatic operating system switching when an operating system fails during restart in the embodiment of the present application. Figure 4 FIG. 1 is a flowchart of a method for switching an operating system provided in an embodiment of the present application. Figure 4 As shown, the method may include the following steps:

[0058] Step 401: Computing node 1 detects startup identification information on the first system disk and the second system disk.

[0059] Step 402: Computing node 1 determines that the first system disk has startup identification information, and starts the first operating system corresponding to the first system disk.

[0060] In some embodiments, the computing node 1 may check which system disk of the first system disk and the second system disk has the startup identification information, and then start the operating system corresponding to the system disk having the startup identification information.

[0061] Step 403: Computing node 1 synchronizes the first configuration file of the first operating system to the second system disk, and sets startup identification information on the second system disk.

[0062] The configuration files may include kernel files, system configuration files, and software installation files. The specific data synchronization process can be found in the detailed description of the embodiments shown below, and will not be described here.

[0063] In some embodiments, computing node 1 may synchronize the first configuration file of the first operating system to the second system disk to achieve data consistency of the opposite system disk. In addition, the startup identification information on the first system disk may be deleted, and the startup identification information may be set on the second system disk.

[0064] Step 404: When computing node 1 detects a failure in the first operating system, it determines that a startup identifier exists on the second system disk, and starts the second operating system to take over the work of the first operating system.

[0065] When computing node 1 detects that the currently running first operating system fails, it needs to restart the system. At this time, the system can be restarted according to the startup identification information on the system disk. After the first operating system is started, computing node 1 can clear the startup identification information on the first system disk and update the startup identification information to the second system disk. At this time, the operating system corresponding to the second system disk can be started during the restart.

[0066] Step 405: Computing node 1 synchronizes the second configuration file of the second operating system to the first system disk, and sets the startup identification information on the first system disk.

[0067] In some embodiments, computing node 1 can synchronize the second configuration file of the second operating system to the first system disk to ensure data consistency between the system disks at both ends. Secondly, computing node 1 can also synchronize the first configuration file that the first system disk synchronized to the second system disk before the failure to the first system disk, so that the first operating system can perform data recovery based on the first configuration file. In addition, computing node 1 can clear the startup identification information on the second system disk and update the startup identification information to the first system disk, so that the first operating system corresponding to the first system disk can be started the next time the system starts.

[0068] Through the above embodiments, the computing node can realize automatic switching of the operating system when the system needs to be restarted according to the startup identification information on the system disk, without manual intervention, thereby improving the efficiency of fault handling.

[0069] like Figure 5 As shown, it is a schematic diagram of operating system switching provided by an embodiment of the present application. Specifically, a startup command is first issued, and after the computing node receives the startup command, it can check the boot identification information on the system disk. When there is boot identification information on system disk 1, system disk 1 is used to start operating system 1. When operating system 1 is successfully started, the key data of operating system 1 can be synchronized to system disk 2 to ensure that the data of the system disks at both ends are consistent. In addition, the boot identification information on system disk 1 can be deleted, and the boot identification information can be set on system disk 2. When operating system 1 fails during operation and needs to be restarted, and there is boot identification information on system disk 2, system disk 2 is selected to start operating system 2. When operating system 2 is successfully started, the key data of operating system 2 can be synchronized to system disk 1. Then, the boot identification information on system disk 2 can be deleted, and the boot identification information can be set on system disk 1. It should be understood that Figure 5 The boot identification information in the illustrated embodiment has the same meaning as the startup identification information described above.

[0070] The following describes the process of data synchronization between two system disks in the embodiment of the present application. Figure 6 As shown, it is a flow chart of a data synchronization method provided by an embodiment of the present application, see Figure 6 As shown, the method may include the following steps:

[0071] It should be understood that Figure 6 The embodiment shown takes the process of synchronizing data from the first system disk to the second system disk as an example. For the process of synchronizing data from the second system disk to the first system disk, please refer to Figure 6 Steps of the illustrated embodiment.

[0072] Step 601: Computing node 1 detects whether the second system disk fails. If the second system disk is normal (no failure occurs), continue to step 602; if the second system disk fails, continue to step 603.

[0073] In some embodiments, computing node 1 may detect whether the second system disk fails, such as whether the hardware is normal. If the hardware of the peer system disk is normal, continue to execute step 602; if the hardware of the peer system disk is abnormal, continue to execute step 603.

[0074] It should be understood that the peer system disk is different in different situations. For example, when the first system disk synchronizes configuration data with the second system disk, the source system disk is the first system disk and the peer system disk is the second system disk; when the second system disk synchronizes configuration data with the first system disk, the source system disk is the second system disk and the peer system disk is the first system disk.

[0075] Step 602: Computing node 1 detects and synchronizes the first configuration file.

[0076] As a possible implementation, after determining that the first operating system is started, computing node 1 may periodically detect the change state of the first configuration file to determine whether the first configuration file has been modified. It should be understood that the periodic detection is only an example, and the detection time interval of the first configuration file is not limited in the embodiment of the present application.

[0077] Specifically, computing node 1 may determine the change state of the first configuration file through metadata information, wherein the metadata information may include the creation time, access time, modification time, deletion time, file size, etc. of the file.

[0078] When the file size or modification time in the metadata information changes, computing node 1 can determine that the first configuration file has been modified in terms of file content or file size, and that the first configuration file has been changed. In this case, the first configuration file can be synchronized to the second system disk. When the first configuration file is deleted or accessed incorrectly, computing node 1 can identify that the operating system is damaged, and in this case, data synchronization is not performed, and the first configuration file is not synchronized to the second system disk.

[0079] Step 603: Computing node 1 sets the startup identification information on the second system disk on the first system disk, and starts the first operating system to take over the work of the second operating system.

[0080] In some embodiments, when the second system disk fails, computing node 1 can repair the currently running system disk identifier and restore the boot identifier of the cleared system disk. Exemplarily, when the first system disk synchronizes the first configuration file to the second system disk, if it is detected that the second system disk fails, such as a hardware abnormality, the boot identifier information of the cleared first system disk can be restored, the boot identifier information on the second system disk will be deleted, and the boot identifier information will be set on the first system disk.

[0081] As a possible implementation, computing node 1 may also issue an alarm when detecting a failure in the second system disk to remind the user of the hardware failure so that the user can repair the hardware of the peer system disk in time, thereby improving the user experience.

[0082] Similarly, before computing node 1 synchronizes the second configuration file of the second operating system to the first system disk, the computing node may also detect the file change status of the second configuration file, and then determine, based on the detection result, that the file change status of the second configuration file is a file size modification or a file content modification. In other words, when the second configuration file has undergone a file size modification or a file content modification, the second configuration file may be synchronized from the second system disk to the first system disk.

[0083] Through the above embodiments, the business operation environment can be self-recovered when a failure occurs, without the need for manual intervention for repair, and the business can be directly run after automatic repair without the need to reconfigure the system and software environment.

[0084] Based on the above embodiments, the present application further provides a fault handling device, which may be a computing node in the above embodiments, such as computing node 1. Figure 7 As shown, the device 700 may include: a receiving module 701 and a processing module 702 .

[0085] Among them, the receiving module 701 is used to receive a first startup instruction; the processing module 702 is used to determine that the preset startup identification information is set on the first system disk corresponding to the first operating system among the multiple operating systems, and then start the first operating system; delete the startup identification information set on the first system disk, and set the startup identification information on the second system disk, the second system disk is a system disk corresponding to any second operating system among the multiple operating systems except the first operating system; when it is detected that the currently running first operating system has a fault, when it is determined that the startup identification information is set on the second system disk, the second operating system is started to take over the work of the first operating system.

[0086] In a possible implementation, the processing module 702 is further configured to: synchronize a first configuration file of the first operating system to the second system disk before detecting that a failure occurs in the currently running first operating system.

[0087] In a possible implementation, the processing module 702 is also used to: after starting the second operating system to take over the first operating system, after the failure of the first operating system is eliminated, delete the startup identification information set on the second system disk, and set the startup identification information on the first system disk.

[0088] In a possible implementation, the processing module 702 is further used to: after setting the startup identification information on the first system disk, determine that the second system disk fails, and when it is determined that the startup identification information is set on the first system disk, start the first operating system to take over the second operating system.

[0089] In a possible implementation, the processing module 702 is further configured to: after setting the startup identification information on the first system disk, synchronize the second configuration file of the second operating system to the first system disk.

[0090] In a possible implementation, the processing module 702 is further used to: before synchronizing the first configuration file of the first operating system to the second system disk, detect the file change status of the first configuration file, and determine whether the file change status of the first configuration file is a file size modification or a file content modification according to the detection result.

[0091] In a possible implementation, the processing module 702 is further used to: before synchronizing the second configuration file of the second operating system to the first system disk, detect the file change status of the second configuration file, and determine whether the file change status of the second configuration file is a file size modification or a file content modification according to the detection result.

[0092] The division of modules in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional module in each embodiment of the present application may be integrated into a processor, or may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of software functional modules.

[0093] The present application also provides a computing device 800. Figure 8As shown, the computing device 800 includes: a processor 801, a memory 802, a communication interface 803 and a bus 804. The processor 801, the memory 802 and the communication interface 803 communicate through the bus 804. The computing device 800 can be a server or a terminal device. It should be understood that the present application does not limit the number of processors and memories in the computing device 800.

[0094] The bus 804 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 The bus 804 is represented by only one line, but does not mean that there is only one bus or one type of bus. The bus 804 may include a path for transmitting information between various components of the computing device 800 (eg, the processor 801, the memory 802, and the communication interface 803).

[0095] The processor 801 may include any one or more processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP) or a digital signal processor (DSP).

[0096] The memory 802 may include a volatile memory, such as a random access memory (RAM). The processor 801 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).

[0097] The memory 802 stores executable program codes, and the processor 801 executes the executable program codes to respectively implement the functions of the aforementioned receiving module 701 and processing module 702, thereby implementing the fault handling method. That is, the memory 802 stores instructions for executing the fault handling method.

[0098] Alternatively, the memory 802 stores executable codes, and the processor 801 executes the executable codes to respectively implement the functions of the aforementioned fault handling device 700, thereby implementing the fault handling method. That is, the memory 802 stores instructions for executing the fault handling method.

[0099] The communication interface 803 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 800 and other devices or a communication network.

[0100] The present application also provides a computing device cluster. The computing device cluster includes at least one computing device. The computing device may be a server, a virtual machine, a container, etc. Fig. 9 As shown, the computing device cluster includes at least one computing device 800. The memory 802 in one or more computing devices 800 in the computing device cluster may store the same instructions for executing the fault handling method.

[0101] In some possible implementations, the memory 802 of one or more computing devices 800 in the computing device cluster may also store partial instructions for executing the fault handling method. In other words, the combination of one or more computing devices 800 may jointly execute instructions for executing the fault handling method.

[0102] It should be noted that the memory 802 in different computing devices 800 in the computing device cluster can store different instructions, which are respectively used to execute part of the functions of the fault handling device. That is, the instructions stored in the memory 802 in different computing devices 800 can implement the functions of one or more modules in the receiving module 701 and the processing module 702.

[0103] In the embodiment of the present application, the processor 801 may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiment of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application may be directly executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0104] In the embodiment of the present application, the memory 802 may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., or a volatile memory (volatile memory), such as RAM. The memory is any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory in the embodiment of the present application may also be a circuit or any other device that can implement a storage function, for storing program instructions.

[0105] Optionally, the computer-executable instructions in the embodiments of the present application may also be referred to as application code, which is not specifically limited in the embodiments of the present application.

[0106] The embodiment of the present application also provides a computer program product including instructions. The computer program product may be software or a program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes the fault handling method of the above embodiment.

[0107] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by the computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute the fault handling method of the above embodiment.

[0108] A chip is also provided in an embodiment of the present application, and the logic in the chip is used to execute the method of the above embodiment.

[0109] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by instructions. These instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0110] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising 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.

[0111] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing 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.

[0112] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A fault handling method, characterized in that: The method is applied to a computing node including multiple operating systems, and the method comprises: After receiving the first startup instruction, the computing node determines that the preset startup identification information is set on a first system disk corresponding to a first operating system among the multiple operating systems, and then starts the first operating system; The computing node deletes the startup identification information set on the first system disk, and sets the startup identification information on a second system disk, where the second system disk is a system disk corresponding to any second operating system among the multiple operating systems except the first operating system; When the computing node detects that the currently running first operating system fails and determines that the startup identification information is set on the second system disk, the computing node starts the second operating system to take over the operation of the first operating system.

2. The method according to claim 1, characterized in that Before the computing node detects that the currently running first operating system fails, the method further includes: The computing node synchronizes the first configuration file of the first operating system to the second system disk.

3. The method according to claim 1, characterized in that After the computing node starts the second operating system to take over the operation of the first operating system, the method further includes: After the failure of the first operating system is eliminated, the startup identification information set on the second system disk is deleted, and the startup identification information is set on the first system disk.

4. The method according to claim 3, characterized in that After the startup identification information is set on the first system disk, the method further includes: The computing node determines that the second system disk fails, and when determining that the startup identification information is set on the first system disk, starts the first operating system to take over the second operating system.

5. The method according to claim 3 or 4, characterized in that After setting the startup identification information on the first system disk, the method further includes: The computing node synchronizes the second configuration file of the second operating system to the first system disk.

6. The method according to claim 2, characterized in that Before the computing node synchronizes the first configuration file of the first operating system to the second system disk, the method further includes: The computing node detects a file change status of the first configuration file, and determines, according to a detection result, that the file change status of the first configuration file is a file size modification or a file content modification.

7. The method according to claim 5, characterized in that Before the computing node synchronizes the second configuration file of the second operating system to the first system disk, the method further includes: The computing node detects a file change status of the second configuration file, and determines, according to a detection result, that the file change status of the second configuration file is a file size modification or a file content modification.

8. A computing device cluster, characterized in that: comprising at least one computing device, each computing device comprising a processor and a memory; The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method according to any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that: The method comprises computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster performs the method according to any one of claims 1 to 7.

10. A computer program product comprising instructions, characterized in that When the instructions are executed by a computing device cluster, the computing device cluster is caused to perform the method according to any one of claims 1 to 7.