Hardware topology-aware acceleration resource scheduling method and device, storage medium and computer device

By using a hardware topology-aware acceleration resource scheduling method, the physical connections and status information between acceleration units within a computing node are used to optimize resource combination selection. This solves the performance degradation and resource fragmentation problems caused by acceleration card resource scheduling in existing technologies, thereby improving task execution efficiency and cluster resource utilization.

CN123177979APending Publication Date: 2026-11-27四川华鲲振宇智能科技有限责任公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611247249.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-17
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing accelerator card resource scheduling schemes rely solely on the quantity of resources for decision-making, resulting in multi-card tasks being allocated to low-bandwidth communication links, leading to decreased operating performance and fragmentation of high-performance interconnect resources, making it difficult to sustain large-scale distributed computing tasks.

Method used

By acquiring the physical connection topology and availability information between acceleration units, the communication tightness and topology connection structure loss of candidate resource combinations are calculated, and the optimal resource combination is determined through comprehensive evaluation for task scheduling.

Benefits of technology

This effectively avoids tasks being assigned to low-bandwidth links, improves the execution efficiency of distributed training tasks, protects high-performance topology resources, and enhances the overall resource utilization and long-term throughput of the cluster.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123177979A_ABST
    Figure CN123177979A_ABST
Patent Text Reader

Abstract

The application discloses a hardware topology-aware acceleration resource scheduling method and device, a storage medium and a computer device, which comprises the following steps: acquiring the physical connection topology relationship and the available state information among multiple acceleration units in a computing node; in response to a task scheduling request occupying a preset number of acceleration units, determining the available acceleration units according to the available state information, and then determining a candidate resource combination meeting the preset number requirement; calculating the first evaluation value and the second evaluation value of each candidate resource combination according to the physical connection topology relationship; the first evaluation value represents the communication closeness between each acceleration unit in the candidate resource combination, and the second evaluation value represents the completeness loss degree of the topology connection structure between the remaining acceleration units in the computing node after the candidate resource combination is occupied; and according to the first evaluation value and the second evaluation value, a target resource combination is determined from the candidate resource combination, and the task is scheduled to the acceleration units included in the target resource combination.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the fields of cloud-native and high-performance computing technologies, and in particular to a hardware topology-aware accelerated resource scheduling method and apparatus, storage medium, and computer equipment. Background Technology

[0002] With the rapid development of artificial intelligence, big data analytics, and scientific computing, the number of parameters in deep learning models is growing exponentially. A single accelerator card can no longer meet the computing power and memory requirements of large-scale parallel computing, making multi-card distributed training architectures the mainstream technology paradigm. Against this backdrop, cloud-native container orchestration platforms, with their advantages of elastic scaling, resource isolation, and automated deployment, are widely used to manage heterogeneous hardware acceleration resources such as GPUs and NPUs. Container orchestration platforms typically use a device plug-in mechanism to abstract the accelerator cards within a node into countable resource types, and use a scheduler to bind user-submitted computing tasks to nodes that meet the resource quantity requirements for execution, thereby achieving unified management and allocation of heterogeneous hardware resources across the cluster.

[0003] However, existing accelerator card resource scheduling schemes have significant limitations. Their core flaw lies in the fact that scheduling decisions rely solely on the single dimension of "sufficient resource quantity," treating multiple accelerator cards within a node as independent and indistinguishable computing units. When tasks requiring multi-card parallel computing are scheduled, they may be assigned to accelerator card groups that are physically far apart, interconnected only via low-bandwidth PCIe buses, or even communicating across nodes. This leads to severe communication bottlenecks during task execution, with GPU / NPU computing power largely idle while waiting for data, resulting in actual effective computing power far below the theoretical peak. Furthermore, existing scheduling strategies may break down a high-speed interconnect group and allocate it to multiple independent tasks. While this may satisfy immediate resource requests, it permanently undermines the cluster's ability to handle subsequent high-bandwidth tasks such as large model training, causing fragmentation of high-performance topology resources. Summary of the Invention

[0004] In view of this, this application provides a hardware topology-aware acceleration resource scheduling method and apparatus, storage medium, and computer equipment, which solves the technical problem that existing acceleration unit scheduling schemes rely solely on the number of resources for decision-making, resulting in multi-card tasks being easily assigned to low-bandwidth communication links, causing a serious decline in operating performance. At the same time, high-performance interconnect resources are fragmented and destroyed, making it difficult for the cluster to continuously support subsequent large-scale distributed computing tasks.

[0005] According to one aspect of this application, a hardware topology-aware accelerated resource scheduling method is provided, comprising: Obtain the physical connection topology between multiple acceleration units within a computing node and the availability status information of each acceleration unit, as reported by the resource management side. In response to a task scheduling request that requires the use of a preset number of acceleration units, available acceleration units are determined based on the availability status information of each acceleration unit, and at least one candidate resource combination that meets the preset number requirement is determined based on the available acceleration units. Based on the physical connection topology, a first evaluation value and a second evaluation value are calculated for each candidate resource combination. The first evaluation value is used to characterize the degree of communication tightness between each acceleration unit within the candidate resource combination based on the physical connection topology. The second evaluation value is used to characterize the degree of integrity loss of the topology connection structure between the remaining unoccupied acceleration units within the computing node after the candidate resource combination is occupied, compared to the original topology connection structure. Based on the first evaluation value and the second evaluation value, each candidate resource combination is comprehensively evaluated, and the candidate resource combination with the best comprehensive evaluation result is determined as the target resource combination. The task corresponding to the task scheduling request is then scheduled to the acceleration unit contained in the target resource combination.

[0006] According to another aspect of this application, a hardware topology-aware accelerated resource scheduling apparatus is provided, comprising: The data acquisition module is used to acquire the physical connection topology between multiple acceleration units within a computing node and the availability status information of each acceleration unit, as reported by the resource management side. The resource combination determination module is used to respond to a task scheduling request that requires the use of a preset number of acceleration units, determine available acceleration units based on the availability status information of each acceleration unit, and determine at least one candidate resource combination that meets the preset number requirement based on the available acceleration units. The calculation module is used to calculate a first evaluation value and a second evaluation value corresponding to each candidate resource combination according to the physical connection topology relationship. The first evaluation value is used to characterize the degree of communication tightness between each acceleration unit within the candidate resource combination based on the physical connection topology relationship. The second evaluation value is used to characterize the degree of integrity loss of the topology connection structure between the remaining unoccupied acceleration units within the computing node after the candidate resource combination is occupied, compared with the original topology connection structure. The scheduling module is used to comprehensively evaluate each candidate resource combination based on the first evaluation value and the second evaluation value, determine the candidate resource combination with the best comprehensive evaluation result as the target resource combination, and schedule the task corresponding to the task scheduling request to the acceleration unit included in the target resource combination.

[0007] According to another aspect of this application, a storage medium is provided that stores a computer program thereon, which, when executed by a processor, implements the above-described hardware topology-aware accelerated resource scheduling method.

[0008] According to another aspect of this application, a computer device is provided, including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor executes the program to implement the above-described hardware topology-aware accelerated resource scheduling method.

