Cluster reliability determination method and device, equipment, medium and program product

The Monte Carlo algorithm dynamically simulates the reliability of GPU cluster nodes, solving the problems of low accuracy and low efficiency in large-scale clusters by manual computing, and achieving efficient and accurate evaluation of cluster reliability.

CN118897715APending Publication Date: 2024-11-05CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411081389.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2024-11-05

Smart Images

  • Figure CN118897715A_ABST
    Figure CN118897715A_ABST
Patent Text Reader

Abstract

The invention provides a cluster reliability determination method and device, equipment, a medium and a program product, and the method comprises the steps: obtaining the reliability information of a plurality of nodes in a cluster, carrying out the dynamic simulation of the reliability states of the plurality of nodes according to a Monte Carlo algorithm and the reliability information of the plurality of nodes, and obtaining the reliability of the plurality of nodes; generating the reliability state of each node in the simulation time period, counting PPCs in the cluster, determining the reliability state of each PPC in the simulation time period according to the reliability state of each node in the simulation time period, and determining the reliability of the cluster according to the reliability state of each PPC. The Monte Carlo algorithm is used for simulating the task processing process of a cluster, the whole task processing process is used as a statistical reference, the analysis on the reliability of the PPC is not influenced by unfixed nodes and node resource allocation changes in the PPC, the reliability is determined according to whether the task can be processed or not, manual calculation is not needed, and the reliability of the PPC is ensured. The accuracy and reliability determination efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] With the rise of high-performance computing applications such as large model training, multi-node cluster mode has been widely used in high-performance computing. Measuring the reliability of the cluster is an essential step before it is applied in the production environment.

[0003] In the related art, when determining the reliability of a cluster, such as a GPU cluster, the reliability of the pipeline parallel chain (PPC) corresponding to the processing tasks carried by the cluster is manually calculated based on the reliability values ​​of each GPU node and the static connection relationship between the GPU nodes, and the reliability of the cluster is derived.

[0004] However, the above method has the following problems: 1. Manual calculation is not applicable to clusters of large-scale nodes, such as tens of thousands of nodes. The manual calculation results are inaccurate and inefficient. 2. When processing tasks, the resource allocation of each node is dynamic, and the nodes included in each PPC are not fixed and will change with the allocation of resources. Reliability determination based only on static connection relationships cannot accurately determine the reliability of the cluster.

[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0006] The present disclosure provides a cluster reliability determination method, apparatus, device, medium and program product, which at least to some extent overcome the problems in the related art such as inaccurate manual calculation results, low efficiency, non-fixed nodes included in PPC, and inability to accurately evaluate cluster reliability due to dynamic resource allocation process.

[0007] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.

[0008] In a first aspect, an embodiment of the present disclosure provides a method for determining reliability of a cluster, the method comprising:

[0009] Get the reliability information of multiple nodes in the cluster;

[0010] Based on the Monte Carlo algorithm and the reliability information of multiple nodes, the reliability status of multiple nodes is dynamically simulated to generate the reliability status of each node in the cluster during the simulation period; the reliability status is used to indicate whether the task can be processed normally;

[0011] Statistical simulation time period, pipeline parallel node chain in the cluster;

[0012] According to the reliability state of the nodes of the pipeline parallel node chain at each moment in the simulation time period, determine the reliability state frequency of each pipeline parallel node chain in the simulation time period;

[0013] The reliability of the cluster is determined according to the frequency of the reliable state of each pipeline parallel node chain during the simulation time period.

[0014] In a possible embodiment, obtaining reliability information of multiple nodes in a cluster includes:

[0015] Obtain reliability information of multiple nodes in the cluster based on the hardware characteristics of the nodes;

[0016] Alternatively, software and hardware tests are performed on each node to determine the available time period of each node when processing tasks; and reliability information of multiple nodes in the cluster is obtained based on the available time period of each node when processing tasks.

[0017] In a possible embodiment, the reliability state includes a reliable state and an unreliable state;

[0018] According to the reliability status of the nodes of the pipeline parallel node chain at each moment in the simulation time period, the reliability status frequency of each pipeline parallel node chain in the simulation time period is determined, including:

[0019] For any pipeline parallel node chain, determine the nodes in any pipeline parallel node chain at each moment in the simulation time period;

[0020] Count the reliable state and / or unreliable state of the nodes in any pipeline parallel node chain at each moment in the simulation time period;

[0021] Determine the reliable state and / or unreliable state of any pipeline parallel node chain at each moment according to the reliable state and / or unreliable state of the node at each moment in the simulation time period;

[0022] The reliable state frequency of each pipeline parallel node chain in the simulation time period is determined according to the simulation time period and the ratio of the reliable state and / or the unreliable state of any pipeline parallel node chain.

[0023] In a possible embodiment, the method further includes:

[0024] During the simulation time period, for any pipeline parallel node chain, monitoring whether any node in any pipeline parallel node chain is in an unreliable state;

