Fault processing method and apparatus, and storage medium and electronic device

By identifying and isolating faulty graphics cards in cloud computing clusters, the problem of GPU server unavailability caused by single or partial graphics card failure is solved, ensuring the normal operation of other businesses and the utilization of available graphics cards.

WO2024222707A1PCT designated stage expired Publication Date: 2024-10-31BEIJING VOLCANO ENGINE TECH CO LTD

Patent Information

Application Number
PCT/CN2024/089434
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-26
Filing Date
2024-04-24
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

When a single or partial graphics card in a GPU server fails, the entire server becomes unavailable, affecting other services and leaving available graphics cards idle.

Method used

When a graphics card failure occurs in a cloud computing cluster, determine the faulty node and target graphics card, prohibit calling the node resources to create a virtual machine, write the fault identification information in the node configuration file, update the available graphics card information, and control the operation of the cloud computing cluster to isolate the faulty graphics card. .

Benefits of technology

Effectively disable the faulty graphics card, maximize the available resources of the GPU server, prevent other available graphics cards from being idle, and ensure the operation of other services on the node.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024089434_31102024_PF_FP_ABST
    Figure CN2024089434_31102024_PF_FP_ABST
Patent Text Reader

Abstract

The present disclosure relates to a fault processing method and apparatus, and a storage medium and an electronic device, which are used for performing fault isolation when a graphics card has a fault. The method comprises: when a graphics card fault occurs in a cloud computing cluster, determining a node where the graphics card fault occurs, and a target graphics card; prohibiting calling a resource of the node to create a virtual machine; writing, into a node configuration file of the cloud computing cluster, fault identification information corresponding to the target graphics card, and updating available graphics card information in the node configuration file, so as to obtain a target configuration file, wherein the available graphics card information in the target configuration file does not comprise information of the target graphics card; and controlling the operation of each node in the cloud computing cluster according to the target configuration file.
Need to check novelty before this filing date? Find Prior Art

Description

Fault handling method, device, storage medium and electronic equipment

[0001] This application claims priority to Chinese Patent Application No. 202310465909.3 filed on April 26, 2023, and the contents of the above-mentioned Chinese patent application disclosure are hereby incorporated by reference in their entirety as a part of this application. Technical Field

[0002] The present disclosure relates to a fault handling method, device, storage medium and electronic equipment. Background Art

[0003] Cloud computing clusters include various types of servers. Graphics processing units (GPUs) are a crucial component of a cloud computing cluster, providing GPU computing power. They primarily perform data operations for image processing and are also called nodes. GPU servers free up CPUs (central processing units) from graphics processing tasks, freeing them to perform other tasks. Furthermore, GPU servers typically feature multiple GPUs. If a single GPU fails, the entire GPU server becomes unavailable.

[0004] Summary of the Invention

[0005] This summary is provided to briefly introduce concepts that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

[0006] In a first aspect, the present disclosure provides a fault handling method, the method comprising:

[0007] When a graphics card failure occurs in the cloud computing cluster, determining the node and target graphics card where the graphics card failure occurs;

[0008] Prohibit calling the resources of the node to create a virtual machine;

[0009] Writing fault identification information corresponding to the target graphics card into a node configuration file of the cloud computing cluster, and updating available graphics card information in the node configuration file to obtain a target configuration file, wherein the available graphics card information in the target configuration file does not include information about the target graphics card;

[0010] According to the target configuration file, the operation of each node in the cloud computing cluster is controlled.

[0011] In a second aspect, the present disclosure provides a fault handling device, the device comprising:

[0012] A determination module, configured to determine the node and target graphics card where the graphics card failure occurs when a graphics card failure occurs in the cloud computing cluster;

[0013] A prohibition module, used to prohibit calling the resources of the node to create a virtual machine;

[0014] an updating module, configured to write fault identification information corresponding to the target graphics card into a node configuration file of the cloud computing cluster, and update available graphics card information in the node configuration file to obtain a target configuration file, wherein the available graphics card information in the target configuration file does not include information about the target graphics card;

[0015] The control module is used to control the operation of each node in the cloud computing cluster according to the target configuration file.

[0016] In a third aspect, the present disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processing device, implements the steps of any one of the methods described in the first aspect.

[0017] In a fourth aspect, the present disclosure provides an electronic device, comprising:

[0018] a storage device having a computer program stored thereon;

[0019] A processing device is used to execute the computer program in the storage device to implement the steps of any one of the methods in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The above and other features, advantages and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale. In the drawings:

