Heterogeneous resource scheduling method and system fusing hierarchical physical topology, and electronic device
By implementing a three-level coordinated scheduling system involving the data center, server rack, and server, and evaluating the GPU power consumption ratio, the system addresses the issues of unbalanced load and energy waste in existing technologies. This enables efficient heterogeneous resource scheduling and cross-level overload detection, ensuring system stability and availability.
Patent Information
- Application Number
- CN202611134818.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-29
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies lack a unified scheduling mechanism that is aware of multi-level physical topology, which cannot accurately reflect GPU load. They also lack cross-level overload detection and linkage alarms, and the allocation of computing resources and power load optimization are independent, resulting in unbalanced load and energy waste.
It adopts a three-level linkage scheduling of data center-rack-server, uses GPU power consumption ratio to replace the traditional GPU utilization index, and combines cross-level overload detection and alarm linkage to dynamically adjust the scoring weight of CPU and GPU, so as to achieve accurate matching of task type awareness and multi-level fallback mechanism.
It achieves load balancing at the data center, rack, and server levels, improves the accuracy of load assessment, avoids overload and energy waste, and ensures the availability and accuracy of scheduling.
Smart Images

Figure CN123157353A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a heterogeneous resource scheduling method, in particular to a heterogeneous resource scheduling method that integrates hierarchical physical topology, a system, and an electronic device. Background Art
[0002] With the rapid development of high-computing-demand scenarios such as large language model inference services and AI inference clusters, the power consumption density of a single cabinet has risen from the traditional 3~8kW to 20~100kW or even higher, making power consumption management a key factor restricting system stability and energy efficiency. Current mainstream heterogeneous computing power scheduling solutions generally have the following core problems.
[0003] First, there is a lack of a unified scheduling mechanism with multi-level physical topology awareness. Existing solutions mostly treat all computing nodes as a flat resource pool, ignoring the physical hierarchical relationship between data centers, cabinets, and servers. In actual deployment, different data centers have different network latencies, power capacities, and cooling capabilities, and different cabinets in the same data center have different power consumption upper limits and physical space constraints. Flat scheduling cannot effectively prevent tasks from being allocated to overloaded cabinets or data centers, nor can it optimize task placement strategies according to physical topology to reduce energy consumption and latency.
[0004] Second, GPU load evaluation relies on traditional utilization metrics, which cannot accurately reflect the actual computing load. Existing technologies generally use GPU utilization percentage (GPU Utilization %) as the load evaluation metric. However, GPU utilization reflects the active proportion of the GPU core during the sampling period, which is not equivalent to the actual computing load intensity. In scenarios of high power consumption and low utilization or low power consumption and high utilization, such as the batch processing waiting state common in inference services, scheduling decisions based on utilization metrics may be biased, leading to load imbalance or power consumption waste.
[0005] Third, there is a lack of a cross-level overload detection and linkage alarm mechanism. Existing technologies usually only perform overload detection at the server level, and fail to propagate overload information upward to the cabinet and data center levels. When the total power consumption of a cabinet is close to its upper limit, the scheduling system may still allocate new tasks to this cabinet, leading to cabinet-level overload or even potential physical safety hazards. Similarly, there is a lack of effective monitoring and scheduling avoidance mechanisms for load overload at the data center level.
[0006] In addition, existing solutions do not consider computing power resource allocation and power load optimization in a coordinated manner. Computing power scheduling decisions and power consumption management are usually two independent systems, lacking a unified decision-making framework to organically combine the two, resulting in suboptimal scheduling results in terms of computing efficiency or power efficiency. In summary, the existing technology lacks a solution that can not only perceive multi-level physical topology, but also perform computing-power collaborative scheduling with power consumption as the core metric. Summary of the Invention
[0007] Purpose of the invention: The purpose of this invention is to provide a heterogeneous resource scheduling method and system capable of integrating hierarchical physical topologies; this invention also provides an electronic device for executing the above method.
[0008] Technical solution: The heterogeneous resource scheduling method based on fused hierarchical physical topology described in this invention includes:
[0009] (1) Receive the task and obtain the calculation type carried by the task;
[0010] (2) Determine whether the data center is enabled. If the data center is enabled, filter out data centers that are inactive, have mismatched task calculation types, or have an average load exceeding the overload threshold to obtain candidate data centers. Calculate the selection weight of the candidate data center: Candidate data center selection weight = data center priority × data center weight × matching calculation capacity. Perform weighted random selection on the candidate data centers to obtain the selected data center.
[0011] Preferably, after step (2), the following steps are also included:
[0012] (3) Determine whether rack scheduling is enabled. If rack scheduling is enabled, filter out racks that are inactive, have mismatched computing types, or have total power consumption exceeding the preset rack power consumption threshold from the racks in the selected data center. Calculate the score according to "average load / (rack weight × rack priority) × 100", select the rack with the lowest score, and prioritize the rack with higher weight and higher priority under the same load.
[0013] Preferably, after step (3), the following steps are also included:
[0014] (4) Filter the server list by task type to obtain a candidate server list;
[0015] (5) If the candidate server list is empty, then obtain all servers again and filter by calculation type to obtain the candidate server list; if the full server list is empty, then add all servers to the candidate server list.
[0016] Preferably, after step (5), the following steps are also included:
[0017] (6) Filter out servers that are offline, have CPU utilization exceeding 90%, or have GPU power consumption ratio exceeding a high threshold to obtain the remaining servers; calculate a multi-dimensional weighted score for the remaining servers: multi-dimensional weighted score = CPU utilization × CPU weight + GPU power consumption ratio × GPU weight + memory penalty + power consumption penalty, GPU power consumption ratio = GPU current actual power consumption ÷ GPU rated power × 100%; add a first preset score to the score of the remaining servers with memory utilization exceeding 80%, add a second preset score to the score of the remaining servers with power consumption exceeding 85% of the rated power consumption, the final score of the remaining servers = multi-dimensional weighted score + first preset score + second preset score, select the remaining server with the lowest final score as the optimal server, and assign the task to the optimal server.
[0018] Preferably, after step (6), the following steps are also included:
[0019] (7) Identify overloaded servers and idle servers, match each overloaded server with an idle server to generate a migration decision, the migration decision includes the data center ID and rack ID of the source and optimal servers, forming a complete hierarchical migration path record; generate corresponding alarm information at the server, data center and rack levels respectively - server-level GPU power consumption too high or too low alarm, data center-level overload or offline alarm, rack-level power consumption overload or high power consumption alarm.
[0020] Preferably, in step (7), overload includes CPU utilization >90% or GPU power ratio exceeding a high threshold, and idle includes CPU utilization <30% and GPU power ratio below a low threshold.
[0021] Prioritize that the task weight for GPU computing is 0.2 or 0.8, the task weight for CPU computing is 0.8 or 0.2, and the task weight for hybrid computing is 0.5.
[0022] Preferably, step (4) includes:
[0023] GPU computing tasks are retained only on intelligent computing servers and hybrid servers, CPU computing tasks are retained only on general computing servers and hybrid servers, and hybrid tasks are retained on servers of all computing types.
[0024] The heterogeneous resource scheduling method system based on fused hierarchical physical topology of the present invention includes:
[0025] The computation type acquisition module is used to receive tasks and obtain the computation type carried by the task.
[0026] The data center activation module is used to determine whether to activate a data center. If the data center is activated, it filters out data centers that are inactive, have mismatched task calculation types, or have an average load exceeding the overload threshold, and obtains candidate data centers. The selection weight of the candidate data center is calculated as follows: Candidate data center selection weight = data center priority × data center weight × matching computing capacity. A weighted random selection is performed on the candidate data centers to obtain the selected data center.
[0027] An electronic device according to the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of any of the methods described herein.
[0028] The present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the methods described herein.
[0029] Beneficial Effects: Compared with existing technologies, this invention has the following significant advantages: 1. It achieves online scheduling of three levels of linkage between data center, rack, and server for the first time. Existing technologies generally treat computing nodes as flat resource pools for scheduling. This invention innovatively incorporates the three-level hierarchical structure of the physical topology into the scheduling decision chain, and adopts differentiated selection strategies at each level—data center-level weighted random selection ensures macro-level balance of traffic distribution, rack-level deterministic scoring selection achieves fine-grained load allocation, and server-level multi-dimensional weighted scoring completes the final precise matching. The differentiated design of the three-level strategy avoids the complexity of global search and ensures the rationality and interpretability of each level's decision; 2. It replaces the traditional GPU utilization rate indicator with the GPU power consumption ratio, significantly improving the accuracy of load assessment. Traditional solutions use the GPU utilization percentage as the GPU load indicator, but this indicator only reflects the proportion of active time of the GPU cores and cannot accurately reflect the actual power consumption and computing intensity. This invention uses the ratio of GPU instantaneous power consumption to rated power as the core metric for GPU load, directly reflecting the actual energy consumption level of the GPU. This more accurately reflects the real computing load in scenarios such as inference services, avoiding misjudgments based on utilization rate. 3. It achieves independent overload detection and alarm linkage across different levels. Independent overload detection mechanisms are set up at the data center, rack, and server levels. Each level uses detection indicators that match the physical characteristics of that level (average load for data centers, power consumption ratio for racks, and CPU plus GPU power consumption ratio for servers). When an overload is detected at a certain level, the scheduler automatically excludes the candidate, avoiding further task allocation to overloaded physical units. Alarm information from all three levels helps maintenance personnel quickly locate problems. 4. A multi-level fallback mechanism ensures high availability of scheduling. When the filtering conditions at a certain level result in an empty candidate set, the system automatically performs a fallback—skipping the constraints of that level or expanding the candidate range—ensuring that tasks can always be allocated to available nodes, avoiding scheduling failures due to overly strict level filtering, and ensuring the scheduling availability of the system under extreme load conditions. 5. Task type-aware dynamic weights improve matching accuracy. The server load balancer dynamically adjusts the scoring weights of CPU and GPU based on task type, so that different types of tasks can be matched with the most suitable computing nodes. At the same time, it combines computing type tags to perform precise matching and filtering at each level, preventing GPU computing tasks from being assigned to pure CPU servers or CPU computing tasks from consuming valuable GPU resources. Attached Figure Description
[0030] Figure 1 This is a flowchart of the present invention. Detailed Implementation
[0031] As shown in the figure, this invention proposes a heterogeneous resource scheduling method that integrates hierarchical physical topology. The core workflow of this invention is divided into two main stages—the main task scheduling process and the periodic evaluation process. From receiving the task request to the server allocation, the entire process realizes hierarchical awareness, power consumption awareness, and fault tolerance. The specific steps are as follows:
[0032] The main task scheduling process includes: receiving task requests, with the task carrying the computing type (GPU computing, CPU computing, or hybrid computing).
[0033] Determine whether to enable data center scheduling. If enabled, invoke the data center scheduler to perform DC-level selection: filter out inactive data centers, data centers with mismatched task computation types, or data centers with average load exceeding the overload threshold to obtain candidate data centers; calculate the selection weight of candidate data centers: Candidate data center selection weight = data center priority × data center weight × matching computation capacity. The left side of the equation, "candidate data center weight," is the final score used in weighted random selection (an intermediate result), and the right side, "data center weight," is a configuration attribute of the data center (a parameter set in advance, defaulting to 100). The data center priority is set in advance, indicating the importance of the data center, with a default value of 5; the data center weight is set in advance, similar to priority, used to adjust bias, with a default value of 100; matching computation capacity refers to how many servers in this data center can run the current type of task, for example, for GPU tasks, the number of intelligent computing + hybrid servers is calculated.
[0034] Determine if rack scheduling is enabled. If rack scheduling is enabled, perform rack-level selection in the selected data center: filter out racks that are inactive, have mismatched computing types, or whose total power consumption exceeds the preset rack power consumption threshold; calculate a score based on "average load / (weight × priority) × 100", select the rack with the lowest score, and racks with higher weight and priority are selected more preferentially under the same load.
[0035] Filter the server list by computing type based on task type—GPU computing tasks retain only intelligent computing servers and hybrid servers, CPU computing tasks retain only general computing servers and hybrid servers, and hybrid tasks retain servers of all computing types.
[0036] If the filtered candidate server list is empty, a fallback strategy is executed—all servers are retrieved again and the computation type filtering is applied; if it is still empty, all servers are used. Specifically, if the candidate server list is empty, all servers are retrieved again and the computation type filtering is applied to obtain the candidate server list; if all servers are empty, all servers are added to the candidate server list.
[0037] The server load balancer is invoked to select the optimal server from the candidate servers. Servers that are offline, have CPU utilization exceeding 90%, or have GPU power consumption ratios exceeding a high threshold are filtered out, leaving the remaining servers. A multi-dimensional weighted score is calculated for the remaining servers: Multi-dimensional weighted score = CPU utilization × CPU weight + GPU power consumption ratio × GPU weight + memory penalty + power consumption penalty. The CPU weight and GPU weight are dynamically allocated according to the task type (the weight for GPU-calculated tasks is 0.2 or 0.8, the weight for CPU-calculated tasks is 0.8 or 0.2, and the weight for mixed-task tasks is 0.5). A penalty of 20 points is added to the score of the remaining servers with memory utilization exceeding 80%, and a penalty of 15 points is added to the score of the remaining servers with power consumption exceeding 85% of the rated power. The remaining server with the lowest final score is selected as the optimal server, and tasks are assigned to the optimal server.
[0038] GPU power consumption ratio = GPU current actual power consumption ÷ GPU rated power × 100%. This invention does not use "GPU utilization" to measure load, but instead uses "power consumption ratio" to measure load, because GPU utilization is inaccurate, while power consumption better reflects the true load.
[0039] Average load = the average of the CPU utilization + GPU power consumption ratio of all online servers in a data center / rack.
[0040] Intelligent computing servers are those equipped with GPUs and primarily run AI calculations; general computing servers are ordinary servers without GPUs; hybrid servers can run both.
[0041] CPU computing tasks and hybrid computing tasks refer to tasks that have a type identifier, which the system uses to match the corresponding server.
[0042] CPU utilization: Collected in real time by the server, and used directly.
[0043] CPU / GPU weights are automatically determined based on the task type: For GPU tasks, the GPU weight is higher (e.g., 0.8), and the CPU weight is lower (e.g., 0.2); for CPU tasks, the CPU weight is higher (e.g., 0.8), and the GPU weight is lower (e.g., 0.2); for mixed tasks (including GPU and CPU tasks), each is weighted equally, with a value of 0.5. This ensures the task is assigned to the server best suited for it.
[0044] Memory penalty: If memory usage is too high (e.g., exceeding 80%), extra points will be deducted (e.g., 20 points will be added, the higher the score, the worse the penalty).
[0045] Power consumption penalty: If the power consumption is too high (e.g., exceeding 85% of the rated power), additional points will be deducted (e.g., 15 points will be added).
[0046] The periodic evaluation process includes:
[0047] The scheduling engine performs a comprehensive assessment every configured period (default 10 seconds). During the assessment, it first identifies overloaded and idle servers. Overload is defined as CPU utilization >90% or GPU power consumption ratio exceeding a high threshold, while idleness is defined as CPU utilization <30% and GPU power consumption ratio below a low threshold. For each overloaded server, an idle server is matched to generate a migration decision. The migration decision automatically includes the data center ID and rack ID of the source and optimal servers, forming a complete hierarchical migration path record. Subsequently, corresponding alarm information is generated at the server, data center, and rack levels respectively: server-level GPU power consumption too high / too low alarm, data center-level overload / offline alarm, and rack-level power consumption overload / high power consumption alarm. The default high threshold for GPU power consumption is 80 (configurable), the default low threshold for GPU power consumption is 30 (configurable), the default overload threshold for the data center is 90 (average load %), and the default preset rack power consumption threshold is 85 (maximum power %). Idle conditions are determined by: CPU utilization < 30% and GPU power consumption ratio < low threshold; data center priority / data center weight defaults to 5 / 100; rack priority / rack weight defaults to 5 / 100.
[0048] The overall architecture of this invention consists of five core modules, which collaborate to achieve hierarchical scheduling of heterogeneous computing power, power consumption awareness, alarm monitoring, and indicator collection. The overall architecture is clear, and the responsibilities of each module are well-defined. The specific functions of each module are as follows:
[0049] 1. Rule Engine: As the unified orchestrator of the three-level scheduling process, after receiving external task requests, it sequentially calls the schedulers at each level in the order of data center → rack → server. It is also responsible for periodic evaluation (migration decisions and alarms) and coordinating the work of each module. When the lower-level scheduling result is empty, the rule engine is responsible for rolling back level by level to ensure that the task can eventually be assigned to an available node.
[0050] 2. Hierarchical Scheduler Group: This group comprises three sub-modules: Data Center Scheduler, Rack Scheduler, and Server Load Balancer. The Data Center Scheduler constructs a weighted selection space based on the data center's priority, weight, and server capacity matching the computing type, employing a weighted random selection strategy. The Rack Scheduler calculates a score based on the ratio of the rack's average load to the weight-priority product, using a deterministic scoring selection strategy. The Server Load Balancer uses a multi-dimensional weighted scoring formula based on the ratio of CPU utilization to GPU power consumption, dynamically adjusting weights according to task type and adding memory and power penalties. Memory penalty triggers include: memory utilization > 80%, adding 20 points; power penalty triggers include: power consumption > 85% of rated power consumption, adding 15 points.
[0051] 3. Alarm Manager: During the periodic evaluation of the rules engine, alarms are generated at three levels: server level, data center level, and rack level. It supports filtering and management by level, enabling operations and maintenance personnel to quickly locate the physical location of the overload.
[0052] 4. Node Agent Cluster: A lightweight agent program deployed on each computing node, responsible for collecting CPU, memory, disk I / O, GPU / NPU metrics and power consumption data of the local node, reporting them to the rule engine, and supporting a command polling mechanism to receive remote commands.
[0053] 5. Power Consumption Data Acquisition Unit: The core sub-module of the node agent, supporting three levels of power consumption detection priority: IPMI direct reading (server-level accurate power consumption), RAPL differential calculation (CPU package energy consumption plus non-CPU estimation), and TDP estimation (linear estimation of utilization based on CPU model database). It automatically selects the highest accuracy data source available to ensure the accuracy and availability of power consumption data.
[0054] Collaboration process of each module: The power consumption collector in the node agent cluster collects the indicators of each node in real time and reports them to the rule engine. After receiving the task request, the rule engine calls the data center scheduler, rack scheduler and server load balancer in sequence to complete the three-level scheduling decision. During the periodic evaluation, the rule engine identifies overloaded and idle servers and generates migration decisions. The alarm manager generates alarm information at three levels, forming a complete closed loop from indicator collection to scheduling decision and then to abnormal alarm.
[0055] The core innovations of this invention are mainly reflected in five aspects, each of which addresses the pain points of existing technologies and proposes a unique technical solution. The specific innovations are as follows:
[0056] 1. A three-tiered online task scheduling method. This innovatively establishes a three-tiered scheduling decision chain: data center-rack-server. Each tier employs a differentiated selection strategy (data center-level weighted random, rack-level deterministic scoring, and server-level multi-dimensional weighted scoring) to progressively narrow down the candidate pool and ultimately determine the optimal server. Each tier includes overload filtering and rollback mechanisms, overcoming the limitations of existing flattened scheduling technologies.
[0057] 2. A load assessment method based on GPU power consumption ratio. This method uses the ratio of instantaneous GPU power consumption to rated GPU power as the core metric for GPU load, replacing the traditional GPU utilization percentage. It combines this with CPU utilization to form a two-dimensional load vector, dynamically allocating the weight ratios of the CPU and GPU dimensions according to task type, thus achieving more accurate power-aware load assessment.
[0058] 3. Cross-level differentiated overload detection and linkage avoidance method. Overload is detected at the data center level based on the average load of online servers; at the rack level, it is detected based on the ratio of total power consumption to maximum power consumption; and at the server level, hard exclusion is performed based on the ratio of CPU utilization to GPU power consumption. Overloaded nodes are automatically excluded in the scheduling at each level, and differentiated alarm information is generated for the three levels. The server CPU hard exclusion threshold is set at 90% (CPU utilization), and server GPU hard exclusion includes: GPU power consumption ratio > high threshold.
[0059] 4. Hierarchical migration decision-making method. Overloaded and idle servers are identified during periodic assessments. When generating migration decisions, the data center ID and rack ID information of the source and optimal servers are automatically attached, forming a complete hierarchical migration path record, supporting task migration auditing and analysis across data centers and racks.
[0060] 5. Multi-level rollback guarantee mechanism. When the candidate set is empty after hierarchical filtering, the rollback strategy is executed sequentially until all servers are loaded, ensuring that tasks can be successfully scheduled under any load conditions. At the same time, the calculation type label is combined to perform matching filtering at each level to achieve accurate routing with task type awareness.
Claims
1. A heterogeneous resource scheduling method integrating hierarchical physical topology, characterized in that, include: (1) Receive the task and obtain the calculation type carried by the task; (2) Determine whether the data center is enabled. If the data center is enabled, filter out data centers that are inactive, have mismatched task calculation types, or have an average load exceeding the overload threshold to obtain candidate data centers. Calculate the selection weight of the candidate data center: Candidate data center selection weight = data center priority × data center weight × matching calculation capacity. Perform weighted random selection on the candidate data centers to obtain the selected data center.
2. The heterogeneous resource scheduling method for fusion hierarchical physical topology according to claim 1, characterized in that, Following step (2), the following is also included: (3) Determine whether rack scheduling is enabled. If rack scheduling is enabled, filter out racks that are inactive, have mismatched computing types, or have total power consumption exceeding the preset rack power consumption threshold from the racks in the selected data center. Calculate the score according to "average load / (rack weight × rack priority) × 100", select the rack with the lowest score, and prioritize the rack with higher weight and higher priority under the same load.
3. The heterogeneous resource scheduling method for fusion hierarchical physical topology according to claim 2, characterized in that, Following step (3), the following is also included: (4) Filter the server list by task type to obtain a candidate server list; (5) If the candidate server list is empty, then obtain all servers again and filter by calculation type to obtain the candidate server list; if the full server list is empty, then add all servers to the candidate server list.
4. The heterogeneous resource scheduling method for fusion hierarchical physical topology according to claim 3, characterized in that, Following step (5), the following is also included: (6) Filter out servers that are offline, have CPU utilization exceeding 90%, or have GPU power consumption ratio exceeding a high threshold to obtain the remaining servers; calculate a multi-dimensional weighted score for the remaining servers: multi-dimensional weighted score = CPU utilization × CPU weight + GPU power consumption ratio × GPU weight + memory penalty + power consumption penalty, GPU power consumption ratio = GPU current actual power consumption ÷ GPU rated power × 100%; add a first preset score to the score of the remaining servers with memory utilization exceeding 80%, add a second preset score to the score of the remaining servers with power consumption exceeding 85% of the rated power consumption, the final score of the remaining servers = multi-dimensional weighted score + first preset score + second preset score, select the remaining server with the lowest final score as the optimal server, and assign the task to the optimal server.
5. The heterogeneous resource scheduling method for fusion hierarchical physical topology according to claim 4, characterized in that, Following step (6), the following is also included: (7) Identify overloaded servers and idle servers, match each overloaded server with an idle server to generate a migration decision, the migration decision includes the data center ID and rack ID of the source and optimal servers, forming a complete hierarchical migration path record; generate corresponding alarm information at the server, data center and rack levels respectively - server-level GPU power consumption too high or too low alarm, data center-level overload or offline alarm, rack-level power consumption overload or high power consumption alarm.
6. The heterogeneous resource scheduling method for fusion hierarchical physical topology according to claim 5, characterized in that, In step (7), overload includes CPU utilization >90% or GPU power ratio exceeding a high threshold, and idle includes CPU utilization <30% and GPU power ratio below a low threshold.
7. The heterogeneous resource scheduling method for fusion hierarchical physical topology according to claim 5, characterized in that, In step (6), the task weight for GPU computation is 0.2 or 0.8, the task weight for CPU computation is 0.8 or 0.2, and the task weight for hybrid computation is 0.
5.
8. The heterogeneous resource scheduling method for fusion hierarchical physical topology according to claim 3, characterized in that, Step (4) includes: GPU computing tasks are retained only on intelligent computing servers and hybrid servers, CPU computing tasks are retained only on general computing servers and hybrid servers, and hybrid tasks are retained on servers of all computing types.
9. A heterogeneous resource scheduling method system that integrates hierarchical physical topology, characterized in that, include: The computation type acquisition module is used to receive tasks and obtain the computation type carried by the task. The data center activation module is used to determine whether to activate a data center. If the data center is activated, it filters out data centers that are inactive, have mismatched task calculation types, or have an average load exceeding the overload threshold, and obtains candidate data centers. The selection weight of the candidate data center is calculated as follows: Candidate data center selection weight = data center priority × data center weight × matching computing capacity. A weighted random selection is performed on the candidate data centers to obtain the selected data center.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the program, it implements the steps of the method according to any one of claims 1 to 8.
