Resource scheduling method and device, computer equipment and storage medium

By predicting the future resource demands of cloud infrastructure and generating dynamic scheduling strategies, it solves the problems of low resource utilization and long response time in the existing technology, achieves more efficient resource management and energy conservation, and meets service quality requirements.

CN118550669APending Publication Date: 2024-08-27SOUNDAI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410725605.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

The existing cloud computing resource scheduling strategy adopts a static allocation method and cannot be adjusted according to real-time workload changes, resulting in low resource utilization and long response time, and cannot meet the service quality needs of different users.

Method used

By obtaining the resource data and performance data of the cloud infrastructure, the resource estimation model is used to predict future resource utilization, generate a dynamic resource scheduling strategy, and schedule resources in the cloud infrastructure to meet future needs and reduce idle and overload conditions.

Benefits of technology

It improves the utilization efficiency of cloud infrastructure resources, reduces energy consumption, meets service quality requirements, and achieves more efficient resource management and flexible resource scheduling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550669A
    Figure CN118550669A
Patent Text Reader

Abstract

The invention provides a resource scheduling method and device, computer equipment and a storage medium, and belongs to the technical field of computers. The method comprises the steps that first resource data and first performance data of a cloud infrastructure are acquired, the first resource data are used for representing the utilization condition of resources in the cloud infrastructure in a historical time period, and the first performance data are used for representing the performance of the cloud infrastructure at the current moment; based on a resource estimation model, processing the first resource data to obtain second resource data, the second resource data being a utilization condition of resources in the cloud infrastructure at the next moment predicted by the resource estimation model; generating a resource scheduling strategy based on the second resource data and the first performance data; and scheduling the resources in the cloud infrastructure based on the resource scheduling strategy. According to the method, the future resource demand is met while the performance is ensured, so that the resources in the cloud infrastructure are utilized more efficiently.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a resource scheduling method, device, computer equipment and storage medium. Background Art

[0002] Cloud computing supports the operation of various applications by providing elastic and scalable resources and services. In cloud infrastructure, resource scheduling optimization algorithms play a vital role, aiming to achieve reasonable resource allocation, improve utilization, reduce energy consumption, and meet the service quality requirements of different users. In existing technologies, many resource scheduling strategies use static allocation methods and cannot be adjusted according to real-time workload changes, resulting in low resource utilization and long response time. Summary of the invention

[0003] The embodiments of the present application provide a resource scheduling method, apparatus, computer device and storage medium, which can meet future resource requirements while ensuring performance, thereby more efficiently utilizing resources in the cloud infrastructure. The technical solution is as follows:

[0004] In one aspect, a resource scheduling method is provided, the method comprising:

[0005] Acquire first resource data and first performance data of a cloud infrastructure, wherein the cloud infrastructure is used to provide resources, the first resource data is used to indicate the utilization of resources in the cloud infrastructure in a historical time period, and the first performance data is used to indicate the performance of the cloud infrastructure at a current moment;

[0006] Based on the resource estimation model, the first resource data is processed to obtain second resource data, where the second resource data is the utilization of resources in the cloud infrastructure at the next moment predicted by the resource estimation model;

[0007] Generate a resource scheduling strategy based on the second resource data and the first performance data, wherein the resource scheduling strategy includes resources to be scheduled and the quantity of resources to be scheduled;

[0008] Based on the resource scheduling strategy, resources in the cloud infrastructure are scheduled.

[0009] In another aspect, a resource scheduling device is provided, the device comprising:

[0010] an acquisition module, configured to acquire first resource data and first performance data of a cloud infrastructure, wherein the cloud infrastructure is configured to provide resources, the first resource data is configured to indicate the utilization of resources in the cloud infrastructure in a historical period, and the first performance data is configured to indicate the performance of the cloud infrastructure at a current moment;

[0011] A processing module, configured to process the first resource data based on a resource estimation model to obtain second resource data, where the second resource data is a utilization status of resources in the cloud infrastructure at a next moment predicted by the resource estimation model;

[0012] A generating module, configured to generate a resource scheduling strategy based on the second resource data and the first performance data, wherein the resource scheduling strategy includes resources to be scheduled and the quantity of resources to be scheduled;

[0013] A scheduling module is used to schedule resources in the cloud infrastructure based on the resource scheduling strategy.

[0014] In some embodiments, the apparatus further comprises:

[0015] A training module is used to obtain associated resource data of the sample resource data based on the sample resource data of the cloud infrastructure, wherein the sample resource data is the utilization of resources in the cloud infrastructure at any moment, and the associated resource data is the utilization of resources in the cloud infrastructure in a historical time period before the moment; based on the resource estimation model, the associated resource data is processed to obtain predicted resource data, wherein the predicted resource data is the utilization of resources in the cloud infrastructure at the moment predicted by the resource estimation model; and the resource estimation model is trained based on the sample resource data and the predicted resource data.

[0016] In some embodiments, the training module is used to determine a model loss based on the sample resource data and the predicted resource data, wherein the model loss is used to represent the difference between the sample resource data and the predicted resource data; and the resource estimation model is trained with the goal of minimizing the model loss.