[0025] If it exists, then the unreliable node in the unreliable state is determined;

[0026] Replace the unreliable nodes in any pipeline parallel node chain with other reliable nodes that have the same functions as the unreliable nodes and are in a reliable state, and continue monitoring until the end of the simulation time period.

[0027] In a possible embodiment, the reliability of the cluster is determined according to the frequency of the reliable state of each pipeline parallel node chain in the simulation time period, including:

[0028] According to the preset weight value of each pipeline parallel node chain, the reliability state frequency of each pipeline parallel node chain is weighted averaged to obtain the reliability of the cluster.

[0029] In a possible embodiment, the reliability of the cluster is determined according to the frequency of the reliable state of each pipeline parallel node chain in the simulation time period, including:

[0030] According to the contribution of each pipeline parallel node chain in the cluster processing any task during the simulation process, a corresponding weight value is assigned to each pipeline parallel node chain;

[0031] According to the corresponding weight value assigned to each pipeline parallel node chain, the reliability state frequency of each pipeline parallel node chain is weighted averaged to obtain the reliability of the cluster.

[0032] In a possible embodiment, the reliability status of the multiple nodes is dynamically simulated according to the Monte Carlo algorithm and the reliability information of the multiple nodes to generate the reliability status of each node in the cluster within the simulation time period, including:

[0033] Based on the Monte Carlo algorithm and the reliability information of multiple nodes, the reliability status of multiple nodes is dynamically simulated, and the reliability status of each node at each moment is generated using uniform distribution;

[0034] According to the reliability status of each node at each moment, the reliability status of multiple nodes in the cluster at each moment in the simulation time period is obtained.

[0035] In a second aspect, an embodiment of the present disclosure provides a device for determining reliability of a cluster, including:

[0036] An acquisition unit, used for acquiring reliability information of multiple nodes in the cluster;

[0037] The simulation unit is used to dynamically simulate the reliability status of multiple nodes according to the Monte Carlo algorithm and the reliability information of multiple nodes, and generate the reliability status of each node in the cluster during the simulation time period; the reliability status is used to indicate whether the task can be processed normally;

[0038] The statistical unit is used to count the pipeline parallel node chains in the cluster during the simulation period;

[0039] A determination unit, used to determine the reliability state frequency of each pipeline parallel node chain within the simulation time period according to the reliability state of the node of the pipeline parallel node chain at each moment within the simulation time period;

[0040] The reliability determination unit is used to determine the reliability of the cluster according to the frequency of the reliable state of each pipeline parallel node chain within the simulation time period.

[0041] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the method in the first aspect above by executing the executable instructions.

[0042] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method in the first aspect described above is implemented.

[0043] In a fifth aspect, according to another aspect of the present disclosure, a computer program product or a computer program is also provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs any of the above methods.

[0044] The embodiment of the present disclosure provides a method, device, equipment, medium and program product for determining the reliability of a cluster. The method includes: obtaining the reliability information of multiple nodes in the cluster, dynamically simulating the reliability status of the multiple nodes according to the Monte Carlo algorithm and the reliability information of the multiple nodes, and generating the reliability status of each node in the simulation time period; the simulation time period is the time period when the cluster processes any task during simulation, and the reliability status is used to indicate whether any task can be processed, counting the pipeline parallel node chains in the cluster in the simulation time period, determining the reliability status of each pipeline parallel node chain in the simulation time period according to the reliability status of each node in the simulation time period, and determining the reliability of the cluster according to the reliability status of each pipeline parallel node chain in the simulation time period. The Monte Carlo algorithm is used to simulate the whole process of cluster processing tasks in a simulation manner, and the whole simulation process, that is, the whole process of processing tasks, is used as a statistical benchmark, and the reliability of the cluster is determined by counting the reliability status of the nodes appearing in each PPC, taking the dynamic process of processing tasks into consideration, the nodes in the PPC are not fixed, and changes occur, and the resource allocation of each node changes, which will not affect the analysis of the reliability of the PPC. Furthermore, by determining reliability based on whether a task can be processed, there is no need for manual calculation, which can improve the accuracy and efficiency of reliability determination.

[0045] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0047] Figure 1 A schematic diagram showing the reliability of a manual calculation cluster in an embodiment of the present disclosure;

[0048] Figure 2 A schematic diagram showing the structure of a cluster reliability determination system according to an embodiment of the present disclosure is shown;

[0049] Figure 3 A schematic diagram showing a flow chart of a method for determining reliability of a cluster in an embodiment of the present disclosure;

[0050] Figure 4 A schematic diagram of a process for determining a reliable state frequency in an embodiment of the present disclosure is shown;

[0051] Figure 5 A schematic diagram showing a process of calculating the reliability of a cluster in an embodiment of the present disclosure;

[0052] Figure 6 A schematic diagram showing a process flow of a parallel node chain of a processing pipeline in an embodiment of the present disclosure is shown;

