Method and device for scheduling cloud computing resources

By designing the memory bank and dynamic weight adjustment mechanism in the cloud computing environment, the problem of untimely resource allocation in cloud computing resource scheduling is solved, efficient and accurate resource allocation is achieved, resource waste is reduced and service quality is improved.

CN118796388APending Publication Date: 2024-10-18WEBANK (CHINA)
View PDF 0 Cites 8 Cited by

Patent Information

Application Number
CN202410783882.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Resource scheduling in a cloud computing environment is difficult to respond to rapidly changing demands and environmental factors in real time, resulting in resource allocation that is not timely and effective, resulting in resource waste or service quality degradation.

Method used

The design memory database stores excellent solutions and their corresponding results in the historical optimization process. By matching the current environmental status and historical data, it can quickly retrieve the most matching resource allocation plan and dynamically adjust the weight parameters to adapt to changing needs and system status.

Benefits of technology

It speeds up the resource scheduling decision-making process, improves the accuracy and utilization of resource allocation, reduces resource waste, and ensures the effectiveness of resource allocation and service quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796388A_ABST
    Figure CN118796388A_ABST
Patent Text Reader

Abstract

The invention provides a method and a device for scheduling cloud computing resources, which are applied to the technical field of cloud resource management and comprise the following steps: acquiring a resource scheduling request of a demand side; for any demand item in the demand resource information, determining weight information of the demand item according to a current resource condition of the cloud computing resource pool and a historical scheduling result of the historical resource scheduling request; searching a historical resource scheduling request meeting a similarity requirement with the resource scheduling request from a memory bank; the corresponding relation between the historical scheduling result and the historical execution result corresponding to each historical resource scheduling request is stored in the memory bank, and the memory bank is dynamically updated; and determining a scheduling result for the resource scheduling request based on a historical scheduling result corresponding to the historical resource scheduling request meeting the similarity requirement. According to the demand resource information of the current resource scheduling request, the resource configuration scheme for successfully processing similar tasks in history is quickly retrieved, the resource scheduling decision process is accelerated, and the accuracy of resource configuration is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the technical field of cloud resource management, and in particular to a method and device for scheduling cloud computing resources. Background Art

[0002] As a new computing paradigm, cloud computing continues to flourish and become an important service in Internet computing. Among them, one of the most pressing issues in cloud computing is resource management. In the scenario of cloud computing resource scheduling and allocation, the scheduling system needs to decide to allocate computing resources to a certain application system. The scheduling system needs to decide which CPU (Central Processing Unit, CPU for short) and memory resources in the resource pool to allocate to the application system. The scheduling system needs to evaluate multiple evaluation points: the length of time the system requires resources, the use of CPU and memory by the batch system, and the remaining resources in the resource pool, whether the provided resources are concentrated on one server, etc.

[0003] The state and demand of resources in a cloud computing environment change in real time, and effective resource scheduling needs to be based on the latest data. Moreover, as time goes by, the data used for decision support needs to be updated and maintained, including resource usage, performance indicators, etc. In terms of resource demand, in a cloud computing environment, the amount and type of requests from the demand side may change rapidly (such as sudden high-traffic events), which requires the resource scheduling algorithm to respond to these changes in real time and dynamically adjust the resource allocation strategy. In terms of the environment (resource pool), environmental factors such as server availability and network conditions may also change rapidly, which will also affect resource scheduling.

[0004] Current background technologies face challenges in real-time collection and processing of environmental data, as well as timely updating of decision-making models. This results in resource allocation decisions being based on outdated information, which can lead to untimely and ineffective resource allocation, resulting in waste of resources or reduced service quality, affecting the effectiveness of decision-making and resource utilization. Summary of the invention

[0005] The embodiments of the present application provide a method and device for scheduling cloud computing resources, which are used to quickly retrieve the historical excellent solution that best matches the current environment by matching the current environment state with the environment state in the memory library according to the resource scheduling request of the demand side, thereby achieving efficient adaptation to rapid dynamic changes.

[0006] In a first aspect, an embodiment of the present application provides a method for scheduling cloud computing resources, including:

[0007] Obtaining a resource scheduling request from a demander, wherein the resource scheduling request includes demand resource information;

[0008] For any demand item in the demand resource information, determine weight information of the demand item according to the current resource status of the cloud computing resource pool and the historical scheduling results of historical resource scheduling requests;

[0009] Searching for historical resource scheduling requests that meet the similarity requirements with the resource scheduling request from the memory database; wherein the similarity is characterized by calculating the comprehensive results of each demand item under the corresponding weight information; the memory database stores the corresponding relationship between the historical scheduling results and the historical execution results corresponding to each historical resource scheduling request, and the memory database is kept dynamically updated;

[0010] Based on the historical scheduling results corresponding to the historical resource scheduling requests that meet the similarity requirement, a scheduling result is determined for the resource scheduling request.

[0011] This application designs a memory library to store the excellent solutions obtained in the historical optimization process and their corresponding historical scheduling results. According to the demand resource information (such as data volume, computing requirements, and expected completion time) of the current resource scheduling request, the resource allocation scheme that has successfully handled similar tasks in history can be quickly retrieved. This not only speeds up the decision-making process of resource scheduling, but also improves the accuracy of resource allocation, ensures that resources are used efficiently, and reduces resource waste caused by mismatched resource allocation. The memory library can add the current resource scheduling request as a new tree node to the memory library based on the demand resource information of the completed current resource scheduling request, or if there are different scheduling results for the same resource scheduling request, the historical scheduling results in the historical node can be modified or deleted to maintain the real-time and accuracy of the data.

[0012] Optionally, searching a memory database for a historical resource scheduling request that meets a similarity requirement with the resource scheduling request includes:

[0013] For any demand item, determining a normalized difference between a demand value of the demand item in the resource scheduling request and a historical value in any historical resource scheduling request;

[0014] Obtaining a comprehensive similarity between the resource scheduling request and any historical resource scheduling request according to the difference size of each demand item and the weight information of each demand item;

[0015] Determine the historical resource scheduling requests whose comprehensive similarity meets the similarity requirement.

[0016] By dividing each requirement by the maximum possible range of data volume, the formula normalizes the similarity scores between different tasks, making them unaffected by the specific amount of data and facilitating cross-task comparison. At the same time, the formula is also highly flexible and can adapt to data processing requirements of different scales by adjusting the maximum possible range of data volume, or by combining similarity scores of other dimensions to comprehensively evaluate the overall similarity. It also ensures balance when selecting historical solutions, and can find close solutions even when there is no exact match, ensuring the feasibility and effectiveness of resource allocation.

[0017] Optionally, determining a scheduling result for the resource scheduling request based on a historical scheduling result corresponding to the historical resource scheduling request that meets the similarity requirement includes:

[0018] Determine balance parameter information; the balance parameter information is used as a distinguishing weight between resource utilization and task completion time;

[0019] Determine a first cost of a historical scheduling result corresponding to the historical resource scheduling request that meets the similarity requirement under the balancing parameter information;

[0020] Determining a second cost of a preset resource configuration solution under the balancing parameter information;

[0021] A scheduling result is determined for the resource scheduling request according to the first cost and the second cost.

[0022] Optionally, determining the weight information of the demand item according to the current resource status of the cloud computing resource pool and the historical scheduling results of the historical resource scheduling requests includes:

[0023] Input the resource scheduling request into a prediction model to obtain a weight prediction value of any demand item; the prediction model is obtained by training various historical resource scheduling requests and their corresponding historical scheduling results and historical execution results;

[0024] Determine weight adjustment information based on the current resource status of the cloud computing resource pool;

[0025] The weight prediction value of any demand item is adjusted according to the weight adjustment information to obtain the weight information of any demand item.

[0026] By dynamically adjusting the weights of similarity scoring parameters, cloud computing resource scheduling can flexibly respond to the changing demands of various tasks and the real-time status of the system. In a cloud resource computing environment, resource demand and availability may change rapidly. By adjusting weight parameters (such as giving priority to tasks with large data volumes or urgent tasks) to adapt to these changes, the task scheduling strategy is optimized to ensure the success rate of resource allocation tasks.

[0027] Optionally, determining the balance parameter information includes:

[0028] Determining an initial value of a balancing parameter according to the required resource information and the current resource status of the cloud computing resource pool;

[0029] Determining weight adjustment information according to the current resource status of the cloud computing resource pool;

[0030] The initial value of the balance parameter is adjusted according to the weight adjustment information to obtain balance parameter information.

[0031] The resource allocation decision algorithm provides a flexible mechanism to balance these two goals by introducing balance parameter information. Balance parameter information allows the scheduling strategy to adjust the relative importance of resource utilization and task completion time according to specific scenarios and priorities. A higher balance parameter information value means more emphasis on resource utilization, and a lower balance parameter information value means more emphasis on rapid task completion. In addition, the balance parameter information value introduces a dynamic adjustment model, so that the final decision is closer to balance and maximizes benefits.

[0032] Optionally, determining the weight adjustment information according to the current resource status of the cloud computing resource pool includes:

[0033] Setting a real-time status feedback adjustment coefficient according to the real-time status of the cloud computing resource pool; and / or

[0034] Setting sliding window weights according to task execution status within a set time in the cloud computing resource pool; and / or

[0035] Setting a scene recognition adjustment coefficient according to the task execution requirements in the demand resource information;

[0036] The real-time state feedback adjustment coefficient, the sliding window weight and the scene recognition adjustment coefficient are weight adjustment information.

[0037] Optionally, each requirement item includes a data volume requirement item, a processing time requirement item, and a workload requirement item;

[0038] The memory is stored in a data structure of multi-dimensional index nodes, wherein the nodes include solution vectors representing scheduling results, performance indicators representing execution results, and environmental states representing required resource information; the multi-dimensional index includes solution vectors and environmental states.

[0039] In a second aspect, the present application provides a device for scheduling cloud computing resources, including:

[0040] An acquisition module, used to acquire a resource scheduling request from a demander, wherein the resource scheduling request includes required resource information;

[0041] A processing module, configured to determine, for any demand item in the demand resource information, weight information of the demand item according to a current resource status of the cloud computing resource pool and a historical scheduling result of a historical resource scheduling request;

[0042] The processing module is further used to search the memory for historical resource scheduling requests that meet the similarity requirements with the resource scheduling request; wherein the similarity is characterized by calculating the comprehensive results of each demand item under the corresponding weight information; the memory stores the corresponding relationship between the historical scheduling results and the historical execution results corresponding to each historical resource scheduling request, and the memory is kept dynamically updated;

[0043] The processing module is further configured to determine a scheduling result for the resource scheduling request based on the historical scheduling results corresponding to the historical resource scheduling requests that meet the similarity requirement.

[0044] This application designs a memory library to store the excellent solutions obtained in the historical optimization process and their corresponding historical scheduling results. It can quickly retrieve the resource allocation solutions that have successfully handled similar tasks in the past according to the required resource information (such as data volume, computing requirements, and expected completion time) of the current resource scheduling request. This not only speeds up the decision-making process of resource scheduling, but also improves the accuracy of resource allocation, ensures that resources are used efficiently, and reduces resource waste caused by mismatched resource allocation.

[0045] Optionally, the processing module is specifically used for:

[0046] For any demand item, determining a normalized difference between a demand value of the demand item in the resource scheduling request and a historical value in any historical resource scheduling request;

[0047] Obtaining a comprehensive similarity between the resource scheduling request and any historical resource scheduling request according to the difference size of each demand item and the weight information of each demand item;

[0048] Determine the historical resource scheduling requests whose comprehensive similarity meets the similarity requirement.

[0049] Optionally, the processing module is specifically used for:

[0050] Determine balance parameter information; the balance parameter information is used as a distinguishing weight between resource utilization and task completion time;

[0051] Determine a first cost of a historical scheduling result corresponding to the historical resource scheduling request that meets the similarity requirement under the balancing parameter information;

[0052] Determining a second cost of a preset resource configuration solution under the balancing parameter information;

[0053] A scheduling result is determined for the resource scheduling request according to the first cost and the second cost.

[0054] Optionally, the processing module is specifically used for:

[0055] Input the resource scheduling request into a prediction model to obtain a weight prediction value of any demand item; the prediction model is obtained by training various historical resource scheduling requests and their corresponding historical scheduling results and historical execution results;

[0056] Determine weight adjustment information based on the current resource status of the cloud computing resource pool;

[0057] The weight prediction value of any demand item is adjusted according to the weight adjustment information to obtain the weight information of any demand item.

[0058] Optionally, the processing module is specifically used for:

[0059] Determining an initial value of a balancing parameter according to the required resource information and the current resource status of the cloud computing resource pool;

[0060] Determining weight adjustment information according to the current resource status of the cloud computing resource pool;

[0061] The initial value of the balance parameter is adjusted according to the weight adjustment information to obtain balance parameter information.

[0062] Optionally, the processing module is specifically used for:

[0063] Setting a real-time status feedback adjustment coefficient according to the real-time status of the cloud computing resource pool; and / or

[0064] Setting sliding window weights according to task execution status within a set time in the cloud computing resource pool; and / or

[0065] Setting a scene recognition adjustment coefficient according to the task execution requirements in the demand resource information;

[0066] The real-time state feedback adjustment coefficient, the sliding window weight and the scene recognition adjustment coefficient are weight adjustment information.