[0021] FIG1 is a schematic diagram showing a connection between a GPU graphics card and a CPU according to an exemplary embodiment of the present disclosure;

[0022] FIG2 is a schematic diagram showing a node running a virtual machine according to an exemplary embodiment of the present disclosure;

[0023] FIG3 is a flow chart showing a fault handling method according to an exemplary embodiment of the present disclosure;

[0024] FIG4 is a schematic diagram showing a process of detecting a graphics card failure according to an exemplary embodiment of the present disclosure;

[0025] FIG5 is a schematic diagram illustrating a fault handling process according to an exemplary embodiment of the present disclosure;

[0026] FIG6 is a schematic diagram showing a method of restarting a communication channel according to an exemplary embodiment of the present disclosure;

[0027] FIG7 is a schematic diagram showing another fault handling process according to an exemplary embodiment of the present disclosure;

[0028] FIG8 is a block diagram of a fault handling device according to an exemplary embodiment of the present disclosure; and

[0029] FIG9 is a block diagram of an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0030] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.

[0031] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0032] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "based, at least in part, on." The term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one additional embodiment," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.

[0033] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0034] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".

[0035] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0036] At present, GPU servers are generally machines with multiple GPU graphics cards, such as a two-way server, which can support four GPU graphics cards through a direct connection of the CPU via PCIe (peripheral component interconnect express, a high-speed serial computer expansion bus standard) (as shown in Figure 1 without a PCIe Switch (switch chip)). Referring to Figure 1, the expansion of the PCIe Switch can support different numbers of GPU graphics cards, such as 8 and 16. Among them, CPU1 and CPU0 communicate through an inter socket link (across-slot connection), and X8 and X16 represent the number of data channels. In addition, referring to Figure 2, multiple virtual machines of multiple users can run on a single node, the virtual machines of the same user can run on different nodes, and virtual machines of different users can also run on the same node.

[0037] However, when a single or partial GPU graphics card in a GPU server fails, if the GPU server is in the startup process, the machine may not be able to start up. If the GPU server is in the running process, the virtual machine running by the user may be stuck or restarted. This will cause the entire GPU server to be unavailable. On the one hand, it will affect other businesses on the server. For example, other users of the same node cannot schedule the resources of the node. On the other hand, it will cause the available GPU graphics cards to be idle.

[0038] In view of this, the present disclosure provides a fault handling method, device, storage medium and electronic device to solve the above technical problems.

[0039] Through the technical solution disclosed herein, when a graphics card failure occurs in a cloud computing cluster, the node and target graphics card where the graphics card failure occurred are identified, and the use of resources from the node to create a virtual machine is prohibited. Fault identification information corresponding to the target graphics card is written into the node configuration file of the cloud computing cluster, and the available graphics card information in the node configuration file is updated to obtain the target configuration file. Finally, the operation of each node in the cloud computing cluster is controlled according to the target configuration file. Using this method, when a graphics card failure occurs in a cloud computing cluster, the use of resources from the node to create a virtual machine is prohibited to control the scope of the failure and further isolate the faulty graphics card. After updating the available graphics card information in the node configuration file, the node is brought back online, allowing users to continue using other available graphics cards in the node except for the faulty graphics card. This ensures the operation of other services on the node while preventing the idleness of other available graphics cards.

[0040] Other features and advantages of the present disclosure will be described in detail in the following detailed description.

[0041] The page rendering method is described below with reference to specific embodiments.

[0042] FIG3 is a flow chart of a fault handling method according to an exemplary embodiment of the present disclosure. Referring to FIG3 , the method includes:

[0043] Step 31: When a graphics card failure occurs in the cloud computing cluster, determine the node where the graphics card failure occurs and the target graphics card.

[0044] Among them, the graphics card includes a GPU graphics card.

[0045] Step 32: Forbid the resource of the calling node from creating a virtual machine.

[0046] It should be noted that prohibiting the use of resources from the node with a graphics card failure to create a virtual machine can allow users to call information from other nodes when creating a new virtual machine, avoiding the failure of users to call resources from the node with a graphics card failure to create a virtual machine, or the unavailability of the created virtual machine, thereby controlling the scope of the failure.

[0047] Step 33: Write the fault identification information corresponding to the target graphics card into the node configuration file of the cloud computing cluster, and update the available graphics card information in the node configuration file to obtain the target configuration file.

[0048] The available graphics card information in the target configuration file does not include the target graphics card information.

[0049] Step 34: Control the operation of each node in the cloud computing cluster according to the target configuration file.