[0009] By employing the above technical solutions, this application provides a hardware topology-aware accelerated resource scheduling method, apparatus, storage medium, and computer device. On one hand, by calculating a first evaluation value characterizing the internal communication tightness of candidate resource combinations, the parallel tasks of multiple acceleration units are preferentially allocated to candidate resource combinations with tight physical interconnections during the scheduling decision stage. This effectively avoids tasks being allocated to candidate resource combinations that are cross-node or only connected through low-bandwidth links, significantly reducing communication latency among multiple acceleration units and significantly improving end-to-end execution efficiency for tasks such as distributed training. On the other hand, by calculating a second evaluation value characterizing the degree of loss of topology integrity of remaining acceleration units after a candidate resource combination is occupied, the scheduler synchronously evaluates the degree of damage to the original high-speed interconnect topology of the computing nodes caused by the allocation behavior, preferentially selecting the scheme with the least impact on the integrity of the remaining interconnect groups. From a mechanism perspective, this actively suppresses the behavior of splitting a complete high-speed interconnect group and allocating it to multiple independent tasks, effectively avoiding the fragmentation of high-performance topology resources and reserving usable high-speed interconnect resources for high-bandwidth-demand tasks such as subsequent large model training. Therefore, the embodiments of this application improve the performance of single tasks while enhancing the overall resource utilization and long-term throughput of the cluster.

[0010] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description

[0011] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings: Figure 1 A flowchart illustrating an accelerated resource scheduling method based on hardware topology awareness provided in an embodiment of this application is shown. Figure 2 This application provides a graph structure data for characterizing physical connection topology, as illustrated in an embodiment of the present application. Figure 3This illustration shows a structural diagram of a hardware topology-aware accelerated resource scheduling device according to an embodiment of this application; Figure 4 A schematic diagram of the device structure of a computer device provided in an embodiment of this application is shown. Detailed Implementation

[0012] The present application will be described in detail below with reference to the accompanying drawings and embodiments. It should be noted that, unless otherwise specified, the embodiments and features described in the embodiments of the present application can be combined with each other.

[0013] This embodiment provides a hardware topology-aware accelerated resource scheduling method, such as... Figure 1 As shown, the method includes: Step 101: Obtain the physical connection topology between multiple acceleration units within the computing node and the availability status information of each acceleration unit as reported by the resource management side.

[0014] Step 102: In response to a task scheduling request that requires a preset number of acceleration units, determine available acceleration units based on the availability status information of each acceleration unit, and determine at least one candidate resource combination that meets the preset number requirement based on the available acceleration units.

[0015] Step 103: Calculate the first evaluation value and the second evaluation value corresponding to each candidate resource combination according to the physical connection topology. The first evaluation value is used to characterize the degree of communication tightness between each acceleration unit within the candidate resource combination based on the physical connection topology. The second evaluation value is used to characterize the degree of integrity loss of the topology connection structure between the remaining unoccupied acceleration units within the computing node after the candidate resource combination is occupied, compared to the original topology connection structure.

[0016] Step 104: Perform a comprehensive evaluation on each candidate resource combination based on the first evaluation value and the second evaluation value, determine the candidate resource combination with the best comprehensive evaluation result as the target resource combination, and schedule the task corresponding to the task scheduling request to the acceleration unit included in the target resource combination.

[0017] This application provides a hardware topology-aware acceleration resource scheduling method. First, a device management component deployed on each computing node acquires the physical connection topology and real-time availability status information of each acceleration unit within the cluster. The physical connection topology refers to the physical links through which multiple acceleration units within a computing node are interconnected. For example, whether they are directly connected via high-bandwidth NVLink, interconnected via an NVSwitch switching chip, or connected only via a standard PCIe bus channel. These connections constitute a topology graph with acceleration units as vertices and physical links as edges. The availability status information includes the health status of each acceleration unit, such as whether there are hardware faults, whether the temperature is too high, and whether the link is stable, ensuring that the hardware resources relied upon for subsequent scheduling decisions are truly available rather than in a sub-healthy or faulty state. Acquiring this two pieces of information forms the data foundation of the entire scheduling method, upgrading the scheduler from simply knowing "how many acceleration units there are" to knowing both "how acceleration units are connected" and "whether each acceleration unit is healthy and available." Here, acceleration units can be acceleration cards, etc.

[0018] Upon receiving a task scheduling request that requires a preset number of acceleration units, the system first performs a preliminary screening based on the availability status of each acceleration unit, eliminating unavailable or unhealthy units and retaining only those in good condition as candidate scheduling targets. Subsequently, from all available acceleration units on the current computing node, all combinations that meet the task's required quantity are enumerated; each combination is called a candidate resource combination. For example, if a node has 8 available acceleration units, and the current task requires 3, then the candidate resource combinations are all possible combinations of selecting 3 from the 8, and each combination is considered a candidate resource combination to be evaluated. This step shifts the scheduling decision from "which computing nodes to select" to "which specific acceleration units to select within the same computing node," laying the foundation for subsequent refined topology-aware evaluation.

[0019] For each candidate resource combination, two evaluation metrics are calculated. The first metric is the first evaluation value, which measures the degree of communication tightness between available acceleration units within the candidate resource combination. Specifically, if multiple pairs of acceleration units within the candidate resource combination have direct high-speed physical links, communication between these acceleration units does not require intermediate forwarding, resulting in low data transmission latency and high bandwidth, thus the first evaluation value of the combination is high. Conversely, if the acceleration units within the candidate resource combination lack direct links and communication must bypass the CPU or pass through a slow bus, the value is low. This metric directly reflects the efficiency potential of communication between multiple acceleration units within the task when the task is placed on the candidate resource combination. The second metric is the second evaluation value, which does not examine the current candidate resource combination itself but rather proactively assesses how much the topological connection structure between the remaining acceleration units on the current compute node would be disrupted compared to the original complete topology if the candidate resource combination were "removed" from the current compute node and allocated to the current task. In other words, it measures the degree of damage to the integrity of the remaining topology of the computing nodes caused by this allocation. If the selected acceleration unit happens to break up a tightly interconnected combination and the high-speed connection between the remaining acceleration units is greatly reduced, the second evaluation value is high, indicating severe damage. If the selected acceleration unit is located at the edge or in an isolated position of the interconnection structure and has little impact on the interconnection relationship of the remaining acceleration units, the value is low.

[0020] After obtaining the first and second evaluation values ​​for each candidate resource combination, a comprehensive evaluation function is used to weight and integrate the two to obtain the comprehensive score of the candidate solution. The basic design principle of this comprehensive score is: the higher the first evaluation value, the higher the comprehensive score, as a positive incentive; the higher the second evaluation value, the lower the comprehensive score, as a negative penalty. By adjusting the relative magnitudes of the two weight coefficients, operators can flexibly set optimization preferences according to the actual load characteristics of the cluster. For example, if the current cluster has a large number of multi-GPU tasks, the second evaluation value should be given a higher weight to prioritize protecting topology integrity and reserving resources for subsequent large tasks; if the cluster mainly consists of training tasks that are extremely sensitive to communication performance, the first evaluation value can be given a higher weight to prioritize ensuring the communication efficiency of the current task. Finally, among all candidate resource combinations, the one with the highest comprehensive score is selected as the target resource combination, and the current task is scheduled to be executed on the acceleration unit corresponding to that combination.

