Computing power resource allocation method and device, equipment, storage medium and program product

By using a multi-dimensional random forest model and entropy weight method to calculate weights, the priority of computing power resource allocation is dynamically adjusted, which solves the problem of low resource allocation efficiency in existing technologies and achieves efficient resource utilization and priority processing of critical tasks.

CN118964023APending Publication Date: 2024-11-15MIGU CO LTD +1
View PDF 0 Cites 6 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing computing resource allocation and scheduling schemes are unable to effectively allocate resources, resulting in low resource utilization efficiency.

Method used

By acquiring multi-dimensional random forest computing power information, using the random forest model for prediction, and combining the entropy weight method to calculate weights, the priority of resource allocation is dynamically adjusted to achieve intelligent allocation and management of computing power resources.

Benefits of technology

It improves the efficiency of computing resource allocation, ensures the execution priority of critical tasks, and protects resources and bandwidth from being affected during the computing process, avoiding resource waste and network congestion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118964023A_ABST
    Figure CN118964023A_ABST
Patent Text Reader

Abstract

The invention discloses a computing power resource allocation method and device, equipment, a storage medium and a program product, relates to the technical field of communication, and aims to improve the efficiency of computing power resource allocation. Comprising the steps that first computing power resource information and multi-dimensional random forest computing power information are acquired, and the first computing power resource information comprises multi-dimensional information determined according to a first computing power task requirement and the current computing power resource condition of a computing power network; based on the first computing power resource information and the random forest computing power information of multiple dimensions, utilizing a random forest model corresponding to the random forest computing power information of each dimension to perform prediction, and obtaining a prediction result of each random forest model; respectively determining the weights of the random forest computing power information of the plurality of dimensions; determining a resource allocation priority corresponding to the first computing power task demand according to the prediction result and the weight; and allocating computing power resources to the first computing power task demand according to the resource allocation priority. According to the embodiment of the invention, the efficiency of computing power resource allocation can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a computing resource allocation method, device, equipment, storage medium and program product. Background Art

[0002] The existing computing resource allocation and scheduling solutions have achieved efficient management and optimal utilization of computing resources through highly integrated and intelligent system design. However, the existing technologies consider limited information and cannot perform effective resource allocation. Summary of the invention

[0003] The embodiments of the present application provide a computing resource allocation method, apparatus, device, storage medium and program product to improve the efficiency of computing resource allocation.

[0004] In a first aspect, an embodiment of the present application provides a computing resource allocation method, including:

[0005] Obtaining first computing power resource information and random forest computing power information of multiple dimensions, wherein the first computing power resource information includes information of multiple dimensions determined according to the first computing power task requirement and the current computing power resource situation of the computing power network;

[0006] Based on the first computing power resource information and the random forest computing power information of the multiple dimensions, prediction is performed using the random forest model corresponding to the random forest computing power information of each dimension to obtain a prediction result of each random forest model;

[0007] Determining the weights of the random forest computing power information of the multiple dimensions respectively;

[0008] Determine, according to the prediction result and the weight, a resource allocation priority corresponding to the first computing power task requirement;

[0009] Allocate computing resources to meet the first computing task requirement according to the resource allocation priority.

[0010] In a second aspect, an embodiment of the present application further provides a computing resource allocation device, characterized in that it includes:

[0011] A first acquisition module is used to acquire first computing power resource information and random forest computing power information of multiple dimensions, wherein the first computing power resource information includes information of multiple dimensions determined according to the first computing power task requirement and the current computing power resource situation of the computing power network;

[0012] A second acquisition module is used to perform prediction based on the first computing power resource information and the random forest computing power information of the multiple dimensions using the random forest model corresponding to the random forest computing power information of each dimension to obtain a prediction result of each random forest model;

[0013] A first determination module is used to respectively determine the weights of the random forest computing power information of the multiple dimensions;

[0014] A second determination module is used to determine the resource allocation priority corresponding to the first computing power task demand according to the prediction result and the weight;

[0015] The first allocation module is used to allocate computing resources to the first computing task requirement according to the resource allocation priority.

[0016] In a third aspect, an embodiment of the present application further provides a communication device, comprising: a memory, a processor, and a program stored in the memory and executable on the processor, wherein the processor implements the steps in the computing power resource allocation method as described above when executing the program.

