High-performance virtual machine scheduling method based on time sequence prediction and pre-scheduling

Through methods based on timing prediction and pre-scheduling, the problem of poor virtual machine scheduling performance in large-scale virtual machine physical machine clusters is solved, fast and efficient resource scheduling is achieved, and delay and cost are reduced.

CN118642819APending Publication Date: 2024-09-13CHINA TELECOM CLOUD TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410863300.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-29
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

In ECS services, when the number of physical hosts is large, the real-time scheduling performance of virtual machines is poor, causing the filtering and scoring process processing time to double, the delay to increase, and the scheduling performance to decline.

Method used

Adopting a high-performance virtual machine scheduling method based on timing prediction and pre-scheduling, by establishing a historical time series data set of resource requests, predicting future resource needs, using the ARIMA model for prediction, pre-scheduling in advance, and quickly returning scheduling results based on the resource distribution map , reduce the processing load of real-time scheduling.

Benefits of technology

In large-scale virtual machine and physical machine clusters, scheduling performance is controlled within 10 seconds, which improves resource scheduling efficiency, reduces fragmentation rate and hotspot rate, and reduces license costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118642819A
    Figure CN118642819A
Patent Text Reader

Abstract

The invention discloses a high-performance virtual machine scheduling method based on time sequence prediction and pre-scheduling. The scheduling method comprises the following steps: S1, establishing a historical time sequence data set of a resource request; s2, predicting a future resource demand; and S3, pre-scheduling the future request, and quickly returning a scheduling result of the actual resource request based on the resource distribution diagram. According to the method, a better scheduling effect can be achieved, the scheduling requests of the virtual machines are comprehensively considered and scheduled in a batch and unified mode, and the method is beneficial to improvement of the resource allocation rate, reduction of the fragment rate, reduction of the hot spot rate and reduction of the license cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of cloud computing infrastructure cloud technology, and in particular to a high-performance virtual machine scheduling method based on timing prediction and pre-scheduling. Background Art

[0002] The scheduling of virtual machines is based on the user's resource requirements, such as the requirements for computing resources such as CPU and memory. A reasonable one is selected from many host physical machines (computing nodes) to create a virtual machine. In the field of virtual machine scheduling, high-performance scheduling efficiency has always been the goal pursued by various virtual machine management systems. The more common scheduling system currently responds to user scheduling requests for virtual machine resources in real time. All scheduling logic is executed in real time after receiving user requests. The request to create a virtual machine is processed and fed back in real time. The host machine where the requested virtual machine is located is determined online, and the scheduling result is returned in real time. The two processes of filter and weight are usually used for scheduling. First, all candidate host machines are filtered. The filtering process contains various filtering logics. This process will remove candidate host machines that do not meet the conditions. Next, the remaining candidate host machines enter the weighing process. According to the weighing logic, all candidate host machines are scored. The candidate host machine with a high score is taken as the final scheduling target machine, and the virtual machine is created on this target machine.

[0003] These two processes are processed in real time by the scheduling service when the user sends a request to create a virtual machine online, and the scheduling result is returned after processing. Moreover, these two processes are processed serially. The input data of the scoring process is the output result of the filtering process. When the host machine scale is relatively large, this mechanism will have performance problems. The filtering and scoring processes will process all candidate hosts. As the host machine scale increases, the processing time in each process will increase exponentially, which will increase the delay in returning the scheduling result in real time and greatly reduce the scheduling performance. In the ECS service, when the number of physical hosts is large, the real-time scheduling performance of the virtual machine is poor. Summary of the invention

[0004] The purpose of this section is to summarize some aspects of embodiments of the present invention and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the specification abstract and the invention title of this application to avoid blurring the purpose of this section, the specification abstract and the invention title, and such simplifications or omissions cannot be used to limit the scope of the present invention.

[0005] In view of the problems existing in the above-mentioned existing high-performance virtual machine scheduling method based on timing prediction and pre-scheduling, the present invention is proposed.