[0050] For example, since the available graphics card information in the target configuration file does not include the information of the faulty target graphics card, the target graphics card will not be called when the operation of each node in the cloud computing cluster is controlled according to the target configuration file, that is, the faulty target graphics card is disabled, and other available graphics cards of the node where the target graphics card is located can be called normally, thereby achieving fault isolation of a single or part of the graphics cards and maximizing the available resources of the GPU server.

[0051] By adopting the above method, when a graphics card failure occurs in a cloud computing cluster, the resources of the calling node can be disabled from creating virtual machines to control the scope of the failure, thereby isolating the faulty graphics card, updating the available graphics card information in the node configuration file, and then bringing the node back online, so that users can continue to call other available graphics cards in the node except the faulty graphics card, which can not only ensure the operation of other businesses on the node, but also avoid the idleness of other available graphics cards.

[0052] First, it is necessary to determine whether a graphics card failure has occurred in the cloud computing cluster. Usually, failures are generally identified by the fault code of the driver, but in the virtualized environment of the cloud computing cluster, the GPU graphics card can directly communicate data with the virtual machine operating system, and the PCIe status of the GPU graphics card can be used to determine whether a graphics card failure has occurred in the cloud computing cluster. Referring to Figure 4, the roles that can obtain the PCIe status of the GPU graphics card include the physical machine operating system (OS), the virtual machine OS, and the physical machine BMC (Baseboard Management Controller). However, to obtain the PCIe status of the GPU graphics card through the virtual machine OS, it is necessary to install an Agent (agent service) in the user's virtual machine operating system. Since the user's virtual machine environment usually does not support clusters using the public network, the physical machine operating system's Agent and the physical machine BMC's Agent can be used to obtain the PCIe status of the GPU graphics card, that is, a comprehensive method of obtaining the graphics card status by combining the PCIe register status in the physical machine band and the out-of-band BMC to determine the status of the GPU graphics card.

[0053] In a possible embodiment, the method further includes: detecting the current number of graphics cards in the cloud computing cluster and obtaining a preset number of graphics cards in the cloud computing cluster; and determining that a graphics card failure has occurred in the cloud computing cluster when the current number of graphics cards is less than the preset number of graphics cards. And / or, reading the value of the configuration space of each graphics card in the cloud computing cluster from a configuration register; and determining that a graphics card failure has occurred in the cloud computing cluster when the value of any configuration space is 0xFF, wherein the configuration register is used to store configuration information corresponding to the graphics card.

[0054] For example, graphics card failures are generally divided into card loss failures and bad card failures. A card loss failure means that the OS or BMC cannot detect the graphics card. This can be checked by detecting the current number of graphics cards in the cloud computing cluster and obtaining the preset number of graphics cards in the cloud computing cluster. The current number of graphics cards and the preset number of graphics cards are then compared. If the current number of graphics cards is less than the preset number of graphics cards, it is determined that a card loss failure has occurred in the cloud computing cluster. The preset number of graphics cards represents the number of graphics cards configured in the nodes recorded in the cloud computing cluster. For example, if a node is configured with 8 graphics cards and the current number of graphics cards is 7, it means that one graphics card cannot be detected, i.e., a card loss failure has occurred.

[0055] For example, a bad card failure means that although the OS or BMC can detect the graphics card, the value of the PCIe configuration space obtained is 0xFF (a preset value indicating a failure). The OS can directly read the value of each graphics card's configuration space stored in the preset storage path, and the BMC can use the I2C bus to read the value of each graphics card's configuration space stored in the register. Under normal circumstances, information such as the graphics card's Vendor ID (vendor number) or Device ID (model) can be obtained. If the values ​​of the configuration space obtained for a particular graphics card are all 0xFF, it means that the graphics card has failed, that is, a bad card failure has occurred.

[0056] In a possible embodiment, the method further includes: receiving manual confirmation information regarding a graphics card failure; when the manual confirmation information indicates that no graphics card failure has occurred, allowing the node's resources to be used to create a virtual machine, and deleting the failure identification information corresponding to the target graphics card in the node configuration file. Updating the available graphics card information in the node configuration file may include: updating the available graphics card information in the node configuration file when the manual confirmation information indicates that a graphics card failure has occurred.

[0057] For example, continuing to refer to Figure 4, if a graphics card failure is detected according to the OS or BMC, an alarm message can be sent to prompt the operation and maintenance personnel to handle it, and the fault identification information corresponding to the failed target graphics card can be written into the node configuration file of the cloud computing cluster through the node virtualization controller, that is, the suspected faulty card is marked, so as to facilitate the operation and maintenance personnel to locate the faulty graphics card during subsequent detection.