[0017] In a fourth aspect, an embodiment of the present application further provides a readable storage medium, on which a program is stored, and when the program is executed by a processor, the steps in the computing power resource allocation method as described above are implemented.

[0018] In a fifth aspect, an embodiment of the present application further provides a computer program product, comprising computer instructions, which, when executed by a processor, implement the steps in the computing power resource allocation method as described above.

[0019] In an embodiment of the present application, based on the first computing power resource information and the random forest computing power information of multiple dimensions, the random forest model corresponding to the random forest computing power information of each dimension is used for prediction to obtain the prediction results of each random forest model, and the weights of the random forest computing power information of the multiple dimensions are determined respectively. Afterwards, based on the prediction results and the weights, the resource allocation priority corresponding to the first computing power task demand is determined, and computing power resources are allocated to the first computing power task demand based on the resource allocation priority. Since the first computing power resource information and the random forest computing power information of multiple dimensions both include information of multiple dimensions, using the solution of the embodiment of the present application, data of multiple dimensions and angles can be considered to perform computing power resource allocation in different scenarios, thereby improving the efficiency of computing power resource allocation. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 This is one of the flow charts of the computing resource allocation method provided in the embodiment of the present application;

[0021] Figure 2 This is the second flowchart of the computing resource allocation method provided in the embodiment of the present application;

[0022] Figure 3 It is one of the structural diagrams of the computing power resource allocation device provided in the embodiment of the present application;

[0023] Figure 4 It is a structural diagram of the communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] In the embodiments of the present application, the term "and / or" describes the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.

[0025] In the embodiments of the present application, the term "plurality" refers to two or more than two, and other quantifiers are similar.

[0026] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0027] In an embodiment of the present application, random forest is used for multi-dimensional classification and entropy weight method is used for dynamic weight allocation, so as to dynamically calculate the optimal and sustainable computing power resources and perform intelligent allocation and management.

[0028] See also Figure 1 , Figure 1 is a flowchart of a computing resource allocation method provided in an embodiment of the present application. Figure 1 As shown, the following steps are included:

[0029] Step 101: Obtain first computing power resource information and random forest computing power information in multiple dimensions, wherein the first computing power resource information includes information in multiple dimensions determined according to the first computing power task requirements and the current computing power resource situation of the computing power network.

[0030] Here, the purpose of obtaining the first computing power resource information is to provide comprehensive and accurate available parameters and data for the random forest model, and to provide basic information for subsequent model training and analysis. Specifically, the available computing resources of the current computing power network ecological aggregation platform or each managed computing power node in the computing power network and the demand information of the first computing power task requirements can be collected, including but not limited to the following dimensions:

[0031] Dimension 1: The number of managed computing nodes, including self-developed computing nodes and computing nodes that partners have connected to. Collect the computing resource types of each node, including CPU, Graphics Processing Unit (GPU), Neural Processing Unit (NPU), Field Programmable Gate Array (FPGA), Application Specific Integrated Circuit (ASIC) and other heterogeneous computing types.

[0032] Dimension 2: The current network bandwidth between managed computing nodes, including the total bandwidth and available bandwidth capacity between any two nodes, the number of channels and single-channel bandwidth capacity between any two nodes, and the single-channel delay between any two nodes.

[0033] Dimension 3: Computing resource usage of managed computing nodes, including CPU usage, memory usage, storage capacity usage, computing response time, etc.

[0034] Dimension 4: The first computing power task demand information, and based on the platform's computing power matching module, calculate the best computing power resource type suitable for the current computing task.

[0035] The information of dimensions 1 and 4 can be obtained by manual entry and calculation, and the information of dimensions 2 and 3 can be automatically retrieved through the Application Programming Interface (API) interface to obtain the status data of the network and computing resources in the node.

[0036] Optionally, in the embodiment of the present application, in order to ensure the subsequent processing efficiency and speed, the obtained data may be preprocessed so as to process missing values ​​and abnormal values ​​and standardize the data to eliminate the dimension effect. The preprocessing process may include:

[0037] (1) Data cleaning and processing to eliminate invalid, erroneous, incomplete or abnormal data records.

[0038] (2) Data feature extraction: extracting information useful for model training from the original data.

[0039] (3) Data standardization ensures that different types of data are compared on the same scale to eliminate the impact of different measurement scales.

[0040] Random forest computing power information in multiple dimensions, including but not limited to the following information:

[0041] Dimension 1: Customer importance. Comprehensive scoring can be performed based on customer information, including customer type, industry, scale, computing needs, etc.

[0042] Dimension 2: The importance and urgency of the computing task, which can be comprehensively evaluated by task type, protocol classification, etc.

[0043] Dimension 3: Bandwidth consumption. Calculated based on task requirements and platform-related functional modules.

[0044] Dimension 4: Time consumption. Calculated through platform-related functional modules based on the task requirement information of the first computing task.

[0045] Step 102: Based on the first computing power resource information and the random forest computing power information of the multiple dimensions, prediction is performed using the random forest model corresponding to the random forest computing power information of each dimension to obtain a prediction result of each random forest model.

[0046] In this step, based on the random forest computing power information of the multiple dimensions, the target decision trees corresponding to the random forest information of each dimension are obtained respectively, and based on the first computing power resource information and the random forest computing power information of each dimension, the target decision tree corresponding to the random forest computing power information of each dimension is used to perform prediction to obtain a sub-prediction result. Then, based on the voting mechanism, the prediction result of each target decision tree is obtained according to the sub-prediction result of each target decision tree.

[0047] For a computing task requirement, if it is the first time to process the computing task requirement, a target decision tree corresponding to the random forest information of each dimension can be generated. Otherwise, the target decision tree generated when the computing task requirement was previously executed can be obtained, or the decision tree obtained by updating the parameters on this basis can be obtained.

[0048] In the embodiment of the present application, the random forest computing power information of each dimension is used to train the random forest model M. i , where i = 1, 2...N, N represents the total number of dimensions to process data of different dimensions. Here, a multi-dimensional classification method is adopted to independently train a random forest model for each dimension to process and analyze the diverse features extracted from different sources and types of data. The random forest model is used for classification prediction of network traffic and resource status, which not only improves the classification accuracy, but also enhances the generalization ability of the model and adapts to the dynamic changes of the computing power network.

[0049] The process of training a random forest model includes:

[0050] Random sampling: A certain number of samples are randomly selected from the original training set as the training set for each decision tree.

[0051] Random feature selection: For each node of each decision tree, a portion of features are randomly selected from all features for evaluation, and the best features are selected for splitting.

[0052] Construct decision trees: Construct multiple decision trees based on random sampling and random feature selection.

[0053] Prediction: For classification problems, the prediction results of each decision tree are integrated by voting or taking the average; for regression problems, the prediction results of each decision tree are averaged.

[0054] Specifically, a certain number of samples are randomly selected from the training data set as the training set of each decision tree, the best segmentation features and segmentation points are selected at each decision node, and the maximum information gain is calculated.

[0055] The information gain is calculated as follows:

[0056]

[0057] Among them, IG(D p ,f) represents information gain, and I() represents impurity metric. Impurity metric is an indicator used to measure the degree of confusion or purity of a data set. In the process of building a decision tree, impurity metric is used to evaluate the splitting effect of nodes and help select the best splitting features and splitting points to maximize information gain. p , D left , D right Represents the data sets of the parent node and two child nodes, N p 、N left 、N right is the corresponding number of samples. f represents the feature used to segment the data set at each decision node. Selecting the best segmentation feature f and the corresponding segmentation point can maximize the information gain, thereby improving the classification effect of the decision tree.

[0058] In the process of random feature selection, feature selection is used to find the most helpful features for problem solving from the original data set to improve the accuracy and efficiency of the model. It is necessary to randomly select a subset of features from the candidate features at each node of each tree, and select the features for segmentation based on maximizing information gain.

[0059] When making predictions, a single random forest model M is used i The prediction result is obtained by majority voting of the prediction results of its internal decision tree.

[0060] Step 103: Determine the weights of the random forest computing power information of the multiple dimensions respectively.

[0061] In this step, the entropy weight method is used to calculate the weight of the random forest computing power information in each dimension, so that the resource allocation strategy can be dynamically adjusted.

[0062] Specifically, we can first determine the information entropy of the random forest computing power information of each dimension. For each dimension j, we calculate the information entropy to evaluate the dispersion and weight of each indicator:

[0063]

[0064] Among them, E j represents the information entropy of dimension j, p ij is the proportion of indicator j on the i-th evaluation object, and n represents the total number of dimensions. The evaluation object can be understood as one or more computing tasks. Here, based on the principle of information entropy, the dispersion and importance of each indicator can be objectively evaluated to avoid human factors interfering with the credibility of the model.