[0021] It is important to note that in actual deployment scenarios where the cluster contains multiple compute nodes, the scheduler does not mix the acceleration units of each compute node together to form a cross-node candidate resource combination. Instead, it follows a two-layer decision-making logic of "first enumerating within the node, then selecting the best across nodes": First, the scheduler performs a pre-selection and screening based on the number of acceleration units required by the task and the availability status information of the acceleration units within each compute node, retaining all candidate compute nodes that meet the preset number requirements; then, for each candidate compute node, the aforementioned candidate resource combination enumeration steps are performed independently to obtain the candidate resource combinations within that compute node; finally, the candidate resource combinations of all candidate compute nodes are gathered together and compared uniformly according to their respective comprehensive evaluation values, and the candidate resource combination with the highest global score is selected as the final target resource combination. In other words, each candidate resource combination is strictly derived from the set of acceleration units within the same computing node, ensuring that the communication tightness measured by the first evaluation value has a real physical topology basis (because there are no schedulable direct physical links between acceleration units across nodes). The scheduler achieves integrated joint optimization from computing node selection to candidate resource combination selection within computing nodes on a global scale by performing parallel traversal of all candidate computing nodes in the cluster and unified comparison across nodes. This maximizes the communication performance of the current task while minimizing the fragmentation damage to the remaining topology of each computing node.

[0022] By applying the technical solution of this embodiment, on the one hand, by calculating a first evaluation value to characterize the degree of communication tightness within candidate resource combinations, parallel tasks of multiple acceleration units are preferentially allocated to candidate resource combinations with tight physical interconnection during the scheduling decision stage. This effectively avoids tasks being allocated to candidate resource combinations that are cross-node or only connected through low-bandwidth links, significantly reducing communication latency among multiple acceleration units and significantly improving end-to-end execution efficiency for tasks such as distributed training. On the other hand, by calculating a second evaluation value to characterize the degree of loss of topology integrity of remaining acceleration units after a candidate resource combination is occupied, the scheduler synchronously evaluates the degree of damage to the original high-speed interconnection topology of the computing nodes caused by the allocation behavior, and preferentially selects the scheme with the least impact on the integrity of the remaining interconnection group. From a mechanism perspective, this actively suppresses the behavior of splitting a complete high-speed interconnection group and allocating it to multiple independent tasks, effectively avoiding the fragmentation of high-performance topology resources and reserving usable high-speed interconnection resources for high-bandwidth-demand tasks such as subsequent large model training. Therefore, this embodiment of the application improves the overall resource utilization and long-term throughput of the cluster while improving the performance of a single task.

[0023] Optionally, in this embodiment, the first evaluation value is calculated based on the following steps: obtaining the basic score value corresponding to each acceleration unit in the candidate resource combination, and accumulating all the basic score values ​​to obtain a basic sum; identifying acceleration unit pairs with directly connected physical links in the candidate resource combination according to the physical connection topology, and generating a corresponding reward score for each acceleration unit pair based on the basic score values ​​of the two acceleration units in the acceleration unit pair and a preset reward coefficient; accumulating all the reward scores to obtain a reward sum; and adding the basic sum to the reward sum to obtain the first evaluation value of the candidate resource combination.

[0024] In this embodiment, each acceleration unit within the candidate resource combination is pre-assigned a basic score. This basic score, or the acceleration unit's "basic value score," can be a uniformly preset fixed value (e.g., all acceleration units are scored 10 points), or it can be differentiated based on factors such as the acceleration unit's model, computing power specifications, or health status. Regardless of the value, the core function of this basic score is to provide a unified quantitative starting point for subsequent evaluation of interconnectivity within the combination. Subsequently, the basic scores of all acceleration units within the combination are simply summed to obtain a basic sum. This value essentially represents the minimum communication tightness benchmark value under the assumption that there is absolutely no interconnectivity between the acceleration units within the combination.

[0025] After completing the basic accumulation, the actual physical connections between acceleration units within the candidate resource combination are further examined. Specifically, based on the obtained physical connection topology, it is possible to identify which acceleration unit pairs within the combination have direct physical links. Direct physical links include, for example, NVLink direct connections between GPUs or high-bandwidth interconnects implemented via NVSwitch chips. These links allow for high-speed data transmission between two acceleration units without bypassing the CPU or a low-speed bus. For each identified acceleration unit pair with a direct link, a corresponding reward score is generated based on the basic score of each acceleration unit in the pair and a preset reward coefficient. The reward coefficient is typically much greater than 1 (e.g., 10), designed to amplify the contribution of interconnection to the final score, creating a significant score difference between "with interconnection" and "without interconnection."

[0026] Subsequently, the reward scores for all identified directly connected acceleration units are summed to obtain a cumulative reward sum. This value quantifies the total additional communication benefits brought by all directly connected relationships within the candidate resource combination; the more pairs of interconnections, the higher the cumulative reward sum; the fewer pairs of interconnections, the lower the cumulative reward sum. Finally, the basic cumulative sum is added to the cumulative reward sum, and the sum of the two is used as the first evaluation value of the candidate resource combination, thus reflecting both the individual value of the acceleration units within the combination and the interconnection topology value between the acceleration units within the combination in a single value.

[0027] In the embodiments of this application, the basic summation ensures that the more acceleration units in the combination or the higher the basic score of a single acceleration unit, the higher the baseline of the first evaluation value; while the reward summation further amplifies the scoring advantage of combinations with close internal interconnection, thereby accurately guiding the scheduler to prioritize combinations with optimal physical interconnection.

[0028] Optionally, in this embodiment, the second evaluation value is calculated based on the following steps: obtaining the original topology score value calculated by all available acceleration units within the computing node based on the physical connection topology; obtaining the first evaluation value corresponding to the candidate resource combination; determining the remaining resource combination corresponding to the remaining available acceleration units within the computing node that are not occupied after the candidate resource combination is occupied, and calculating the remaining topology score value corresponding to the remaining resource combination according to the physical connection topology; subtracting the first evaluation value and the remaining topology score value from the original topology score value to obtain the second evaluation value corresponding to the candidate resource combination.

[0029] In this embodiment, firstly, the original topology score of all available acceleration units within the computing node is measured as a complete system. Specifically, the complete topology set consisting of all available acceleration units within the current computing node can be scored using the same scoring logic as the calculation of the first evaluation value, namely, "the basic sum plus the reward sum of all directly connected links," to obtain an original topology score. This value represents the total communication potential contributed by all interconnections between all available acceleration units of the computing node, providing an absolute reference benchmark for subsequently measuring the topology loss caused by allocation behavior.

[0030] After establishing the initial topology score, the first evaluation value corresponding to the candidate resource combination is obtained, which has already been calculated in the preceding steps. This value represents the degree of communication density within the candidate resource combination itself, i.e., the beneficial topology value that this scheduling task can obtain. By separating the first evaluation value of the candidate resource combination from the initial topology score, the initial topology score is decomposed into two parts: the topology value taken by the selected combination, and the topology value retained by the remaining part of the unselected combination. This decomposition provides a mathematical basis for subsequent quantification of which candidate resource combination is better.