[0053] Figure 7 A schematic diagram showing a flow chart of another method for determining the reliability of a cluster in an embodiment of the present disclosure;

[0054] Figure 8 A schematic diagram showing an application scenario of a method for determining reliability of a cluster in an embodiment of the present disclosure;

[0055] Fig. 9 A schematic diagram showing the reliability status of a node in a cluster according to an embodiment of the present disclosure;

[0056] Fig.10 A schematic diagram showing the structure of a device for determining the reliability of a cluster in an embodiment of the present disclosure is shown;

[0057] Fig.11 A schematic structural diagram of an electronic device in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0058] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0059] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0060] In related technologies, when determining the reliability of a cluster, such as a GPU cluster, the reliability of the PPC corresponding to the processing tasks carried by the cluster is manually calculated based on the reliability values ​​of each GPU node and the static connection relationship between the GPU nodes, and the reliability of the cluster is derived.

[0061] Figure 1 A schematic diagram showing a manual calculation of cluster reliability is shown, Figure 1 As shown, the nodes in the cluster are taken as graphics processing unit (GPU) servers, and the cluster is taken as a three-card GPU cluster. Determine the reliability information of the GPU and the corresponding PPC, and manually calculate the reliability of each PPC. For example, 1 PPC is composed of 2 GPUs, namely: X, Y, and Z; during training, data needs to be transmitted normally from X to Y and then to Z, that is, PPC: XYZ, and then according to the series or parallel relationship, the reliability of the PPC cluster can be manually obtained as X×Y×Z.

[0062] exist Figure 1 In the figure, PPC1, PPC2, ..., PPCn are given, where PPC1 is composed of GPU nodes with reliabilities A, B, C, and E. The GPU nodes are represented by the values ​​of reliability information. The specific composition of PPC1 is: ABC, AEC. B and E are in parallel, and the reliability of PPC1 is A×[(1-(1-B)×(1-E)]×C. This is just an example and will not be elaborated on.

[0063] The above calculation method has the following problems: 1. Manual calculation is not applicable to clusters of large-scale nodes, such as thousands of nodes and a large number of PPCs. Manual calculation not only considers the calculation results between nodes and PPCs, but also has secondary transmission. It is necessary to consider how the data in PPC is propagated. The calculation methods are not the same, and the reliability of the cluster is finally obtained, resulting in inaccurate calculation results and low efficiency. 2. When processing tasks in practice, the resource allocation of each node is dynamic, and the nodes included in each PPC are not fixed and will change with the allocation of resources. Reliability is determined only based on static connection relationships, and the reliability of the cluster cannot be accurately evaluated.

[0064] Based on this, the embodiment of the present disclosure provides a method, device, equipment, medium and program product for determining the reliability of a cluster. The method includes: obtaining the reliability information of multiple nodes in the cluster, dynamically simulating the reliability status of the multiple nodes according to the Monte Carlo algorithm and the reliability information of the multiple nodes, and generating the reliability status of each node in the simulation time period; the simulation time period is the time period when the cluster processes any task during simulation, and the reliability status is used to indicate whether any task can be processed, counting the pipeline parallel node chains in the cluster in the simulation time period, determining the reliability status of each pipeline parallel node chain in the simulation time period according to the reliability status of each node in the simulation time period, and determining the reliability of the cluster according to the reliability status of each pipeline parallel node chain in the simulation time period. The Monte Carlo algorithm is used to simulate the whole process of cluster processing tasks in a simulation manner, and the whole simulation process, that is, the whole process of processing tasks is used as a statistical benchmark, and the reliability of the cluster is determined by counting the reliability status of the nodes appearing in each PPC, taking the dynamic process of processing tasks into consideration, the nodes in the PPC are not fixed, and changes occur, and the resource allocation of each node changes, which will not affect the analysis of the reliability of the PPC. Furthermore, by determining reliability based on whether a task can be processed, there is no need for manual calculation, which can improve the accuracy and efficiency of reliability determination.

[0065] The cluster reliability determination method in the present disclosure can be applied to an electronic device, and can also be applied to a cluster reliability determination system.

[0066] Figure 2 A schematic diagram of a cluster reliability determination system that can be applied to an embodiment of the present disclosure is shown.

[0067] like Figure 2 As shown, the reliability determination system 200 may include a state machine 201 and a cluster 202 .

[0068] The state machine 201 may be used to generate the states of the nodes in the cluster.

[0069] The state machine 201 can be simulated using a Monte Carlo algorithm to generate node reliability information. The cluster 202 includes multiple nodes. The application scenario can be for network connection topology and large model reasoning / training business.

[0070] In a possible embodiment, the reliability determination system 200 can be used to obtain reliability information of multiple nodes in the cluster 202, dynamically simulate the reliability status of the multiple nodes based on the Monte Carlo algorithm and the reliability information of the multiple nodes, generate the reliability status of each node within the simulation time period, the reliability status is used to indicate whether any task can be processed, and count the pipeline parallel node chains in the cluster 202 within the simulation time period. According to the reliability status of the nodes of the pipeline parallel node chain at each moment within the simulation time period, the reliability status of each pipeline parallel node chain within the simulation time period is determined, and the reliability of the cluster 202 is determined according to the reliability status of each pipeline parallel node chain within the simulation time period.

[0071] PPC can be a pipeline-parallel business unit consisting of multiple nodes and the connections between them. The nodes in PPC collaborate to share reasoning and training tasks such as forward propagation and backpropagation, and are usually used in data parallel or model parallel tasks in high-performance computing.

[0072] The network is a medium used to provide communication links between nodes, which can be a wired network or a wireless network.

[0073] Optionally, the wireless network or wired network described above uses standard communication technology and / or protocol. The network is usually the Internet, but it can also be any network, including but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a dedicated network or any combination of a virtual private network). In some embodiments, technologies and / or formats including Hyper Text Mark-up Language (HTML), Extensible Markup Language (XML), etc. are used to represent data exchanged through the network. In addition, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec) can also be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies can also be used to replace or supplement the above data communication technologies.