[0017] In some embodiments, the generating module comprises:

[0018] A generating unit, configured to generate an initial scheduling strategy based on the second resource data and the first performance data;

[0019] The adjustment unit is used to adjust the initial scheduling strategy based on the multiple optimization objectives to obtain the resource scheduling strategy, and each optimization objective is used to represent an indicator to be met during resource scheduling.

[0020] In some embodiments, the generating unit is used to process the second resource data and the performance data based on a policy generating algorithm to obtain the initial scheduling policy, and the policy generating algorithm is a heuristic algorithm or a meta-heuristic algorithm.

[0021] In some embodiments, the generating unit is configured to perform any of the following:

[0022] Based on a genetic algorithm, the second resource data and the first performance data are processed to obtain the initial scheduling strategy; or,

[0023] Based on a simulated annealing algorithm, the second resource data and the first performance data are processed to obtain the initial scheduling strategy; or,

[0024] Based on a particle swarm optimization algorithm, the second resource data and the first performance data are processed to obtain the initial scheduling strategy.

[0025] In some embodiments, the apparatus further comprises:

[0026] An adjustment module is used to obtain third resource data and second performance data of the cloud infrastructure after scheduling the resources in the cloud infrastructure, wherein the third resource data is used to represent the utilization of the resources in the cloud infrastructure after the resource scheduling, and the second performance data is used to represent the performance of the cloud infrastructure after the resource scheduling; and based on the third resource data and the second performance data, the parameters of the resource estimation model are adjusted.

[0027] In some embodiments, the adjustment module is also used to adjust at least one of a policy generation algorithm and an optimization algorithm based on the third resource data and the second performance data, wherein the policy generation algorithm is used to generate a resource scheduling policy, and the optimization algorithm is used to adjust the resource scheduling policy based on an optimization target.

[0028] On the other hand, a computer device is provided, which includes a processor and a memory, wherein the memory is used to store at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the resource scheduling method in the embodiment of the present application.

[0029] On the other hand, a computer-readable storage medium is provided, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor to implement a resource scheduling method as in an embodiment of the present application.

[0030] On the other hand, a computer program product is provided, including a computer program, which is stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the resource scheduling method provided in the above-mentioned various aspects or various optional implementations of various aspects.

[0031] The embodiment of the present application provides a resource scheduling method, which predicts the resource utilization of the cloud infrastructure at a future moment based on the resource utilization of the cloud infrastructure in a historical time period, that is, predicts the future resource demand based on the previous resource utilization of the cloud infrastructure; then generates a resource scheduling strategy based on the future resource demand and the performance of the cloud infrastructure at the current moment, so that when resource scheduling is performed based on the resource scheduling strategy, while ensuring performance, future resource demand is met, and the idle and overload conditions of the cloud infrastructure are reduced, thereby more efficiently utilizing the resources in the cloud infrastructure, reducing energy consumption, and meeting service quality requirements. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present application, 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 application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0033] Figure 1 It is a schematic diagram of an implementation environment of a resource scheduling method provided according to an embodiment of the present application;

[0034] Figure 2 is a flow chart of a resource scheduling method provided according to an embodiment of the present application;

[0035] Figure 3 is a flowchart of another resource scheduling method provided according to an embodiment of the present application;

[0036] Figure 4 is a block diagram of a resource scheduling device provided according to an embodiment of the present application;

[0037] Figure 5 is a structural block diagram of a terminal provided according to an embodiment of the present application;

[0038] Figure 6 It is a structural diagram of a server provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0039] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0040] In this application, the terms "first", "second", etc. are used to distinguish identical or similar items with basically the same effects and functions. It should be understood that there is no logical or temporal dependency between "first", "second", and "nth", nor is there any limitation on quantity and execution order.

[0041] In the present application, the term "at least one" means one or more, and the term "plurality" means two or more.

[0042] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions. For example, the resource data and performance data involved in this application are obtained with full authorization.

[0043] The resource scheduling method provided in the embodiment of the present application can be executed by a computer device. The following takes the computer device as an example of a resource scheduling device to introduce the implementation environment of the resource scheduling method provided in the embodiment of the present application. Figure 1 Schematic diagram of an implementation environment of a resource scheduling method provided according to an embodiment of the present application. Figure 1 The implementation environment includes a resource scheduling device 101, a cloud infrastructure 102, and a client 103. The resource scheduling device 101, the cloud infrastructure 102, and the client 103 are directly or indirectly connected to each other through wired or wireless communication, and this application does not limit this. Figure 1 The resource scheduling device 101, cloud infrastructure 102 and client 103 shown are only examples, and the number of any one of the resource scheduling device 101, cloud infrastructure 102 and client 103 can be multiple to form a large-scale distributed system, and the number can be set according to experience or actual needs. Accordingly, the resource scheduling device 101 is respectively connected to each cloud infrastructure 102 for communication, and the resource scheduling device 101 is also respectively connected to each client 103 for communication, and each client 103 is respectively connected to all cloud infrastructures 102 for communication.