[0031] Next, the remaining resource combination, consisting of all other available acceleration units within the compute node that were not allocated after the candidate resource combination was occupied, is calculated. Similarly, following the same scoring logic as the first evaluation value, the topology within the remaining resource combination is scored to obtain a remaining topology score. This value represents the topology value corresponding to the interconnections that remain between the remaining available acceleration units after the allocation, i.e., the residual topology value still held by the cluster after this allocation.

[0032] After obtaining the original topology score, the first evaluation score of the candidate resource combination, and the remaining topology score, the first evaluation score is subtracted from the original topology score, and then the remaining topology score is subtracted. The difference is used as the second evaluation score for the candidate resource combination. This difference precisely quantifies the topology value loss corresponding to the portion of the acceleration unit interconnection that was severed due to this allocation behavior. The larger this difference, the more severe the damage to the original topology structure of the computing nodes caused by the allocation behavior of the candidate resource combination; the smaller the difference, the better the integrity of the original topology is preserved by the allocation behavior.

[0033] The embodiments of this application enable the scheduler to weigh the damage to the future carrying capacity of the cluster with precise numerical quantification of costs rather than empirical judgment while pursuing the communication quality of the current task, thereby achieving true multi-objective optimized scheduling.

[0034] Optionally, in this embodiment of the application, step 104, "to comprehensively evaluate each candidate resource combination based on the first evaluation value and the second evaluation value, and determine the candidate resource combination with the optimal comprehensive evaluation result as the target resource combination," includes: for each candidate resource combination, calculating a comprehensive evaluation value corresponding to the candidate resource combination based on a preset first weight coefficient, a preset second weight coefficient, a first evaluation value corresponding to the candidate resource combination, and a second evaluation value; the comprehensive evaluation value is positively correlated with the first evaluation value and negatively correlated with the second evaluation value; comparing the comprehensive evaluation values ​​corresponding to each candidate resource combination, and determining the candidate resource combination with the highest comprehensive evaluation value as the target resource combination.

[0035] In this embodiment, firstly, a comprehensive evaluation value is calculated for each candidate resource combination. This value depends on both the first and second evaluation values ​​corresponding to the combination, as well as two preset weighting coefficients. The first weighting coefficient is assigned to the first evaluation value, and the second weighting coefficient is assigned to the second evaluation value. The calculation rule for the comprehensive evaluation value is to mathematically ensure a positive correlation between the comprehensive evaluation value and the first evaluation value (i.e., the higher the first evaluation value, the higher the comprehensive evaluation value), and a negative correlation with the second evaluation value (i.e., the higher the second evaluation value, the lower the comprehensive evaluation value). Through this positive and negative correlation design, this embodiment expresses two optimization objectives simultaneously in a single comprehensive evaluation value: on the one hand, it encourages the scheduler to select candidate resource combinations with close internal communication to improve the performance of the current task; on the other hand, it constrains the scheduler to avoid selecting candidate resource combinations that severely damage the remaining topology to protect future cluster resources.

[0036] In practical implementation, the values ​​of the first and second weighting coefficients can be flexibly configured according to the actual load characteristics and operation and maintenance strategies of the cluster. For example, if a large number of multi-acceleration unit training tasks are submitted intensively in the current cluster, and the system administrator wants to prioritize protecting the integrity of the cluster's high-speed interconnect topology to support subsequent large tasks, the second weighting coefficient can be increased to make the inhibitory effect of the second evaluation value on the comprehensive evaluation value more significant. Conversely, if the current cluster mainly consists of tasks that are extremely sensitive to communication performance, and the expected future load is low, the first weighting coefficient can be increased to make the positive incentive effect of the first evaluation value more prominent. This configurable weight design allows the scheduling strategy of this application embodiment to adapt to the differentiated needs of different clusters and different business scenarios, rather than a fixed scoring logic.

[0037] After calculating the comprehensive evaluation value of each candidate resource combination, the candidate resource combination with the highest comprehensive evaluation value is determined as the target resource combination through comparison. This ensures that the current task is assigned to the best available candidate resource combination, and also minimizes the impact of this allocation behavior on the future resource carrying capacity of the cluster among all possible solutions.

[0038] This application's embodiments unify two potentially conflicting objectives—"current task performance" and "future resource protection"—into a single comprehensive evaluation value, enabling scheduling decisions to automatically obtain the globally optimal solution through simple numerical comparisons. Simultaneously, the two weighting coefficients provide operations and maintenance personnel with clear policy adjustment methods. Without modifying the scheduler's core code, a smooth switch from performance-first to topology protection-first priorities can be achieved by adjusting the weight values, significantly improving the scheduling system's adaptability to different business scenarios and its operational flexibility.

[0039] In this embodiment of the application, optionally, the basic score value corresponding to each acceleration unit within the candidate resource combination is determined based on the following steps: obtaining the hardware specification parameters of each acceleration unit within the candidate resource combination; the hardware specification parameters are used to characterize the single-card computing capability of the acceleration unit; obtaining the link bandwidth capability parameters of each acceleration unit within the candidate resource combination; the link bandwidth capability parameters are used to characterize the inter-chip interconnect bandwidth level supported by the acceleration unit; mapping the hardware specification parameters of each acceleration unit to the corresponding basic score value according to a preset mapping relationship between hardware specifications and basic score values; and mapping the link bandwidth capability parameters of each acceleration unit to the corresponding bandwidth weight coefficient according to a preset mapping relationship between bandwidth level and weight coefficient; and weighting and correcting the basic score value corresponding to each acceleration unit according to the bandwidth weight coefficient corresponding to each acceleration unit, and using the corrected basic score value as the basic score value corresponding to each acceleration unit.

[0040] In this embodiment, firstly, the hardware specifications of each acceleration unit within the candidate resource combination are obtained. These specifications specifically characterize the single-card computing power of the acceleration unit, such as its model, number of cores, clock speed, memory capacity, or computing power level. These hardware specifications directly determine the upper limit of the original computing power of the acceleration unit when performing deep learning training or scientific computing tasks. Acceleration units with higher specifications can provide stronger computing performance under the same conditions. Obtaining these parameters provides a raw data source reflecting the single-card hardware capabilities for subsequent quantitative scoring.

[0041] In addition to hardware specifications, the link bandwidth capability of each acceleration unit is also obtained. This parameter specifically characterizes the inter-chip interconnect bandwidth level supported by that acceleration unit. Link bandwidth capability refers to the theoretical upper limit of the transmission rate that the acceleration unit can achieve when communicating with another acceleration unit, such as supporting proprietary interconnect protocols like PCIe 4.0, PCIe 5.0, NVLink, or higher bandwidth protocols. This parameter determines whether the acceleration unit has sufficient path width to support high-speed data exchange in multi-GPU parallel communication scenarios. Even if an acceleration unit has strong computing power, if its supported link bandwidth is low, it may still fail to fully realize its computing potential when multiple acceleration units work together due to communication bottlenecks.