[0058] It should be noted that the faulty graphics card detected by the OS or BMC is marked as a suspected faulty card, and then manually confirmed by the operation and maintenance personnel. The operation and maintenance personnel can make a comprehensive judgment based on the status of the GPU graphics card, the user's virtual machine environment, whether the GPU server has restarted and data lost, etc. The judgment rules can be determined specifically according to needs, and this disclosure does not impose any restrictions on this. When the operation and maintenance personnel determines that no graphics card failure has occurred, the fault identification information corresponding to the target graphics card in the node configuration file can be deleted, and the node's resources can be called to create a virtual machine (online node). Through manual confirmation by the operation and maintenance personnel, false alarms that cause the graphics card to be unavailable or the entire machine to be overhauled can be reduced. When the operation and maintenance personnel determines that a graphics card failure has occurred, the available graphics card information in the node configuration file is updated and the node is online, that is, the target graphics card that has failed is disabled, and the fault is isolated for the faulty graphics card, maximizing the available resources of the GPU server.

[0059] In a possible manner, updating the available graphics card information in the node configuration file can be: generating disabling information corresponding to the target graphics card through the cluster scheduling resource of the cloud computing cluster, and writing the disabling information into the node configuration file, and updating the available graphics card information recorded in the node configuration file according to the disabling information in the node configuration file through the node virtualization controller of the cloud computing cluster.

[0060] For example, referring to Figure 5, when the operation and maintenance personnel determine that a graphics card failure has occurred, the cluster scheduling resource device of the cloud computing cluster generates disabling information for the target graphics card based on the manual confirmation information, and writes the disabling information into the node configuration file. The node virtualization controller updates the available graphics card information recorded in the node configuration file based on the disabling information in the node configuration file. When the operation and maintenance personnel determine that no graphics card failure has occurred, the cluster scheduling resource device of the cloud computing cluster can delete the fault identification information corresponding to the target graphics card in the node configuration file based on the manual confirmation information. The node virtualization controller can update the available resources based on the node configuration file from which the fault identification information has been deleted, cancel the node scheduling prohibition mark, or mark the node as "node schedulable", that is, put the node back online, and allow the node's resources to be called to create virtual machines.

[0061] In a possible manner, the node virtualization controller of the cloud computing cluster updates the available graphics card information recorded in the node configuration file according to the disabling information in the node configuration file. This can be: obtaining the disabling information from the node configuration file through the node virtualization controller, determining the current available graphics card information based on the disabling information, reporting the current available graphics card information to the node controller of the cloud computing cluster, and updating the available graphics card information recorded in the node configuration file according to the current available graphics card information through the node controller.

[0062] For example, referring to Figure 5, the node virtualization controller can obtain the disabled information from the node configuration file, determine the currently available graphics card information based on the disabled information, and report the currently available graphics card information to the node controller of the cloud computing cluster (reporting available resources). The node controller updates the available graphics card information recorded in the node configuration file based on the currently available graphics card information. In addition, if the operation and maintenance personnel determine that no graphics card failure has occurred, the node controller will cancel the node scheduling prohibition mark of the node in the node configuration file or mark the node as "node schedulable" based on the reported available resources, that is, re-online the node and allow the node's resources to be used to create virtual machines.

[0063] In a possible embodiment, the method further includes: determining a communication channel between the target graphics card and the cloud computing cluster and the central processing unit, and restarting the communication channel, determining a value of a configuration space of the target graphics card after restarting the communication channel, and when the value of the configuration space of the target graphics card is 0xFF after restarting the communication channel, controlling the node to shut down to repair the node.

[0064] For example, since CPU and graphics card failures may result in a first proportion of false alarms, in order to avoid the GPU server being taken offline for maintenance due to false alarms, causing the GPU server to be unavailable for a long time, the communication channel can be restarted after the node service is offline and before the shutdown maintenance is triggered. When the value of the configuration space of the target graphics card is not 0xFF after the communication channel is restarted, and the PCIe status is restored to normal, then after further testing of the test service, it can be determined that the node and graphics card are available and there is no need to shut down for maintenance. The test service to determine that the graphics card is normal can be set according to demand, and this disclosure does not impose any restrictions on this. When the value of the configuration space of the target graphics card is still 0xFF after restarting the communication channel, the control node is shut down to repair the node.