[0044] The cloud infrastructure 102 is used to provide resources and inform the resource scheduling device 101 of the quantity of each resource that it can provide. The client 103 is used to inform the resource scheduling device 101 of the quantity of each resource that it needs. Accordingly, the resource scheduling device 101 is used to inform the client 103 of the quantity of each resource provided by which cloud infrastructure 102 can be used, based on the quantity of each resource that the cloud infrastructure 102 can provide and the quantity of each resource required by the client 103, so that the client 103 uses the corresponding quantity of each resource on the corresponding cloud infrastructure 102 to implement resource scheduling. For example, the client 103 sends a service request to the corresponding cloud infrastructure 102, so that the cloud infrastructure 102 consumes the corresponding quantity of each resource to process the service request.

[0045] In some embodiments, the resource scheduling device 101 and the cloud infrastructure 102 can be independent physical servers, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), big data and artificial intelligence platforms. The embodiments of the present application do not limit the form of the resource scheduling device 101 and the cloud infrastructure 102. For example, the cloud infrastructure 102 is a business server, and the resource scheduling device 101 is a scheduling server. In addition, the business server and the scheduling server can belong to a physical entity server (hardware form), or a logical virtual server (software form), etc., and the embodiments of the present application do not limit this.

[0046] Figure 2 is a flowchart of a resource scheduling method provided according to an embodiment of the present application, see Figure 2 In the embodiment of the present application, the resource scheduling device is used as an example for explanation. The resource scheduling method comprises the following steps:

[0047] 201. A resource scheduling device obtains first resource data and first performance data of a cloud infrastructure, where the cloud infrastructure is used to provide resources. The first resource data is used to indicate the utilization of resources in the cloud infrastructure during a historical period, and the first performance data is used to indicate the performance of the cloud infrastructure at a current moment.

[0048] In the embodiments of the present application, the resources provided by the cloud infrastructure may be computing resources, storage resources, or network resources, etc., which are not limited in the embodiments of the present application. Computing resources are used to provide computing services. In the cloud infrastructure, computing resources may be devices such as servers used to provide computing services, which are not limited in the embodiments of the present application. Computing resources are usually virtualized into virtual machines to improve resource utilization and flexibility. Storage resources are used to store data required for cloud computing services. In the cloud infrastructure, large-scale distributed storage systems are usually used as storage resources to improve data reliability and scalability. Network resources refer to network devices used to connect cloud computing data centers and users, which can provide network services. In the cloud infrastructure, network devices usually use software-defined network technology to improve the flexibility and manageability of the network.

[0049] In an embodiment of the present application, the first resource data may include resource utilization of the cloud infrastructure corresponding to at least one time point (moment) in a historical time period. The embodiment of the present application does not limit the historical time period. The resource scheduling device collects the resource utilization of the infrastructure corresponding to at least one time point (moment) in the historical time period to obtain the first resource data.

[0050] In an embodiment of the present application, the first performance data may include at least one key performance indicator of the cloud infrastructure. The key performance indicator may be the current utilization rate of resources in the cloud infrastructure, the response time of the cloud infrastructure, or the throughput of the cloud infrastructure, etc., which is not limited in the embodiment of the present application. The resource scheduling device may monitor the performance of the cloud infrastructure in real time to obtain the first performance data.

[0051] 202. The resource scheduling device processes the first resource data based on the resource estimation model to obtain second resource data, where the second resource data is the utilization of resources in the cloud infrastructure at the next moment predicted by the resource estimation model.

[0052] In the embodiment of the present application, the resource estimation model is used to predict the resource utilization of the cloud infrastructure at a future moment. The resource estimation model can be any model such as a neural network model, a regression model, or a model based on event sequence analysis, and the structure of the resource estimation model in the embodiment of the present application is not limited. The resource scheduling device can input the first resource data into the resource scheduling device, and the resource estimation model analyzes the first resource data to predict the resource utilization of the cloud infrastructure at the next moment, that is, the second resource data.

[0053] 203. The resource scheduling device generates a resource scheduling policy based on the second resource data and the first performance data. The resource scheduling policy includes resources to be scheduled and the quantity of resources to be scheduled.

[0054] In an embodiment of the present application, the resource calling device generates a resource scheduling strategy by combining the prediction result (second resource data) of the resource estimation model and the first performance data monitored in real time. The embodiment of the present application does not limit the generation method of the resource scheduling strategy. The resource scheduling strategy includes the resources to be scheduled and the number of resources to be scheduled, which is used to indicate the resources to be scheduled and the scheduling quantity when the resource scheduling is performed later.

[0055] 204. The resource scheduling device schedules resources in the cloud infrastructure based on the resource scheduling policy.

[0056] In the embodiment of the present application, the resource scheduling device schedules the resources in the cloud infrastructure according to the resources to be scheduled and the number of resources to be scheduled in the resource scheduling strategy. In the process of resource scheduling, the resource scheduling device can allocate the resources in the cloud infrastructure to the services corresponding to the user, or recycle the resources to the cloud infrastructure after the services corresponding to the user are processed, and the embodiment of the present application does not limit this.