[0042] After obtaining the two types of parameters mentioned above, two independent mapping operations are performed. The first mapping converts the hardware specification parameters of each acceleration unit into a quantified base score value based on a preset correspondence between hardware specifications and base score values. The core mapping principle is that higher single-card computing power corresponds to a higher base score value, thus giving high-performance acceleration units a natural advantage in the scoring. The second mapping converts the link bandwidth capability parameters of each acceleration unit into a bandwidth weight coefficient based on a preset correspondence between bandwidth levels and weight coefficients. The core mapping principle is that higher supported inter-chip interconnect bandwidth levels correspond to larger bandwidth weight coefficients, thus allowing acceleration units supporting high-speed interconnects to obtain higher weight amplification factors. These two mappings are independent and do not interfere with each other, each completing the quantization conversion of one type of hardware characteristic.

[0043] After the aforementioned two mapping steps are completed, a final weighted adjustment operation is performed: for each acceleration unit, its basic score obtained through hardware specification mapping is multiplied by the bandwidth weight coefficient obtained through link bandwidth capability mapping, and the product is used as the final basic score of that acceleration unit. This is done because an acceleration unit with powerful computing power but only supporting low-speed interconnects will have its basic score reduced by a lower bandwidth weight coefficient, thus no longer having an absolute advantage in the evaluation of multiple acceleration unit combinations; while an acceleration unit with equally powerful computing power and supporting high-speed interconnects will have its basic score amplified by a higher bandwidth weight coefficient, thus obtaining a higher weight in the evaluation.

[0044] This application embodiment quantifies two independent dimensions: the computing power of a single acceleration unit and the interconnect bandwidth capability. This allows the basic score to accurately reflect the actual comprehensive usable capability of each acceleration unit in a heterogeneous cluster environment, effectively avoiding misjudgments such as overuse of high-performance acceleration units due to interconnect shortcomings or underestimation of low-performance acceleration units due to interconnect advantages. Furthermore, since both types of mapping relationships are preset configurations, the mapping table can be flexibly adjusted according to the actual hardware composition of the cluster. This allows for adaptation to performance differences of acceleration units from different manufacturers and generations without modifying the scheduler's core logic, significantly improving the scheduling system's adaptability and continuous evolution capabilities in heterogeneous hardware environments.

[0045] In this embodiment of the application, optionally, the physical connection topology is represented by graph structure data; the vertices in the graph structure data correspond to a single acceleration unit within the computing node, and the edges in the graph structure data correspond to a direct physical communication link between any two acceleration units; the direct physical communication link includes a direct connection channel based on a high-speed interconnect protocol, a channel interconnected via a switching chip, or a direct connection channel based on a peripheral component fast interconnect bus.

[0046] In this embodiment, the physical connection topology between all acceleration units within a computing node is first abstracted into a graph structure data. Graph structure data is a standardized mathematical model used in computer science to represent relationships between objects. It consists of two basic elements: "vertices" and "edges," and can clearly and accurately describe connection relationships of arbitrarily complex levels. By mapping the physical topology to graph structure data, the connection relationships between acceleration units, which were originally invisible to the naked eye at the hardware level, are transformed into structured information that can be read, traversed, and computed by computer programs, providing a standardized data input format for subsequent processing by the scheduling algorithm.

[0047] In this graph structure, each vertex corresponds to an acceleration unit within the computing node. At the same time, the vertex itself can be associated with attribute information, such as the health status and basic score of the acceleration unit, which further enhances the expressive power of the graph and enables it to carry both structural and attribute information.

[0048] In this graph structure, an edge corresponds to a direct physical communication link between any two acceleration units. In graph theory, an edge connects two vertices, indicating a direct relationship between them. In this embodiment, it represents a physical channel between two acceleration units that allows direct data communication without going through other acceleration units or the CPU. The presence or absence of an edge directly determines whether an acceleration unit can obtain interconnection reward points. An edge indicates that the two acceleration units are interconnected and can obtain interconnection reward points; no edge indicates that the two acceleration units are isolated and cannot obtain interconnection reward points. This allows hardware-level connectivity to be accurately translated into algorithm-level scoring criteria.

[0049] Furthermore, direct physical communication links can include three typical scenarios: First, direct channels based on high-speed interconnect protocols, such as NVIDIA's NVLink technology, which can establish ultra-high-speed point-to-point communication channels between two GPUs; second, channels interconnected via switching chips, such as multi-acceleration unit full interconnect topologies implemented through NVSwitch chips, where any two acceleration units can achieve equivalent direct communication through the switching chip; and third, direct channels based on the PCIe peripheral component fast interconnect bus, which is currently the most common hardware interconnect standard. By listing these three types of links, it is ensured that regardless of the hardware interconnect technology used in the cluster, it can be incorporated into the representation framework of graph-structured data.

[0050] This application's embodiments transform complex hardware physical topologies into standardized graph-structured data representations. This enables scheduling algorithms to handle accelerator card clusters from different manufacturers and using different interconnect technologies in a unified manner, eliminating the need to develop separate data acquisition and parsing logic for each hardware configuration. Furthermore, the graph-structured data possesses excellent scalability; adding new acceleration units only requires adding corresponding vertices and edges to the graph, without needing to reconstruct the overall data structure. This allows for adaptation to dynamic changes in cluster size, providing a solid data foundation for the long-term operation and maintenance of large-scale heterogeneous clusters.

[0051] Optionally, in this embodiment, the method is applied to a container orchestration system; the resource management side is a device management component deployed on each computing node of the container orchestration system. The device management component is used to discover acceleration units within the computing node, detect the physical connection topology, monitor the availability status information, and report the physical connection topology and the availability status information to the control plane of the container orchestration system; the physical connection topology and the availability status information are stored by the control plane in the metadata of the corresponding computing node; the method is executed by a scheduling plugin integrated in the scheduler of the container orchestration system, and the scheduling plugin is invoked in the optimization phase of the scheduler to determine the target resource combination.

[0052] In this embodiment, the aforementioned hardware topology-aware accelerated resource scheduling method can be applied to the specific software runtime environment of a container orchestration system. A container orchestration system, represented by Kubernetes, is a foundational software platform used for the automated deployment, management, and scaling of containerized applications. One of its core capabilities is the integration of heterogeneous hardware resources (such as GPUs and NPUs) into a unified resource scheduling and management system. In this environment, this embodiment can leverage the existing resource management framework and scheduling mechanism of the container orchestration system to enhance its functionality in a plug-in manner, without needing to build a complete resource management and task scheduling system from scratch. This significantly reduces the deployment threshold and integration costs with existing cloud-native technology stacks.

[0053] In this container orchestration system, resource management can be specifically implemented as a device management component deployed on each compute node. This device management component, corresponding to a device plugin in the Kubernetes ecosystem, is a software module running on each node, specifically responsible for interacting with the physical hardware on that node. This device management component undertakes three core responsibilities: first, discovering acceleration units within the compute node, for example, by calling the underlying hardware driver to obtain which physical accelerator cards are inserted into the compute node; second, probing the physical connection topology, i.e., obtaining the physical links connecting each acceleration unit by reading the hardware interconnect status register or calling the topology query interface provided by the vendor; and third, monitoring availability status information, i.e., continuously monitoring the operating status of each acceleration unit, including whether there are hardware failures, whether the temperature is too high, and whether the link is stable. By centralizing these three responsibilities in the device management component, this embodiment achieves automated collection of topology and status information, eliminating the need for manual input or maintenance by operations and maintenance personnel.