[0065] Next, the information entropy of the random forest computing power information of the multiple dimensions is calculated to obtain a first value. Here, the calculation method of the first value is not limited. For example, the first value can be calculated according to the following formula: P = 1-E j , P represents the first value, E j represents the information entropy of dimension j.

[0066] Afterwards, the weight of the random forest computing power information in each dimension is obtained according to the information entropy of the random forest computing power information in each dimension and the first value.

[0067] Among them, the weight of dimension j can be expressed as:

[0068]

[0069] Among them, w j represents the weight of dimension j, and m represents the total number of dimensions.

[0070] Step 104: Determine the resource allocation priority corresponding to the first computing task requirement based on the prediction result and the weight.

[0071] Here, a second value is obtained by calculating according to the prediction result corresponding to each random forest model and the weight of the random forest computing power information of each dimension, and multiple second values ​​are summed to obtain the resource allocation priority.

[0072] The resource allocation priority can be expressed as:

[0073]

[0074] FinalScore represents the score corresponding to the resource allocation priority, w irepresents the weight of dimension i, v i Indicates the value converted from the prediction result of the random forest model of dimension i, and the second value is w i ×v i . The method of converting the prediction results corresponding to the random forest model of dimension i into numerical values ​​is not limited.

[0075] Here, the calculation is performed by combining the multi-dimensional classification results and dynamic weights, so that the calculated resource allocation priority can better meet the needs of computing tasks and maximize the use of computing resources.

[0076] Step 105: Allocate computing resources to the first computing task requirement according to the resource allocation priority.

[0077] In an embodiment of the present application, based on the first computing power resource information and the random forest computing power information of multiple dimensions, the random forest model corresponding to the random forest computing power information of each dimension is used for prediction to obtain the prediction results of each random forest model, and the weights of the random forest computing power information of the multiple dimensions are determined respectively. Afterwards, based on the prediction results and the weights, the resource allocation priority corresponding to the first computing power task demand is determined, and computing power resources are allocated to the first computing power task demand based on the resource allocation priority. Since the first computing power resource information and the random forest computing power information of multiple dimensions both include information of multiple dimensions, using the solution of the embodiment of the present application, data of multiple dimensions and angles can be considered to perform computing power resource allocation in different scenarios, thereby improving the efficiency of computing power resource allocation.

[0078] In the embodiments of the present application, for high-priority computing task requirements, the allocated computing resources such as network bandwidth can also be protected. In other words, in order to ensure the smooth progress of all computing tasks and the priority service of key tasks, it is necessary to implement resource and bandwidth protection during the execution of computing tasks. The platform uses virtualization and container technology to isolate resources for different tasks to prevent excessive resource use of one task from affecting other tasks. At the same time, the platform can dynamically adjust resource allocation according to current resource usage and task priority, such as elastic scaling of resources.

[0079] Then, for example, if a second computing power task requirement is received, computing power resources are allocated to the second computing power task requirement, wherein the resource allocation priority of the second computing power task requirement is lower than that of the first computing power task requirement, and the computing power resources allocated to the second computing power task requirement do not conflict with the computing power resources allocated to the first computing power task requirement.

[0080] For the high-priority first computing task requirements, suitable network bandwidth has been pre-allocated before the computing task is executed. At the same time, the bandwidth of tasks with a lower priority than the first computing task requirements is limited to ensure that important applications or data transmission tasks can obtain sufficient bandwidth during network peak hours, avoiding timeouts or failures of key operations due to network congestion.

[0081] On the basis of the above embodiments, an adaptive optimization mechanism can also be used to optimize resource allocation strategies, etc. Based on the collected monitoring data and the prediction data obtained by the time series analysis method, the adaptive optimization mechanism can dynamically adjust the model parameters and resource allocation strategies to adapt to the changing operating environment and computing requirements. Among them, the adaptive optimization mechanism can also use a random forest model for aggregate prediction.

[0082] Specifically, feedback information corresponding to the first computing task requirement may be obtained, and one or more of the following information may be adjusted according to the feedback information: computing resources of the computing network, computing resource allocation strategy, and parameters of the random forest model. The feedback information includes but is not limited to the execution results of the computing task, the usage of computing resources, etc.