[0006] Therefore, the purpose of the present invention is to provide a high-performance virtual machine scheduling method based on timing prediction and pre-scheduling, which is suitable for solving the problem of poor real-time scheduling performance of virtual machines in ECS services when the number of physical hosts is large.

[0007] In order to solve the above technical problems, the present invention provides the following technical solutions: a high-performance virtual machine scheduling method based on timing prediction and pre-scheduling, the scheduling method comprising the following steps:

[0008] S1: Build a historical time series dataset of resource requests;

[0009] S2: predict future resource requirements;

[0010] S3: Pre-schedule future requests and quickly return the scheduling results of actual resource requests based on the resource distribution map.

[0011] As a preferred solution of the high-performance virtual machine scheduling method based on timing prediction and pre-scheduling described in the present invention, wherein: the scheduling method uses a high-performance virtual machine scheduling system based on timing prediction and pre-scheduling, and the scheduling system includes two additional modules, namely a pre-scheduling module and a flavor-count maintenance module.

[0012] As a preferred solution of the high-performance virtual machine scheduling method based on timing prediction and pre-scheduling described in the present invention, in which: in the existing real-time scheduling logic, it is necessary to modify the real-time scheduling logic, add the logic of using block mapping, query the block in the available state according to the flavor from this mapping, and return the physical machine ID in the block as the scheduling result.

[0013] As a preferred solution of the high-performance virtual machine scheduling method based on timing prediction and pre-scheduling described in the present invention, wherein: in step S1:

[0014] The scheduling of virtual machines is based on flavor specifications. The flavor defines the resource requirements of the virtual machine. Each scheduling request of the virtual machine is a request for resources and a reasonable arrangement of resource blocks.

[0015] Each time the scheduler receives a virtual machine schedule, it records the flavor specifications used in this schedule, counts the number of requests for various flavors in each past time period, and establishes a flavor-request timestamp data set. In subsequent schedules, this time series data set is continuously maintained. When a virtual machine schedule request for a flavor specification arrives, the flavor count is incremented once. This flavor-request timestamp data set is the basis for future schedule predictions.

[0016] As a preferred solution of the high-performance virtual machine scheduling method based on time series prediction and pre-scheduling described in the present invention, wherein: the scheduling system predicts the resource demand for a period of time in the future based on the time series prediction data set of flavor-count, and the data structure of the demand is the same as the data structure of the historical time series data set, which is also a flavor-count structure with two attributes of flavor and count, and the difference is that the time scale is the future time;

[0017] To predict resource demand, the ARIMA (auto regressive integrated moving average) model is used. Based on this model, a prediction algorithm for scheduling requests is established. The autoregressive model (AR), moving average model (MA) and difference method are combined to form the difference autoregressive moving average model ARIMA (p, d, q), where d is the order of data differentiation.

[0018] As a preferred solution of the high-performance virtual machine scheduling method based on time series prediction and pre-scheduling described in the present invention, generating an ARIMA model includes the following steps:

[0019] Step 1: Draw a plot of the sequence and perform an ADF test to see if the sequence is stable. For non-stationary time series, first perform a d-order difference to convert it into a stationary time series.

[0020] Step 2: After processing in step 1, a stationary time series is obtained. The autocorrelation coefficient (ACF) and partial autocorrelation coefficient (PACF) of the stationary time series are obtained respectively. By analyzing the autocorrelation graph and partial autocorrelation graph, the optimal orders p and q are obtained;

[0021] Step 3: Obtain the ARIMA model from the above obtained d, q, and p;

[0022] Through the above steps, the parameters of the ARIMA model are determined, the historical flavor data within the history_window is selected, the flavor demand of the future_window is predicted, and the virtual machine resource scheduling demand data for the day is obtained.

[0023] As a preferred solution of the high-performance virtual machine scheduling method based on timing prediction and pre-scheduling described in the present invention, in step S3, in the scheduling system, the number of resource requirements for the day is used to pre-scheduling the virtual machine request before the actual user's virtual machine scheduling request arrives.

[0024] As a preferred solution of the high-performance virtual machine scheduling method based on timing prediction and pre-scheduling described in the present invention, wherein: the block is the virtual machine's demand for resources, which includes CPU, memory, disk and GPU.