[0065] In a possible manner, restarting the communication channel can be: when the communication channel includes an uplink communication channel between the central processing unit and the switching chip and a downlink communication channel between the switching chip and the target graphics card, determining whether other graphics cards connected to the switching chip are in a business operation state; when other graphics cards are not in a business operation state, restarting the uplink communication channel and the downlink communication channel; when other graphics cards are in a business operation state, restarting the downlink communication channel.

[0066] For example, referring to Figure 6 , the communication channel between the central processing unit (CPU) and the switch chip (PCIe Switch) is the uplink communication channel, and the downlink communication channel is between the switch chip and the target graphics card. In Figure 6 , graphics card GPU0 is marked as faulty. If GPUs 1-3 connected to PCIe Switch 0 are not in a service-running state, the uplink communication channel between PCIe Switch 0 and CPU 0 and the downlink communication channel between PCIe Switch 0 and graphics card GPU 0 can be restarted. If GPUs 1-3 connected to PCIe Switch 0 are in a service-running state, the downlink communication channel between PCIe Switch 0 and graphics card GPU 0 can be restarted without affecting the services executed by graphics card GPUs 1-3.

[0067] FIG7 is a complete process of fault handling according to an exemplary embodiment of the present disclosure. Referring to FIG7 , after the GPU graphics card is detected as faulty by the OS or BMC, an alarm will be triggered to notify the operation and maintenance personnel. After receiving the alarm information, the operation and maintenance personnel will confirm the fault situation. In addition, the alarm will directly trigger the prohibition of node scheduling, because the failure of the GPU graphics card is basically a serious failure, which may cause downtime, freezing, and other situations that affect the operation of the virtual machine. Prohibiting node scheduling prevents users from using faulty graphics cards to create new virtual machines, thereby preventing the spread of the fault. The operation and maintenance personnel can confirm the status of the current graphics card based on the current status and the network, load, problem feedback, etc. of the user's virtual machine. If the operation and maintenance personnel confirm that the GPU graphics card is faulty, they need to mark the fault in the node configuration file through the cluster scheduler. The node virtualization controller will update the available resources according to the node configuration file and report it to the node controller. The node controller will further refresh the capacity field (number of available graphics cards) of the node in the node configuration file.

[0068] Furthermore, if the user can use the node with a fault, the current fault will be processed. After the capacity refresh is completed, you can choose to reopen the node scheduling (re-online the node). However, the faulty GPU graphics card has not been restored at this time, but the faulty GPU graphics card is prohibited from being called. You can wait for the customer to go offline or schedule the virtual machine (use other nodes, release the node with the faulty GPU graphics card), then you can free up the current graphics card. If the current node has no other business virtual machines, you can prohibit scheduling the entire node and start processing the graphics card failure. Or if the user cannot use the node with a fault, start processing the graphics card failure immediately. You can restart the communication channel before maintenance. If the graphics card returns to normal after restarting the communication channel, end the maintenance and put the node back online. If it cannot be restored, take the node offline, replace the GPU graphics card, and then put the node back online.

[0069] Based on the same inventive concept, an embodiment of the present disclosure provides a fault handling device. Referring to FIG. 8 , the device 800 includes:

[0070] The determination module 801 is configured to determine the node and target graphics card where the graphics card failure occurs when a graphics card failure occurs in the cloud computing cluster.

[0071] The prohibition module 802 is used to prohibit the resources of the calling node from creating a virtual machine.

[0072] An updating module 803 is configured to write fault identification information corresponding to a target graphics card into a node configuration file of the cloud computing cluster, and update the available graphics card information in the node configuration file to obtain a target configuration file, where the available graphics card information in the target configuration file does not include information about the target graphics card;

[0073] The control module 804 is used to control the operation of each node in the cloud computing cluster according to the target configuration file.

[0074] Optionally, the updating module 803 is configured to:

[0075] Generate disabling information corresponding to the target graphics card through a cluster scheduling resource of the cloud computing cluster, and write the disabling information into the node configuration file;

[0076] The node virtualization controller of the cloud computing cluster updates the available graphics card information recorded in the node configuration file according to the disabling information in the node configuration file.

[0077] Optionally, the updating module 803 is configured to:

[0078] Obtaining the disabling information from the node configuration file through the node virtualization controller, determining currently available graphics card information according to the disabling information, and reporting the currently available graphics card information to the node controller of the cloud computing cluster;

[0079] The node controller updates the available graphics card information recorded in the node configuration file according to the currently available graphics card information.

[0080] Optionally, the apparatus 800 further includes a confirmation module, configured to:

[0081] Receiving manual confirmation of the graphics card failure;