[0083] For example, real-time performance data can be collected from each computing node through an embedded monitoring agent or API, including but not limited to resource usage (such as CPU, memory, and network bandwidth), system response time, task execution status, and task completion rate. At the same time, time series analysis methods can be used to dynamically analyze the long-term trends and periodic changes of performance data, predict potential performance problems, and identify any possible performance degradation or resource bottlenecks.

[0084] The adaptive optimization mechanism includes dynamic parameter adjustment and dynamic strategy optimization. The dynamic parameter adjustment is to automatically adjust the parameters of the random forest model (such as the number and depth of trees) and the weights of each feature in the entropy weight method according to the performance feedback data. Dynamic strategy optimization is to automatically analyze the historical data of task execution and resource usage, and automatically optimize task scheduling and resource allocation strategies. Therefore, through the feedback loop mechanism, combined with real-time monitoring data and customer usage feedback, the optimization strategy can be continuously iterated and updated to achieve continuous learning and method optimization. At the same time, through performance monitoring and feedback-based adaptive optimization mechanisms, model parameters and resource allocation strategies can be adjusted according to operating conditions and historical data. Resource usage and network status can be monitored in real time during the calculation process, and resource and bandwidth allocation can be adjusted in a timely manner to prevent resource waste and network congestion.

[0085] See also Figure 2 , Figure 2 is a flowchart of a computing resource allocation method provided in an embodiment of the present application. Figure 2 As shown, the following steps are included:

[0086] Step 201: collect data to obtain first computing power resource information, and collect multi-dimensional data of random forest. The explanation of the first computing power resource information and the multi-dimensional data of random forest can refer to the description of the above embodiment.

[0087] The collected first computing resource information may be subjected to data preprocessing, wherein the data preprocessing method may refer to the description of the above-mentioned embodiment.

[0088] Step 202: Construct a decision tree for the random forest data of each dimension based on the data obtained in step 201. Perform feature selection, prediction, etc. based on the constructed decision tree to obtain the prediction result of each decision tree.

[0089] Step 203: Based on the information entropy and weight of the random forest computing power information of each dimension, a dynamic priority score is obtained. The specific calculation method of the priority score can refer to the description of the above embodiment.

[0090] Step 204: Allocate resources to the first computing task requirement based on the obtained dynamic priority score.

[0091] Step 205: Perform self-optimization based on the obtained feedback information.

[0092] This step may include:

[0093] (1) System monitoring:

[0094] Collect real-time performance data from each computing node through embedded monitoring agents or APIs, including but not limited to resource usage (such as CPU, memory and network bandwidth), system response time, task execution status and task completion rate, etc. Use time series analysis methods to dynamically analyze long-term trends and periodic changes in performance data, predict potential performance problems, and identify any possible performance degradation or resource bottlenecks.

[0095] (2) Resource and bandwidth protection:

[0096] To ensure the smooth progress of all computing tasks and the priority service of key tasks, it is necessary to implement resource and bandwidth protection during the execution of computing tasks.

[0097] The platform uses virtualization and container technologies to isolate resources for different tasks to prevent excessive resource usage of one task from affecting other tasks. At the same time, the platform can dynamically adjust resource allocation according to current resource usage and task priority, such as elastic scaling of resources.

[0098] For high-priority tasks, the platform has pre-allocated appropriate network bandwidth before starting the computing task execution, and at the same time limits the bandwidth of low-priority tasks to ensure that important applications or data transmission tasks can obtain sufficient bandwidth during network peak hours, avoiding key operation timeouts or failures due to network congestion.

[0099] (3) Adaptive optimization mechanism:

[0100] Based on the collected monitoring data and the prediction data obtained using time series analysis methods, the adaptive optimization mechanism can dynamically adjust the model parameters and resource allocation strategies to adapt to the changing operating environment and computing requirements.

[0101] The adaptive optimization mechanism includes dynamic parameter adjustment and dynamic strategy optimization. Dynamic parameter adjustment is to automatically adjust the parameters of the random forest model (such as the number and depth of trees) and the weights of each feature in the entropy weight method based on performance feedback data. Dynamic strategy optimization is to automatically analyze the historical data of task execution and resource usage, and automatically optimize task scheduling and resource allocation strategies.

[0102] Through the feedback loop mechanism, combined with real-time monitoring data and customer usage feedback, we continuously iterate and update optimization strategies to achieve continuous learning and method optimization.