[0025] As a preferred solution of the high-performance virtual machine scheduling method based on timing prediction and pre-scheduling described in the present invention, the scheduling method further includes two processes:

[0026] ①: Forecasting and pre-scheduling process;

[0027] ②: Real-time scheduling process.

[0028] As a preferred solution of the high-performance virtual machine scheduling method based on timing prediction and pre-scheduling described in the present invention, wherein: in the prediction and pre-scheduling process, first obtain the flavor-count mapping table in the specified history_window, then predict all flavor specifications in the mapping table, predict the required count value of the flavor in the given future_window, generate the future flavor_count mapping table, based on the flavor and the required quantity in the table, perform pre-scheduling calculation in advance, generate the corresponding block resource block object for each flavor request, perform scheduling calculation in advance, determine the physical machine ID of each block, and set the block state to available, and thus establish the block mapping map;

[0029] In the real-time scheduling process, when the user's scheduling request to create a virtual machine actually arrives, the flavor count value is first updated in the flavor-count mapping table with an increment, and the historical actual flavor request data table is maintained. Then, in the block table, a block with the same flavor and an available status is selected. If a block is filtered out, it means that the previous pre-scheduling is a hit. The physical machine ID value is obtained from the block and quickly returned as the scheduling result. If no block is filtered out, the scheduling result is returned.

[0030] The beneficial effects of the present invention include supporting large-scale virtual machine physical machine clusters, and in a scenario with a node scale of 100,000 levels, the scheduling performance can be controlled within 10 seconds. By predicting the demand, the user's virtual machine scheduling requests are aggregated together for pre-scheduling, and independent resource scheduling requests are aggregated together for processing to achieve better resource scheduling effects. In the environment of large-scale computing node clusters, the scheduling performance can be improved, and better scheduling effects can be achieved. The scheduling requests of the virtual machines are comprehensively considered and uniformly scheduled in batches, which is beneficial to improving the resource allocation rate, reducing the fragmentation rate, reducing the hot spot rate, and reducing the license cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:

[0032] Figure 1 The overall flow chart of pre-scheduling of a high-performance virtual machine scheduling method based on timing prediction and pre-scheduling proposed by the present invention;

[0033] Figure 2 A resource block model diagram of a high-performance virtual machine scheduling method based on timing prediction and pre-scheduling proposed by the present invention;

[0034] Figure 3 A flavor-count model diagram of a high-performance virtual machine scheduling method based on timing prediction and pre-scheduling proposed by the present invention;

[0035] Figure 4 A block-physical machine mapping relationship diagram of a high-performance virtual machine scheduling method based on timing prediction and pre-scheduling proposed by the present invention;

[0036] Figure 5 A module deployment diagram of a high-performance virtual machine scheduling method based on timing prediction and pre-scheduling proposed by the present invention. DETAILED DESCRIPTION

[0037] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.

[0038] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0039] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.

[0040] Secondly, the present invention is described in detail with reference to the schematic diagram. When describing the embodiments of the present invention in detail, for the sake of convenience, the cross-sectional diagrams showing the device structure will not be partially enlarged according to the general scale, and the schematic diagrams are only examples, which should not limit the scope of protection of the present invention. In addition, in actual production, the three-dimensional dimensions of length, width and depth should be included.

[0041] Example

[0042] Reference Figure 1-Figure 5 , is an embodiment of the present invention, and provides a high-performance virtual machine scheduling method based on timing prediction and pre-scheduling, the scheduling method comprising the following steps:

[0043] S1: Build a historical time series dataset of resource requests;

[0044] The virtual machine is scheduled based on the flavor specification. The flavor defines the virtual machine's resource requirements, which include CPU, memory, disk, GPU and other resources. The resource requirements are abstracted into resource blocks, which are called blocks in the present invention. Each virtual machine scheduling request is a request for resources and a reasonable arrangement of resource blocks.