[0054] After completing the aforementioned information collection, the device management component can transmit the physical connection topology and availability status information to the control plane of the container orchestration system. The control plane refers to the set of core service components in the container orchestration system responsible for maintaining cluster status and processing resource scheduling requests; in Kubernetes, this specifically corresponds to the API Server, scheduler, and controller manager. The physical connection topology and availability status information are stored by the control plane in the metadata of the corresponding compute nodes. Metadata refers to descriptive attribute information attached to node resources; in Kubernetes, this corresponds to NodeAnnotation. Unlike node status (such as CPU / memory capacity), it does not participate in basic resource quantity scheduling judgments, but it can be read by the scheduler or other components through interfaces. By storing the physical connection topology and availability status information in metadata instead of modifying the resource count field, this embodiment enhances topology awareness without disrupting the original resource management data model of the container orchestration system, ensuring compatibility with the native system.

[0055] Furthermore, the scheduling decision method in this embodiment does not run independently outside the container orchestration system, but is specifically executed by a scheduling plugin integrated into the scheduler. A scheduling plugin refers to an extensible functional module reserved in the scheduler framework of a container orchestration system. Developers can write custom logic according to the interface specifications agreed upon by the framework and register it into the scheduler's execution flow. This scheduling plugin is invoked during the scheduler's optimization phase to determine the target resource combination. The optimization phase refers to one stage in the multi-stage process the scheduler undergoes when executing a scheduling decision. This process typically consists of a pre-selection phase (screening candidate resource combinations that meet basic resource requirements) and an optimization phase (scoring and ranking the pre-selected candidate resource combinations and selecting the target resource combination). By injecting the topology-aware scoring logic of this embodiment into the optimization phase, there is no need to modify the scheduler's pre-selection logic and node selection criteria. Only the dual-dimensional scoring model of this embodiment (the calculation model for the first and second scoring values) is superimposed in the final optimization phase, enabling the scheduling decision to gain topology awareness while remaining fully compatible with the native scheduling process.

[0056] This application embodiment allows for smooth deployment without modifying the core code of the container orchestration system, ensuring the normal operation of existing tasks and eliminating the need for maintenance personnel to learn new management tools. Furthermore, this solution boasts excellent portability; it supports various acceleration units such as GPUs and NPUs, as well as interconnect technologies like NVLink and PCIe, all through adaptation to corresponding device management components, providing a universal technical framework for unified scheduling and management in heterogeneous hardware environments.

[0057] Furthermore, as a refinement and extension of the specific implementation of the above embodiments, in order to fully illustrate the specific implementation process of this embodiment, another hardware topology-aware accelerated resource scheduling method is provided, which includes: First, enhancements to device discovery and resource registration: In existing technologies, the device management component is only responsible for discovering and reporting the number of acceleration units. This application extends this significantly by requiring the device management component to additionally acquire and report the following two types of key information during the resource registration phase: 1. Physical Connection Topology: The device management component probes the physical connection topology between all acceleration units (such as NPU / GPU) within a compute node by calling the underlying hardware driver interface. These relationships constitute a topology graph, where nodes represent acceleration units and edges represent high-speed physical links between acceleration units. This topology information can be encapsulated and reported in a structured format that can be parsed by the scheduler (e.g., adjacency list, edge list, or weighted graph).

[0058] 2. Available Status Information: The device management component can monitor the health status of each acceleration unit in real time (such as temperature, error count, link stability, etc.) and report the "healthy" or "sub-healthy / faulty" status as a schedulable attribute of the acceleration unit.

[0059] Second, enhanced scheduling decisions and binding: In the Kubernetes scheduler's selection phase, this application introduces a custom scheduler plugin. Based on the physical connection topology and availability information reported by the nodes, this plugin calculates the merits of various possible combinations of allocating a specified number of acceleration units on each candidate compute node that can meet the Pod's resource requirements, evaluates the merits of allocating a specified number of acceleration units on that node, and provides a comprehensive score.

[0060] 1. First score: For any candidate resource combination A consisting of a preset number of acceleration units (A is a subset of V, where V refers to the set of all available acceleration units on the compute node), its first score value, Score_topo(A), is used to quantify the tightness of the interconnection between the acceleration units within the candidate resource combination. The calculation rules are as follows: Each acceleration unit vi contributes its base score value S_base(vi).

[0061] For each pair of directly interconnected acceleration units (vi, vj) within candidate resource combination A (i.e., there exists an edge e(vi,vj)), an additional score (i.e., a reward score) is awarded. The score is the product of S_base(vi) and S_base(vj) and then multiplied by a reward coefficient λ (usually λ=10).

[0062] The first score value of this candidate resource combination, Score_topo(A), is the sum of the base score value of all acceleration units and all bonus scores.

[0063] 2. Second scoring value: Original topology score (Score_pre): Defined as the score of the complete topology graph V of the nodes, i.e., Score_pre = Score_topo(V).

[0064] Score_alloc: For a task requesting n acceleration units, a specific allocation scheme (e.g., candidate resource combination A, with |A|=n acceleration units) is selected on the compute nodes, and its score is Score_alloc(A) = Score_topo(A). This score measures the interconnect quality within the allocated candidate resource combination.

[0065] Remaining topology score (Score_remain): After allocating candidate resource combination A, the remaining available acceleration units, R = V - A, have a remaining topology score of Score_remain(R) = Score_topo(R).

[0066] The second score (Score_loss) is defined as Score_loss(A) = Score_pre - Score_alloc(A) - Score_remain(R). This value reflects the value lost due to the disruption of the original interconnections across the allocated set and the remainder set caused by allocation scheme A. An ideal allocation should minimize Score_loss.

[0067] 3. Scheduling scoring formula and decision-making objective: For each feasible candidate resource combination A on the candidate computing node, the following comprehensive scoring formula is used for evaluation: Overall evaluation value: Score_final(A) = W_alloc×Score_alloc(A) - W_loss×Score_loss(A); Here, W_alloc and W_loss are configurable weighting coefficients, used to emphasize the importance of interconnections within candidate resource combinations and to penalize disruptions to the original topology, respectively.

[0068] The scheduler's decision objective is to iterate through all possible combinations A of n acceleration units that meet the health requirements across all candidate computing nodes, and select the computing node and its corresponding candidate resource combination that results in the highest Score_final(A). This objective achieves a dual optimization: 1. Maximize task performance: By maximizing Score_alloc(A), tasks are preferentially allocated to the best candidate resource combination of internal interconnects, reducing communication latency and improving parallel efficiency.

[0069] 2. Maximize long-term cluster resource utilization: By minimizing Score_loss(A), maintain the high-speed interconnect integrity between the remaining acceleration units of the nodes as much as possible, and reserve high-quality topology resources for subsequent multi-acceleration unit tasks.

[0070] In one specific embodiment, the acceleration unit is an acceleration card, to... Figure 2 The graph structure data representing the physical connection topology is shown as an example (assuming 10 accelerator cards: S1 and S10 are independent; (S2, S3, S4, S5) are fully interconnected; (S6, S7, S8, S9) are fully interconnected; all accelerator cards are healthy, S_base=10, λ=1, weight W_alloc=10, W_loss=1). A task requests 3 accelerator cards.