[0067] Optionally, the processing module is specifically used for:

[0068] The various requirements include data volume requirements, processing time requirements, and workload requirements;

[0069] The memory is stored in a data structure of multi-dimensional index nodes, wherein the nodes include solution vectors representing scheduling results, performance indicators representing execution results, and environmental states representing required resource information; the multi-dimensional index includes solution vectors and environmental states.

[0070] In a third aspect, an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes any method for scheduling cloud computing resources as described in the first aspect above.

[0071] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program executable by a computer device. When the program runs on the computer device, the computer device executes any method for scheduling cloud computing resources described in the first aspect above. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0073] Figure 1 A schematic diagram of a system architecture diagram provided for an embodiment of the present application;

[0074] Figure 2 A flowchart of a method for scheduling cloud computing resources provided in an embodiment of the present application;

[0075] Figure 3 A schematic diagram of the structure of a device for scheduling cloud computing resources provided in an embodiment of the present application;

[0076] Figure 4 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0077] In order to make the purpose, technical solution and beneficial effects of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0078] like Figure 1As shown, it is a system architecture diagram provided by the present application, which specifically includes a demand system 101, a resource scheduling system 102 and a cloud computing resource pool 103. The resource scheduling system 102 includes a memory 104, an index module 105 and a decision module 106. The resource scheduling system 102 receives the resource scheduling request sent by the demand system 101. The resource scheduling system 102 decides the resource scheduling scheme corresponding to the resource scheduling request issued by the demand system according to the resource scheme corresponding to the historical request stored in the memory 104 and the resource status in the cloud computing resource pool. In the resource scheduling system 102, the memory 104 acquires and stores various environmental information in the cloud computing resource pool 103 and the resource status of the demand side system 101 in real time. The index module 105 indexes the optimal solution according to the data in the memory 104, including regularly clustering the solutions in the memory 104 and updating the classification of the solutions to improve the retrieval efficiency and adaptability. The decision module 106 dynamically adjusts the utilization ratio of resources according to the effect of the current iteration to ensure that resources can be efficiently utilized while meeting the current demand.

[0079] The operation flow of the memory module 104 includes the following points: 1. The memory module of the scheduling system collects and obtains server information data (such as the number of CPU cores, memory size, etc.) in the resource pool in real time and stores it in the memory. 2. Based on the tree data structure, the memory is designed with a data structure of multi-dimensional index nodes, including tree nodes, multi-dimensional indexes, and dynamic update mechanisms. 3. The memory is initialized with historical data, and each node records the resource configuration, actual resource usage, and task requirements of historical tasks.

[0080] The operation flow of the index module 105 includes the following points: 1. Based on the design of the above data structure, define each node and index key, including solution vector (resource allocation plan), performance indicators (resource utilization, task completion time) and environmental status (task demand vector). 2. When the scheduling system receives a resource demand application, use the similarity evaluation function to search the memory library for the most similar historical solution to the current resource demand, based on the environmental status and possible solution vectors.

[0081] The operation flow of the decision module 106 includes the following points: 1. Calculate the similarity score, including the similarity score of data volume, processing time and workload, and dynamically adjust the weight parameter and the balance parameter λ, which are used in the resource configuration decision algorithm. 2. Dynamically adjust the weight parameter according to the historical data and real-time data status to adapt to the changing resource requirements and system status in the cloud computing resource scheduling environment. 3. Based on the similarity score and the current resource status, identify a resource configuration mode, consider another possible resource configuration, and then use the resource configuration decision algorithm to calculate the scores of the two solutions. 4. Select the solution with the lowest score as the final scheduling decision solution, which better balances resource utilization and task completion time.

[0082] like Figure 2 As shown, a method for scheduling cloud computing resources provided by the present application specifically includes the following steps:

[0083] Step S201: obtaining a resource scheduling request from a demander, wherein the resource scheduling request includes required resource information.

[0084] Specifically, the demand system sends a resource scheduling request to the resource scheduling system. The demand resource information includes demand items required by the demand system. The demand items include data volume demand items, processing time demand items, and job load demand items.

[0085] Step S202: for any demand item in the demand resource information, determine the weight information of the demand item according to the current resource status of the cloud computing resource pool and the historical scheduling results of the historical resource scheduling requests.

[0086] Specifically, since there is at least one demand item in the demand resource information, the weight information of each demand item is determined for any demand item according to the current resource status in the cloud computing resource pool and the historical scheduling results of the historical resource scheduling requests that are the same as the demand item. For example, demand system 1 sends a resource scheduling request 1 to the resource scheduling system. Resource scheduling request 1 contains demand resource information including a processing time demand item and a data volume demand item, wherein the processing time demand item is 2 hours and the data volume demand item is 200G; then, for the processing time demand item of 8 cores, the weight information of the processing time demand item is first determined from the historical scheduling results of the historical resource scheduling requests and the current resource status of the cloud computing resource pool; then, according to the data volume demand item, the weight information of the data volume demand item is determined from the historical scheduling results of the historical resource scheduling requests and the current resource status of the cloud computing resource pool.

[0087] Step S203, searching the memory for historical resource scheduling requests that meet the similarity requirements with the resource scheduling request; wherein the similarity is represented by calculating the comprehensive results of each demand item under the corresponding weight information; the memory stores the corresponding relationship between the historical scheduling results and the historical execution results corresponding to each historical resource scheduling request, and the memory is kept dynamically updated.

[0088] Specifically, the memory database collects and obtains server information data in the cloud computing resource pool in real time and stores it in the memory database. The memory database also includes historical resource scheduling requests and their corresponding historical scheduling results. Continue to traverse the historical resource scheduling requests and their corresponding historical scheduling results in the memory database to obtain the similarity between each historical resource scheduling request and the resource scheduling request. The similarity is the comprehensive result of calculating each demand item under the corresponding weight information, and each demand item in the corresponding weight information will be affected by the current resource status of the cloud computing resource pool and then dynamically adjusted. In this application, S is used to represent the similarity, and the following formula 1 is used to calculate the similarity stored in the memory database:

[0089] S=w_data*S_data+w_time*S_time+w_load*S_load……Formula 1

[0090] Among them, S_data represents the similarity of data volume requirement items, S_time represents the similarity of processing time requirement items, and S_load represents the similarity of workload requirement items; w_data represents the weight information of data volume requirement items, w_time represents the weight information of processing time requirement items, and w_load represents the weight information of workload requirement items.

[0091] Step S204: determining a scheduling result for the resource scheduling request based on the historical scheduling results corresponding to the historical resource scheduling requests that meet the similarity requirement.