[0057] The embodiment of the present application provides a resource scheduling method, which predicts the resource utilization of the cloud infrastructure at a future moment according to the resource utilization of the cloud infrastructure in a historical time period, that is, predicts the future resource demand according to the previous resource utilization of the cloud infrastructure; then generates a resource scheduling strategy based on the future resource demand and the performance of the cloud infrastructure at the current moment, so that when resource scheduling is performed based on the resource scheduling strategy, while ensuring performance, future resource demand is met, and the idle and overload conditions of the cloud infrastructure are reduced, thereby more efficiently utilizing the resources in the cloud infrastructure, reducing energy consumption, and meeting service quality requirements.

[0058] Figure 3 is a flowchart of another resource scheduling method provided according to an embodiment of the present application, see Figure 3 In the embodiment of the present application, the resource scheduling device is used as an example for explanation. The resource scheduling method comprises the following steps:

[0059] 301. A resource scheduling device obtains first resource data and first performance data of a cloud infrastructure, where the cloud infrastructure is used to provide resources. The first resource data is used to indicate the utilization of resources in the cloud infrastructure during a historical period, and the first performance data is used to indicate the performance of the cloud infrastructure at a current moment.

[0060] In an embodiment of the present application, the resource scheduling device may collect historical resource usage data and system performance logs of the cloud infrastructure, and extract data that can reflect resource utilization from the historical resource usage data and system performance logs, thereby obtaining first resource data. The first resource data may include the utilization of computing resources (CPU), storage resources (memory and storage), and network resources, which is not limited in the embodiment of the present application. The utilization of resources may be the utilization rate of resources. The utilization rate of resources is equal to the ratio between the number of resources consumed in the cloud infrastructure and the total number of resources provided by the cloud infrastructure.

[0061] In the embodiment of the present application, the resource scheduling device can monitor various key performance indicators of the cloud infrastructure in real time, such as performance data such as current resource utilization, response time, and throughput. Then, the resource scheduling device can continuously collect the current performance data of the cloud infrastructure through the application program interface, that is, the first performance data.

[0062] In some embodiments, the resource scheduling device may include a prediction module and a real-time monitoring module. The resource scheduling device collects historical resource usage data and system performance logs of the cloud infrastructure through the prediction module, thereby extracting the first resource data. The resource scheduling device monitors the status of the cloud infrastructure in real time through the real-time monitoring module to obtain the first performance data.

[0063] 302. The resource scheduling device processes the first resource data based on the resource estimation model to obtain second resource data, where the second resource data is the utilization of resources in the cloud infrastructure at the next moment predicted by the resource estimation model.

[0064] In an embodiment of the present application, the resource scheduling device may input the first resource data into the resource scheduling device, and the resource estimation model may analyze the first resource data to predict the utilization of resources in the cloud infrastructure at the next moment, that is, the second resource data.

[0065] Before using the resource estimation model, the resource scheduling device can train the resource estimation model. Accordingly, the training process of the resource estimation model includes: the resource scheduling device obtains the associated resource data of the sample resource data based on the sample resource data of the cloud infrastructure. The sample resource data is the utilization of resources in the cloud infrastructure at any moment. The associated resource data is the utilization of resources in the cloud infrastructure in the historical time period before the moment. Then, the resource scheduling device processes the associated resource data based on the resource estimation model to obtain predicted resource data, and the predicted resource data is the utilization of resources in the cloud infrastructure at the moment predicted by the resource estimation model. Then, the resource scheduling device trains the resource estimation model based on the sample resource data and the predicted resource data.

[0066] During the model training process, the resource scheduling device can determine the model loss based on the sample resource data and the predicted resource data. The model loss is used to represent the difference between the sample resource data and the predicted resource data. Then, the resource scheduling device trains the resource estimation model with the goal of minimizing the model loss. Among them, the embodiment of the present application does not limit the calculation method of the model loss. When the model loss is lower than the loss threshold or reaches the preset loss range, the resource scheduling device stops training the resource estimation model.

[0067] The training process of the resource estimation model may also be performed by other computer devices, and the embodiments of the present application do not limit this.

[0068] The solution provided in the embodiment of the present application predicts the resource utilization of the cloud infrastructure at any moment, i.e., predicts the resource data, for the sample resource data (resource utilization) of the cloud infrastructure at any moment, based on the resource utilization of the cloud infrastructure before that moment (associated resource data); and trains the resource estimation model by comparing the difference between the actual resource utilization and the predicted resource utilization, so that the resource utilization predicted by the resource estimation model becomes closer and closer to the actual situation, thereby improving the accuracy of the resource estimation model.

[0069] In some embodiments, the resource estimation model is deployed in a prediction module of a resource scheduling device. The prediction module of the resource scheduling device inputs the first resource data into the resource estimation module, and the resource estimation module extracts features of the first resource data so as to subsequently analyze future resource utilization based on the features of the first resource data.

[0070] 303. The resource scheduling device generates an initial scheduling strategy based on the second resource data and the first performance data.

[0071] In an embodiment of the present application, the resource scheduling device includes a scheduler. The resource scheduling device inputs the second resource data and the first performance data into the scheduler. Then, the scheduler processes the second resource data and the performance data based on the policy generation algorithm to obtain an initial scheduling policy. The policy generation algorithm is a heuristic algorithm or a meta-heuristic algorithm, and the embodiment of the present application does not limit the policy generation algorithm.