[0074] The present exemplary implementation is described in detail below with reference to the accompanying drawings and embodiments.

[0075] Firstly, an embodiment of the present disclosure provides a method for determining the reliability of a cluster, which can be executed by any electronic device with computing and processing capabilities.

[0076] Figure 3 A flow chart of a cluster reliability determination method in an embodiment of the present disclosure is shown. Figure 3 As shown, the method provided in the embodiment of the present disclosure includes the following steps:

[0077] S302: Obtain reliability information of multiple nodes in the cluster.

[0078] In a possible embodiment, the nodes in the cluster may be GPU servers, and the cluster may be composed of multiple GPUs connected together through a network, working together to improve computing power and efficiency.

[0079] Reliability information may refer to the reliability of a node in processing tasks, and reliability is a key indicator for measuring its performance stability and lifespan.

[0080] For example, being able to process tasks without problems or failures during the execution of tasks can be used to indicate the reliability of a node. For example, the length of time for continuously processing tasks, or other information can be used to indicate reliability information.

[0081] In a possible embodiment, the reliability information of multiple nodes in the cluster can be obtained according to the hardware characteristics of the nodes. For example, if the node is a GPU, the reliability information can be directly queried according to the hardware characteristics of the GPU. The hardware characteristics can be queried according to the factory reliability test of the GPU.

[0082] In a possible embodiment, the node may be tested by itself to obtain reliability.

[0083] Specific methods may include: performing software and hardware tests on each node to determine the available time period of each node when processing tasks; and obtaining reliability information of multiple nodes in the cluster based on the available time period of each node when processing tasks.

[0084] S304: Dynamically simulate the reliability status of the multiple nodes according to the Monte Carlo algorithm and the reliability information of the multiple nodes, and generate the reliability status of each node in the cluster within the simulation time period. The reliability status is used to indicate whether the task can be processed normally in the simulation.

[0085] In a possible embodiment, the reliability status is used to indicate whether the task can be processed normally in the simulation, which can also be understood as whether it can work normally. The simulation time period is the time period for the cluster to process any task during the simulation. The simulation time period can be a preset time period, or the entire time period or a part of the time period for processing any task. The unit of the simulation time period can include minutes, seconds, and hours.

[0086] The reliability state may include a reliable state and an unreliable state. The reliable state is used to indicate that the task can be processed normally in the simulation, and the unreliable state is used to indicate that the task cannot be processed normally in the simulation. Among them, the total duration of the reliable state and the total duration of the unreliable state of node 1 in the simulation time period are determined according to the reliability information of node 1, and the sum of the total duration of the reliable state and the total duration of the unreliable state is equal to the simulation time period.

[0087] For example, if the reliability information of node A is A, simulation is performed according to the reliability information to generate reliability status information, and the simulation time period is K minutes, then the generated reliability status can be a reliable status of K-2 minutes and an unreliable status of 2 minutes. The unreliable status is random, and 2 minutes are arbitrarily selected as the unreliable status of node A in the simulation time period. The unreliable status can also be divided into 2 times, and 2 1-minute periods are selected as the unreliable status of node A.

[0088] Through simulation, the reliability status of the nodes in the cluster processing tasks can be obtained, thereby obtaining the reliability status of each node in the cluster during the entire simulation period, and obtaining the reliability status of the cluster. The reliability status of the cluster can be the reliability status of the nodes in the cluster.

[0089] To judge whether a cluster is reliable, we need to look at the state of the cluster when executing tasks. If it can handle a task completely without any problems, it can be understood that the cluster is reliable. The key is to judge whether the cluster can execute tasks normally.

