Cluster and communication methods
The cluster architecture with data processing unit pools and computing resource pools optimizes resource utilization and communication management, addressing inefficiencies in cloud service systems by enabling efficient allocation and reducing costs and performance limitations.
Patent Information
- Application Number
- JP2026517449
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-09-19
- Filing Date
- 2024-09-18
- Publication Date
- 2026-11-20
AI Technical Summary
Cloud service systems face inefficiencies due to uneven resource utilization across physical servers, leading to wasted resources and limited scalability, especially in AI scenarios where offload cards cannot be easily extended or updated, resulting in high costs and performance limitations.
A cluster architecture with data processing unit pools and computing resource pools connected via a high-speed interconnect bus, allowing centralized management and allocation of resources, including general-purpose and acceleration processing units, to optimize communication paths and resource utilization.
Improves resource utilization and scalability by enabling efficient allocation and communication management across various computing resources, reducing costs and enhancing performance in cloud service systems, particularly in AI scenarios.
Smart Images

Figure 2026539133000001_ABST
Abstract
Description
TECHNICAL FIELD
[0001] This application claims priority to Chinese Patent Application No. 202311211303.3, entitled "CLUSTER AND COMMUNICATION METHOD", filed with the China National Intellectual Property Administration on September 19, 2023, the entire content of which is incorporated herein by reference.
[0002] Embodiments of the present application relate to the field of cloud technology, and in particular, to a cluster and a communication method. BACKGROUND ART
[0003] In a cloud service system, a cloud vendor adds offload cards to the physical servers of the system, such that part of the tasks (functions) of the processors of the physical servers are offloaded to the cards for processing, which reduces the load on the processors of the physical servers and improves the overall performance of the cloud service system.
[0004] Currently, a cloud service system includes a plurality of physical servers. For any one of the plurality of physical servers, the physical server includes a set of necessary hardware resources such as a central processing unit, a memory, a network interface card, and a hard disk drive, and is additionally provided with an offload card. The offload card has a dedicated processor and storage. Therefore, the offload card can replace the central processing unit to complete a series of tasks such as resource scheduling, network transmission, and storage front-end acceleration. In this way, the central processing unit of the physical server can process more additional tasks.
[0005] Cloud service systems experience peaks in local tasks; in other words, some physical servers in the system need to handle a large volume of tasks, while others only need to handle a small volume. This results in high utilization of offload cards on some servers and low utilization on others, leading to wasted resources. [Overview of the Initiative]
[0006] Embodiments of this application provide a cluster and communication method for presenting various resources in a pooling manner and separating resource pools in order to improve resource utilization. [Means for solving the problem]
[0007] A first aspect of the embodiments of this application provides a cluster, which includes a data processing unit pool and a plurality of computing resource pools of different types. The data processing unit pool includes a plurality of data processing units, and any one of the plurality of computing resource pools includes a plurality of computing resources.
[0008] A data processing unit pool is connected to multiple computing resource pools via a high-speed interconnect bus. In other words, communication connections between any one computing resource pool and the outside of the cluster can be established through the high-speed interconnect bus and the data processing unit pool, communication connections between multiple computing resource pools can also be established through the high-speed interconnect bus and the data processing unit pool, and communication connections within any one of the computing resource pools can also be established through the high-speed interconnect bus and the data processing unit pool. It can be seen that the data processing unit pool can be used to manage communication between multiple computing resource pools and the outside of the cluster, communication between multiple computing resource pools, and communication within any one of the computing resource pools.
[0009] From the aforementioned cluster, it can be seen that various types of computing resources are deployed in a pooled manner within the cluster. Multiple computing resource pools are isolated and may be configured based on the type of cloud services that the cluster needs to provide in order to improve the cluster's performance and resource utilization. In the cluster, data processing units are also deployed in a pooled manner to form a data processing unit pool that functions as the cluster's communication scheduling center, and implements centralized allocation and utilization of the data processing units in the pool to improve the utilization rate of data processing units.
[0010] In one possible implementation, the data processing unit pool and multiple computing resource pools are configured in multiple racks, and the racks in which the data processing unit pool is configured are different from the racks in which one of the computing resource pools is configured. In the aforementioned implementation, the data processing unit pool and multiple computing resource pools are configured separately in multiple racks. The racks in which the data processing unit pool is configured and the racks in which one of the computing resource pools is configured are usually different racks. Similarly, the racks in which a computing resource pool is configured and the racks in which another computing resource pool is configured are usually different racks.
[0011] In one possible implementation, the multiple data processing units include a general-purpose processing unit and multiple acceleration processing units. The general-purpose processing unit is configured to allocate at least one of the multiple acceleration processing units to a computing resource having communication requirements within the multiple computing resource pools, and at least one acceleration processing unit allocated to the computing resource satisfies the communication requirements of the computing resource. In the above implementation, when any of the computing resources within the multiple computing resource pools has communication requirements, the general-purpose processing unit can allocate at least one of the multiple acceleration processing units to the computing resource, in other words, it can establish a connection between the computing resource and at least one acceleration processing unit allocated to the computing resource, and as a result, at least one acceleration processing unit allocated to the computing resource can satisfy the communication requirements of the computing resource. In one possible implementation, the multiple data processing units include a general-purpose processing unit and multiple acceleration processing units. The general-purpose processing unit is configured to establish a first communication path between the multiple computing resource pools and the outside of the cluster, a first communication path between the multiple computing resource pools, and a first communication path within any one of the computing resource pools. Multiple acceleration processing units are configured to establish second communication paths between multiple computing resource pools and the outside of the cluster, second communication paths between multiple computing resource pools, and second communication paths within any one of the computing resource pools. In the implementation described above, multiple data processing units include one or more general-purpose processing units and multiple acceleration processing units. One or more general-purpose processing units are configured to establish first communication paths between computing resources of any of the multiple computing resource pools and the outside of the cluster, first communication paths between computing resources of any two of the computing resource pools, and first communication paths between two computing resources of any one of the computing resource pools. Multiple acceleration processing units are configured to establish second communication paths between computing resources of any of the multiple computing resource pools and the outside of the cluster, second communication paths between computing resources of any two of the computing resource pools, and second communication paths between two computing resources of any one of the computing resource pools.
[0012] In one possible implementation, a general-purpose processing unit and multiple acceleration processing units are deployed within a data processing unit pool. In this implementation, each of the multiple data processing units in the data processing unit pool contains one general-purpose processing unit and one acceleration processing unit. In this case, the general-purpose processing unit and the acceleration processing unit are coupled to each other.
[0013] In one possible implementation, multiple acceleration units are deployed within a data processing unit pool, general-purpose processing units are deployed outside the data processing unit pool, and the area outside the data processing unit pool is inside at least one computing resource pool. In the aforementioned implementation, within the multiple data processing units included in the data processing unit pool, there is only one acceleration unit within each data processing unit. In addition, there is usually one general-purpose processing unit, which may be remotely located. In other words, the general-purpose processing unit is deployed in a computing resource pool or several computing resource pools, rather than in any of the data processing units in the data processing unit pool. In this case, the general-purpose processing unit and the acceleration units are separated.
[0014] In one possible implementation, a first communication path between multiple computing resource pools and the outside of the cluster passes through a general-purpose processing unit and at least one of the multiple acceleration processing units, using the computing resources of any one of the multiple computing resource pools and the outside of the cluster as endpoints. A first communication path between multiple computing resource pools passes through a general-purpose processing unit and at least one of the multiple acceleration processing units, using the computing resources contained in any two of the computing resource pools as endpoints. A first communication path inside any one of the computing resource pools passes through a general-purpose processing unit and at least one of the multiple acceleration processing units, using the computing resources within any one of the computing resource pools as endpoints. In the aforementioned implementation, due to the different starting and ending points, the first communication paths can specifically be classified into three types: a first communication path between multiple computing resource pools and the outside of the cluster, a first communication path between multiple computing resource pools, and a first communication path inside any one of the computing resource pools. However, all three types of first communication paths pass through a general-purpose processing unit and at least one acceleration processing unit.
[0015] In one possible implementation, a second communication path between multiple computing resource pools and the outside of the cluster passes through at least one of multiple acceleration units, using the computing resources of any one of the multiple computing resource pools and the outside of the cluster as endpoints. A second communication path between multiple computing resource pools passes through at least one of multiple acceleration units, using the computing resources contained in any two of the computing resource pools as endpoints. A second communication path inside any one of the computing resource pools passes through at least one of multiple acceleration units, using two computing resources of any one of the computing resource pools as endpoints. In the aforementioned implementation, due to the different starting and ending points, the second communication paths can specifically be classified into three types: a second communication path between multiple computing resource pools and the outside of the cluster, a second communication path between multiple computing resource pools, and a second communication path inside any one of the computing resource pools. However, all three types of second communication paths pass through at least one acceleration unit.
[0016] In one possible implementation, a general-purpose processing unit establishes connections between multiple acceleration processing units and computing resources in multiple computing resource pools by issuing tokens. For any one of the multiple acceleration processing units, the number of tokens that the acceleration processing unit can receive is equal to the number of computing resources that can be connected to the acceleration processing unit. In the aforementioned implementation, during a round of token issuance, the general-purpose processing unit sends a token issuance message to the first acceleration processing unit. The acceleration processing unit requests tokens based on the message and establishes a connection to the computing resources. The acceleration processing unit can then determine whether its token bucket is full. If the token bucket is full, it indicates that all tokens have been obtained, the general-purpose processing unit is notified, and as a result, the general-purpose processing unit removes the acceleration processing unit from the multiple acceleration processing units. The acceleration processing unit can then continue sending token issuance messages to the next acceleration processing unit until a token issuance message is returned to the general-purpose processing unit. In this way, this round of token issuance is completed, and the next round of token issuance may begin. In this case, after the general-purpose processing unit has finished issuing tokens to all the acceleration processing units, one of the multiple acceleration processing units connects to at least one computing resource. For one of the multiple acceleration processing units, it can be seen that the number of tokens that the acceleration processing unit can receive is equal to the number of computing resources that the acceleration processing unit can connect to.
[0017] In one possible implementation, when the high-speed interconnect bus supported by the acceleration unit and the high-speed interconnect bus supported by the computing resource are different, the computing resource and the acceleration unit are connected through the high-speed interconnect bus supported by the computing resource, an adapter device, and the high-speed interconnect bus supported by the acceleration unit. In the aforementioned implementation, when the high-speed interconnect bus supported by the acceleration unit and the high-speed interconnect bus supported by the computing resource are the same, the computing resource and the acceleration unit may be connected through the high-speed interconnect bus. When the high-speed interconnect bus supported by the acceleration unit and the high-speed interconnect bus supported by the computing resource are different, the computing resource and the acceleration unit are connected through the high-speed interconnect bus supported by the computing resource, an adapter device, and the high-speed interconnect bus supported by the acceleration unit. The adapter device is configured to perform conversions between the high-speed interconnect bus supported by the computing resource and the high-speed interconnect bus supported by the acceleration unit.
[0018] In one possible implementation, multiple computing resource pools include at least two of the following: a central processing unit (CPU) pool, a neural network processing unit (NPU) pool, a graphics processing unit (GPU) pool, a memory pool, and a solid state disk (SSD) pool. The CPU pool includes multiple CPUs, the NPU pool includes multiple NPUs, the GPU pool includes multiple GPUs, the memory pool includes multiple memory modules, and the SSD pool includes multiple SSDs.
[0019] In one possible implementation, one of the compute resource pools contains multiple compute resources for deploying a cloud instance that provides a cloud service, and the cloud instance contains one of the following: compute resources, virtual machines, containers, and microvirtual machines.
[0020] A second aspect of the embodiments of this application provides a communication method, which is implemented by using a cluster. The cluster includes a data processing unit pool and a plurality of computing resource pools of different types. The data processing unit pool includes a plurality of data processing units, any one of the plurality of computing resource pools includes a plurality of computing resources, and the data processing unit pool is connected to the plurality of computing resource pools through a high-speed interconnect bus. The method includes the data processing unit pool managing communication between the plurality of computing resource pools and outside the cluster, communication between the plurality of computing resource pools, and communication within any one of the computing resource pools.
[0021] From the methods described above, it can be seen that various types of computing resources are deployed in a pooled manner within the cluster. Multiple computing resource pools are isolated and may be configured based on the types of cloud services that the cluster needs to provide in order to improve the cluster's performance and resource utilization. Within the cluster, data processing units are also deployed in a pooled manner to form a data processing unit pool that functions as the cluster's communication scheduling center, and implements centralized allocation and utilization of the data processing units in the pool to improve the utilization rate of data processing units.
[0022] In one possible implementation, the data processing unit pool and multiple computing resource pools are configured in multiple racks, and the racks in which the data processing unit pool is configured are different from the racks in which one of the computing resource pools is configured.
[0023] In one possible implementation, the data processing units include a general-purpose processing unit and multiple acceleration processing units. The method further includes the general-purpose processing unit allocating at least one of the multiple acceleration processing units to a computing resource having communication requirements within a pool of computing resources, and requiring at least one acceleration processing unit allocated to the computing resource to satisfy the communication requirements of the computing resource.
[0024] In one possible implementation, the data processing units include a general-purpose processing unit and a plurality of acceleration processing units. The data processing unit pool managing communication between the plurality of computing resource pools and the outside of the cluster, communication between the plurality of computing resource pools, and communication within any one of the computing resource pools includes the general-purpose processing unit establishing a first communication path between the plurality of computing resource pools and the outside of the cluster, a first communication path between the plurality of computing resource pools, and a first communication path within any one of the computing resource pools. The plurality of acceleration processing units establish a second communication path between the plurality of computing resource pools and the outside of the cluster, a second communication path between the plurality of computing resource pools, and a second communication path within any one of the computing resource pools.
[0025] In one possible implementation, a general-purpose processing unit and multiple acceleration processing units are deployed within a data processing unit pool.
[0026] In one possible implementation, multiple acceleration units are deployed within a data processing unit pool, general-purpose processing units are deployed outside the data processing unit pool, and the area outside the data processing unit pool is inside at least one computing resource pool.
[0027] In a possible implementation, using the computing resource in any one of the plurality of computing resource pools and the outside of the cluster as endpoints, a first communication path between the plurality of computing resource pools and the outside of the cluster passes through at least one of a general-purpose processing unit and a plurality of acceleration processing units. The first communication path between the plurality of computing resource pools passes through at least one of the general-purpose processing unit and the plurality of acceleration processing units, using the computing resources included in any two of the computing resource pools as endpoints. Using two computing resources in any one of the computing resource pools as endpoints, the first communication path inside any one of the computing resource pools passes through at least one of the general-purpose processing unit and the plurality of acceleration processing units.
[0028] In a possible implementation, using the computing resource in any one of the plurality of computing resource pools and the outside of the cluster as endpoints, a second communication path between the plurality of computing resource pools and the outside of the cluster passes through at least one of the plurality of acceleration processing units. The second communication path between the plurality of computing resource pools passes through at least one of the plurality of acceleration processing units, using the computing resources included in any two of the computing resource pools as endpoints. The second communication path inside any one of the computing resource pools passes through at least one of the plurality of acceleration processing units, using two computing resources of any one of the computing resource pools as endpoints.
[0029] In a possible implementation, the method further comprises: the general-purpose processing unit establishing connections between the plurality of acceleration processing units and the computing resources of the plurality of computing resource pools by issuing tokens. For any one of the plurality of acceleration processing units, the number of tokens that can be received by the acceleration processing unit is equal to the number of computing resources that can be connected to the acceleration processing unit.
[0030] In one possible implementation, when the high-speed interconnect bus supported by the acceleration unit and the high-speed interconnect bus supported by the computing resources are different, the computing resources and the acceleration unit are connected through the high-speed interconnect bus supported by the computing resources, an adapter device, and the high-speed interconnect bus supported by the acceleration unit.
[0031] In one possible implementation, multiple computing resource pools include at least two of the following: a CPU pool, an NPU pool, a GPU pool, a memory pool, and an SSD pool. The CPU pool includes multiple CPUs, the NPU pool includes multiple NPUs, the GPU pool includes multiple GPUs, the memory pool includes multiple memory modules, and the SSD pool includes multiple SSDs.
[0032] In one possible implementation, one of the compute resource pools contains multiple compute resources for deploying a cloud instance that provides a cloud service, and the cloud instance contains one of the following: compute resources, virtual machines, containers, and microvirtual machines.
[0033] A third embodiment of the embodiments of this application provides a cloud service system, which includes a plurality of clusters according to either the first embodiment or a possible implementation of the first embodiment.
[0034] A fourth aspect of the embodiments of this application provides a computing device cluster, the computing device cluster comprising at least one computing device, each computing device comprising a processor and storage, the storage being configured to store instructions, the processor being configured to cause the computing device cluster to perform a method according to the second aspect or any possible implementation of the second aspect.
[0035] A fifth aspect of the embodiments of this application provides a computer storage medium. The computer storage medium stores one or more instructions. When an instruction is executed by one or more computers, one or more computers are configured to perform a method according to the second aspect or any possible implementation of the second aspect.
[0036] A sixth aspect of the embodiments of this application provides a computer program product. The computer program product stores instructions. When the instructions are executed by a computer, the computer is made to perform a method according to the second aspect or one of the possible implementations of the second aspect.
[0037] In the cluster provided in the embodiments of this application, various types of computing resources are deployed in a pooled manner. Multiple computing resource pools are isolated and may be configured based on the type of cloud services that the cluster needs to provide in order to improve the cluster's performance and resource utilization. In the cluster, data processing units are also deployed in a pooled manner to form a data processing unit pool that functions as the cluster's communication scheduling center and implements centralized allocation and utilization of the data processing units in the pool in order to improve the utilization rate of the data processing units. [Brief explanation of the drawing]
[0038] [Figure 1] This is a diagram showing the structure of a cloud service system according to one embodiment of this application. [Figure 2] This is a diagram showing the structure of a cluster according to one embodiment of the present application. [Figure 3] This is a diagram showing another cluster structure according to one embodiment of the present application. [Figure 4] This is a diagram showing another cluster structure according to one embodiment of the present application. [Figure 5] This is a diagram showing another cluster structure according to one embodiment of the present application. [Figure 6] This is a diagram showing the structure of token issuance according to one embodiment of this application. [Figure 7] This is a schematic flowchart of token issuance according to one embodiment of this application. [Figure 8] This is a diagram showing another cluster structure according to one embodiment of the present application. [Figure 9] This is a diagram of a communication method according to one embodiment of the present application. [Figure 10] This is a diagram showing the structure of a computing device according to one embodiment of this application. [Figure 11] This is a diagram showing the structure of a computing device cluster according to one embodiment of this application. [Figure 12] This is a diagram of a computer cluster in which computer devices are connected via a network, according to one embodiment of this application. [Modes for carrying out the invention]
[0039] Embodiments of this application provide a cluster and communication method for presenting various resources in a pooling manner and separating resource pools in order to improve resource utilization.
[0040] In the specification, claims, and accompanying drawings of this application, terms such as “first,” “second,” etc., are intended to distinguish similar items but do not necessarily indicate a specific order or series. It should be understood that such terms are interchangeable in appropriate contexts and are merely a means of identification used when describing subjects having the same attributes in the embodiments of this application. In addition, the terms “include,” “incorporate,” and any other variations thereof mean to cover non-exclusive inclusion; therefore, a process, method, system, product, or device including a set of units is not necessarily limited to those units and may include other units not explicitly enumerated, or other units specific to such process, method, system, product, or device.
[0041] In cloud service systems, cloud vendors add offload cards to the system's physical servers. As a result, some of the tasks (functions) of the physical server's processor are offloaded to the card for processing, reducing the load on the physical server's processor and improving the overall performance of the cloud service system.
[0042] Currently, cloud service systems include multiple physical servers. Each of these physical servers contains a set of necessary hardware resources, such as a central processing unit, memory, network interface cards, and hard disk drives, with additionally provided offload cards. Offload cards have dedicated processors and storage. Therefore, offload cards can replace the central processing unit to complete a set of tasks, such as resource scheduling, network transfers, and storage front-ends. In this way, the central processing unit of the physical server can handle many additional tasks.
[0043] Cloud service systems experience peaks in local tasks; in other words, some physical servers in the system need to handle a large volume of tasks, while others only need to handle a small volume. This results in high utilization of offload cards on some servers and low utilization on others, leading to wasted resources.
[0044] Furthermore, when an offload card needs to perform newly added tasks (functions), it is usually difficult to extend the offload card's capabilities due to its limited resources, resulting in a limited application of the entire cloud service system in various new scenarios.
[0045] Furthermore, if a physical server is configured to provide cloud services in an artificial intelligence (AI) scenario, the neural network model in the AI scenario typically has an independent data communication plane during training, and the offload card on the physical server cannot be used directly. As a result, an additional new offload card must be deployed for independent use during model training, leading to a significant increase in costs.
[0046] Furthermore, due to process limitations, the specifications of offload cards on physical servers cannot be updated in real time with industry standards. In other words, offload cards on physical servers cannot be replaced quickly. This impacts the performance of the entire cloud service system.
[0047] To solve the aforementioned problems, embodiments of this application provide a cloud service system. As shown in Figure 1 (Figure 1 is a diagram of the structure of a cloud service system according to one embodiment of this application), the cloud service system includes a plurality of clusters (pods), which may be connected through a network (for example, a data center network (DCN), which may be Ethernet or the like). In the plurality of clusters, one cluster may provide one or more types of cloud services externally. For example, a cluster may provide AI services externally on the cloud. In another example, a cluster may provide conventional cloud computing services externally. In yet another example, a cluster may provide conventional cloud storage services externally.
[0048] For any one of the multiple clusters, as shown in Figure 2 (Figure 2 is a diagram of the structure of a cluster according to one embodiment of this application), the cluster may also be called a hypernode. The cluster may include multiple rack-level hardware pools. The multiple hardware pools include data processing unit (DPU) pools and multiple computing resource pools of different types (may also be called computing power resource pools). Below, the data processing unit pools and computing resource pools will be described separately.
[0049] For any one of several computing resource pools of different types, the computing resource pool may contain multiple computing resources of the same type. For example, a computing resource pool may be a central processing unit (CPU) pool, and a CPU pool may contain multiple CPUs. In another example, a computing resource pool may be a neural network processing unit (NPU) pool, and an NPU pool may contain multiple NPUs. In yet another example, a computing resource pool may be a graphics processing unit (GPU), and a GPU pool may contain multiple GPUs. In yet another example, a computing resource pool may be a tensor processing unit (TPU), and a TPU pool may contain multiple TPUs. In yet another example, a computing resource pool may be a memory pool, and a memory pool may contain multiple memory modules. In yet another example, a computing resource pool may be a solid state disk (SSD) pool, and an SSD pool may contain multiple SSDs. It can be seen that the multiple computing resource pools included in a cluster may be any combination of any one of the above-mentioned types of computing resource pools. It should be noted that the primary types of compute resource pools included in a cluster are related to the type of cloud service that the cluster can provide. For example, if a cluster is configured to provide AI services, the multiple compute resource pools included in the cluster will primarily include CPU pools, NPU pools, and GPU pools. In another example, if a cluster is configured to provide cloud computing services for general loads, the multiple compute resource pools included in the cluster will primarily include CPU pools. In yet another example, if a cluster is configured to provide cloud storage services, the multiple compute resource pools included in the cluster will primarily include SSD pools.
[0050] A data processing unit pool may include multiple data processing units, which may be presented in various forms such as software-defined infrastructure (SDI) chips, application-specific integrated circuit (ASIC) chips, field-programmable gate array (FPGA) chips, or programmable logic device (PLD) chips. It should be noted that in a cluster, a data processing unit pool may be used as an offload card pool for multiple computing resource pools and may be configured to centrally manage communication between multiple computing resource pools and the outside of the cluster (e.g., another cluster, or a traditional data center, or an availability zone of a cloud service system), communication between any two computing resource pools, and internal communication within any one of the resource pools. Therefore, a data processing unit pool can be considered an exit from the cluster and configured to access the outside of the cluster. A data processing unit pool can also be considered a transfer interface between multiple computing resource pools and configured to connect multiple computing resource pools. In addition, a data processing unit pool can also be considered a transfer interface between multiple computing resources contained within one of the computing resource pools, and is configured to connect multiple computing resources contained within a computing resource pool.
[0051] It should be noted that a data processing unit pool may be connected to multiple computing resource pools via a high-speed interconnect bus (which may include high-speed interconnect switches, high-speed interconnect communication lines, etc.). In other words, communication connections between any one computing resource pool and the outside of the cluster may be established through the high-speed interconnect bus and the data processing unit pool, communication connections between multiple computing resource pools may also be established through the high-speed interconnect bus and the data processing unit pool, and communication connections within any one of the computing resource pools may also be established through the high-speed interconnect bus and the data processing unit pool. It can be seen that a data processing unit pool can centrally manage communication between multiple computing resource pools and the outside of the cluster, communication between any two of the computing resource pools, and communication within any one of the computing resource pools based on the high-speed interconnect bus. The high-speed interconnect bus may be any one of the following: the peripheral component interconnect express (PCIe) bus, the extended industry standard architecture (EISA) bus, the unified bus (Ubus or UB), the compute express link (CXL), or the cache coherent interconnect for accelerators (CCIX).
[0052] It should be further noted that any computing resource included in any one of the computing resource pools may be used to deploy one or more cloud instances that provide cloud services, and that a cloud instance may include any one of the following: namely, a computing resource (i.e., a bare metal server), a virtual machine (VM), a container (Docker), and a microvirtual machine (microVM). A cloud instance cluster may be located in any one of the computing resource pools, and it can be seen that a cloud instance cluster may be configured to provide a certain type of cloud service externally.
[0053] From a physical hardware perspective, it should be noted that data processing unit pools and multiple computing resource pools are each configured in multiple racks. Generally, the rack in which a data processing unit pool is configured (i.e., the rack in which the multiple data processing units included in the data processing unit pool are located) and the rack in which one of the computing resource pools is configured (i.e., the rack in which the multiple computing resources included in the computing resource pool are located) are usually different racks. Similarly, the rack in which a computing resource pool is configured (i.e., the rack in which the multiple computing resources included in the computing resource pool are located) and the rack in which another computing resource pool is configured (i.e., the rack in which the multiple computing resources included in another computing resource pool are located) are usually different racks. It can be seen that there is physical separation between the data processing unit pool and the multiple computing resource pools, and that this separation is at the rack level.
[0054] For example, suppose a cloud service system includes p clusters, i.e., cluster 1, cluster 2, cluster 3, ..., and cluster p, as shown in Figure 3 (Figure 3 is a diagram of another cluster structure according to one embodiment of the present application). Cluster 1 includes an SDI card pool 1, a CPU pool 1, and an NPU pool 1. SDI card pool 1 includes m SDI cards, CPU pool 1 includes k interconnected CPUs, and NPU pool 1 includes h interconnected NPUs, with the m SDI cards, k CPUs, and h NPUs each connected to a UB switch. In other words, SDI card pool 1 is connected to CPU pool 1 and NPU pool 1 through a UB switch, CPU pool 1 and NPU pool 1 are also connected through a UB switch, the CPUs of CPU pool 1 are also connected through a UB switch, and the CPUs of NPU pool 1 are also connected through a UB switch. p, m, k, and h are all greater than 1, and the sum of k and h is equal to n. It can be seen that the ratio of SDI cards to xPUs (i.e., CPU + NPU) is m:n. Of course, cluster 2 may also include two SDI card pools, two CPU pools, two NPU pools, two GPU pools, and so on. The same applies to clusters 3 through p. Further details are not provided in this specification.
[0055] From Figure 3, it can be seen that SDI card pool 1, SDI card pool 2, ..., SDI card pool p may be connected to DCN. Therefore, in cluster 1, the CPUs of CPU pool 1 and the NPUs of NPU pool 1 can communicate with clusters 2, cluster 3, ..., cluster p, and the system's virtual private cloud, i.e., outside of cluster 1, through the SDI cards of SDI card pool 1. Furthermore, in cluster 1, the CPUs of CPU pool 1 may communicate with the NPUs of NPU pool 1 through the SDI cards of SDI card pool 1. Furthermore, in cluster 1, the CPUs of CPU pool 1 may communicate with each other through the SDI cards of SDI card pool 1. Similarly, the NPUs of NPU pool 1 may also communicate with each other through the SDI cards of SDI card pool 1. Of course, the same applies to clusters 2 through p. Details are not described again in this specification.
[0056] Specifically, in a cluster, multiple data processing units included in a data processing unit pool may be presented in the following manner:
[0057] Multiple data processing units include one or more general-purpose processing units (service processors units, SPUs) and multiple acceleration processing units (network processor units, NPUs). Note that the number of data processing units is generally equal to the number of acceleration processing units, and the number of data processing units is generally greater than or equal to the number of general-purpose processing units. In other words, when there is one general-purpose processing unit, it is configured to centrally manage multiple acceleration processing units, and when there are multiple general-purpose processing units, one general-purpose processing unit is configured to manage one of the multiple acceleration processing units.
[0058] One or more general-purpose processing units are configured to establish a first communication path (also known as a slow communication path) between a computing resource in any of the multiple computing resource pools and the outside of the cluster, a first communication path between any two computing resources in any of the computing resource pools, and a first communication path between any two computing resources in any one of the computing resource pools. Multiple acceleration processing units are configured to establish a second communication path (also known as a fast communication path) between a computing resource in any of the multiple computing resource pools and the outside of the cluster, a second communication path between any two computing resources in any of the computing resource pools, and a second communication path between any two computing resources in any one of the computing resource pools.
[0059] More specifically, in a cluster, general-purpose processing units and accelerated processing units may be arranged in one of the following ways:
[0060] (1) The general-purpose processing unit and the accelerated processing unit are coupled together. In this case, any multiple data processing units included in the data processing unit pool have one general-purpose processing unit and one accelerated processing unit within any given data processing unit. It should be noted that for any given data processing unit, the general-purpose processing unit and the accelerated processing unit of the data processing unit may be integrated on the same chip or deployed separately on two different chips. This is not limited herein.
[0061] Please refer to the example described above. As shown in Figure 4 (Figure 4 is a diagram of another cluster structure according to one embodiment of the present application, and Figure 4 is drawn based on Figure 3), in cluster 1, for m SDI cards contained in SDI card pool 1, each SDI card has one SPU and one NPU, and the SPU is configured to manage the corresponding NPU.
[0062] (2) General-purpose processing units and accelerated processing units are separated from each other. In this case, in a data processing unit pool containing multiple data processing units, only one accelerated processing unit exists within any given data processing unit. In addition, there is usually one general-purpose processing unit, which may be located remotely. In other words, the general-purpose processing unit is deployed in a computing resource pool or several computing resource pools, rather than in any of the data processing units in the data processing unit pool. For example, computing resources in a computing resource pool may be used directly as general-purpose processing units.
[0063] Please refer to the example described above. As shown in Figure 5 (Figure 5 is a diagram of another cluster structure according to one embodiment of the present application, and Figure 5 is drawn based on Figure 3), in cluster 1, for m SDI cards contained in SDI card pool 1, each SDI card has one NPU. Note that SPUs are not deployed in SDI card pool 1. Instead, one CPU selected from CPU pool 1 is used directly as the SPU. The SPU is configured to centrally manage the m NPUs.
[0064] More specifically, in a cluster, the general-purpose processing unit and the accelerated processing unit may establish a first communication path and a second communication path in the following manner.
[0065] (1) Assume there is a packet to be sent to a computing resource in the computing resource pool. Upon receiving the packet, the acceleration unit may first determine from its flow table whether there is a flow entry that matches the packet. If there is no flow entry that matches the packet, the acceleration unit sends the packet to the general-purpose processing unit that manages the acceleration unit. The general-purpose processing unit then determines from its flow table whether there is a flow entry that matches the packet and may deliver the flow entry to the acceleration unit, which in turn sends the packet to the computing resource based on the flow entry and updates the flow entry in the acceleration unit's flow table. In this way, if there is a new packet to be sent to the computing resource thereafter, the acceleration unit may send the new packet directly to the computing resource based on the flow entry. From the process described above, it can be seen that the process is for establishing a communication path for sending packets. From the start point to the end point of the communication path, the communication path passes through the general-purpose processing unit and at least one acceleration unit (in the process described above, when the acceleration unit sends the packet to the computing resource, the packet may pass through another acceleration unit). Therefore, the communication path can be considered a first communication path. Because the start and end points are different, the first communication path can be classified into the following three types.
[0066] (1.1) If the starting point of the first communication path is outside the cluster and the ending point is a computing resource in one of the multiple computing resource pools, and the first communication path passes through a general-purpose processing unit and at least one accelerating processing unit, then the first communication path can be considered a first communication path between the computing resource and the outside of the cluster. See further for the example shown in Figure 5. If VM 2 on a CPU in CPU pool 2 (located in cluster 2) needs to send a packet to VM 1 on a CPU in CPU pool 1 (located in cluster 1), after the packet is received by the NPU in SDI card pool 1, the NPU sends the packet to the SPU because there is no flow entry in the NPU's flow table that matches the packet. After the SPU delivers a flow entry that matches the packet to the NPU, the NPU updates its flow table and may send the packet to VM 1 based on the flow entry. The communication path for sending the packet can be seen to pass through VM 2 (the CPU on which VM 2 is located), NPU, SPU, and VM 1 (the CPU on which VM 1 is located) in that order.
[0067] (1.2) If the starting point of a first communication path is a computing resource in one of the computing resource pools of multiple computing resource pools, and the ending point is a computing resource in another computing resource pool of the multiple computing resource pools, and the first communication path passes through a general-purpose processing unit and at least one acceleration processing unit, then the first communication path may be considered a first communication path between computing resources in two computing resource pools. See further for the example shown in Figure 5. If VM 3 on the CPU of CPU pool 1 needs to send a packet to VM 4 on the NPU of NPU pool 1, after the packet is received by the NPU of SDI card pool 1, the NPU sends the packet to the SPU because there is no flow entry in the NPU's flow table that matches the packet. After the SPU delivers a flow entry that matches the packet to the NPU, the NPU updates its flow table and may send the packet to VM 4 based on the flow entry. The communication path for sending the packet can be seen to pass through VM 3 (the CPU on which VM 3 is located), NPU, SPU, and VM 4 (the CPU on which VM 4 is located) in that order.
[0068] (1.3) If the starting point of a first communication path is a computing resource in a computing resource pool of multiple computing resource pools, and the ending point is another computing resource in the computing resource pool, and the first communication path passes through a general-purpose processing unit and at least one acceleration processing unit, then the first communication path may be considered a first communication path between two computing resources in a computing resource pool. See further for the example shown in Figure 5. If VM 5 on a CPU in CPU pool 1 needs to send a packet to VM 6 on another CPU in CPU pool 1, after the packet is received by the NPU in SDI card pool 1, the NPU sends the packet to the SPU because there is no flow entry in the NPU's flow table that matches the packet. After the SPU delivers a flow entry that matches the packet to the NPU, the NPU updates its flow table and may send the packet to VM 6 based on the flow entry. It can be seen that the communication path for sending the packet passes through VM 4 (the CPU on which VM 4 is located), NPU, SPU, and VM 6 (the CPU on which VM 6 is located) in that order.
[0069] (2) Assume there is a packet to be sent to a computing resource in the computing resource pool. Upon receiving the packet, the acceleration unit can first determine from its flow table whether there is a flow entry that matches the packet. If there is a flow entry that matches the packet, the acceleration unit sends the packet directly to the computing resource based on the flow entry. From the process described above, it can be seen that the process is for establishing a communication path for sending the packet. From the start point to the end point of the communication path, the communication path passes through at least one acceleration unit without passing through a general-purpose processing unit (in the process described above, in the process where the acceleration unit sends the packet to the computing resource, the packet may pass through another acceleration unit). Therefore, the communication path can be considered a second communication path. Because the start and end points are different, the second communication path can be classified into the following three types.
[0070] (2.1) If the starting point of the second communication path is outside the cluster and the ending point is a computing resource in one of the multiple computing resource pools, and the second communication path passes through at least one acceleration unit, then the second communication path can be considered a second communication path between the computing resource and the outside of the cluster. See further for the example shown in Figure 5. When VM 2 on a CPU in CPU pool 2 (located in cluster 2) needs to send a packet to VM 1 on a CPU in CPU pool 1 (located in cluster 1), the packet is received by the NPU in SDI card pool 1, and since there is a flow entry in the NPU's flow table that matches the packet, the NPU sends the packet to VM 1 based on the flow entry. It can be seen that the communication path for sending the packet passes through VM 2 (the CPU on which VM 2 is located), the NPU, and VM 1 (the CPU on which VM 1 is located) in that order.
[0071] (2.2) If the starting point of a second communication path is a computing resource in one computing resource pool of multiple computing resource pools and the ending point is a computing resource in another computing resource pool of multiple computing resource pools, and the second communication path passes through at least one acceleration unit, then the second communication path may be considered a second communication path between computing resources in two computing resource pools. See further for the example shown in Figure 5. If VM 3 on the CPU of CPU pool 1 needs to send a packet to VM 4 on the NPU of NPU pool 1, then after the packet is received by the NPU of SDI card pool 1, the NPU sends the packet to VM 4 based on the flow entry in the NPU's flow table because there is a flow entry that matches the packet. The communication path for sending the packet can be seen to pass through VM 3 (the CPU on which VM 3 is located), the NPU, and VM 4 (the CPU on which VM 4 is located) in that order.
[0072] (2.3) If the starting point of a second communication path is a computing resource in a computing resource pool of multiple computing resource pools, and the ending point is another computing resource in the computing resource pool, and the second communication path passes through at least one acceleration processing unit, then the second communication path may be considered a second communication path between two computing resources in a computing resource pool. See further for the example shown in Figure 5. If VM 5 on a CPU in CPU pool 1 needs to send a packet to VM 6 on another CPU in CPU pool 1, then after the packet is received by the NPU in SDI card pool 1, the NPU sends the packet to VM 6 based on the flow entry in its flow table, as there is a flow entry that matches the packet. The communication path for sending the packet can be seen to pass through VM 4 (the CPU on which VM 4 is located), the NPU, and VM 6 (the CPU on which VM 6 is located) in that order.
[0073] It should be understood that in the embodiments of this application, only examples where the cluster's computing resources are the endpoint of the communication path and an external or other computing resource within the cluster is the starting point of the communication path are used for illustrative purposes. In actual application, the two may also be interchangeable. In other words, alternatively, the cluster's computing resources may be the starting point of the communication path, and an external or other computing resource within the cluster may be the endpoint of the communication path. Details are not described herein.
[0074] More specifically, in a cluster, a general-purpose processing unit may further manage multiple accelerated processing units in the following manner.
[0075] When a computing resource in any of multiple computing resource pools has a communication requirement (for example, when a general-purpose processing unit determines that a computing resource has been started, the computing resource may be considered to have a communication requirement, and the general-purpose processing unit may actively allocate an acceleration processing unit to the computing resource; or in another example, the computing resource may notify the general-purpose processing unit that it has a communication requirement, and the computing resource may request the allocation of an acceleration processing unit required by the computing resource from the general-purpose processing unit), the general-purpose processing unit may allocate at least one of the multiple acceleration processing units to the computing resource, in other words, it may establish a connection between the computing resource and at least one acceleration processing unit allocated to the computing resource, so that at least one acceleration processing unit allocated to the computing resource can satisfy the communication requirement of the computing resource.
[0076] For example, a general-purpose processing unit can establish connections between multiple acceleration processing units and computing resources in multiple computing resource pools by issuing tokens. The token issuance procedure is shown in Figures 6 and 7 (Figure 6 is a diagram of the structure of token issuance according to one embodiment of the present application, and Figure 7 is a schematic flowchart of token issuance according to one embodiment of the present application). Assume that the cluster has one general-purpose processing unit, which functions as a token issuance module, and each acceleration processing unit functions as a token receiving module. Each acceleration processing unit has a token bucket, the capacity of which is limited, in other words, the number of tokens that each acceleration processing unit can receive is limited.
[0077] The token issuance procedure is a multi-round procedure, and the process in each round is similar; therefore, rounds will be used below as an example for illustrative purposes. In a round of token issuance, the general-purpose processing unit sends a token issuance message to the first acceleration processing unit. The acceleration processing unit requests tokens based on the message and establishes a connection to a computing resource. The acceleration processing unit may then determine whether its token bucket is full. If the token bucket is full, it indicates that all tokens have been acquired, the general-purpose processing unit is notified, and as a result, the general-purpose processing unit removes an acceleration processing unit from the group of acceleration processing units. The acceleration processing unit may then continue sending token issuance messages to the next acceleration processing unit until the token issuance message is returned to the general-purpose processing unit. In this way, this round of token issuance is completed, and the next round of token issuance may begin. In this case, after the general-purpose processing unit has completed token issuance to all acceleration processing units, one of the multiple acceleration processing units is connected to at least one computing resource. For any one of multiple acceleration units, it can be seen that the number of tokens that the acceleration unit can receive is equal to the number of computing resources that can be connected to the acceleration unit.
[0078] More specifically, in a cluster, acceleration units and computing resources may be connected in the following manner:
[0079] (1) When the high-speed interconnect bus supported by the acceleration unit and the high-speed interconnect bus supported by the computing resources are the same, the computing resources and the acceleration unit can be connected through the high-speed interconnect bus. Examples are shown in Figures 4 and 5.
[0080] (2) When the high-speed interconnect bus supported by the acceleration processing unit is different from the high-speed interconnect bus supported by the computing resources, the computing resources and the acceleration processing unit are connected through the high-speed interconnect bus supported by the computing resources, an adapter device, and the high-speed interconnect bus supported by the acceleration processing unit. The adapter device is configured to perform conversion between the high-speed interconnect bus supported by the computing resources and the high-speed interconnect bus supported by the acceleration processing unit. For example, as shown in Figure 8 (Figure 8 is a diagram of another cluster structure according to one embodiment of the present application, and Figure 8 is drawn based on Figure 3), in cluster 1, for m SDI cards contained in SDI card pool 1, each SDI card has one NPU. Note that the high-speed interconnect bus supported by the m NPUs in SDI card pool 1 is a UB, and the high-speed interconnect bus supported by the k CPUs in CPU pool 1 is a PCIe bus. Therefore, all k CPUs are connected to the UB switch through the adapter card and communicate with the m NPUs.
[0081] One embodiment of this application provides a cluster deployed in a cloud service system. The cluster has the following advantages:
[0082] (1) In a cluster, various types of computing resources are deployed in a pooled manner. Multiple computing resource pools are isolated and may be configured based on the type of cloud services that the cluster needs to provide in order to improve the cluster's performance and resource utilization. In a cluster, data processing units are also deployed in a pooled manner to form a data processing unit pool that functions as the cluster's communication scheduling center and implements centralized allocation and utilization of the data processing units in the pool in order to improve the utilization rate of data processing units.
[0083] (2) In a cluster, the data processing unit pool and the multiple computing resource pools are connected via a high-speed interconnect bus. In other words, connections between the multiple computing resource pools and the outside of the cluster, connections between the multiple computing resource pools, and connections within any one of the computing resource pools are all carried out via the high-speed interconnect bus. If the high-speed interconnect bus can provide sufficient bandwidth, the speed of external and internal communication to the cluster can be increased, and the costs required by the cluster can be reduced.
[0084] (3) In a cluster, computing resources can be combined in a building block manner. For example, a flexible ratio between CPUs, NPUs, and GPUs may be implemented, and integrated management may be implemented at the software level.
[0085] (4) If the cluster is configured to provide AI services externally on the cloud, the cluster includes a data processing unit pool, which has multiple data processing units to provide sufficiently powerful data processing capabilities. In addition, a high-speed interconnect bus provides sufficient bandwidth. Thus, the cluster's data processing unit pool can support the transmission of large amounts of model parameters required during AI model training, improve reliability during model training, and reduce occurrences such as interruptions to model training caused by the network.
[0086] (5) In a cluster, the general-purpose processing units and accelerated processing units included in the data processing unit are deployed in a separated manner, in other words, separately, to further free up chip area occupied by the general-purpose processing units and accelerated processing units, enabling pooled deployment of accelerated processing units and centralized deployment of general-purpose processing units, and providing flexible scale-out capabilities.
[0087] (6) A cluster may be configured with memory pools containing multiple memory sources. Computational resources in other types of computing resource pools, such as CPUs, NPUs, and GPUs, may use more memory from the memory pool, and as a result, the CPUs, NPUs, and GPUs of the physical servers are not limited to using the memory of the physical servers to form a memory sharing (borrowing) scenario to provide very low latency.
[0088] (7) The cluster provides a vertically integrated hardware and software platform. In other words, all pools in the cluster form a rack-level resource set at the abstraction layer to uniformly support the management of rack-level resources such as compute resources, heterogeneous resources, and storage resources, as well as traffic egress.
[0089] (8) In a cluster, a data processing unit pool may be configured, containing multiple data processing units, which are used as rack-level traffic egress to implement resource management and scheduling schemes for distributed traffic. In this way, pool management using m:n mapping between data processing units and computing resources can be implemented, resulting in a several-fold increase in the bandwidth that can be used by all computing resources in the cluster. In addition, such a deployment can also simplify the physical server configuration and reduce costs by having multiple data processing units implement overcommitment between different types of computing resources.
[0090] (9) In a cluster, data processing unit pools are located remotely, effectively resolving critical issues such as head-of-line blocking (HOL blocking) and congestion.
[0091] (10) In a cluster, the configuration between data processing units and computing resources can be an m:n configuration. When computing resources and data processing units are processing user services, active / standby switching can be initiated quickly and service failover can be performed regardless of whether a computing resource or a data processing unit fails. Users perceive a second level of switching to improve the user experience.
[0092] (11) In a cluster, the general-purpose processing units may be integrated on a single chip. Compared to the conventional case in which one general-purpose processing unit and one acceleration processing unit are integrated on a single card, in this case the chip area occupied by the general-purpose processing unit can be reduced and the utilization rate of the general-purpose processing unit can be improved.
[0093] (12) In a cluster, switches can coordinately implement online computing (all reduce, scatter-gather), database acceleration (DB filter, table scan, and regular expressions), hash acceleration, etc.
[0094] (13) In a cluster, cores statically allocated to the current data plane may be centrally managed as a resource pool to improve the utilization of computing resources and reduce the monopolization of computing resources.
[0095] (14) In the cluster, various types of computing resources are compatible with conventional PCIe-based types, such as virtio and nvme, and support a new ecosystem based on a new high-speed interconnect bus to facilitate system implementation in various scenarios.
[0096] (15) In a cluster, if the high-speed interconnect bus supported by the computing resources and the high-speed interconnect bus supported by the data processing units are different, the computing resources and data processing units may be unified to the same high-speed interconnect bus scheme via an adapter device, and as a result the system can be applied to a wider range of scenarios.
[0097] (16) In the cluster, memory borrowing and unified addressing are supported between networked xpu-xpu. Support for high-speed interconnect buses enables live memory movement at ultra-high bandwidth.
[0098] (17) The cluster supports vfio / vdpa-based device passthrough schemes with pin-free memory, memory overcommitment, and multiplexing.
[0099] The preceding section describes in detail the cluster provided in the embodiments of this application. The following describes the communication method provided in the embodiments of this application. Figure 9 is a diagram of the communication method according to one embodiment of this application. As shown in Figure 9, the method is carried out by using the cluster shown in Figure 2. The cluster includes a data processing unit pool and a plurality of computing resource pools of different types. The data processing unit pool includes a plurality of data processing units. Any one of the plurality of computing resource pools includes a plurality of computing resources. The data processing unit pool is connected to the plurality of computing resource pools through a high-speed interconnection bus. The method includes the following steps.
[0100] 901: The data processing unit pool manages communication between multiple compute resource pools and the outside of the cluster, communication between multiple compute resource pools, and communication within any one of the compute resource pools.
[0101] In one possible implementation, the data processing units include a general-purpose processing unit and a plurality of acceleration processing units. The data processing unit pool managing communication between the plurality of computing resource pools and the outside of the cluster, communication between the plurality of computing resource pools, and communication within any one of the computing resource pools includes the general-purpose processing unit establishing a first communication path between the plurality of computing resource pools and the outside of the cluster, a first communication path between the plurality of computing resource pools, and a first communication path within any one of the computing resource pools. The plurality of acceleration processing units establish a second communication path between the plurality of computing resource pools and the outside of the cluster, a second communication path between the plurality of computing resource pools, and a second communication path within any one of the computing resource pools.
[0102] In one possible implementation, the data processing unit pool and multiple computing resource pools are configured in multiple racks, and the racks in which the data processing unit pool is configured are different from the racks in which one of the computing resource pools is configured.
[0103] In one possible implementation, the data processing units include a general-purpose processing unit and multiple acceleration processing units. The method further includes the general-purpose processing unit allocating at least one of the multiple acceleration processing units to a computing resource having communication requirements within a pool of computing resources, and requiring at least one acceleration processing unit allocated to the computing resource to satisfy the communication requirements of the computing resource.
[0104] In one possible implementation, a general-purpose processing unit and multiple acceleration processing units are deployed within a data processing unit pool.
[0105] In one possible implementation, multiple acceleration units are deployed within a data processing unit pool, general-purpose processing units are deployed outside the data processing unit pool, and the area outside the data processing unit pool is inside at least one computing resource pool.
[0106] In one possible implementation, a first communication path between multiple computing resource pools and the outside of a cluster passes through a general-purpose processing unit and at least one of multiple acceleration processing units, using the computing resources of any one of the multiple computing resource pools and the outside of the cluster as endpoints. A first communication path between multiple computing resource pools passes through a general-purpose processing unit and at least one of multiple acceleration processing units, using the computing resources contained in any two of the computing resource pools as endpoints. A first communication path inside any one of the computing resource pools passes through a general-purpose processing unit and at least one of multiple acceleration processing units, using the computing resources within any one of the computing resource pools as endpoints.
[0107] In one possible implementation, a second communication path between multiple computing resource pools and the outside of the cluster passes through at least one of multiple acceleration units, using the computing resources of any one of the multiple computing resource pools and the outside of the cluster as endpoints. A second communication path between multiple computing resource pools passes through at least one of multiple acceleration units, using the computing resources contained in any two of the computing resource pools as endpoints. A second communication path within any one of the computing resource pools passes through at least one of multiple acceleration units, using two computing resources of any one of the computing resource pools as endpoints.
[0108] In one possible implementation, the method further includes a general-purpose processing unit establishing connections between multiple acceleration processing units and computing resources in multiple computing resource pools by issuing tokens. For any one of the multiple acceleration processing units, the number of tokens that can be received by the acceleration processing unit is equal to the number of computing resources that can be connected to the acceleration processing unit.
[0109] In one possible implementation, when the high-speed interconnect bus supported by the acceleration unit and the high-speed interconnect bus supported by the computing resources are different, the computing resources and the acceleration unit are connected through the high-speed interconnect bus supported by the computing resources, an adapter device, and the high-speed interconnect bus supported by the acceleration unit.
[0110] In one possible implementation, multiple computing resource pools include at least two of the following: a CPU pool, an NPU pool, a GPU pool, a memory pool, and an SSD pool. The CPU pool includes multiple CPUs, the NPU pool includes multiple NPUs, the GPU pool includes multiple GPUs, the memory pool includes multiple memory modules, and the SSD pool includes multiple SSDs.
[0111] In one possible implementation, one of the compute resource pools contains multiple compute resources for deploying a cloud instance that provides a cloud service, and the cloud instance contains one of the following: compute resources, virtual machines, containers, and microvirtual machines.
[0112] The details of the steps and other aspects of the method described above are based on the same concepts as those of the apparatus embodiments of this application, and it should be noted that the technical effects resulting from these details are the same as those resulting from the method embodiments of this application. For specific details, please refer to the description of the apparatus embodiments described above in the embodiments of this application. Details will not be described again in this specification.
[0113] Figure 10 is a diagram of the structure of a computer device according to one embodiment of the present application. As shown in Figure 10, the computing device 1000 includes a processor 1001, storage 1002, a communication interface 1003, and a bus 1004. The processor 1001, storage 1002, and communication interface 1003 are connected through a bus (not shown in the figure). The storage 1002 stores instructions. When an execution instruction is executed in the storage 1002, the computing device 1000 executes the communication method in the method embodiment described above.
[0114] The computing device 1000 may be one or more integrated circuits configured to implement the methods described above, for example, one or more application-specific integrated circuits (ASICs), one or more digital signal processors (DSPs), one or more field programmable gate arrays (FPGAs), or a combination of at least two of these integrated circuit forms. In another example, when the unit of the device is implemented in a manner in which a program is scheduled by a processing element, the processing element may be a general-purpose processor, for example, a central processing unit (CPU), or another processor capable of calling the program. In yet another example, the unit may be integrated and implemented in the form of a system-on-a-chip (SOC).
[0115] The processor 1001 may be a central processing unit (CPU), or another general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or another programmable logic device, a transistor logic device, a hardware component, or any combination thereof. The general-purpose processor may be a microprocessor, or any ordinary processor, etc.
[0116] The storage 1002 may be volatile storage, non-volatile storage, or may include both volatile and non-volatile storage. Non-volatile storage may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile storage may be random access memory (RAM) used as an external cache. Rather than providing a limited explanation, many forms of RAM may be used, such as static random access memory (static RAM, SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (doubledata date SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchlink dynamic random access memory (synchlink DRAM, SLDRAM), and direct rambus random access memory (direct rambus RAM, DR RAM).
[0117] The storage 1002 stores executable program code, and the processor 1001 executes the executable program code to separately perform the functions of modules such as the general-purpose processing unit and the acceleration processing unit, thereby implementing the aforementioned communication method. In other words, the storage 1002 stores instructions for executing the communication method.
[0118] The communication interface 1003 uses a transceiver module, for example, a network interface card or a transceiver, to implement communication between the computing device 1000 and another device or communication network.
[0119] Bus 1004 may include a power bus, control bus, status signal bus, etc., in addition to the data bus. The bus may also be a peripheral component interconnect express (PCIe) bus, an extended industry standard architecture (EISA) bus, a unified bus (Ubus or UB), a compute express link (CXL), or a cache coherent interconnect for accelerators (CCIX). The bus may be classified into an address bus, a data bus, a control bus, etc.
[0120] Figure 11 is a diagram showing the structure of a computing device cluster according to one embodiment of the present application. As shown in Figure 11, the computing device cluster 1100 includes at least one computing device 1000.
[0121] As shown in Figure 11, the computing device cluster 1100 includes at least one computing device 1000. The storage 1002 of one or more computing devices 1000 in the computing device cluster 1100 may store the same instructions for performing the communication method described above.
[0122] In some possible implementations, the storage 1002 of one or more computing devices 1000 in the computing device cluster 1100 may separately store a portion of the instructions for executing the communication method. In other words, a combination of one or more computing devices 1000 may execute the aforementioned communication method together.
[0123] It should be noted that the storage 1002 of different computing devices 1000 in the computing device cluster 1100 may store different instructions for separately executing some of the functions of the aforementioned data processing unit. In other words, instructions stored in the storage 1002 of different computing devices 1000 may perform one or more functions of modules such as the general-purpose processing unit and the accelerated processing unit.
[0124] In some possible implementations, one or more computing devices 1000 of the computing device cluster 1100 may be connected through a network. The network may be a wide area network or a local area network, etc.
[0125] Figure 12 is a diagram of a computer cluster in which computer devices are connected via a network according to one embodiment of the present application. As shown in Figure 12, two computing devices 1000A and 1000B are connected via a network. Specifically, each computing device is connected to the network through its communication interface.
[0126] In possible implementations, the storage of computing device 1000A stores instructions for executing the functions of modules such as general-purpose processing units. In addition, the storage of computing device 1000B stores instructions for executing the functions of modules such as accelerated processing units.
[0127] It should be understood that the functions of computing device 1000A shown in Figure 12 may be performed by multiple computing devices instead. Similarly, the functions of computing device 1000B may be performed by multiple computing devices instead.
[0128] One embodiment of this application further relates to a computer storage medium. The computer-readable storage medium stores a program for signal processing. When the program is executed on a computer, the computer is made to execute the communication method of the embodiment shown in Figure 9.
[0129] One embodiment of this application further relates to a computer program product. The computer program product stores instructions, and when an instruction is executed by a computer, it causes the computer to execute a communication method of the embodiment shown in Figure 9.
[0130] For the sake of brevity and conciseness, as will be readily apparent to those skilled in the art, detailed working processes of the aforementioned systems, apparatus, and units should be referred to the corresponding processes in the aforementioned method embodiments, and will not be described in detail again herein.
[0131] It should be understood that in some embodiments provided in this application, the disclosed systems, apparatus, and methods may be implemented in other ways. For example, the embodiments of the apparatus described are merely illustrative. For example, the division into units is merely a division of logical functions, and other divisions may be possible in actual implementations. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not performed. In addition, the presented or described mutual or direct coupling or communication connections may be implemented using some interfaces. Indirect coupling or communication connections between apparatus or units may be implemented in electronic, mechanical, or other forms.
[0132] Units described as separate parts may or may not be physically separated, and components shown as units may or may not be physical units, may be located in one place, or may be distributed across multiple network units. Some or all of the units may be selected based on actual requirements in order to achieve the objectives of the solution of the embodiment.
[0133] In addition, the functional units in the embodiments of this application may be incorporated into a single processing unit, or each unit may exist physically independently, or two or more units may be incorporated into a single unit. The integrated unit may be implemented in hardware form or in the form of a software functional unit.
[0134] When an integrated unit is implemented in the form of a software function unit and sold or used as an independent product, the integrated unit may be stored on a computer-readable storage medium. Based on this understanding, the technical solution of this application may be implemented in the form of a software product, either essentially, or with respect to the prior art, or all or part of the technical solution. A computer software product is stored on a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) to perform all or part of the steps of the method described in the embodiments of this application. The aforementioned storage medium includes any medium capable of storing program code, such as a USB flash drive, a removable hard disk, read-only memory (ROM), random access memory (RAM), a magnetic disk, or an optical disk. [Explanation of Symbols]
[0135] 1000, 1000A, 1000B computing devices 1001 Processor 1002 storage 1003 Communication Interface 1004 Bus 1100 Computing Device Cluster
Claims
1. A cluster comprising a data processing unit pool and a plurality of computing resource pools of different types, wherein the data processing unit pool comprises a plurality of data processing units, and any one of the plurality of computing resource pools comprises a plurality of computing resources. The data processing unit pool is connected to the plurality of computing resource pools via a high-speed interconnection bus. The data processing unit pool is configured to manage communication between the plurality of computing resource pools and the outside of the cluster, communication between the plurality of computing resource pools, and communication within any one of the computing resource pools. cluster.
2. The cluster according to claim 1, wherein the data processing unit pool and the plurality of computing resource pools are configured in a plurality of racks, and the racks in which the data processing unit pool is configured are different from the racks in which any one of the computing resource pools is configured.
3. The cluster according to claim 2, wherein the plurality of data processing units comprises a general-purpose processing unit and a plurality of acceleration processing units, the general-purpose processing unit is configured to allocate at least one of the plurality of acceleration processing units to a computing resource having communication requirements within the plurality of computing resource pools, and the at least one acceleration processing unit allocated to the computing resource is configured to satisfy the communication requirements of the computing resource.
4. The general-purpose processing unit is configured to establish a first communication path between the plurality of computing resource pools and the outside of the cluster, a first communication path between the plurality of computing resource pools, and a first communication path within any one of the computing resource pools. The plurality of acceleration processing units are configured to establish a second communication path between the plurality of computing resource pools and the outside of the cluster, a second communication path between the plurality of computing resource pools, and a second communication path within any one of the computing resource pools. The cluster according to claim 3.
5. The cluster according to claim 3 or 4, wherein the general-purpose processing unit and the plurality of acceleration processing units are deployed within the data processing unit pool.
6. The cluster according to claim 3 or 4, wherein the plurality of acceleration processing units are deployed within the data processing unit pool, the general-purpose processing units are deployed outside the data processing unit pool, and the area outside the data processing unit pool is the area inside at least one computing resource pool.
7. The first communication path between the plurality of computing resource pools and the outside of the cluster passes through at least one of the general-purpose processing unit and the plurality of acceleration processing units, with the computing resources of any of the plurality of computing resource pools and the outside of the cluster as endpoints. The first communication path between the plurality of computing resource pools passes through the general-purpose processing unit and at least one of the plurality of acceleration processing units, with the computing resources in any two of the computing resource pools as endpoints. The cluster according to any one of claims 3 to 6, wherein the first communication path within any one of the computing resource pools passes through at least one of the general-purpose processing unit and the plurality of acceleration processing units, with two computing resources within any one of the computing resource pools as endpoints.
8. The second communication path between the plurality of computing resource pools and the outside of the cluster passes through at least one of the plurality of acceleration processing units, with the computing resources of any of the plurality of computing resource pools and the outside of the cluster as endpoints. The second communication path between the plurality of computing resource pools passes through at least one of the plurality of acceleration processing units, with the computing resources in any two of the computing resource pools as endpoints. The cluster according to any one of claims 3 to 6, wherein the second communication path within any one of the computing resource pools passes through at least one of the plurality of acceleration processing units, with two computing resources within any one of the computing resource pools as endpoints.
9. The cluster according to any one of claims 2 to 8, wherein when the high-speed interconnect bus supported by the acceleration processing unit is different from the high-speed interconnect bus supported by the computing resource, the computing resource and the acceleration processing unit are connected through the high-speed interconnect bus supported by the computing resource, an adapter device, and the high-speed interconnect bus supported by the acceleration processing unit.
10. The cluster according to any one of claims 1 to 9, wherein the plurality of computing resource pools comprises at least two of a central processing unit CPU pool, a neural network processing unit NPU pool, a graphics processing unit GPU pool, a memory pool, and a solid state disk SSD pool, the CPU pool comprises a plurality of CPUs, the NPU pool comprises a plurality of NPUs, the GPU pool comprises a plurality of GPUs, the memory pool comprises a plurality of memory, and the SSD pool comprises a plurality of SSDs.
11. The cluster according to any one of claims 1 to 10, wherein one of the computing resource pools comprises multiple computing resources for deploying a cloud instance that provides a cloud service, and the cloud instance comprises one of computing resources, a virtual machine, a container, and a microvirtual machine.
12. A communication method, the method being implemented by using a cluster, the cluster comprising a data processing unit pool and a plurality of computing resource pools of different types, the data processing unit pool comprising a plurality of data processing units, any one of the plurality of computing resource pools comprising a plurality of computing resources, the data processing unit pool being connected to the plurality of computing resource pools via a high-speed interconnection bus, The aforementioned method, The data processing unit pool manages communication between the multiple computing resource pools and the outside of the cluster, communication between the multiple computing resource pools, and communication within any one of the computing resource pools. Methods that include...
13. The method according to claim 12, wherein the data processing unit pool and the plurality of computing resource pools are configured in a plurality of racks, and the racks in which the data processing unit pool is configured are different from the racks in which any one of the computing resource pools is configured.
14. The plurality of data processing units comprises a general-purpose processing unit and a plurality of acceleration processing units, and the method is The general-purpose processing unit performs the step of allocating at least one of the plurality of acceleration processing units to a computing resource having communication requirements within the plurality of computing resource pools in order to satisfy the communication requirements of the computing resource to the at least one acceleration processing unit allocated to the computing resource. The method according to claim 13, further comprising:
15. The steps described above, which involve the data processing unit pool managing communication between the multiple computing resource pools and the outside of the cluster, communication between the multiple computing resource pools, and communication within any one of the computing resource pools, are as follows: The general-purpose processing unit establishes a first communication path between the plurality of computing resource pools and the outside of the cluster, a first communication path between the plurality of computing resource pools, and a first communication path within any one of the computing resource pools. The steps include establishing a second communication path between the plurality of computing resource pools and the outside of the cluster, a second communication path between the plurality of computing resource pools, and a second communication path within any one of the computing resource pools using the plurality of acceleration processing units. The method according to claim 14, including the method described in claim 14.
16. The method according to claim 14 or 15, wherein the general-purpose processing unit and the plurality of acceleration processing units are deployed within the data processing unit pool.
17. The method according to claim 14 or 15, wherein the plurality of acceleration processing units are located within the data processing unit pool, the general-purpose processing units are located outside the data processing unit pool, and the area outside the data processing unit pool is the area inside at least one computing resource pool.
18. The first communication path between the plurality of computing resource pools and the outside of the cluster passes through at least one of the general-purpose processing unit and the plurality of acceleration processing units, with the computing resources of any of the plurality of computing resource pools and the outside of the cluster as endpoints. The first communication path between the plurality of computing resource pools passes through the general-purpose processing unit and at least one of the plurality of acceleration processing units, with the computing resources in any two of the computing resource pools as endpoints. The first communication path within any one of the computing resource pools passes through at least one of the general-purpose processing unit and the plurality of acceleration processing units, with two computing resources within any one of the computing resource pools as endpoints. The method according to any one of claims 14 to 17.
19. The second communication path between the plurality of computing resource pools and the outside of the cluster passes through at least one of the plurality of acceleration processing units, with the computing resources of any of the plurality of computing resource pools and the outside of the cluster as endpoints. The second communication path between the plurality of computing resource pools passes through at least one of the plurality of acceleration processing units, with the computing resources in any two of the computing resource pools as endpoints. The second communication path within any one of the computing resource pools passes through at least one of the plurality of acceleration processing units, with two computing resources within any one of the computing resource pools as endpoints. The method according to any one of claims 14 to 18.
20. The method according to any one of claims 13 to 19, wherein when the high-speed interconnect bus supported by the acceleration processing unit is different from the high-speed interconnect bus supported by the computing resource, the computing resource and the acceleration processing unit are connected through the high-speed interconnect bus supported by the computing resource, an adapter device, and the high-speed interconnect bus supported by the acceleration processing unit.
21. The method according to any one of claims 12 to 20, wherein the plurality of computing resource pools comprises at least two of a CPU pool, an NPU pool, a GPU pool, a memory pool, and an SSD pool, the CPU pool comprising a plurality of CPUs, the NPU pool comprising a plurality of NPUs, the GPU pool comprising a plurality of GPUs, the memory pool comprising a plurality of memory, and the SSD pool comprising a plurality of SSDs.
22. The method according to any one of claims 12 to 21, wherein one of the computing resource pools comprises multiple computing resources for deploying a cloud instance that provides a cloud service, and the cloud instance comprises one of computing resources, a virtual machine, a container, and a microvirtual machine.
23. A cloud service system comprising a plurality of clusters as described in any one of claims 1 to 11.
24. A computing device cluster comprising at least one computing device, each computing device comprising a processor and storage, The aforementioned storage is configured to store instructions, The processor is configured to cause the computing device cluster to perform the method according to any one of claims 12 to 22 based on the instructions, Computing device cluster.
25. A computer storage medium that stores one or more instructions, and when an instruction is executed by one or more computers, causes the one or more computers to carry out the method described in any one of claims 12 to 22.
26. A computer program product, wherein the computer program product stores instructions, and when an instruction is executed by a computer, causes the computer to carry out the method described in any one of claims 12 to 22.