[0072] In some embodiments, the strategy generation algorithm is a genetic algorithm. Accordingly, the resource scheduling device processes the second resource data and the first performance data based on the genetic algorithm to obtain an initial scheduling strategy.

[0073] In some embodiments, the strategy generation algorithm is a simulated annealing algorithm. Accordingly, the resource scheduling device processes the second resource data and the first performance data based on the simulated annealing algorithm to obtain an initial scheduling strategy.

[0074] In some embodiments, the strategy generation algorithm is a particle swarm optimization algorithm. Accordingly, the resource scheduling device processes the second resource data and the first performance data based on the particle swarm optimization algorithm to obtain an initial scheduling strategy.

[0075] The initial resource scheduling strategy includes the resources to be scheduled and the quantity of resources to be scheduled.

[0076] 304. The resource scheduling device adjusts the initial scheduling strategy based on multiple optimization objectives to obtain a resource scheduling strategy, where each optimization objective is used to represent an indicator to be met during resource scheduling.

[0077] In the embodiment of the present application, multiple optimization goals can be to minimize energy consumption, maximize resource utilization, ensure service level agreement, etc., which are not limited by the embodiment of the present application. The resource scheduling strategy includes the resources to be scheduled and the number of resources to be scheduled. The solution provided by the embodiment of the present application, multi-objective optimization takes into account multiple performance and cost indicators, and realizes more comprehensive resource management. That is, a multi-objective optimization strategy is adopted to consider energy saving while ensuring performance, intelligently adjust resource status (such as shutting down unnecessary servers), and effectively reduce overall energy consumption.

[0078] The optimized resource scheduling strategy allows the cloud infrastructure to flexibly expand or shrink resources when demand changes, enhancing the elasticity of the system. In summary, the technical solution of this proposal not only improves the overall operating efficiency and flexibility of the cloud infrastructure, but also achieves a balance between cost and benefit, providing more reliable and economical services for cloud service providers and end users.

[0079] 305. The resource scheduling device schedules resources in the cloud infrastructure based on the resource scheduling strategy.

[0080] In an embodiment of the present application, a resource scheduling device schedules resources in the cloud infrastructure according to the resources to be scheduled and the number of resources to be scheduled in the resource scheduling policy. During the resource scheduling process, the resource scheduling device can allocate resources in the cloud infrastructure to the services corresponding to the user, or recycle the resources to the cloud infrastructure after the services corresponding to the user are processed, and the embodiment of the present application does not limit this. Resource scheduling may include operations such as virtual machine migration, resource expansion or contraction. The resource scheduling device applies the resource scheduling policy to the actual cloud infrastructure, adjusts the resource configuration of the cloud infrastructure, and the adjusted resource configuration takes effect immediately.

[0081] In some embodiments, after resource scheduling, the resource scheduling device can continuously evaluate the performance and resource utilization of the cloud infrastructure, thereby adjusting the model parameters or optimization algorithm according to the actual effect feedback. Accordingly, after scheduling the resources in the cloud infrastructure, the resource scheduling device obtains the third resource data and the second performance data of the cloud infrastructure. The third resource data is used to indicate the utilization of resources in the cloud infrastructure after resource scheduling. The second performance data is used to indicate the performance of the cloud infrastructure after resource scheduling. Then, the resource scheduling device adjusts the parameters of the resource estimation model based on the third resource data and the second performance data. Alternatively, the resource scheduling device adjusts at least one of the policy generation algorithm and the optimization algorithm based on the third resource data and the second performance data. The policy generation algorithm is used to generate a resource scheduling policy. The optimization algorithm is used to adjust the resource scheduling policy based on the optimization target.

[0082] The solution provided in the embodiment of the present application can self-learn and adapt to changes in workload, and continuously fine-tune the scheduling strategy to cope with complex and dynamically changing load environments; and reduce human intervention: through intelligent resource scheduling, it reduces dependence on manual operations, reduces the management burden, and reduces the possibility of human errors.

[0083] The embodiment of the present application provides a resource scheduling method, which predicts the resource utilization of the cloud infrastructure at a future moment according to the resource utilization of the cloud infrastructure in a historical time period, that is, predicts the future resource demand according to the previous resource utilization of the cloud infrastructure; then generates a resource scheduling strategy based on the future resource demand and the performance of the cloud infrastructure at the current moment, so that when resource scheduling is performed based on the resource scheduling strategy, while ensuring performance, future resource demand is met, and the idle and overload conditions of the cloud infrastructure are reduced, thereby more efficiently utilizing the resources in the cloud infrastructure, reducing energy consumption, and meeting service quality requirements.

[0084] Figure 4 is a block diagram of a resource scheduling device provided according to an embodiment of the present application. The resource scheduling device is used to execute the steps of the above resource scheduling method. Figure 4 , the resource scheduling device comprises:

[0085] The acquisition module 401 is used to acquire first resource data and first performance data of the cloud infrastructure, where the cloud infrastructure is used to provide resources, the first resource data is used to indicate the utilization of resources in the cloud infrastructure in a historical period, and the first performance data is used to indicate the performance of the cloud infrastructure at a current moment;