[0092] This application designs a memory library to store the excellent solutions obtained in the historical optimization process and their corresponding historical scheduling results. It can quickly retrieve the resource allocation solutions that have successfully handled similar tasks in the past according to the required resource information (such as data volume, computing requirements, and expected completion time) of the current resource scheduling request. This not only speeds up the decision-making process of resource scheduling, but also improves the accuracy of resource allocation, ensures that resources are used efficiently, and reduces resource waste caused by mismatched resource allocation.

[0093] Among them, each requirement item includes a data volume requirement item, a processing time requirement item and a workload requirement item; the memory library is stored in a data structure of a multidimensional index node, and the node includes a solution vector representing the scheduling result, a performance indicator representing the execution result, and an environmental status representing the demand resource information; the multidimensional index includes a solution vector and an environmental status.

[0094] Specifically, the memory of the resource scheduling system collects server information data (CPU, number of cores) in the resource pool in real time and stores it in the memory. The memory is based on the KD tree data structure (K-dimensional tree is a data structure that divides and organizes data in k-dimensional space), and designs a data structure of multi-dimensional index nodes, that is, a child node of the tree saves a historical resource scheduling request and its corresponding historical scheduling result. The specific design of each child node includes: solution vector (V), performance index (P) and environment status (E). The solution vector (V) is defined as the vector of resource configuration schemes, V = (v_cpu, v_mem), where v_cpu represents the number of CPU cores and v_mem represents the memory size (GB); the performance index (P) includes resource utilization p_util and task completion time p_time, P = (p_util, p_time), and the environment state (E) is defined as the demand vector of the task, E = (e_data, e_time, e_load), where e_data represents the data processing volume (GB), e_time represents the estimated processing time (hours), and e_load represents the current workload percentage. Therefore, each node records the resource configuration (CPU core number, memory size), actual resource usage (resource utilization, task completion time) and task requirements (data volume, processing time) of historical tasks, that is, each node stores V, P, and E of historical tasks. Each node corresponds to a multidimensional index key, and the dimension of each index key is obtained based on the node environment state E and the dimension of the solution vector V. When the resource scheduling system receives the resource scheduling request from the demand system, it searches the memory base through the same multidimensional index key as the resource scheduling system, which can achieve efficient range query and nearest neighbor search.

[0095] In addition, the memory can add the current resource scheduling request as a new tree node to the memory based on the required resource information of the completed current resource scheduling request, or if there are different scheduling results for the same resource scheduling request, the historical scheduling results in the historical node can be modified or deleted to maintain the real-time and accuracy of the data.

[0096] In some embodiments, the memory library may adopt a simplified key-value pair storage structure, where the key is a characteristic description of the task (such as data volume, CPU requirement, etc.) and the value is an overview of historical solutions.

[0097] In the above step S203, historical resource scheduling requests that meet the similarity requirements with the resource scheduling request are searched from the memory library, including: for any demand item, determining the normalized difference between the demand value of the demand item in the resource scheduling request and the historical value in any historical resource scheduling request; obtaining the comprehensive similarity between the resource scheduling request and any historical resource scheduling request based on the difference size of each demand item and the weight information of each demand item; and determining the historical resource scheduling request whose comprehensive similarity meets the similarity requirements.

[0098] Specifically, by calculating the difference ratio between the current resource scheduling request and the historical value of the historical resource scheduling request in the memory library, a similarity score between 0 and 1 can be obtained, where 1 indicates that they are exactly the same and close to 0 indicates that they are quite different. That is, in the above formula 1, the data volume requirement item: S_data = 1-|e_data-h_data| / max_data_range, where e_data is the data processing volume (GB), h_data is the data volume requirement item of the historical solution, and max_data_range is the maximum range of data volume; S_time = 1-|e_time-h_time| / max_data_range, where e_time is the estimated processing time (hours), and h_time is the processing time requirement item of the historical solution; S_load = 1-|e_load-h_load| / max_data_range, where e_load represents the current workload percentage, and h_load is the workload requirement item of the historical solution. The normalized difference sizes of the requirements and the corresponding weight information are introduced into the above formula 1 to obtain the comprehensive similarity between the current resource scheduling request and any historical resource scheduling request, and determine the historical resource scheduling request that meets the similarity requirements.

[0099] By dividing each requirement item by max_data_range (the maximum possible range of variation in the amount of data), the formula normalizes the similarity scores between different tasks so that they are not affected by the specific amount of data, making it easier to compare across tasks. At the same time, the formula is also highly flexible and can be adapted to data processing requirements of different scales by adjusting max_data_range, or combined with similarity scores of other dimensions to comprehensively evaluate the overall similarity. It also ensures balance when selecting historical solutions (balancing "closest match" and "exact match"), and can find close solutions even when there is no exact match, ensuring the feasibility and effectiveness of resource allocation.

[0100] In a cloud computing environment, the amount and type of requests from the demand system may change rapidly (such as sudden high-traffic events), which requires the resource scheduling system to respond to these changes in real time and dynamically adjust the resource allocation strategy. For cloud computing resource pools, environmental factors such as server availability and network conditions may also change rapidly. Therefore, the present application designs a model for dynamically adjusting weight information to dynamically adjust resource allocation strategies. Specifically, in the above step S202, the weight information of the demand item is determined according to the current resource status of the cloud computing resource pool and the historical scheduling results of historical resource scheduling requests, including: inputting the resource scheduling request into the prediction model to obtain the weight prediction value of any demand item; the prediction model is obtained by training each historical resource scheduling request and its corresponding historical scheduling results and historical execution results; according to the current resource status of the cloud computing resource pool, the weight adjustment information is determined; according to the weight adjustment information, the weight prediction value of any demand item is adjusted to obtain the weight information of any demand item. The real-time status feedback adjustment coefficient is set according to the real-time status of the cloud computing resource pool; and / or the sliding window weight is set according to the task execution status within the set time in the cloud computing resource pool; and / or the scene recognition adjustment coefficient is set according to the task execution requirements in the demand resource information; the real-time status feedback adjustment coefficient, the sliding window weight and the scene recognition adjustment coefficient are weight adjustment information.

[0101] By dynamically adjusting the weights of similarity scoring parameters, cloud computing resource scheduling can flexibly respond to the changing demands of various tasks and the real-time status of the system. In a cloud resource computing environment, resource demand and availability may change rapidly. By adjusting weight parameters (such as giving priority to tasks with large data volumes or urgent tasks) to adapt to these changes, the task scheduling strategy is optimized to ensure the success rate of resource allocation tasks.