[0045] Each time the scheduler receives a virtual machine schedule, it records the flavor specifications used in this schedule, counts the number of requests for various flavors in each past time period, and recommends a flavor-request timestamp data set. In subsequent schedules, this time series data set is continuously maintained. When a virtual machine schedule request for a flavor specification arrives, the flavor count is incremented once. This flavor-request timestamp data set is the basis for future schedule predictions.

[0046] S2: predict future resource requirements;

[0047] The scheduling system predicts the resource demand in the future based on the flavor-count time series prediction data set. The data structure of the demand is the same as that of the historical time series data set, which is also the flavor-count structure with two attributes: flavor and count. The difference is that the time scale is in the future.

[0048] When making future resource demand forecasts, two time windows need to be determined, one is the historical time window history_window, and the other is the future time window future_window. As time goes by, the historical time series data set will have more data. The more historical data is used, the more computing power is consumed for prediction. The less historical data is used, the lower the prediction accuracy is. It is more appropriate to select 90 days as the history_window value and 1 day as the future_window value. Based on the historical data of the past 90 days, predicting the resource demand for the next day is a solution with a relatively balanced computing power and accuracy.

[0049] The ARIMA (auto regressive integrated moving average) model is used to predict resource demand, and a prediction algorithm for scheduling requests is established based on this model. The autoregressive model (AR), moving average model (MA) and difference method are combined to form the difference autoregressive moving average model ARIMA (p, d, q), where d is the order of data differentiation required;

[0050] Generating an ARIMA model involves the following steps:

[0051] Step 1: Draw a plot of the sequence and perform an ADF test to see if the sequence is stable. For non-stationary time series, first perform a d-order difference to convert it into a stationary time series.

[0052] Step 2: After processing in step 1, a stationary time series is obtained. The autocorrelation coefficient (ACF) and partial autocorrelation coefficient (PACF) of the stationary time series are obtained respectively. By analyzing the autocorrelation graph and partial autocorrelation graph, the optimal orders p and q are obtained;

[0053] Step 3: Obtain the ARIMA model from the above obtained d, q, and p;

[0054] Through the above steps, the parameters of the ARIMA model are determined, the historical flavor data within the history_window is selected, the flavor demand of the future_window is predicted, and the virtual machine resource scheduling demand data for the day is obtained;

[0055] S3: pre-schedules future requests and quickly returns the scheduling results of actual resource requests based on the resource distribution map;

[0056] In the scheduling system, the number of resource requirements for the day is used to pre-schedule virtual machine requests before the actual user's virtual machine scheduling request arrives. The scheduling requirements and resource allocation are represented by resource blocks. When the system is initialized, a block distribution map is established for the existing virtual machines. On this basis, the current predicted resource values ​​are used to pre-execute the existing scheduling logic. Through filters and weights, the blocks corresponding to the predicted resource requirements are scheduled, and the physical machine where each block is located is determined.

[0057] When an actual virtual machine scheduling request arrives on the same day, based on the flavor entered by the user, a block with the same flavor and in the available state is selected from the block distribution map, and its physical machine ID is obtained from this block. In this scheduling request, this physical machine ID is directly returned.

[0058] Through this technical solution, in the scenario of a large-scale physical machine cluster, the processing of virtual machine scheduling requests with high real-time requirements is converted into matching queries for blocks to achieve fast scheduling.

[0059] The scheduling method uses a high-performance virtual machine scheduling system based on timing prediction and pre-scheduling. The scheduling system includes two additional modules, namely the pre-scheduling module and the flavor-count maintenance module;

[0060] In the existing real-time scheduling logic, it is necessary to modify the real-time scheduling logic and add the logic of using block mapping. From this mapping, query the blocks in the available state according to the flavor, and return the ID of the physical machine in the block as the scheduling result.

[0061] The scheduling method also includes two processes:

[0062] ①: Forecasting and pre-scheduling process;

[0063] In the prediction and pre-scheduling process, first obtain the flavor-count mapping table in the specified history_window, then predict all flavor specifications in this mapping table, predict the required count value of the flavor in the given future_window, generate the future flavor_count mapping table, and perform pre-scheduling calculations in advance based on the flavors and required quantities in this table. Generate the corresponding block resource block object for each flavor request, perform scheduling calculations in advance, determine the physical machine ID of each block, and set the block state to available. From then on, the block mapping map is established;