[0086] The processing module 402 is used to process the first resource data based on the resource estimation model to obtain second resource data, where the second resource data is the utilization of resources in the cloud infrastructure at the next moment predicted by the resource estimation model;

[0087] A generating module 403, configured to generate a resource scheduling strategy based on the second resource data and the first performance data, wherein the resource scheduling strategy includes resources to be scheduled and the quantity of resources to be scheduled;

[0088] The scheduling module 404 is used to schedule resources in the cloud infrastructure based on the resource scheduling policy.

[0089] In some embodiments, the apparatus further comprises:

[0090] The training module is used to obtain the associated resource data of the sample resource data based on the sample resource data of the cloud infrastructure. The sample resource data is the utilization of resources in the cloud infrastructure at any moment, and the associated resource data is the utilization of resources in the cloud infrastructure in the historical time period before the moment; based on the resource estimation model, the associated resource data is processed to obtain the predicted resource data. The predicted resource data is the utilization of resources in the cloud infrastructure at the moment predicted by the resource estimation model; based on the sample resource data and the predicted resource data, the resource estimation model is trained.

[0091] In some embodiments, a training module is used to determine a model loss based on sample resource data and predicted resource data, where the model loss is used to represent the difference between the sample resource data and the predicted resource data; and the resource estimation model is trained with the goal of minimizing the model loss.

[0092] In some embodiments, the generating module 403 includes:

[0093] A generating unit, configured to generate an initial scheduling strategy based on the second resource data and the first performance data;

[0094] The adjustment unit is used to adjust the initial scheduling strategy based on multiple optimization objectives to obtain a resource scheduling strategy, and each optimization objective is used to represent an indicator to be met during resource scheduling.

[0095] In some embodiments, the generating unit is used to process the second resource data and the performance data based on a policy generating algorithm to obtain an initial scheduling policy, and the policy generating algorithm is a heuristic algorithm or a meta-heuristic algorithm.

[0096] In some embodiments, the generating unit is configured to perform any of the following:

[0097] Based on a genetic algorithm, the second resource data and the first performance data are processed to obtain an initial scheduling strategy; or,

[0098] Based on the simulated annealing algorithm, the second resource data and the first performance data are processed to obtain an initial scheduling strategy; or,

[0099] Based on the particle swarm optimization algorithm, the second resource data and the first performance data are processed to obtain an initial scheduling strategy.

[0100] In some embodiments, the apparatus further comprises:

[0101] The adjustment module is used to obtain third resource data and second performance data of the cloud infrastructure after scheduling the resources in the cloud infrastructure, the third resource data is used to represent the utilization of resources in the cloud infrastructure after the resource scheduling, and the second performance data is used to represent the performance of the cloud infrastructure after the resource scheduling; based on the third resource data and the second performance data, the parameters of the resource estimation model are adjusted.

[0102] In some embodiments, the adjustment module is also used to adjust at least one of the policy generation algorithm and the optimization algorithm based on the third resource data and the second performance data. The policy generation algorithm is used to generate a resource scheduling policy, and the optimization algorithm is used to adjust the resource scheduling policy based on the optimization target.

[0103] The embodiment of the present application provides a resource scheduling device, which predicts the utilization of resources in the cloud infrastructure at a future moment according to the utilization of resources in the cloud infrastructure in a historical time period, that is, predicts the future resource demand according to the previous resource utilization of the cloud infrastructure; then generates a resource scheduling strategy based on the future resource demand and the performance of the cloud infrastructure at the current moment, so that when resource scheduling is performed based on the resource scheduling strategy, while ensuring performance, future resource demand is met, and the idle and overload conditions of the cloud infrastructure are reduced, thereby more efficiently utilizing the resources in the cloud infrastructure, reducing energy consumption, and meeting service quality requirements.

[0104] It should be noted that: the resource scheduling device provided in the above embodiment only uses the division of the above functional modules as an example when scheduling resources in the cloud infrastructure. In actual applications, the above functional allocation can be completed by different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the resource scheduling device provided in the above embodiment and the resource scheduling method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0105] In the embodiments of the present application, the computer device can be configured as a terminal or a server. When the computer device is configured as a terminal, the terminal can be used as the execution subject to implement the technical solution provided in the embodiments of the present application. When the computer device is configured as a server, the server can be used as the execution subject to implement the technical solution provided in the embodiments of the present application. The technical solution provided in the present application can also be implemented through interaction between the terminal and the server. The embodiments of the present application are not limited to this.

[0106] In some embodiments, the resource scheduling device is a terminal. Figure 51 is a block diagram of a terminal 500 provided according to an embodiment of the present application. The terminal 500 may be a portable mobile terminal, such as a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV), a laptop computer or a desktop computer. The terminal 500 may also be referred to as a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.

[0107] Typically, the terminal 500 includes a processor 501 and a memory 502 .

[0108] The processor 501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 501 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 501 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 501 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 501 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0109] The memory 502 may include one or more computer-readable storage media, which may be non-transitory. The memory 502 may also include a high-speed random access memory and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 502 is used to store at least one computer program, which is used to be executed by the processor 501 to implement the resource scheduling method provided in the method embodiment of the present application.