[0102] In detail, the model for dynamically adjusting weight parameters first uses historical data H_data to train the prediction model, where the historical task data H_data includes the current resource status of the cloud computing resource pool, historical resource scheduling requests, and corresponding historical scheduling results. The resource scheduling request is input into the prediction model to obtain the prediction weight parameters w_data_pred, w_time_pred, and w_load_pred of the three demand items; the weight parameters are adjusted according to the current resource status of the cloud computing resource pool, such as resource utilization and task delay. w_data_new=w_data_pred*α_util、w_time_new=w_time_pred*α_delay;According to the current system state S_current, calculate the weight parameters of the real-time adjustment coefficients α_util and α_delay, wherein the system state S_current includes the system load e_load, resource utilization, etc.;For the resource utilization and task delay;Adjust the weight based on the task execution and system state in the recent period, calculate the sliding window average or exponential decay value of the weight to reflect the latest system state and demand changes: w_data_sw、w_time_sw、w_load_sw;Identify the current scene Scene_current according to information such as task type and system load, apply the preset corresponding weight adjustment rule R_scene, and obtain the scene adjustment coefficient β_scene;Combining the adjustment coefficients and predicted weights obtained in the above steps, calculate the final dynamically adjusted weight parameters: w_data_final=f(w_data_new,w_data_sw,β_scene), and similarly calculate w_time_final and w_load_final;

[0103] The specific dynamic adjustment formula of the comprehensive weight is as follows: Formula 2:

[0104] w_final=(w_pred9α+w_sw)*β…Formula 2

[0105] Among them, w_pred is the weight predicted by the linear regression model, α is the real-time state feedback adjustment coefficient, w_sw is the weight calculated by the sliding window, and β is the adjustment coefficient based on scene recognition. The adjustment coefficients α (real-time state feedback adjustment coefficient), w_sw (weight calculated by the sliding window), and β (scene recognition adjustment coefficient) are set based on different considerations and goals, with the aim of providing a flexible and dynamic method to adapt to the changing resource requirements and system status in the cloud computing resource scheduling environment.

[0106] The following describes the meaning and process of setting each parameter value in the dynamic adjustment formula of the above comprehensive weight:

[0107] 1. α reflects the need for real-time adjustment of the impact of the current state of the system on the weight, including factors such as resource utilization and task delay. Therefore, if the system observes that resources are often insufficient and cause task delays, it is necessary to increase the weight biased towards resource utilization. If resources are in excess, it means that some resource utilization can be sacrificed in order to complete the task faster. Set the threshold of α (such as the resource utilization threshold util_thresh and the task delay threshold delay_thresh), and dynamically adjust the value of α based on the comparison between the current real-time resource utilization and the threshold. The threshold of α (0.5<α<1.5) is set based on a series of considerations and practical experience. Considering system performance and stability, and avoiding excessive adjustments, the lower limit of α is set to 0.5 instead of 0, which can avoid making extreme adjustments, such as completely ignoring the impact of a parameter (if α is 0, it is equivalent to ignoring the parameter, and α>1.5 indicates over-emphasis). These ranges are selected to enable the system to effectively respond to different degrees of resource utilization changes or task emergencies. Smaller adjustments (such as thresholds close to 1) are suitable for slight scene changes, while larger adjustments (such as thresholds close to 0.5 or 1.5) are used to respond to more significant changes in system status. This helps maintain the stability of the system and ensures that a certain focus on key indicators is maintained even when adjusting parameters. By keeping the minimum value of α at 0.5, the system can still reflect some of the impact of this parameter and avoid making undesirable decisions due to ignoring certain key parameters. For example, considering that the current workload has reached 70%, indicating that system resources are relatively tight, and the task has strict requirements on resource acquisition time (within 10 minutes), this requires the system to be more inclined to respond quickly when scheduling resources. Therefore, α is set to 1.2, slightly higher than 1, to strengthen the tendency towards rapid resource allocation and ensure that urgent tasks can get the required resources first. (Conversely, if the resource utilization rate is less than 70% at this time, α can be set to less than 1 (such as 0.8) to reduce resource allocation).

[0108] 2. w_sw takes into account the task execution and system status in the recent period of time, so that the weight parameters can reflect the latest trends and demand changes, that is, the effectiveness of resource allocation decisions (if recent tasks can usually be successfully completed under tight resource conditions, it means that the existing resource allocation strategy is relatively effective. For example, the task completion of the recent resource demand system is good, that is, the resource allocation strategy can usually meet similar task requirements, then w_{sw} can be kept close to 1). According to the workload and resource allocation success rate in the past 7 days, the weights are averaged and the standard deviation is subtracted, which is the following formula 3:

[0109]

[0110] w_sw is the sliding window average of the weights in the time window. The value range is 0-1, 0 represents the lowest priority (maybe almost no resources are considered), and 1 represents the highest priority (resources need to be allocated first). N is the total number of tasks in the time window, w_i is the weight value of the i-th task, and all w_i from i=1 to i=N are accumulated.

[0111] For example, in the past 7 days, the system processed 5 tasks, and each task was assigned the following weight values ​​based on its workload, resource requirement urgency, and resource allocation success rate:

[0112] The weight of task 1 is w_1 = 0.8

[0113] The weight of task 2 is w_2 = 0.7

[0114] The weight of task 3 is w_3 = 0.9

[0115] The weight of task 4 is w_4 = 0.6

[0116] The weight of task 5 is w_5 = 0.75

[0117] Substituting into the formula, the average weight w_sw of the sliding window within the time window of the demand application in this example is 0.75; this indicates that the system can basically effectively manage resources under similar loads, but considering further improving the allocation of resources within the required time (within 10 minutes), the weight w_sw is slightly increased to 0.8 for this example (not setting it higher is because it cannot deviate too much from the average weight calculated by historical performance, so as to avoid resource waste caused by excessive resource allocation)

[0118] 3. β reflects the need to adjust the weights of the scenarios identified based on information such as the current task type and system load. In different scenarios, the priority of resource utilization and task completion time may be different. β enables the scheduling system to automatically adjust the weight configuration according to the scenario. The value of β varies between 0.8 and 1.2. The reason for setting it is the same as α. Setting a smaller adjustment (β close to 1) is to apply to slight scenario changes, that is, the changes in different scenarios have a smaller impact on the final weights than other influencing factors (such as resource requirements and system load, allocation success rate, etc.); for example, this requirement example takes into account the urgency of the current task requirements (resources need to be obtained within 10 minutes) and the relatively high workload (70%), and it is necessary to pay more attention to the resource allocation of urgent tasks. Set β = 1.3 to strengthen the response to urgent tasks and ensure that the resource requirements of urgent tasks are met first when resources are tight.

[0119] Based on the above resource demand example, assume that the weight w_pred obtained by linear regression prediction based on historical data is 1.0,

[0120] Calculate the adjusted prediction weights:

[0121] w adj =w pred *α=1.0*1.2=1.2