[0064] ②: Real-time scheduling process

[0065] In the real-time scheduling process, when the user's scheduling request to create a virtual machine actually arrives, the flavor count value is first updated in the flavor-count mapping table with an increment, and the historical actual flavor request data table is maintained. Then, in the block table, a block with the same flavor and an available status is selected. If a block is filtered out, it means that the previous pre-scheduling is a hit. The physical machine ID value is obtained from the block and quickly returned as the scheduling result. If no block is filtered out, the scheduling result is returned.

[0066] refer to Figure 2 The resource block is the implementation model of the block mapping table, which includes three key attributes: 1) the physical machine ID, 2) the state, and 3) the flavor. The Block object will be created during pre-scheduling, with the state of available, the flavor value corresponding to the historical data, and the physical machine ID of the physical machine selected by pre-scheduling. When executing the real-time scheduling process, if the block is hit, its state will be changed to used.

[0067] refer to Figure 3 This object is both a data model for historical time series data and a prediction model for future prediction data. It includes key attributes such as count, flavor, and timestamp. Flavor is the corresponding virtual machine specification ID, count is the actual number of historical requests, or the predicted number of requirements, and timestamp is the timestamp of historical requests, or the predicted timestamp of the future. It can be in days or hours.

[0068] refer to Figure 4During the pre-scheduling and real-time scheduling process, each block resource block will be created and set to the used state. Its attribute physical machine ID shows the physical machine where it is located, thereby establishing a block-physical machine mapping diagram.

[0069] refer to Figure 5 , the scheduling method deployment structure is as follows Figure 5 As shown, two modules need to be added to the scheduling system, namely the pre-scheduling module and the flavor-count maintenance module. In the existing real-time scheduling logic, the real-time scheduling logic needs to be modified and the logic of using block mapping needs to be added. From this mapping, the blocks in the available state are queried according to the flavor, and the physical machine ID in the block is returned as the scheduling result.

[0070] Scenario verification:

[0071] Scenario 1: A historical data set of virtual machine requests can be automatically created and can be queried by viewing the database table or by calling the API to view the historical request data of the virtual machine specifications;

[0072] Scenario 2: VM requests for the next day can be predicted with an accuracy of more than 90%.

[0073] Scenario 3: When the number of physical machines of virtual machines reaches 100,000, the scheduling performance of virtual machines is equivalent to that below this scale, and the scheduling delay can be controlled within 10 seconds.

[0074] The present invention supports large-scale virtual machine physical machine clusters. In a scenario with a node scale of 100,000 levels, the scheduling performance can be controlled within 10 seconds. By predicting the demand, the user's virtual machine scheduling requests are aggregated together for pre-scheduling, and independent resource scheduling requests are aggregated together for processing to achieve better resource scheduling effects. In the environment of large-scale computing node clusters, the scheduling performance can be improved, and better scheduling effects can be achieved. The scheduling requests of the virtual machines are comprehensively considered and uniformly scheduled in batches, which is beneficial to improving the resource allocation rate, reducing the fragmentation rate, reducing the hot spot rate, and reducing the license cost.

[0075] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. A high-performance virtual machine scheduling method based on timing prediction and pre-scheduling, characterized in that: The scheduling method comprises the following steps: S1: Establish a historical time series dataset of resource requests; S2: predict future resource requirements; S3: Pre-schedule future requests and quickly return the scheduling results of actual resource requests based on the resource distribution map.

2. A high-performance virtual machine scheduling method based on timing prediction and pre-scheduling according to claim 1, characterized in that: The scheduling method uses a high-performance virtual machine scheduling system based on timing prediction and pre-scheduling. The scheduling system includes two additional modules, namely a pre-scheduling module and a flavor-count maintenance module.

3. A high-performance virtual machine scheduling method based on timing prediction and pre-scheduling according to claim 2, characterized in that: In the existing real-time scheduling logic, it is necessary to modify the real-time scheduling logic and add the logic of using block mapping. From this mapping, query the blocks in the available state according to the flavor, and return the ID of the physical machine in the block as the scheduling result.