[0110] In some embodiments, the terminal 500 may further optionally include: a peripheral device interface 503 and at least one peripheral device. The processor 501, the memory 502 and the peripheral device interface 503 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 503 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 504, a display screen 505, a camera assembly 506, an audio circuit 507 and a power supply 508.

[0111] The peripheral device interface 503 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 501 and the memory 502. In some embodiments, the processor 501, the memory 502, and the peripheral device interface 503 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 501, the memory 502, and the peripheral device interface 503 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.

[0112] The radio frequency circuit 504 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 504 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 504 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. In some embodiments, the radio frequency circuit 504 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 504 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 504 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.

[0113] The display screen 505 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 505 is a touch display screen, the display screen 505 also has the ability to collect touch signals on the surface or above the surface of the display screen 505. The touch signal can be input to the processor 501 as a control signal for processing. At this time, the display screen 505 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 505 can be one, set on the front panel of the terminal 500; in other embodiments, the display screen 505 can be at least two, respectively set on different surfaces of the terminal 500 or in a folding design; in other embodiments, the display screen 505 can be a flexible display screen, set on a curved surface or a folding surface of the terminal 500. Even, the display screen 505 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 505 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc.

[0114] The camera assembly 506 is used to capture images or videos. In some embodiments, the camera assembly 506 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal, and the rear camera is disposed on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and the VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 506 may also include a flash. The flash may be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.

[0115] The audio circuit 507 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 501 for processing, or input them into the radio frequency circuit 504 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 500. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 501 or the radio frequency circuit 504 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 507 may also include a headphone jack.

[0116] The power supply 508 is used to power various components in the terminal 500. The power supply 508 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 508 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.

[0117] In some embodiments, the terminal 500 further includes one or more sensors 509 , including but not limited to: an acceleration sensor 510 , a gyroscope sensor 511 , a pressure sensor 512 , an optical sensor 513 , and a proximity sensor 514 .

[0118] The acceleration sensor 510 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 500. For example, the acceleration sensor 510 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 501 can control the display screen 505 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 510. The acceleration sensor 510 can also be used to collect game or user motion data.

[0119] The gyro sensor 511 can detect the body direction and rotation angle of the terminal 500, and the gyro sensor 511 can cooperate with the acceleration sensor 510 to collect the user's 3D actions on the terminal 500. The processor 501 can implement the following functions based on the data collected by the gyro sensor 511: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.

[0120] The pressure sensor 512 can be set on the side frame of the terminal 500 and / or the lower layer of the display screen 505. When the pressure sensor 512 is set on the side frame of the terminal 500, it can detect the user's holding signal of the terminal 500, and the processor 501 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 512. When the pressure sensor 512 is set on the lower layer of the display screen 505, the processor 501 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 505. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0121] The optical sensor 513 is used to collect the ambient light intensity. In one embodiment, the processor 501 can control the display brightness of the display screen 505 according to the ambient light intensity collected by the optical sensor 513. Specifically, when the ambient light intensity is high, the display brightness of the display screen 505 is increased; when the ambient light intensity is low, the display brightness of the display screen 505 is reduced. In another embodiment, the processor 501 can also dynamically adjust the shooting parameters of the camera component 506 according to the ambient light intensity collected by the optical sensor 513.

[0122] The proximity sensor 514, also called a distance sensor, is usually arranged on the front panel of the terminal 500. The proximity sensor 514 is used to collect the distance between the user and the front of the terminal 500. In one embodiment, when the proximity sensor 514 detects that the distance between the user and the front of the terminal 500 is gradually decreasing, the processor 501 controls the display screen 505 to switch from the screen-on state to the screen-off state; when the proximity sensor 514 detects that the distance between the user and the front of the terminal 500 is gradually increasing, the processor 501 controls the display screen 505 to switch from the screen-off state to the screen-on state.

[0123] Those skilled in the art will understand that Figure 5 The structure shown in the figure does not constitute a limitation on the terminal 500, and the terminal 500 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.

[0124] In some embodiments, the resource scheduling device is a server. Figure 6This is a schematic diagram of the structure of a server provided according to an embodiment of the present application. The server 600 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 601 and one or more memories 602, wherein the memory 602 stores at least one computer program, and the at least one computer program is loaded and executed by the processor 601 to implement the resource scheduling method provided by the above-mentioned various method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output, and the server may also include other components for implementing device functions, which will not be described in detail here.

[0125] The embodiment of the present application also provides a computer-readable storage medium, in which at least one computer program is stored, and the at least one computer program is loaded and executed by a processor of a computer device (resource scheduling device) to implement the operation performed by the computer device in the resource scheduling method of the above embodiment. For example, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device.

[0126] In some embodiments, the computer program involved in the embodiments of the present application may be deployed and executed on a computer device, or on multiple computer devices located at one location, or on multiple computer devices distributed at multiple locations and interconnected by a communication network. Multiple computer devices distributed at multiple locations and interconnected by a communication network may constitute a blockchain system.