[0082] When the manual confirmation information indicates that no graphics card failure has occurred, allowing the resources of the node to be called to create a virtual machine, and deleting the failure identification information corresponding to the target graphics card in the node configuration file;

[0083] The updating module 803 is used to:

[0084] When the manual confirmation information indicates that a graphics card failure occurs, the available graphics card information in the node configuration file is updated.

[0085] Optionally, the apparatus 800 further includes a detection module, wherein the detection module is configured to:

[0086] detecting the current number of graphics cards in the cloud computing cluster and obtaining a preset number of graphics cards in the cloud computing cluster, and determining that a graphics card failure occurs in the cloud computing cluster when the current number of graphics cards is less than the preset number of graphics cards; and / or,

[0087] The value of the configuration space of each graphics card in the cloud computing cluster is read from the configuration register. When the value of the configuration space is 0xFF, it is determined that a graphics card failure occurs in the cloud computing cluster, wherein the configuration register is used to store configuration information corresponding to the graphics card.

[0088] Optionally, the apparatus 800 further includes a restart module, wherein the restart module is configured to:

[0089] Determine a communication channel between the target graphics card and the central processing unit, and restart the communication channel;

[0090] Determining a value of the configuration space of the target graphics card after restarting the communication channel;

[0091] When the value of the configuration space of the target graphics card is 0xFF after the communication channel is restarted, the node is controlled to be shut down to perform maintenance on the node.

[0092] Optionally, the restart module is used to:

[0093] When the communication channel includes an uplink communication channel between the central processing unit and the switching chip and a downlink communication channel between the switching chip and the target graphics card, determining whether other graphics cards connected to the switching chip are in a service running state;

[0094] When the other graphics card is not in the service running state, restarting the uplink communication channel and the downlink communication channel;

[0095] When the other graphics card is in the service running state, restart the downlink communication channel.

[0096] Based on the same concept, the present disclosure also provides a non-transitory computer-readable medium having a computer program stored thereon, which implements the steps of the above-mentioned fault handling method when executed by a processing device.

[0097] Based on the same concept, the present disclosure further provides an electronic device, including:

[0098] a storage device having a computer program stored thereon;

[0099] A processing device is used to execute the computer program in the storage device to implement the steps of the above-mentioned fault handling method.

[0100] Reference is now made to FIG9 , which illustrates a schematic diagram of the structure of an electronic device 900 suitable for implementing embodiments of the present disclosure. Terminal devices in embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device illustrated in FIG9 is merely an example and should not limit the functionality or scope of use of embodiments of the present disclosure.

[0101] As shown in Figure 9, the electronic device 900 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 into a random access memory (RAM) 903. Various programs and data required for the operation of the electronic device 900 are also stored in the RAM 903. The processing device 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0102] Typically, the following devices may be connected to the I / O interface 905: an input device 906 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 908 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 909. The communication device 909 may allow the electronic device 900 to communicate with other devices wirelessly or by wire to exchange data. Although FIG9 shows the electronic device 900 with various devices, it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.

[0103] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 909, or installed from the storage device 908, or installed from the ROM 902. When the computer program is executed by the processing device 901, the above-mentioned functions defined in the fault handling method of the embodiment of the present disclosure are performed.

[0104] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0105] In some embodiments, communication can be performed using any currently known or later developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or later developed network.

[0106] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0107] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: when a graphics card failure occurs in a cloud computing cluster, determines the node and target graphics card where the graphics card failure occurs; prohibits calling the resources of the node to create a virtual machine; writes fault identification information corresponding to the target graphics card into a node configuration file of the cloud computing cluster, and updates the available graphics card information in the node configuration file to obtain a target configuration file, wherein the available graphics card information in the target configuration file does not include information about the target graphics card; and controls the operation of each node in the cloud computing cluster according to the target configuration file.

[0108] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0109] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0110] The modules described in the embodiments of the present disclosure may be implemented in software or hardware. In some cases, the name of a module does not necessarily define the module itself. For example, the determination module may be described as "when a graphics card failure occurs in a cloud computing cluster, determining the node and target graphics card module where the graphics card failure occurred."

[0111] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0112] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0113] According to one or more embodiments of the present disclosure, Example 1 provides a fault handling method, which includes: when a graphics card failure occurs in a cloud computing cluster, determining the node and target graphics card where the graphics card failure occurs; prohibiting the call of resources of the node to create a virtual machine; writing fault identification information corresponding to the target graphics card in a node configuration file of the cloud computing cluster, and updating the available graphics card information in the node configuration file to obtain a target configuration file, the available graphics card information in the target configuration file does not include information of the target graphics card; and controlling the operation of each node in the cloud computing cluster according to the target configuration file.