[0071] Option 1 (Assign {S5, S10} and another arbitrary independent card, such as S1): Score_alloc = Score_topo({S1, S5, S10}). Since the three cards are not interconnected, the score is simply the sum of the base scores of the three cards: 10 + 10 + 10 = 30.

[0072] This allocation does not take a card from any interconnect group, so it does not disrupt the original topology, and Score_loss = 0.

[0073] Score_final = 10×30 - 1×0 = 300.

[0074] Option 2 (allocating {S6, S7, S8}): Score_alloc = Score_topo({S6, S7, S8}). With all three cards fully interconnected, the score is: base score (10+10+10)=30, plus bonus points for the three interconnected edges (10×10 + 10×10 + 10×10)=300, for a total of 330.

[0075] The original score of the subgraph (S6,S7,S8,S9) is 600. After allocation, the score of the remaining subgraph {S9} is 10.

[0076] Score_loss = 600-330-10 = 260.

[0077] Score_final = 10×330 - 1×260 = 3040.

[0078] Option 3 (allocating {S2, S3, S6}): Score_alloc = Score_topo({S2, S3, S6}). S2 and S3 are interconnected, while S6 is not interconnected with either of them. The score is: a base score of 30, plus a bonus score of (10 × 10) = 100 for each interconnected edge, for a total of 130.

[0079] This allocation, which takes a portion of cards from each of the two interconnection groups, severely disrupts the original topology, resulting in a high Score_loss (details omitted).

[0080] Score_final will be significantly lower than Score 2.

[0081] The comparison shows that the final score of Scheme 2 (3040) is much higher than that of Scheme 1 (300). Therefore, the scheduler will choose Scheme 2, which means scheduling the Pod to the three fully interconnected cards S6, S7, and S8. This ensures that the task obtains the highest internal communication bandwidth, while allowing the remaining S9 card to still be used as an independent resource for subsequent smaller tasks, and the disruption to the high-performance interconnect group (S6, S7, S8, S9) is relatively minimal (only a tight subset is moved out, rather than being broken up).

[0082] This application embodiment forms a complete solution through the enhanced device management components and integrated topology-aware intelligent scheduling plugin described above. It upgrades the Kubernetes scheduler from blind scheduling that can only perform "quantity matching" to intelligent scheduling that understands hardware interconnect topology and performs "quality optimization." This application embodiment significantly improves the operational efficiency of distributed computing tasks that require accelerated inter-unit communication and the sustainable utilization of overall cluster resources.

[0083] Furthermore, as Figure 1 In terms of specific implementation, this application provides a hardware topology-aware accelerated resource scheduling device, such as... Figure 3 As shown, the device includes: The data acquisition module is used to acquire the physical connection topology between multiple acceleration units within a computing node and the availability status information of each acceleration unit, as reported by the resource management side. The resource combination determination module is used to respond to a task scheduling request that requires the use of a preset number of acceleration units, determine available acceleration units based on the availability status information of each acceleration unit, and determine at least one candidate resource combination that meets the preset number requirement based on the available acceleration units. The calculation module is used to calculate a first evaluation value and a second evaluation value corresponding to each candidate resource combination according to the physical connection topology relationship. The first evaluation value is used to characterize the degree of communication tightness between each acceleration unit within the candidate resource combination based on the physical connection topology relationship. The second evaluation value is used to characterize the degree of integrity loss of the topology connection structure between the remaining unoccupied acceleration units within the computing node after the candidate resource combination is occupied, compared with the original topology connection structure. The scheduling module is used to comprehensively evaluate each candidate resource combination based on the first evaluation value and the second evaluation value, determine the candidate resource combination with the best comprehensive evaluation result as the target resource combination, and schedule the task corresponding to the task scheduling request to the acceleration unit included in the target resource combination.

[0084] Optionally, the computing module is used for: Obtain the basic score value corresponding to each acceleration unit within the candidate resource combination, and sum all the basic score values ​​to obtain the basic sum. Based on the physical connection topology, identify acceleration unit pairs with directly connected physical links within the candidate resource combination. For each acceleration unit pair, generate a corresponding reward score based on the basic score values ​​of the two acceleration units in the acceleration unit pair and the preset reward coefficient. Add up all the reward points to get the total reward sum; The sum of the base sum and the sum of the rewards are added together to obtain the first evaluation value of the candidate resource combination.

[0085] Optionally, the computing module is further configured to: Obtain the original topology score values ​​calculated by all available acceleration units within the computing node based on the physical connection topology; Obtain the first evaluation value corresponding to the candidate resource combination; After determining that the candidate resource combination is occupied, the remaining resource combination corresponding to the remaining available acceleration units that are not occupied within the computing node is determined, and the remaining topology score value corresponding to the remaining resource combination is calculated according to the physical connection topology relationship. Subtracting the first evaluation value and the remaining topology score from the original topology score value yields the second evaluation value corresponding to the candidate resource combination.

[0086] Optionally, the scheduling module is used to: For each candidate resource combination, a comprehensive evaluation value is calculated based on a preset first weighting coefficient, a preset second weighting coefficient, a first evaluation value corresponding to the candidate resource combination, and a second evaluation value; the comprehensive evaluation value is positively correlated with the first evaluation value and negatively correlated with the second evaluation value. By comparing the comprehensive evaluation values ​​corresponding to each of the candidate resource combinations, the candidate resource combination with the highest comprehensive evaluation value is determined as the target resource combination.

[0087] Optionally, the computing module is further configured to: Obtain the hardware specifications of each acceleration unit within the candidate resource combination; the hardware specifications are used to characterize the single-card computing capability of the acceleration unit. Obtain the link bandwidth capability parameters of each acceleration unit within the candidate resource combination; the link bandwidth capability parameters are used to characterize the inter-chip interconnect bandwidth level supported by the acceleration unit. Based on the preset mapping relationship between hardware specifications and basic score values, the hardware specification parameters of each acceleration unit are mapped to the corresponding basic score values; and based on the preset mapping relationship between bandwidth levels and weight coefficients, the link bandwidth capability parameters of each acceleration unit are mapped to the corresponding bandwidth weight coefficients. Based on the bandwidth weight coefficient corresponding to each acceleration unit, the corresponding basic score value is weighted and corrected, and the corrected basic score value is used as the basic score value corresponding to each acceleration unit.

[0088] Optionally, the physical connection topology is represented by graph structure data; the vertices in the graph structure data correspond to a single acceleration unit within the computing node, and the edges in the graph structure data correspond to a direct physical communication link between any two acceleration units; the direct physical communication link includes a direct connection channel based on a high-speed interconnect protocol, a channel interconnected via a switching chip, or a direct connection channel based on a peripheral component fast interconnect bus.

[0089] Optionally, the device is applied to a container orchestration system; The resource management side is a device management component deployed on each computing node of the container orchestration system. The device management component is used to discover acceleration units within the computing node, detect the physical connection topology, monitor the availability status information, and report the physical connection topology and availability status information to the control plane of the container orchestration system. The physical connection topology and the available status information are stored by the control plane in the metadata of the corresponding computing node; The device is configured in a scheduling plugin integrated into the scheduler of the container orchestration system, and the scheduling plugin is invoked during the selection phase of the scheduler to determine the target resource combination.