[0103] Through the above description, the solution established by this application can improve resource utilization efficiency while ensuring the execution priority of key tasks and protecting resources and bandwidth in the computing process from being affected.

[0104] See also Figure 3 , Figure 3 is a structural diagram of a computing resource allocation device provided in an embodiment of the present application, which is applied to a terminal. Figure 3 As shown, the computing resource allocation device includes:

[0105] The first acquisition module 301 is used to obtain first computing power resource information and random forest computing power information of multiple dimensions, wherein the first computing power resource information includes information of multiple dimensions determined according to the first computing power task requirement and the current computing power resource situation of the computing power network; the second acquisition module 302 is used to make predictions based on the first computing power resource information and the random forest computing power information of the multiple dimensions, using the random forest model corresponding to the random forest computing power information of each dimension to obtain the prediction results of each random forest model; the first determination module 303 is used to respectively determine the weights of the random forest computing power information of the multiple dimensions; the second determination module 304 is used to determine the resource allocation priority corresponding to the first computing power task requirement according to the prediction results and the weights; the first allocation module 305 is used to allocate computing power resources to the first computing power task requirement according to the resource allocation priority.

[0106] Optionally, the random forest model includes a decision tree; and the second acquisition module includes:

[0107] A first acquisition submodule is used to respectively acquire a target decision tree corresponding to the random forest information of each dimension based on the random forest computing power information of the multiple dimensions;

[0108] A second acquisition submodule is used to perform prediction based on the first computing power resource information and the random forest computing power information of each dimension using a target decision tree corresponding to the random forest computing power information of each dimension to obtain a sub-prediction result;

[0109] The third acquisition submodule is used to obtain the prediction result of each target decision tree according to the sub-prediction results of each target decision tree based on a voting mechanism.

[0110] Optionally, the first determining module includes:

[0111] The first determination submodule is used to determine the information entropy of the random forest computing power information of each dimension respectively;

[0112] A first acquisition submodule is used to calculate the information entropy of the random forest computing power information of the multiple dimensions to obtain a first value;

[0113] The second acquisition submodule is used to obtain the weight of the random forest computing power information of each dimension according to the information entropy of the random forest computing power information of each dimension and the first value.

[0114] Optionally, the second determining module includes:

[0115] A first acquisition submodule is used to calculate according to the prediction result corresponding to each random forest model and the weight of the random forest computing power information of each dimension to obtain a second value;

[0116] The second acquisition submodule is used to sum up the multiple second values ​​to obtain the resource allocation priority.

[0117] Optionally, the device may further include:

[0118] A second allocation module is used to allocate computing resources to the second computing task demand if a second computing task demand is received;

[0119] Among them, the resource allocation priority of the second computing power task requirement is lower than that of the first computing power task requirement, and the computing power resources allocated to the second computing power task requirement do not conflict with the computing power resources allocated to the first computing power task requirement.

[0120] Optionally, the device may further include:

[0121] A third acquisition module is used to obtain feedback information corresponding to the first computing power task requirement;

[0122] The first adjustment module is configured to adjust one or more of the following information according to the feedback information:

[0123] The computing resources of the computing network, the computing resource allocation strategy, and the parameters of the random forest model.

[0124] The device provided in the embodiment of the present application can execute the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0125] It should be noted that the division of units in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0126] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a processor-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.

[0127] See also Figure 4 An embodiment of the present application provides a communication device, including: a memory 401, a processor 402, and a program stored in the memory 401 and executable on the processor 402; the processor 402 is used to read the program in the memory 401 to implement the steps in the computing power resource allocation method as described above.

[0128] The embodiment of the present application also provides a readable storage medium, on which a program is stored. When the program is executed by the processor, each process of the above-mentioned computing resource allocation method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. Among them, the readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disk, hard disk, magnetic tape, magneto-optical disk (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid-state drive (SSD)), etc.

[0129] The embodiment of the present application also provides a computer program product, including computer instructions. When the computer instructions are executed by a processor, the various processes of the above-mentioned computing resource allocation method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not repeated here.

[0130] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0131] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, disk, CD), including a number of instructions for a terminal (which can be a mobile phone, computer, server, air conditioner, or network equipment, etc.) to execute the methods described in each embodiment of the present application.