4. The high-performance virtual machine scheduling method based on timing prediction and pre-scheduling according to claim 1 is characterized in that: In step S1: The scheduling of virtual machines is based on flavor specifications. The flavor defines the resource requirements of the virtual machine. Each scheduling request of the virtual machine is a request for resources and a reasonable arrangement of resource blocks. Each time the scheduler receives a virtual machine schedule, it records the flavor specifications used in this schedule, counts the number of requests for various flavors in each past time period, and establishes a flavor-request timestamp data set. In subsequent schedules, this time series data set is continuously maintained. When a virtual machine schedule request for a flavor specification arrives, the flavor count is incremented once. This flavor-request timestamp data set is the basis for future schedule predictions.

5. The high-performance virtual machine scheduling method based on timing prediction and pre-scheduling according to claim 2 is characterized in that: The scheduling system predicts the resource demand in the future based on the flavor-count time series prediction data set. The data structure of the demand is the same as that of the historical time series data set, which is also the flavor-count structure with two attributes: flavor and count. The difference is that the time scale is in the future. To predict resource demand, the ARIMA (auto regressive integrated moving average) model is used. Based on this model, a prediction algorithm for scheduling requests is established. The autoregressive model (AR), moving average model (MA) and difference method are combined to form the difference autoregressive moving average model ARIMA (p, d, q), where d is the order of data differentiation.

6. The high-performance virtual machine scheduling method based on timing prediction and pre-scheduling according to claim 5 is characterized in that: Generating an ARIMA model involves the following steps: Step 1: Draw a plot of the sequence and perform an ADF test to see if the sequence is stable. For non-stationary time series, first perform a d-order difference to convert it into a stationary time series. Step 2: After processing in step 1, a stationary time series is obtained. The autocorrelation coefficient (ACF) and partial autocorrelation coefficient (PACF) of the stationary time series are obtained respectively. By analyzing the autocorrelation graph and partial autocorrelation graph, the optimal orders p and q are obtained; Step 3: Obtain the ARIMA model from the above obtained d, q, and p; Through the above steps, the parameters of the ARIMA model are determined, the historical flavor data within the history_window is selected, the flavor demand of the future_window is predicted, and the virtual machine resource scheduling demand data for the day is obtained.

7. The high-performance virtual machine scheduling method based on timing prediction and pre-scheduling according to claim 2 is characterized in that: In step S3, in the scheduling system, the resource demand quantity of the day is used to pre-schedule the virtual machine request before the actual user's virtual machine scheduling request arrives.

8. The high-performance virtual machine scheduling method based on timing prediction and pre-scheduling according to claim 3 is characterized in that: The block is the resource requirement of the virtual machine, which includes CPU, memory, disk and GPU.

9. The high-performance virtual machine scheduling method based on timing prediction and pre-scheduling according to claim 1, characterized in that: The scheduling method also includes two processes: ①: Forecasting and pre-scheduling process; ②: Real-time scheduling process.

10. The high-performance virtual machine scheduling method based on timing prediction and pre-scheduling according to claim 9, characterized in that: In the prediction and pre-scheduling process, first obtain the flavor-count mapping table in the specified history_window, then predict all flavor specifications in this mapping table, predict the required count value of the flavor in the given future_window, generate the future flavor_count mapping table, and perform pre-scheduling calculations in advance based on the flavors and required quantities in this table. Generate the corresponding block resource block object for each flavor request, perform scheduling calculations in advance, determine the physical machine ID of each block, and set the block state to available. From then on, the block mapping map is established; In the real-time scheduling process, when the user's scheduling request to create a virtual machine actually arrives, the flavor count value is first updated in the flavor-count mapping table with an increment, and the historical actual flavor request data table is maintained. Then, in the block table, a block with the same flavor and an available status is selected. If a block is filtered out, it means that the previous pre-scheduling is a hit. The physical machine ID value is obtained from the block and quickly returned as the scheduling result. If no block is filtered out, the scheduling result is returned.