[0090] In a possible embodiment, the reliability status of multiple nodes can be dynamically simulated based on the Monte Carlo algorithm and the reliability information of multiple nodes, and the reliability status of each node at each moment can be generated using uniform distribution. Based on the reliability status of each node at each moment, the reliability status of multiple nodes in the cluster at each moment in the simulation time period can be obtained.

[0091] S306: Count the pipeline parallel node chains in the cluster during the simulation time period.

[0092] S308: Determine the reliability state frequency of each pipeline parallel node chain within the simulation time period according to the reliability state of the nodes of the pipeline parallel node chain at each moment within the simulation time period.

[0093] In a possible embodiment, the frequency of the reliable state of each pipeline parallel node chain within the simulation time period is determined. During the simulation process, the reliability state of the node at each moment is counted; or the simulation time period is taken as a whole. At the end of the simulation time period, the working state of each PPC in the entire simulation time period is counted.

[0094] The reliability state frequency of each PPC in the simulation time period can be determined according to the reliability state of the nodes located in the PPC at each moment in the simulation time period. Taking the simulation time period as the time axis, the reliability state of the nodes included in each PPC at each moment in the entire simulation time period is generated. For a PPC1, if there is a node in an unreliable state, then PPC1 is in an unreliable state.

[0095] S310: Determine the reliability of the cluster according to the reliability status of each pipeline parallel node chain within the simulation time period.

[0096] In the present disclosure, the reliability of the PPC is not manually calculated through the reliability of the node. Instead, the reliability status of the node is simulated based on the reliability as a simulation parameter, and the fixed value is changed into the actual working status of the processing task, which more intuitively reflects whether the node is reliable. The working status of the PPC in the entire simulation time period is counted based on the working status, and the reliability status frequency of each PPC is obtained to determine the reliability of each PPC in executing the task.

[0097] Even if the nodes in the PPC change or are replaced during the simulation time period, it will not affect the statistics of the frequency of the reliable state of the PPC, because the present disclosure judges whether the PPC is reliable based on the working time period, rather than just judging based on the value of the reliability information. If the judgment is based on the value of the reliability information, the specific value of the calculated PPC reliability information will change if the nodes change, and there will be a situation where the calculation results do not correspond to the actual processing task situation.

[0098] The method of determining the frequency of the reliable state of the PPC in S308 may include the following processing methods:

[0099] Figure 4 A flow chart for determining the frequency of reliable states is shown in FIG. Figure 4 As shown, the following steps are included:

[0100] S402: for any pipeline parallel node chain, determine the nodes in any pipeline parallel node chain at each moment in the simulation time period.

[0101] S404: Count the reliable state and / or unreliable state of the nodes in any pipeline parallel node chain at each moment in the simulation time period.

[0102] S406: Determine the reliable state and / or unreliable state of any pipeline parallel node chain at each moment according to the reliable state and / or unreliable state of the node at each moment in the simulation time period.

[0103] In a possible embodiment, taking PPC1 as an example, the working status of the PPC1 processing task has been simulated during the entire time period of the simulation time period. It is only necessary to count the reliability status of the nodes included in PPC1 at each moment in the simulation time period to determine the reliability status frequency of PPC1 in the simulation time period.

[0104] For example, if there is a time a-time b in PPC1 when node 1 is in an unreliable state, then PPC1 is also in an unreliable state from time a to time b. After time b, node 1 recovers to a reliable state, and PPC1 is in a reliable state again. Based on this, the reliability state of PPC1 can be obtained by counting the time periods when PPC1 is in an unreliable state in the entire simulation time period.

[0105] For example, the time period during which PPC1 has been in a reliable state may be counted, and the reliability state of PPC1 may be obtained.

[0106] It should be noted that in the above embodiments, the example of when a node is in an unreliable state will cause the PPC in which it is located to be unable to process tasks normally in the simulation is used for explanation, and this is also used as an example in the following content. However, if there is a node 1 in an unreliable state, but node 1 does not cause the PPC in which node 1 is located to be in an unreliable state, then the PPC is still processed according to the reliable state, and the judgment process needs to be performed.

[0107] In a possible embodiment, the reliable state and / or unreliable state of any PPC in which the node is located at each moment is determined according to the reliable state and / or unreliable state of the node at each moment in the simulation time period.

[0108] S408: Determine the frequency of the reliable state of each pipeline parallel node chain within the simulation time period according to the simulation time period and the ratio of the reliable state and / or the unreliable state of any pipeline parallel node chain.

[0109] The reliable state frequency is used to indicate the time period during which the pipeline parallel node chain is in a reliable state.

[0110] In a possible embodiment, the reliable state frequency may be calculated by dividing the time period during which the PPC1 is in the reliable state by the simulation time period to obtain the reliable state frequency.

[0111] In a possible embodiment, the reliable state frequency may be calculated by dividing the time period during which PPC1 is in an unreliable state by the simulation time period to obtain the unreliable state frequency, and then performing conversion.

[0112] pass Figure 4 The reliable state frequency of each PPC can be obtained by the method in .