[0127] The embodiment of the present application also provides a computer program product, including a computer program, which is stored in a computer-readable storage medium. A processor of a computer device (resource scheduling device) reads the computer program from the computer-readable storage medium, and the processor executes the computer program code, so that the computer device executes the resource scheduling method provided in the above various optional implementations.

[0128] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0129] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A resource scheduling method, It is characterized in that The method comprises: Acquire first resource data and first performance data of a cloud infrastructure, wherein the cloud infrastructure is used to provide resources, the first resource data is used to indicate the utilization of resources in the cloud infrastructure in a historical time period, and the first performance data is used to indicate the performance of the cloud infrastructure at a current moment; Based on the resource estimation model, the first resource data is processed to obtain second resource data, where the second resource data is the utilization of resources in the cloud infrastructure at the next moment predicted by the resource estimation model; Generate a resource scheduling strategy based on the second resource data and the first performance data, wherein the resource scheduling strategy includes resources to be scheduled and the quantity of resources to be scheduled; Based on the resource scheduling strategy, resources in the cloud infrastructure are scheduled.

2. The method according to claim 1, It is characterized in that The method further comprises: Based on the sample resource data of the cloud infrastructure, obtaining the associated resource data of the sample resource data, wherein the sample resource data is the utilization of the resources in the cloud infrastructure at any moment, and the associated resource data is the utilization of the resources in the cloud infrastructure in the historical time period before the moment; Based on the resource estimation model, the associated resource data is processed to obtain predicted resource data, where the predicted resource data is the utilization of resources in the cloud infrastructure at the moment predicted by the resource estimation model; The resource estimation model is trained based on the sample resource data and the predicted resource data.

3. The method according to claim 2, It is characterized in that The training of the resource estimation model based on the sample resource data and the predicted resource data includes: Determining a model loss based on the sample resource data and the predicted resource data, the model loss being used to represent a difference between the sample resource data and the predicted resource data; The resource estimation model is trained with the goal of minimizing the model loss.

4. The method according to claim 1, It is characterized in that The generating a resource scheduling strategy based on the second resource data and the first performance data includes: generating an initial scheduling strategy based on the second resource data and the first performance data; Based on the multiple optimization objectives, the initial scheduling strategy is adjusted to obtain the resource scheduling strategy, and each optimization objective is used to represent an indicator to be met during resource scheduling.

5. The method according to claim 4, It is characterized in that The generating an initial scheduling strategy based on the second resource data and the first performance data includes: Based on a policy generation algorithm, the second resource data and the performance data are processed to obtain the initial scheduling policy, and the policy generation algorithm is a heuristic algorithm or a meta-heuristic algorithm.

6. The method according to claim 5, It is characterized in that The step of processing the second resource data and the first performance data based on the policy generation algorithm to obtain the initial scheduling policy includes any one of the following: Based on a genetic algorithm, the second resource data and the first performance data are processed to obtain the initial scheduling strategy; or, Based on a simulated annealing algorithm, the second resource data and the first performance data are processed to obtain the initial scheduling strategy; or, Based on a particle swarm optimization algorithm, the second resource data and the first performance data are processed to obtain the initial scheduling strategy.

7. The method according to claim 1, It is characterized in that The method further comprises: After scheduling the resources in the cloud infrastructure, obtaining third resource data and second performance data of the cloud infrastructure, wherein the third resource data is used to indicate the utilization of the resources in the cloud infrastructure after the resource scheduling, and the second performance data is used to indicate the performance of the cloud infrastructure after the resource scheduling; Based on the third resource data and the second performance data, parameters of the resource estimation model are adjusted.

8. The method according to claim 7, It is characterized in that The method further comprises: Based on the third resource data and the second performance data, at least one of a policy generation algorithm and an optimization algorithm is adjusted, the policy generation algorithm is used to generate a resource scheduling policy, and the optimization algorithm is used to adjust the resource scheduling policy based on an optimization target.

9. A resource scheduling device, It is characterized in that The device comprises: an acquisition module, configured to acquire first resource data and first performance data of a cloud infrastructure, wherein the cloud infrastructure is configured to provide resources, the first resource data is configured to indicate the utilization of resources in the cloud infrastructure in a historical period, and the first performance data is configured to indicate the performance of the cloud infrastructure at a current moment; A processing module, configured to process the first resource data based on a resource estimation model to obtain second resource data, where the second resource data is a utilization status of resources in the cloud infrastructure at a next moment predicted by the resource estimation model; A generating module, configured to generate a resource scheduling strategy based on the second resource data and the first performance data, wherein the resource scheduling strategy includes resources to be scheduled and the quantity of resources to be scheduled; A scheduling module is used to schedule resources in the cloud infrastructure based on the resource scheduling strategy.

10. A computer device, It is characterized in that The computer device includes a processor and a memory, the memory is used to store at least one computer program, and the at least one computer program is loaded by the processor to execute the resource scheduling method according to any one of claims 1 to 8.

11. A computer-readable storage medium, It is characterized in that The computer-readable storage medium is used to store at least one computer program, and the at least one computer program is used to execute the resource scheduling method according to any one of claims 1 to 8.

12. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the resource scheduling method according to any one of claims 1 to 8 is implemented.