[0122] Comprehensive sliding window weights, combining the adjusted prediction weights with the sliding window weights:

[0123] w combined =w adj *w sw =1.2+0.8=2.0

[0124] Considering the current application scenario, adjust the coefficient β, and finally obtain w_data_final as the weight parameter of the similarity evaluation function;

[0125] w final =w combined *β=2.0*1.3=2.6

[0126] Calculate the similarity score for the above example:

[0127] Assume that the resource scheduling system currently receives a resource scheduling request of a batch task type, which requires 200GB of data to be processed, the estimated processing time is 2 hours, the CPU requirement is 8 cores, and the additional requirement is to obtain all resources within 10 minutes. The number of CPU cores remaining in the current resource pool is 100 cores, and the remaining memory is 400GB. The target workload of this batch task type is 70%; max_data_range = 500GB is used as the maximum range of data processing volume, and the maximum processing time range is assumed to be max_time_range = 5 hours, and the maximum load variation range is max_load_range = 100%. Assume that the data volume processing requirement of the historical solution is h_data = 150GB, the estimated processing time is h_time = 1.5 hours, the workload is h_load = 60%, and a 6-core CPU is used.

[0128] Data volume similarity (S_data):

[0129]

[0130] Processing time similarity (S_time):

[0131]

[0132] Job load similarity (S_load):

[0133]

[0134] Based on the above considerations of the current application scenario, the coefficient β is adjusted, and the final w_data_final is 2.6. The same method can be used to calculate w_time_final as 4.2 (because there is a requirement to obtain resources within 10 minutes, a higher weight will be given when calculating the time weight to tend to complete the task quickly), and w_load_final is 1.9. They are normalized to obtain the proportion of the weights of the three:

[0135] w_data_final=2.6 / (2.6+4.2+1.9)=0.3

[0136] w_time_final=4.2 / (2.6+4.2+1.9)=0.5

[0137] w_load_final=1.9 / (2.6+4.2+1.9)=0.2

[0138] Substituting the above three parameter values ​​into the above formula 1, the final comprehensive similarity score is obtained as follows:

[0139] S=w_data*S_data+w_time*S_time+w_load*S_load

[0140] =0.3*0.9+0.5*0.9+0.2*0.9=0.27+0.45+0.18=0.9

[0141] In this example, the comprehensive similarity score is 0.9 (close to 1), which is a relatively high score, indicating that the current task requirements and the selected historical solution have a high degree of similarity in terms of data volume, processing time, and workload. In addition, the current resource pool has 100 cores and 400GB of memory resources available, and the resource pool can also meet the allocation if the historical solution is used. This means that the historical solution may be a good candidate for the current task requirements (for the understanding below, this historical solution is referred to as solution A here), and the resource allocation decision can be guided by this historical solution.

[0142] In the above step S204, based on the historical scheduling results corresponding to the historical resource scheduling requests that meet the similarity requirements, a scheduling result is determined for the resource scheduling request, including: determining the balance parameter information; the balance parameter information is used as a distinguishing weight between resource utilization and task completion time; determining the first cost of the historical scheduling results corresponding to the historical resource scheduling requests that meet the similarity requirements under the balance parameter information; determining the second cost of the preset resource configuration scheme under the balance parameter information; determining the initial value of the balance parameter based on the first cost and the second cost, based on the demand resource information and the current resource status of the cloud computing resource pool; determining the weight adjustment information based on the current resource status of the cloud computing resource pool; adjusting the initial value of the balance parameter based on the weight adjustment information to obtain the balance parameter information.

[0143] Specifically, the preset resource allocation scheme is a resource allocation scheme obtained based on multiple artificially pre-set strategies, such as ignoring resource usage and allocating resources first; or ignoring task timeliness and trying to ensure resource utilization. Since resource utilization and task completion time are often two conflicting goals, high resource utilization may increase task waiting time, while the pursuit of rapid task completion may lead to idle resources. Therefore, the balance parameter information λ is introduced as the distinguishing weight between resource utilization and task completion time. The resource allocation decision algorithm calculation method is as follows: Formula 4:

[0144] D_opt=arg min(λ*p_util+(1-λ)*p_time)......Formula 4

[0145] The resource allocation decision algorithm provides a flexible mechanism to balance these two goals by introducing the balance parameter information λ. The λ parameter allows the scheduling strategy to adjust the relative importance of resource utilization and task completion time according to the specific scenario and priority. The value of λ is between 0 and 1, where a higher λ value indicates a greater emphasis on resource utilization and a lower λ value indicates a greater emphasis on rapid task completion. In addition, the λ value introduces a dynamic adjustment model, so that the final decision is closer to balance and maximizes benefits.

[0146] Input the resource scheduling request into the prediction model to obtain the prediction weight parameters of the three demand items and the predicted value of the balance parameter information λ_pred; λ_pred is trained based on the current task demand T_current and the system state S_current, where T_current includes the data volume e_data, the estimated processing time e_time, etc.; the system state S_current includes the system load e_load, resource utilization, etc. The weight is adjusted based on the task execution status and system status in the recent period, and the sliding window average or exponential decay value of the weight is calculated to reflect the latest system status and demand changes to obtain λ_sw. Substituting λ_pred and λ_sw into the above formula 2, λ_final can be obtained.

[0147] For example, based on the similarity score and the current resource status in the above example, a resource configuration mode (as solution A) can be identified from the historical data, indicating that the mode has successfully handled requirements similar to the current task. At the same time, the present invention will also consider another possible resource configuration (as solution B), which is a resource configuration solution obtained based on the current resource status and the task according to multiple pre-set strategies.

[0148] Solution A: Allocate 8 CPU cores and sufficient memory, with an estimated resource utilization rate of 70% and a completion time of 1.8 hours (compared to the 6 cores of the historical solution, 2 more cores are allocated because the amount of data to be processed by this task is 200G, which is 50G more than the amount of data processed by the historical solution).

[0149] Option B: Try a higher resource allocation, i.e. 10-core CPU, to try to speed up the processing, with an estimated resource utilization of 60% and a completion time of 1.5 hours.

[0150] According to the above formula 4, the scores of scheme A and scheme B are calculated:

[0151] D_A=λ*p_util_A+(1-λ)*p_time_A=0.6*0.7+0.4*(1.8 / 5)=0.42+0.144=0.564

[0152] Option B:

[0153] D_B=λ*p_util_B+(1-λ)*p_time_B=0.6*0.6+0.4*(1.5 / 5)=0.36+0.12=0.48