[0113] In a possible embodiment, the processing method in S310 may include the following two exemplary processing methods.

[0114] Example 1: According to the preset weight value of each pipeline parallel node chain, the reliability state frequency of each pipeline parallel node chain can be weighted averaged to obtain the reliability of the cluster.

[0115] Example 2:

[0116] Figure 5 A flow chart of calculating the reliability of a cluster is shown, Figure 5 As shown, the following steps are included:

[0117] S502: assigning a corresponding weight value to each pipeline parallel node chain according to the contribution of each pipeline parallel node chain in processing any task by the cluster during the simulation process.

[0118] S504: According to the corresponding weight value assigned to each pipeline parallel node chain, weighted average is performed on the reliable state frequency of each pipeline parallel node chain to obtain the reliability of the cluster.

[0119] Since the importance and contribution of the same PPC may be different when processing different tasks, the reliability of the cluster can be calculated dynamically. The reliability of the cluster calculated in the above way is more credible.

[0120] In a possible embodiment, during the simulation process, since the reliability status of each node is randomly generated according to the time, when node 1 is in an unreliable state, node 1 is considered to be an unreliable node. For PPC1 where node 1 is located, the following two methods can be adopted for processing.

[0121] Method 1: Wait for node 1 to recover.

[0122] Method 2: Replace Node 1 with Node 2 which has the same functions and is in a reliable state.

[0123] In order to be closer to the actual processing process, when the cluster is actually executing tasks, after the node is in an unreliable state, because it is impossible to know whether node 1 can be restored or when node 1 will be restored, it is generally not just waiting for node 1 to recover, but a fault-tolerant mechanism will be adopted, taking method 2.

[0124] Figure 6 A flowchart of a processing pipeline parallel node chain is shown, such as Figure 6 As shown, the following steps are included:

[0125] S602: During the simulation time period, for any pipeline parallel node chain, monitor whether any node in the pipeline parallel node chain is in an unreliable state.

[0126] S604: If so, determine the unreliable node in an unreliable state.

[0127] S606: Replace the unreliable node in any pipeline parallel node chain with other reliable nodes that have the same function as the unreliable node and are in a reliable state, and return to step S602.

[0128] S608: End the process until the simulation time period ends.

[0129] Using method 2, for a PPC, the nodes included in the PPC are not fixed and the nodes are changing, for example Figure 1 PPC1 includes GPUA, B, C, and E. However, during the simulation, after B is in an unreliable state, the nodes in PPC1 become A, K, C, and E. At this time, the resource allocation also changes, with GPUB having fewer resources and GPUK having more resources.

[0130] However, based on the method disclosed in the present invention, even if the nodes of a PPC are not fixed and there are changes, and the node resources are changing, the reliability status of the nodes included in PPC1 is fixed during the entire simulation time period. For example, GPUB is unreliable, which causes PPC1 to be unreliable. The replacement time is ba. After the replacement, the status of GPUK is reliable, and PPC1 also becomes reliable. The change of the node will not affect the statistics of the reliability status of PPC1. When statistics are taken, the replacement time will be included in the statistics as the time period when PPC1 is in an unreliable state.

[0131] In one possible embodiment, Figure 7 FIG. 4 shows a flow chart of another method for determining the reliability of a cluster, taking the simulation and determining the reliability state frequency of each PPC after the simulation as an example. Figure 7 As shown, the following steps are included:

[0132] S702: Obtain reliability information of multiple nodes in the cluster.

[0133] S704: Dynamically simulate the reliability status of the multiple nodes according to the Monte Carlo algorithm and the reliability information of the multiple nodes to generate the reliability status of each node in the cluster. The reliability status is used to indicate whether the task can be processed normally.

[0134] S706: Determine whether the simulation time period has been reached; if so, execute S708; if not, return to S704 to continue simulation.

[0135] S708: Merge the reliability status of each node to obtain the reliability status of the cluster at each moment in the simulation time period.

[0136] S710: Select any pipeline parallel node chain whose reliable state frequency is not determined.

[0137] S712: Determine the reliability state frequency of each pipeline parallel node chain within the simulation time period according to the reliability state of the nodes included in any pipeline parallel node chain at each moment within the simulation time period.

[0138] S714: Determine whether the number of determined pipeline parallel node chains is equal to the number of pipeline parallel node chains included in the cluster; if so, execute S716; if not, return to S710.

[0139] S716: Determine the reliability of the cluster according to the frequency of the reliable state of each pipeline parallel node chain within the simulation time period.

[0140] Through the above methods, it can be seen that the method in the present disclosure uses simulation to convert reliability information into a more intuitive node working status, which not only eliminates the need to manually calculate the reliability information of each PPC, but also can be more accurate and more in line with the actual task execution of the cluster. When the cluster processes tasks, node changes within the PPC and changes in node resource allocation are also taken into account, thereby improving the credibility of determining the reliability of the cluster, improving the accuracy of the reliability, and improving processing efficiency.