[0132] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A method for allocating computing resources. It is characterized in that include: Obtaining first computing power resource information and random forest computing power information of multiple dimensions, wherein the first computing power resource information includes information of multiple dimensions determined according to the first computing power task requirement and the current computing power resource situation of the computing power network; Based on the first computing power resource information and the random forest computing power information of the multiple dimensions, prediction is performed using the random forest model corresponding to the random forest computing power information of each dimension to obtain a prediction result of each random forest model; Determining the weights of the random forest computing power information of the multiple dimensions respectively; Determine, according to the prediction result and the weight, a resource allocation priority corresponding to the first computing power task requirement; Allocate computing resources to meet the first computing task requirement according to the resource allocation priority.

2. The method according to claim 1, It is characterized in that The random forest model includes a decision tree; the prediction based on the first computing power resource information and the random forest computing power information of the multiple dimensions is performed using the random forest model corresponding to the random forest computing power information of each dimension to obtain the prediction result of each random forest model, including: Based on the random forest computing power information of the multiple dimensions, respectively obtain a target decision tree corresponding to the random forest information of each dimension; Based on the first computing power resource information and the random forest computing power information of each dimension, prediction is performed using the target decision tree corresponding to the random forest computing power information of each dimension to obtain a sub-prediction result; Based on the voting mechanism, the prediction result of each target decision tree is obtained according to the sub-prediction results of each target decision tree.

3. The method according to claim 1, It is characterized in that The respectively determining weights of the random forest computing power information of the multiple dimensions includes: Determine the information entropy of the random forest computing power information for each dimension separately; Calculate the information entropy of the random forest computing power information based on the multiple dimensions to obtain a first value; According to the information entropy of the random forest computing power information of each dimension and the first value, the weight of the random forest computing power information of each dimension is obtained.

4. The method according to claim 1, It is characterized in that The determining, according to the prediction result and the weight, a resource allocation priority corresponding to the first computing power task requirement includes: The second value is obtained by calculating according to the prediction result corresponding to each random forest model and the weight of the random forest computing power information of each dimension; The resource allocation priority is obtained by summing up the plurality of the second values.

5. The method according to claim 1, It is characterized in that Also includes: If a second computing power task requirement is received, allocating computing power resources for the second computing power task requirement; Among them, the resource allocation priority of the second computing power task requirement is lower than that of the first computing power task requirement, and the computing power resources allocated to the second computing power task requirement do not conflict with the computing power resources allocated to the first computing power task requirement.

6. The method according to claim 1, It is characterized in that Also includes: Obtaining feedback information corresponding to the first computing power task requirement; Adjust one or more of the following information based on the feedback information: The computing resources of the computing network, the computing resource allocation strategy, and the parameters of the random forest model.

7. A computing resource allocation device, It is characterized in that include: A first acquisition module is used to acquire first computing power resource information and random forest computing power information of multiple dimensions, wherein the first computing power resource information includes information of multiple dimensions determined according to the first computing power task requirement and the current computing power resource situation of the computing power network; A second acquisition module is used to perform prediction based on the first computing power resource information and the random forest computing power information of the multiple dimensions using the random forest model corresponding to the random forest computing power information of each dimension to obtain a prediction result of each random forest model; A first determination module is used to respectively determine the weights of the random forest computing power information of the multiple dimensions; A second determination module is used to determine the resource allocation priority corresponding to the first computing power task demand according to the prediction result and the weight; The first allocation module is used to allocate computing resources to the first computing task requirement according to the resource allocation priority.

8. A communication device, include: A memory, a processor, and a program stored in the memory and executable on the processor; wherein the processor is used to read the program in the memory to implement the steps in the computing resource allocation as described in any one of claims 1 to 6.

9. A computer-readable storage medium for storing a program, It is characterized in that When the program is executed by a processor, the steps in computing resource allocation as described in any one of claims 1 to 6 are implemented.

10. A computer program product, It is characterized in that It comprises computer instructions, which, when executed by a processor, implement the steps in computing resource allocation as described in any one of claims 1 to 6.

Citation Information

Cited By

  • Internet resource management method and system

    CN119420658A

  • A method and system for managing internet resources

    CN119420658B

  • Task execution method, computer equipment, storage medium and program product

    CN119718683A

  • Computing power resource determination method and device, and storage medium

    CN120234120A

  • Computing power resource management and distribution method and system and medium

    CN120407209A