[0154] The score in the algorithm actually represents a "comprehensive cost" or "loss", where high resource utilization may mean resource constraints, and long task completion time may mean poor responsiveness or service quality. Therefore, a lower score means that under a given trade-off, this configuration scheme can meet the demand at a smaller total cost. Therefore, scheme B is selected as the final scheduling decision, which better balances resource utilization and task completion time. Therefore, the scheduling system allocates 10-core CPU and 200G memory to the demand-side system to ensure the normal operation of the job. It is expected that the task can be completed in 1.5 hours, and the resource utilization rate is 60%, which is only a 10% decrease compared to the current utilization rate of 70%, which also ensures full utilization of resources.

[0155] This application uses a resource allocation decision algorithm in a cloud computing scenario to strike a balance between ensuring service quality (such as reducing task completion time) and improving resource utilization. By reasonably setting the balance parameter information λ, and the parameter can be dynamically adjusted based on environmental changes, the scheduling system can flexibly adjust the resource scheduling strategy according to the current business goals and resource conditions, which not only meets the user's service quality requirements, but also optimizes the overall resource utilization efficiency.

[0156] like Figure 3 As shown, the present application provides a device 300 for scheduling cloud computing resources, including:

[0157] The acquisition module 301 is used to acquire a resource scheduling request from a demander, wherein the resource scheduling request includes required resource information;

[0158] The processing module 302 is used to determine the weight information of any demand item in the demand resource information according to the current resource status of the cloud computing resource pool and the historical scheduling results of the historical resource scheduling requests;

[0159] The processing module 302 is further used to search the memory for historical resource scheduling requests that meet the similarity requirements with the resource scheduling request; wherein the similarity is characterized by calculating the comprehensive results of each demand item under the corresponding weight information; the memory stores the corresponding relationship between the historical scheduling results and the historical execution results corresponding to each historical resource scheduling request, and the memory is kept dynamically updated;

[0160] The processing module 302 is further configured to determine a scheduling result for the resource scheduling request based on the historical scheduling results corresponding to the historical resource scheduling requests that meet the similarity requirement.

[0161] This application designs a memory library to store the excellent solutions obtained in the historical optimization process and their corresponding historical scheduling results. According to the demand resource information (such as data volume, computing requirements, and expected completion time) of the current resource scheduling request, the resource allocation scheme that has successfully handled similar tasks in history can be quickly retrieved. This not only speeds up the decision-making process of resource scheduling, but also improves the accuracy of resource allocation, ensures that resources are used efficiently, and reduces resource waste caused by mismatched resource allocation. The memory library can add the current resource scheduling request as a new tree node to the memory library based on the demand resource information of the completed current resource scheduling request, or if there are different scheduling results for the same resource scheduling request, the historical scheduling results in the historical node can be modified or deleted to maintain the real-time and accuracy of the data.

[0162] Optionally, the processing module 302 is specifically configured to:

[0163] For any demand item, determining a normalized difference between a demand value of the demand item in the resource scheduling request and a historical value in any historical resource scheduling request;

[0164] Obtaining a comprehensive similarity between the resource scheduling request and any historical resource scheduling request according to the difference size of each demand item and the weight information of each demand item;

[0165] Determine the historical resource scheduling requests whose comprehensive similarity meets the similarity requirement.

[0166] By dividing each requirement item by max_data_range (the maximum possible range of variation in the amount of data), the formula normalizes the similarity scores between different tasks so that they are not affected by the specific amount of data, making it easier to compare across tasks. At the same time, the formula is also highly flexible and can be adapted to data processing requirements of different scales by adjusting max_data_range, or combined with similarity scores of other dimensions to comprehensively evaluate the overall similarity. It also ensures balance when selecting historical solutions (balancing "closest match" and "exact match"), and can find close solutions even when there is no exact match, ensuring the feasibility and effectiveness of resource allocation.

[0167] Optionally, the processing module 302 is specifically configured to:

[0168] Determine balance parameter information; the balance parameter information is used as a distinguishing weight between resource utilization and task completion time;

[0169] Determine a first cost of a historical scheduling result corresponding to the historical resource scheduling request that meets the similarity requirement under the balancing parameter information;

[0170] Determining a second cost of a preset resource configuration solution under the balancing parameter information;

[0171] A scheduling result is determined for the resource scheduling request according to the first cost and the second cost.

[0172] The resource allocation decision algorithm provides a flexible mechanism to balance these two goals by introducing the balance parameter information λ. The λ parameter allows the scheduling strategy to adjust the relative importance of resource utilization and task completion time according to the specific scenario and priority. The value of λ is between 0 and 1, where a higher λ value indicates a greater emphasis on resource utilization and a lower λ value indicates a greater emphasis on rapid task completion. In addition, the λ value introduces a dynamic adjustment model, so that the final decision is closer to balance and maximizes benefits.

[0173] Optionally, the processing module 302 is specifically configured to:

[0174] Input the resource scheduling request into a prediction model to obtain a weight prediction value of any demand item; the prediction model is obtained by training various historical resource scheduling requests and their corresponding historical scheduling results and historical execution results;

[0175] Determine weight adjustment information based on the current resource status of the cloud computing resource pool;

[0176] The weight prediction value of any demand item is adjusted according to the weight adjustment information to obtain the weight information of any demand item.

[0177] By dynamically adjusting the weights of similarity scoring parameters, cloud computing resource scheduling can flexibly respond to the changing demands of various tasks and the real-time status of the system. In a cloud resource computing environment, resource demand and availability may change rapidly. By adjusting weight parameters (such as giving priority to tasks with large data volumes or urgent tasks) to adapt to these changes, the task scheduling strategy is optimized to ensure the success rate of resource allocation tasks.

[0178] Optionally, the processing module 302 is specifically configured to:

[0179] Determining an initial value of a balancing parameter according to the required resource information and the current resource status of the cloud computing resource pool;

[0180] Determining weight adjustment information according to the current resource status of the cloud computing resource pool;

[0181] The initial value of the balance parameter is adjusted according to the weight adjustment information to obtain balance parameter information.

[0182] Optionally, the processing module 302 is specifically configured to:

[0183] Setting a real-time status feedback adjustment coefficient according to the real-time status of the cloud computing resource pool; and / or

[0184] Setting sliding window weights according to task execution status within a set time in the cloud computing resource pool; and / or

[0185] Setting a scene recognition adjustment coefficient according to the task execution requirements in the demand resource information;

[0186] The real-time state feedback adjustment coefficient, the sliding window weight and the scene recognition adjustment coefficient are weight adjustment information.

[0187] Optionally, the processing module 302 is specifically configured to:

[0188] The various requirements include data volume requirements, processing time requirements, and workload requirements;

[0189] The memory is stored in a data structure of multi-dimensional index nodes, wherein the nodes include solution vectors representing scheduling results, performance indicators representing execution results, and environmental states representing required resource information; the multi-dimensional index includes solution vectors and environmental states.