[0114] According to one or more embodiments of the present disclosure, Example 2 provides the method described in Example 1, wherein updating the available graphics card information in the node configuration file includes: generating disabling information corresponding to the target graphics card through the cluster scheduling resource of the cloud computing cluster, and writing the disabling information into the node configuration file; and updating the available graphics card information recorded in the node configuration file according to the disabling information in the node configuration file through the node virtualization controller of the cloud computing cluster.

[0115] According to one or more embodiments of the present disclosure, Example 3 provides the method described in Example 2, wherein the node virtualization controller of the cloud computing cluster updates the available graphics card information recorded in the node configuration file according to the disabling information in the node configuration file, including: obtaining the disabling information from the node configuration file through the node virtualization controller, determining the current available graphics card information based on the disabling information, and reporting the current available graphics card information to the node controller of the cloud computing cluster; and updating the available graphics card information recorded in the node configuration file according to the current available graphics card information through the node controller.

[0116] According to one or more embodiments of the present disclosure, Example 4 provides the method described in any one of Examples 1-3, which further includes: receiving manual confirmation information of the graphics card failure; when the manual confirmation information indicates that no graphics card failure has occurred, allowing the resources of the node to be called to create a virtual machine, and deleting the fault identification information corresponding to the target graphics card in the node configuration file; updating the available graphics card information in the node configuration file includes: when the manual confirmation information indicates that a graphics card failure has occurred, updating the available graphics card information in the node configuration file.

[0117] According to one or more embodiments of the present disclosure, Example 5 provides the method described in any one of Examples 1-3, which further includes: detecting the current number of graphics cards in the cloud computing cluster and obtaining the preset number of graphics cards in the cloud computing cluster, and when the current number of graphics cards is less than the preset number of graphics cards, determining that a graphics card failure has occurred in the cloud computing cluster; and / or reading the value of the configuration space of each graphics card in the cloud computing cluster from a configuration register, and when the value of the configuration space is 0xFF, determining that a graphics card failure has occurred in the cloud computing cluster, wherein the configuration register is used to store configuration information corresponding to the graphics card.

[0118] According to one or more embodiments of the present disclosure, Example 6 provides the method described in any one of Examples 1-3, which further includes: determining the communication channel between the cloud computing cluster and the central processing unit of the target graphics card, and restarting the communication channel; determining the value of the configuration space of the target graphics card after restarting the communication channel; when the value of the configuration space of the target graphics card is 0xFF after restarting the communication channel, controlling the node to shut down to repair the node.

[0119] According to one or more embodiments of the present disclosure, Example 7 provides the method described in Example 6, wherein restarting the communication channel includes: when the communication channel includes an uplink communication channel between the central processing unit and the switching chip and a downlink communication channel between the switching chip and the target graphics card, determining whether other graphics cards connected to the switching chip are in a business operation state; when the other graphics cards are not in the business operation state, restarting the uplink communication channel and the downlink communication channel; when the other graphics cards are in the business operation state, restarting the downlink communication channel.

[0120] According to one or more embodiments of the present disclosure, Example 8 provides a fault handling device, which includes: a determination module, which is used to determine the node and target graphics card where the graphics card failure occurs when the graphics card failure occurs in the cloud computing cluster; a prohibition module, which is used to prohibit calling the resources of the node to create a virtual machine; an update module, which is used to write the fault identification information corresponding to the target graphics card in the node configuration file of the cloud computing cluster, and update the available graphics card information in the node configuration file to obtain the target configuration file, the available graphics card information in the target configuration file does not include the information of the target graphics card; and a control module, which is used to control the operation of each node in the cloud computing cluster according to the target configuration file.

[0121] According to one or more embodiments of the present disclosure, Example 9 provides a computer-readable medium having a computer program stored thereon, which implements the steps of the method described in any one of Examples 1-7 when executed by a processing device.

[0122] According to one or more embodiments of the present disclosure, Example 10 provides an electronic device, comprising: a storage device on which a computer program is stored; and a processing device for executing the computer program in the storage device to implement the steps of any one of the methods described in Examples 1-7.

[0123] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.

[0124] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0125] Although the subject matter has been described using language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims. Regarding the apparatus in the above-described embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments related to the method and will not be elaborated upon here.

Claims