[0090] It should be noted that other corresponding descriptions of the functional units involved in the hardware topology-aware accelerated resource scheduling device provided in this application embodiment can be found in the following references. Figures 1 to 2 The corresponding descriptions in the method will not be repeated here.

[0091] This application also provides a computer device, which may specifically be a personal computer, a server, a network device, etc. Figure 4 As shown, the computer device includes a bus, a processor, memory, and a communication interface, and may also include an input / output interface and a display device. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The database stores location information. The network interface allows communication with external terminals via a network connection. When the computer program is executed by the processor, it implements the steps in the various method embodiments.

[0092] Those skilled in the art will understand that Figure 4 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0093] In one embodiment, a computer-readable storage medium is provided, which may be non-volatile or volatile, having stored thereon a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0094] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0095] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0096] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0097] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0098] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A hardware topology-aware accelerated resource scheduling method, characterized in that, include: Obtain the physical connection topology between multiple acceleration units within a computing node and the availability status information of each acceleration unit, as reported by the resource management side. In response to a task scheduling request that requires the use of a preset number of acceleration units, available acceleration units are determined based on the availability status information of each acceleration unit, and at least one candidate resource combination that meets the preset number requirement is determined based on the available acceleration units. Based on the physical connection topology, a first evaluation value and a second evaluation value are calculated for each candidate resource combination. The first evaluation value is used to characterize the degree of communication tightness between each acceleration unit within the candidate resource combination based on the physical connection topology. The second evaluation value is used to characterize the degree of integrity loss of the topology connection structure between the remaining unoccupied acceleration units within the computing node after the candidate resource combination is occupied, compared to the original topology connection structure. Based on the first evaluation value and the second evaluation value, each candidate resource combination is comprehensively evaluated, and the candidate resource combination with the best comprehensive evaluation result is determined as the target resource combination. The task corresponding to the task scheduling request is then scheduled to the acceleration unit contained in the target resource combination.

2. The method according to claim 1, characterized in that, The first evaluation value is calculated based on the following steps: Obtain the basic score value corresponding to each acceleration unit within the candidate resource combination, and sum all the basic score values ​​to obtain the basic sum. Based on the physical connection topology, identify acceleration unit pairs with directly connected physical links within the candidate resource combination. For each acceleration unit pair, generate a corresponding reward score based on the basic score values ​​of the two acceleration units in the acceleration unit pair and the preset reward coefficient. Add up all the reward points to get the total reward sum; The sum of the base sum and the sum of the rewards are added together to obtain the first evaluation value of the candidate resource combination.

3. The method according to claim 1, characterized in that, The second evaluation value is calculated based on the following steps: Obtain the original topology score values ​​calculated by all available acceleration units within the computing node based on the physical connection topology; Obtain the first evaluation value corresponding to the candidate resource combination; After determining that the candidate resource combination is occupied, the remaining resource combination corresponding to the remaining available acceleration units that are not occupied within the computing node is determined, and the remaining topology score value corresponding to the remaining resource combination is calculated according to the physical connection topology relationship. Subtracting the first evaluation value and the remaining topology score from the original topology score value yields the second evaluation value corresponding to the candidate resource combination.

4. The method according to claim 1, characterized in that, The step of comprehensively evaluating each candidate resource combination based on the first evaluation value and the second evaluation value, and determining the candidate resource combination with the optimal comprehensive evaluation result as the target resource combination, includes: For each candidate resource combination, a comprehensive evaluation value is calculated based on a preset first weighting coefficient, a preset second weighting coefficient, a first evaluation value corresponding to the candidate resource combination, and a second evaluation value; the comprehensive evaluation value is positively correlated with the first evaluation value and negatively correlated with the second evaluation value. Compare the comprehensive evaluation values ​​corresponding to each of the candidate resource combinations, and determine the candidate resource combination with the highest comprehensive evaluation value as the target resource combination.

5. The method according to claim 2, characterized in that, The basic score value corresponding to each acceleration unit within the candidate resource combination is determined based on the following steps: Obtain the hardware specifications of each acceleration unit within the candidate resource combination; the hardware specifications are used to characterize the single-card computing capability of the acceleration unit. Obtain the link bandwidth capability parameters of each acceleration unit within the candidate resource combination; the link bandwidth capability parameters are used to characterize the inter-chip interconnect bandwidth level supported by the acceleration unit. Based on the preset mapping relationship between hardware specifications and basic score values, the hardware specification parameters of each acceleration unit are mapped to the corresponding basic score values; and based on the preset mapping relationship between bandwidth levels and weight coefficients, the link bandwidth capability parameters of each acceleration unit are mapped to the corresponding bandwidth weight coefficients. Based on the bandwidth weight coefficient corresponding to each acceleration unit, the corresponding basic score value is weighted and corrected, and the corrected basic score value is used as the basic score value corresponding to each acceleration unit.

6. The method according to claim 1, characterized in that, The physical connection topology is represented by graph structure data; the vertices in the graph structure data correspond to a single acceleration unit within the computing node, and the edges in the graph structure data correspond to a direct physical communication link between any two acceleration units; the direct physical communication link includes a direct connection channel based on a high-speed interconnect protocol, a channel interconnected via a switching chip, or a direct connection channel based on a peripheral component fast interconnect bus.

7. The method according to claim 1, characterized in that, The method is applied to container orchestration systems; The resource management side is a device management component deployed on each computing node of the container orchestration system. The device management component is used to discover acceleration units within the computing node, detect the physical connection topology, monitor the availability status information, and report the physical connection topology and availability status information to the control plane of the container orchestration system. The physical connection topology and the available status information are stored by the control plane in the metadata of the corresponding computing node; The method is executed by a scheduling plugin integrated into the scheduler of the container orchestration system, which is invoked during the selection phase of the scheduler to determine the target resource combination.

8. A hardware topology-aware accelerated resource scheduling device, characterized in that, include: The data acquisition module is used to acquire the physical connection topology between multiple acceleration units within a computing node and the availability status information of each acceleration unit, as reported by the resource management side. The resource combination determination module is used to respond to a task scheduling request that requires the use of a preset number of acceleration units, determine available acceleration units based on the availability status information of each acceleration unit, and determine at least one candidate resource combination that meets the preset number requirement based on the available acceleration units. The calculation module is used to calculate a first evaluation value and a second evaluation value corresponding to each candidate resource combination according to the physical connection topology relationship. The first evaluation value is used to characterize the degree of communication tightness between each acceleration unit within the candidate resource combination based on the physical connection topology relationship. The second evaluation value is used to characterize the degree of integrity loss of the topology connection structure between the remaining unoccupied acceleration units within the computing node after the candidate resource combination is occupied, compared with the original topology connection structure. The scheduling module is used to comprehensively evaluate each candidate resource combination based on the first evaluation value and the second evaluation value, determine the candidate resource combination with the best comprehensive evaluation result as the target resource combination, and schedule the task corresponding to the task scheduling request to the acceleration unit included in the target resource combination.

9. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1 to 7.

10. A computer device, comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method of any one of claims 1 to 7.