[0141] In a possible embodiment, a state machine and a GPU cluster, as well as each node in the GPU cluster, are combined, and a three-card cluster is taken as an example to illustrate a method for determining the reliability of the cluster.

[0142] like Figure 8 As shown, in Figure 8 In a, it can be seen that the state machine randomly generates the reliability state of the GPU node through Monte Carlo fast simulation, and randomly generates the reliability state of the GPU node at each time in a uniformly distributed manner. The time length of the time axis is the simulation time period. Taking a GPU node as an example, during the entire simulation time period, the reliability state of the GPU node is as follows: Figure 8 As shown in a, the time and duration of the unreliable state on which GPU is random. The total length of the unreliable state of each GPU node is determined based on the reliability information of each GPU node. The shaded part represents the unreliable state, and the blank part represents the reliable state.

[0143] like Figure 8 As shown in FIG. 2 , after the continuous simulation reaches the simulation time period, the simulation ends. According to the correlation between the nodes when the cluster processes the task, the reliability status of multiple nodes in the cluster is obtained according to the reliability status of each node at each moment.

[0144] like Figure 8As shown in FIG. 3 , the reliability status of each PPC in the simulation time period is counted, wherein the shaded part indicates that it is in an unreliable state at that moment, and the remaining blank part indicates that it is in a reliable state at that moment. PPCs exemplarily include PPC1, PPC2, ..., PPCn, and the like.

[0145] like Figure 8 As shown in Figure d, the reliable state frequency of each PPC is obtained and used to calculate the reliability of the GPU cluster.

[0146] Further, Fig. 9 A schematic diagram showing the reliability status of each node in a cluster is shown. Fig. 9 As shown, at different times 1, 2, and 3, different nodes exist in an unreliable state, resulting in different reliability states of the PPC and different states of the cluster.

[0147] Based on the same inventive concept, the present disclosure also provides a cluster reliability determination device, such as the following embodiment. Since the principle of solving the problem in the device embodiment is similar to that in the above method embodiment, the implementation of the device embodiment can refer to the implementation of the above method embodiment, and the repeated parts will not be repeated.

[0148] Fig.10 A schematic diagram showing the structure of a device for determining the reliability of a cluster in an embodiment of the present disclosure is shown. Fig.10 As shown, the device includes: an acquisition unit 1001, which is used to acquire reliability information of multiple nodes in a cluster; a simulation unit 1002, which is used to dynamically simulate the reliability status of multiple nodes according to the Monte Carlo algorithm and the reliability information of multiple nodes, and generate the reliability status of each node in the cluster within the simulation time period; the reliability status is used to indicate whether the task can be processed normally; a statistical unit 1003, which is used to count the pipeline parallel node chains in the cluster within the simulation time period; a determination unit 1004, which is used to determine the reliability status frequency of each pipeline parallel node chain within the simulation time period according to the reliability status of the nodes of the pipeline parallel node chain at each moment within the simulation time period; a reliability determination unit 1005, which is used to determine the reliability of the cluster according to the reliability status frequency of each pipeline parallel node chain within the simulation time period.

[0149] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".

[0150] Refer to the following Fig.111100 according to this embodiment of the present disclosure is described. Fig.11 The electronic device 1100 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0151] like Fig.11 As shown, the electronic device 1100 is in the form of a general computing device. The components of the electronic device 1100 may include but are not limited to: at least one processing unit 1110, at least one storage unit 1120, and a bus 1130 connecting different system components (including the storage unit 1120 and the processing unit 1110).

[0152] The storage unit stores a program code, which can be executed by the processing unit 1110, so that the processing unit 1110 performs the steps of various exemplary embodiments of the present disclosure described in the above “Exemplary Method” section of this specification. For example, the processing unit 1110 can perform any step in the above method embodiments.

[0153] The storage unit 1120 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 11201 and / or a cache storage unit 11202 , and may further include a read-only storage unit (ROM) 11203 .

[0154] The storage unit 1120 may also include a program / utility 11204 having a set (at least one) of program modules 11205, such program modules 11205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0155] Bus 1130 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0156] The electronic device 1100 may also communicate with one or more external devices 1140 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 1100, and / or communicate with any device that enables the electronic device 1100 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 1150. Furthermore, the electronic device 1100 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 1160. As shown, the network adapter 1160 communicates with other modules of the electronic device 1100 via a bus 1130. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 1100, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0157] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0158] 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 program product or a computer program, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method in the above embodiment.

[0159] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, which may be a readable signal medium or a readable storage medium. A program product capable of implementing the above method of the present disclosure is stored thereon. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary implementations of the present disclosure described in the above “Exemplary Method” section of this specification.

[0160] More specific examples of computer-readable storage media in the present disclosure may include, but are not limited to, an electrical connection having one or more conductors, 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), 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.

[0161] In the present disclosure, a computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, wherein a readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0162] Alternatively, the program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0163] In a specific implementation, the program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).