1. A fault handling method, comprising: When a graphics card failure occurs in the cloud computing cluster, determining the node and target graphics card where the graphics card failure occurs; It is prohibited to call the resources of the node to create a virtual machine; Writing fault identification information corresponding to the target graphics card into a node configuration file of the cloud computing cluster, and updating available graphics card information in the node configuration file to obtain a target configuration file, wherein the available graphics card information in the target configuration file does not include information of the target graphics card; as well as According to the target configuration file, the operation of each node in the cloud computing cluster is controlled.

2. The method according to claim 1, wherein: The updating of the available graphics card information in the node configuration file includes: Generate disabling information corresponding to the target graphics card through a cluster scheduling resource of the cloud computing cluster, and write the disabling information into the node configuration file; and The node virtualization controller of the cloud computing cluster updates the available graphics card information recorded in the node configuration file according to the disabling information in the node configuration file.

3. The method according to claim 2, wherein: The updating, by the node virtualization controller of the cloud computing cluster according to the disabling information in the node configuration file, of the available graphics card information recorded in the node configuration file comprises: Obtaining the disabling information from the node configuration file through the node virtualization controller, determining currently available graphics card information according to the disabling information, and reporting the currently available graphics card information to the node controller of the cloud computing cluster; and The node controller updates the available graphics card information recorded in the node configuration file according to the currently available graphics card information.

4. The method according to any one of claims 1 to 3, further comprising: Receiving manual confirmation information of the graphics card failure; When the manual confirmation information indicates that the graphics card failure has not occurred, the node is allowed to be called The resource creates a virtual machine, and deletes the fault identification information corresponding to the target graphics card in the node configuration file; The updating of the available graphics card information in the node configuration file includes: When the manual confirmation information indicates that the graphics card failure occurs, the available graphics card information in the node configuration file is updated.

5. The method according to any one of claims 1 to 3, further comprising: Detecting the current number of graphics cards in the cloud computing cluster, and obtaining the preset number of graphics cards in the cloud computing cluster, and determining that the graphics card failure occurs in the cloud computing cluster when the current number of graphics cards is less than the preset number of graphics cards; and / or, The value of the configuration space of each graphics card in the cloud computing cluster is read from the configuration register, and when the value of the configuration space is 0xFF, it is determined that the graphics card failure occurs in the cloud computing cluster, wherein the configuration register is used to store configuration information corresponding to the graphics card.

6. The method according to any one of claims 1 to 3, further comprising: Determine a communication channel between the target graphics card and the central processing unit, and restart the communication channel; Determine the value of the configuration space of the target graphics card after restarting the communication channel; as well as When the value of the configuration space of the target graphics card is 0xFF after the communication channel is restarted, the node is controlled to shut down to repair the node.

7. The method according to claim 6, wherein: The restarting the communication channel comprises: When the communication channel includes an uplink communication channel between the central processing unit and the switching chip and a downlink communication channel between the switching chip and the target graphics card, determining whether other graphics cards connected to the switching chip are in a service running state; When the other graphics card is not in the service running state, restarting the uplink communication channel and the downlink communication channel; and When the other graphics cards are in the service running state, restarting the downlink communication channel.

8. A fault handling device, wherein: The device comprises: A determination module, configured to determine the node and target graphics card where the graphics card failure occurs when a graphics card failure occurs in the cloud computing cluster; A prohibition module configured to prohibit calling resources of the node to create a virtual machine; an updating module, configured to write the fault identification information corresponding to the target graphics card into the node configuration file of the cloud computing cluster, and update the available graphics card information in the node configuration file to obtain the target configuration file, wherein the available graphics card information in the target configuration file does not include the information of the target graphics card; and The control module is configured to control the operation of each node in the cloud computing cluster according to the target configuration file.

9. A computer readable medium having a computer program stored thereon, wherein: When the computer program is executed by a processing device, the steps of the method according to any one of claims 1 to 7 are implemented.

10. An electronic device, wherein: include: a storage device having a computer program stored thereon; A processing device configured to execute the computer program in the storage device to implement the steps of the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method and device for quickly shielding fault graphics card in cluster and electronic equipment

    CN112540880A

  • Method and device for processing display video card fault in virtual cloud environment

    CN113157476A

  • Node virtual machine migration method based on OpenStack and device thereof

    CN114064217A

  • Fault processing method and device, storage medium and electronic equipment

    CN116501529A

Cited By

  • Fault processing method, system, device, equipment, medium and program of cluster system

    CN119668916A

  • Method for not blocking sql during fault of computing cluster node of GCDW cloud database

    CN121357184A