[0190] Based on the same technical concept, the embodiment of the present application provides a computer device, such as Figure 4 As shown, it includes at least one processor 401 and a memory 402 connected to the at least one processor. The specific connection medium between the processor 401 and the memory 402 is not limited in the embodiment of the present application. Figure 4 For example, the processor 401 and the memory 402 are connected via a bus. The bus can be divided into an address bus, a data bus, a control bus, etc.

[0191] In the embodiment of the present application, the memory 402 stores instructions that can be executed by at least one processor 401. The at least one processor 401 can execute the steps of the above-mentioned method for scheduling cloud computing resources by executing the instructions stored in the memory 402.

[0192] Among them, the processor 401 is the control center of the computer device, which can use various interfaces and lines to connect various parts of the computer device, and dispatch the resources corresponding to the resource scheduling request in the cloud computing resource pool to the demand side by running or executing the instructions stored in the memory 402 and calling the data stored in the memory 402. Optionally, the processor 401 may include one or more processing units, and the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application program, etc., and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 401. In some embodiments, the processor 401 and the memory 402 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on independent chips.

[0193] Processor 401 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit (ASIC), a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware processor for execution, or can be executed by a combination of hardware and software modules in the processor.

[0194] The memory 402 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 402 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (Random Access Memory, RAM), a static random access memory (Static Random Access Memory, SRAM), a programmable read-only memory (Programmable Read Only Memory, PROM), a read-only memory (Read Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory 402 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer device, but is not limited thereto. The memory 402 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.

[0195] Based on the same inventive concept, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program that can be executed by a computer device. When the program runs on the computer device, the computer device executes the steps of the above-mentioned method for scheduling cloud computing resources.

[0196] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0197] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0198] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0199] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0200] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for scheduling cloud computing resources, characterized in that: include: Obtaining a resource scheduling request from a demander, wherein the resource scheduling request includes demand resource information; For any demand item in the demand resource information, determine weight information of the demand item according to the current resource status of the cloud computing resource pool and the historical scheduling results of historical resource scheduling requests; Searching for historical resource scheduling requests that meet the similarity requirements with the resource scheduling request from the memory database; wherein the similarity is characterized by calculating the comprehensive results of each demand item under the corresponding weight information; the memory database stores the corresponding relationship between the historical scheduling results and the historical execution results corresponding to each historical resource scheduling request, and the memory database is kept dynamically updated; Based on the historical scheduling results corresponding to the historical resource scheduling requests that meet the similarity requirement, a scheduling result is determined for the resource scheduling request.

2. The method according to claim 1, characterized in that The searching from the memory database for a historical resource scheduling request that meets the similarity requirement with the resource scheduling request includes: For any demand item, determining a normalized difference between a demand value of the demand item in the resource scheduling request and a historical value in any historical resource scheduling request; Obtaining a comprehensive similarity between the resource scheduling request and any historical resource scheduling request according to the difference size of each demand item and the weight information of each demand item; Determine the historical resource scheduling requests whose comprehensive similarity meets the similarity requirement.

3. The method according to claim 1, characterized in that The determining a scheduling result for the resource scheduling request based on the historical scheduling result corresponding to the historical resource scheduling request that meets the similarity requirement includes: Determine balance parameter information; the balance parameter information is used as a distinguishing weight between resource utilization and task completion time; Determine a first cost of a historical scheduling result corresponding to the historical resource scheduling request that meets the similarity requirement under the balancing parameter information; Determining a second cost of a preset resource configuration solution under the balancing parameter information; A scheduling result is determined for the resource scheduling request according to the first cost and the second cost.

4. The method according to any one of claims 1 to 3, characterized in that The step of determining the weight information of the demand item according to the current resource status of the cloud computing resource pool and the historical scheduling results of the historical resource scheduling requests includes: Input the resource scheduling request into a prediction model to obtain a weight prediction value of any demand item; the prediction model is obtained by training various historical resource scheduling requests and their corresponding historical scheduling results and historical execution results; Determine weight adjustment information based on the current resource status of the cloud computing resource pool; The weight prediction value of any demand item is adjusted according to the weight adjustment information to obtain the weight information of any demand item.

5. The method according to claim 4, characterized in that The determining of the balance parameter information includes: Determining an initial value of a balancing parameter according to the required resource information and the current resource status of the cloud computing resource pool; Determining weight adjustment information according to the current resource status of the cloud computing resource pool; The initial value of the balance parameter is adjusted according to the weight adjustment information to obtain balance parameter information.

6. The method according to claim 4, characterized in that The step of determining the weight adjustment information according to the current resource status of the cloud computing resource pool includes: Setting a real-time status feedback adjustment coefficient according to the real-time status of the cloud computing resource pool; and / or Setting sliding window weights according to task execution status within a set time in the cloud computing resource pool; and / or Setting a scene recognition adjustment coefficient according to the task execution requirements in the demand resource information; The real-time state feedback adjustment coefficient, the sliding window weight and the scene recognition adjustment coefficient are weight adjustment information.

7. The method according to claim 4, characterized in that The various requirements include data volume requirements, processing time requirements, and workload requirements; The memory is stored in a data structure of multi-dimensional index nodes, wherein the nodes include solution vectors representing scheduling results, performance indicators representing execution results, and environmental states representing required resource information; the multi-dimensional index includes solution vectors and environmental states.

8. A device for scheduling cloud computing resources, characterized in that: include: An acquisition module, used to acquire a resource scheduling request from a demander, wherein the resource scheduling request includes required resource information; A processing module, configured to determine, for any demand item in the demand resource information, weight information of the demand item according to a current resource status of the cloud computing resource pool and a historical scheduling result of a historical resource scheduling request; The processing module is further used to search the memory for historical resource scheduling requests that meet the similarity requirements with the resource scheduling request; wherein the similarity is characterized by calculating the comprehensive results of each demand item under the corresponding weight information; the memory stores the corresponding relationship between the historical scheduling results and the historical execution results corresponding to each historical resource scheduling request, and the memory is kept dynamically updated; The processing module is further configured to determine a scheduling result for the resource scheduling request based on the historical scheduling results corresponding to the historical resource scheduling requests that meet the similarity requirement.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of any one of the methods of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: It stores a computer program executable by a computer device. When the program is run on the computer device, the computer device executes the steps of any method described in claims 1 to 7.

Citation Information

Cited By

  • Resource allocation method, system and equipment for heterogeneous equipment and storage medium

    CN119396559A

  • A resource allocation method, system, device and storage medium for heterogeneous devices

    CN119396559B

  • Medical knowledge question-answering method, system and equipment based on large language model

    CN119577099A

  • Task optimization configuration method based on historical resource records

    CN119645666A

  • Gateway intelligent decision-making method and equipment

    CN120602262A