[0164] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0165] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0166] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0167] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.

Claims

1. A method for determining the reliability of a cluster, characterized in that: The method comprises: Get the reliability information of multiple nodes in the cluster; According to the Monte Carlo algorithm and the reliability information of the multiple nodes, the reliability status of the multiple nodes is dynamically simulated to generate the reliability status of each node in the cluster within the simulation time period; the reliability status is used to indicate whether the task can be processed normally; Counting the pipeline parallel node chains in the cluster within the simulation time period; Determine the reliability state frequency of each of the pipeline parallel node chains within the simulation time period according to the reliability state of the nodes of the pipeline parallel node chain at each moment within the simulation time period; The reliability of the cluster is determined according to the frequency of the reliable state of each of the pipeline parallel node chains within the simulation time period.

2. The method according to claim 1, characterized in that The obtaining of reliability information of multiple nodes in the cluster includes: Obtaining reliability information of multiple nodes in the cluster according to the hardware characteristics of the node; Alternatively, software and hardware tests are performed on each node to determine the available time period of each node when processing tasks; and reliability information of multiple nodes in the cluster is obtained based on the available time period of each node when processing tasks.

3. The method according to claim 1, characterized in that The reliability state includes a reliable state and an unreliable state; Determining the reliability state frequency of each of the pipeline parallel node chains within the simulation time period according to the reliability state of the nodes of the pipeline parallel node chain at each moment within the simulation time period includes: For any pipeline parallel node chain, determine the node in the any pipeline parallel node chain at each moment in the simulation time period; Counting the reliable state and / or unreliable state of the nodes in any one of the pipeline parallel node chains at each moment in the simulation time period; Determine the reliable state and / or unreliable state of any one of the pipeline parallel node chains at each moment according to the reliable state and / or unreliable state of the node at each moment within the simulation time period; The reliable state frequency of each of the pipeline parallel node chains within the simulation time period is determined according to the simulation time period and the ratio of the reliable state and / or the unreliable state of any one of the pipeline parallel node chains.

4. The method according to claim 1 or 3, characterized in that: The method further comprises: In the simulation time period, for any pipeline parallel node chain, monitoring whether any node in the pipeline parallel node chain is in an unreliable state; If it exists, then the unreliable node in the unreliable state is determined; The unreliable node in any one of the pipeline parallel node chains is replaced by other reliable nodes that have the same function as the unreliable node and are in a reliable state, and monitoring is continued until the simulation time period ends.

5. The method according to claim 1, characterized in that Determining the reliability of the cluster according to the frequency of the reliable state of each of the pipeline parallel node chains within the simulation time period includes: According to the preset weight value of each of the pipeline parallel node chains, the reliability state frequency of each of the pipeline parallel node chains is weighted averaged to obtain the reliability of the cluster.

6. The method according to claim 1, characterized in that Determining the reliability of the cluster according to the frequency of the reliable state of each of the pipeline parallel node chains within the simulation time period includes: According to the contribution of each of the pipeline parallel node chains in the processing of any one of the tasks by the cluster during the simulation process, a corresponding weight value is assigned to each of the pipeline parallel node chains; According to the corresponding weight value assigned to each of the pipeline parallel node chains, the reliability state frequency of each of the pipeline parallel node chains is weighted averaged to obtain the reliability of the cluster.

7. The method according to claim 1, characterized in that The dynamically simulating the reliability status of the multiple nodes according to the Monte Carlo algorithm and the reliability information of the multiple nodes to generate the reliability status of each node in the cluster within the simulation time period includes: According to the Monte Carlo algorithm and the reliability information of the multiple nodes, dynamically simulate the reliability status of the multiple nodes, and use uniform distribution to generate the reliability status of each node at each moment; According to the reliability status of each node at each moment, the reliability status of multiple nodes in the cluster at each moment in the simulation time period is obtained.

8. A device for determining the reliability of a cluster, characterized in that: include: An acquisition unit, used for acquiring reliability information of multiple nodes in the cluster; A simulation unit, configured to dynamically simulate the reliability status of the plurality of nodes according to the Monte Carlo algorithm and the reliability information of the plurality of nodes, and generate the reliability status of each node in the cluster within a simulation time period; The reliability status is used to indicate whether the task can be processed normally; A statistical unit, used for counting the pipeline parallel node chains in the cluster within the simulation time period; A determination unit, configured to determine the reliability state frequency of each of the pipeline parallel node chains within the simulation time period according to the reliability state of the nodes of the pipeline parallel node chain at each moment within the simulation time period; The reliability determination unit is used to determine the reliability of the cluster according to the reliability state frequency of each of the pipeline parallel node chains within a simulation time period.

9. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1 to 7 by executing the executable instructions.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

11. A computer program product comprising: A computer program or instruction, characterized in that when the computer program or instruction is executed by a processor, the method described in any one of claims 1 to 7 is implemented.