Virtual-machine scheduling method and apparatus, and storage medium and electronic device

Through the dynamic constraint multi-objective optimization algorithm of individual adaptive search, the problem of high computational complexity of virtual machine scheduling algorithms is solved, the efficiency of virtual machine scheduling is improved, and fast and effective scheduling plan generation is achieved.

WO2024212620A1PCT designated stage expired Publication Date: 2024-10-17CHINA TELECOM CLOUD TECH CO LTD

Patent Information

Application Number
PCT/CN2023/143231
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-12-13
Filing Date
2023-12-29
Publication Date
2024-10-17

AI Technical Summary

Technical Problem

The virtual machine scheduling algorithm in the existing technology has high computational complexity, resulting in low virtual machine scheduling efficiency, especially in multi-objective situations, which takes a long time to calculate.

Method used

The dynamic constraint multi-objective optimization algorithm using individual adaptive search is used to build a virtual machine scheduling problem model and use preset objective functions and constraint conditions to generate parent populations, perform optimization operations, update search operator weights, and gradually shrink constraint boundaries. , obtain the Pareto optimal solution to achieve virtual machine scheduling.

Benefits of technology

It shortens the calculation time of the virtual machine scheduling plan, improves the efficiency of virtual machine scheduling, and can effectively handle complex situations with multiple objectives and constraints.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023143231_17102024_PF_FP_ABST
    Figure CN2023143231_17102024_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present invention are a virtual-machine scheduling method and apparatus, and a storage medium and an electronic device. The method comprises: first determining a virtual-machine set to be scheduled and each physical machine; obtaining a virtual-machine scheduling issue model corresponding to said virtual-machine set, wherein the virtual-machine scheduling issue model is constructed on the basis of an objective function set and a constraint condition, which objective function set comprises at least one of a first objective function which aims to minimize the degree of dissatisfaction of users, a second objective function which aims to minimize the idle rate of service resources of a physical machine, a third objective function which aims to minimize the energy consumption of the physical machine, and a fourth objective function which aims to minimize load balancing of the physical machine; solving the virtual-machine scheduling issue model on the basis of a dynamic constraint multi-objective optimization algorithm of an individual adaptive search, so as to obtain a target scheduling scheme; and performing virtual-machine scheduling according to the target scheduling scheme. The time taken for calculating a virtual-machine scheduling scheme can be shortened, thereby improving the efficiency of virtual-machine scheduling.
Need to check novelty before this filing date? Find Prior Art

Description

Virtual machine scheduling method, device, storage medium and electronic device Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a virtual machine scheduling method, device, storage medium and electronic device. Background Art

[0002] As an emerging computing model, cloud computing can store and aggregate related resources and configure them on demand to provide personalized services to users. Specifically, it can virtualize physical resources into virtual resources, that is, set up multiple virtual machines on a physical machine to enable multiple business systems to share the physical resources of the same physical machine. In order to reasonably allocate virtual machines to physical machines, virtual machines need to be scheduled.

[0003] In the existing technology, precise algorithms such as dynamic programming methods are usually used to determine scheduling plans. However, the computational complexity of precise algorithms will exponentially increase with the number of targets, the number of constraints, and the number of individuals in the population. When the virtual machine scheduling problem involves multiple targets, it will result in long calculation time and low virtual machine scheduling efficiency.

[0004] Summary of the Invention

[0005] The technical problem to be solved by the present invention is to provide a virtual machine scheduling method, device, storage medium and electronic device, which can shorten the calculation time of the virtual machine scheduling solution and improve the efficiency of virtual machine scheduling. The specific solution is as follows:

[0006] A virtual machine scheduling method, comprising:

[0007] In response to the virtual machine scheduling instruction, determining a set of virtual machines to be scheduled and each physical machine corresponding to the virtual machine scheduling instruction;

[0008] Obtaining a virtual machine scheduling problem model corresponding to the set of virtual machines to be scheduled; the virtual machine scheduling problem model is constructed by a preset set of objective functions and constraints; the set of objective functions includes at least one of a first objective function with the goal of minimizing user dissatisfaction, a second objective function with the goal of minimizing the idle rate of physical machine service resources, a third objective function with the goal of minimizing physical machine energy consumption, and a fourth objective function with the goal of minimizing physical machine load balancing; the constraints are determined based on the service resource utilization of each of the physical machines;

[0009] Solving the virtual machine scheduling problem model based on a preset individual adaptive search dynamic constraint multi-objective optimization algorithm to obtain a target scheduling solution; the target scheduling solution represents the physical machine to which each virtual machine in the set of virtual machines to be scheduled needs to be migrated;

[0010] The virtual machine is scheduled according to the target scheduling scheme.

[0011] Optionally, the method described above uses a preset individual adaptive search dynamic constraint multi-objective optimization algorithm to solve the virtual machine scheduling problem model to obtain a target scheduling solution, including:

[0012] Generate a parent population corresponding to the virtual machine scheduling problem model; the parent population includes a preset number of population individuals, each of which is a solution to the virtual machine scheduling problem model;

[0013] A main objective function is selected from each objective function in the objective function set of the virtual machine scheduling problem model, and objective functions other than the main objective function in the objective function set are converted into objective constraints, wherein the constraint boundary of each objective constraint is determined based on the maximum value of each population individual of the parent population on the dimension of the objective constraint;

[0014] Obtaining search operator weight information of each individual in the currently generated parent population;

[0015] Selecting a search operator for each individual in the population according to current search operator weight information of each individual in the population; the search operator is one of a heuristic search operator and a non-heuristic search operator;

[0016] Using the search operator of each of the population individuals in the currently generated parent population, perform an optimization operation on each of the population individuals to obtain a target population;

[0017] Determining a primary objective function value and a constraint violation value of each of the population individuals in the target population on the primary objective function, wherein the constraint violation value of each of the population individuals represents the degree to which the population individual violates the constraint condition and each of the target constraint conditions;

[0018] According to the main objective function value and the constraint violation value of each population individual in the target population, a preset number of population individuals are selected from the target population to obtain a progeny population;

[0019] Merging the parent population and the offspring population to obtain an individual set;

[0020] Performing a non-dominated sort on the individual set to obtain a non-dominated sort result;

[0021] Selecting a preset number of population individuals from the individual set according to the non-dominated sorting result to generate a parent population of a new generation;

[0022] If the parent population of the new generation currently generated does not meet the preset stopping condition for iteration, updating the boundary of each target constraint condition according to the maximum value of each population individual in the parent population currently generated on each dimension of the target constraint condition, and returning to the step of obtaining the search operator weight of each population individual in the parent population currently generated;

[0023] When the parent population of the new generation currently generated meets a preset condition for stopping iteration, a target individual is selected from the parent population of the new generation currently generated, and the target individual is used as a target scheduling solution.

[0024] In the above method, optionally, obtaining the search operator weight information of each individual in the currently generated parent population includes:

[0025] For each of the population individuals in the currently generated parent population, if the population individual is a new individual, or an individual that has failed to perform the optimization operation for multiple consecutive times, the current search operator weight information of the population individual is obtained according to the preset initial weight; if the population individual is an individual that successfully performed the optimization operation the previous time, the weight corresponding to the target search operator in the search operator weight information of the population individual is increased to obtain the new search operator weight information of the population individual, where the target search operator is the search operator used by the population individual to successfully perform the optimization operation the previous time.

[0026] In the above method, optionally, generating a parent population corresponding to the virtual machine scheduling problem model includes:

[0027] Randomly selecting a preset number of first population individuals in the solution space of the virtual machine scheduling problem model;

[0028] Using a preset agglomerative hierarchical clustering algorithm, clustering each virtual machine in the set of virtual machines to be scheduled according to the service resources required by each virtual machine to obtain a clustering result; and obtaining a preset number of second population individuals in the solution space of the virtual machine scheduling problem model based on the clustering result;

[0029] The preset number of individuals of the first population and the preset number of individuals of the second population form an initial individual set;

[0030] Performing Pareto sorting on each individual of the first population and each individual of the second population in the initial individual set to obtain a sorting result;

[0031] A preset number of population individuals are selected from the initial individual set according to the sorting result to generate a parent population corresponding to the virtual machine scheduling problem model.

[0032] Optionally, the above method includes selecting a preset number of population individuals from the individual set according to the second non-dominated sorting result to generate a new generation of parent population, including:

[0033] Determine the Pareto rank of each population individual in the individual set based on the second non-dominated sorting result;

[0034] determining the crowding degree of each individual in the population at each Pareto level;

[0035] According to the Pareto level, the crowding degree and the crowding degree comparison operator of each individual in the population, a preset number of individuals in the population are selected from the individual set to obtain a parent population of a new generation, and the constraint violation value represents the degree to which the individuals in the population violate the constraint condition.

[0036] A virtual machine scheduling device, comprising:

[0037] a determining unit, configured to determine, in response to a virtual machine scheduling instruction, a set of virtual machines to be scheduled and each physical machine corresponding to the virtual machine scheduling instruction;

[0038] a first execution unit, configured to obtain a virtual machine scheduling problem model corresponding to the set of virtual machines to be scheduled; the virtual machine scheduling problem model is constructed by a preset set of objective functions and constraints; the set of objective functions includes at least one of a first objective function aiming at minimizing user dissatisfaction, a second objective function aiming at minimizing the idle rate of physical machine service resources, a third objective function aiming at minimizing physical machine energy consumption, and a fourth objective function aiming at minimizing physical machine load balancing; the constraints are determined based on the service resource utilization of each of the physical machines;

[0039] A second execution unit is configured to solve the virtual machine scheduling problem model based on a preset individual adaptive search dynamic constraint multi-objective optimization algorithm to obtain a target scheduling solution; the target scheduling solution represents the physical machine to which each virtual machine in the set of virtual machines to be scheduled needs to be migrated;

[0040] The scheduling unit is used to schedule the virtual machine according to the target scheduling scheme.

[0041] In the above device, optionally, the first execution unit includes:

[0042] A first generating subunit is configured to generate a parent population corresponding to the virtual machine scheduling problem model; the parent population includes a preset number of population individuals, each of which is a solution to the virtual machine scheduling problem model;

[0043] a selection subunit, configured to select a primary objective function from each objective function in the objective function set of the virtual machine scheduling problem model, convert objective functions other than the primary objective function in the objective function set into objective constraints, wherein a constraint boundary of each objective constraint is determined based on a maximum value of each population individual of the parent population on a dimension of the objective constraint;

[0044] A first execution subunit is configured to obtain search operator weight information of each individual in the currently generated parent population;

[0045] A first selection subunit, configured to select a search operator for each individual in the population according to current search operator weight information of each individual in the population; the search operator is one of a heuristic search operator and a non-heuristic search operator;

[0046] an optimization subunit, configured to utilize the search operator of each of the population individuals in the currently generated parent population to perform an optimization operation on each of the population individuals to obtain a target population;

[0047] a determination subunit, configured to determine a main objective function value and a constraint violation value of each of the population individuals in the target population on the main objective function, wherein the constraint violation value of each of the population individuals represents the degree to which the population individual violates the constraint condition and each of the target constraint conditions;

[0048] a second selection subunit, configured to select a preset number of individuals from the target population according to the main objective function value and the constraint violation value of each individual in the target population, to obtain an offspring population;

[0049] A second execution subunit is configured to merge the parent population and the child population to obtain an individual set;

[0050] a sorting subunit, configured to perform a non-dominated sort on the individual set to obtain a non-dominated sort result;

[0051] A second generation subunit is configured to select a preset number of population individuals from the individual set according to the non-dominated sorting result to generate a parent population of a new generation;

[0052] a third execution subunit, configured to, if the parent population of the new generation currently generated does not satisfy a preset stopping condition for iteration, update the boundary of each target constraint condition according to the maximum value of each population individual in the parent population currently generated on each dimension of the target constraint condition, and return to the step of obtaining a search operator weight for each population individual in the parent population currently generated;

[0053] The fourth execution subunit is configured to select a target individual from the parent population of the new generation currently generated, and use the target individual as a target scheduling solution when the parent population of the new generation currently generated meets a preset stop iteration condition.

[0054] In the above device, optionally, the first generating subunit includes:

[0055] A first execution module is configured to randomly select a preset number of first population individuals from the solution space of the virtual machine scheduling problem model;

[0056] a second execution module configured to cluster the virtual machines in the set of virtual machines to be scheduled based on the service resources required by each virtual machine using a preset agglomerative hierarchical clustering algorithm to obtain a clustering result; and obtain a preset number of second population individuals in the solution space of the virtual machine scheduling problem model based on the clustering result;

[0057] A third execution module is configured to form an initial individual set from the preset number of first population individuals and the preset number of second population individuals;

[0058] a sorting module, configured to perform Pareto sorting on each individual of the first population and each individual of the second population in the initial individual set to obtain a sorting result;

[0059] A selection module is used to select a preset number of population individuals from the initial individual set according to the sorting result to generate a parent population corresponding to the virtual machine scheduling problem model.

[0060] A storage medium includes storage instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the virtual machine scheduling method as described above.

[0061] An electronic device includes a memory and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by one or more processors to execute the virtual machine scheduling method as described above.

[0062] Based on the above-mentioned embodiment of the present invention, a virtual machine scheduling method and device, storage medium and electronic device are provided. The method includes: in response to a virtual machine scheduling instruction, determining a set of virtual machines to be scheduled and each physical machine corresponding to the virtual machine scheduling instruction; obtaining a virtual machine scheduling problem model corresponding to the set of virtual machines to be scheduled; the virtual machine scheduling problem model is constructed by a preset set of objective functions and constraints; the objective function set includes at least one of a first objective function with the goal of minimizing user dissatisfaction, a second objective function with the goal of minimizing the idle rate of physical machine service resources, a third objective function with the goal of minimizing physical machine energy consumption, and a fourth objective function with the goal of minimizing physical machine load balancing; the constraints are determined based on the service resource utilization of each of the physical machines; solving the virtual machine scheduling problem model based on a preset individual adaptive search dynamic constraint multi-objective optimization algorithm to obtain a target scheduling solution; the target scheduling solution represents the physical machine to which each virtual machine in the set of virtual machines to be scheduled needs to migrate; and scheduling the virtual machines according to the target scheduling solution. Applying the method provided by the embodiment of the present invention, using the individual adaptive search dynamic constraint multi-objective optimization algorithm to solve the virtual machine scheduling problem model can shorten the computation time of the virtual machine scheduling solution and improve the efficiency of virtual machine scheduling. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are merely embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0064] FIG1 is a flow chart of a virtual machine scheduling method provided by the present invention;

[0065] FIG2 is a flow chart of a process for obtaining a target scheduling solution provided by the present invention;

[0066] FIG3 is a flow chart of a dynamic constrained multi-objective optimization process based on individual adaptive search provided by the present invention;

[0067] FIG4 is a schematic diagram of a solution to a virtual machine scheduling problem model stored in a linked list provided by the present invention;

[0068] FIG5 is a schematic structural diagram of a virtual machine scheduling device provided by the present invention;

[0069] FIG6 is a schematic structural diagram of an electronic device provided by the present invention. DETAILED DESCRIPTION

[0070] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0071] In this application, the terms "comprises," "comprising," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.

[0072] In the existing technology, precise algorithms such as dynamic programming methods are usually used to determine the scheduling plan. However, the computational complexity of the precise algorithm will grow exponentially with the number of targets, the number of constraints, and the number of individuals in the population, resulting in long calculation time and low virtual machine scheduling efficiency.

[0073] In some embodiments, heuristic algorithms such as ant colony algorithms can be used to determine the scheduling plan. However, heuristic algorithms such as ant colony algorithms only search in the feasible domain without exploring the infeasible domain. This may miss those infeasible solutions that are located in the infeasible domain and have great potential to be converted into high-quality solutions, resulting in the inability to obtain a suitable scheduling plan.

[0074] Based on this, an embodiment of the present invention provides a virtual machine scheduling method, which can be applied to electronic devices. The method flow chart of the method is shown in FIG1 , and specifically includes:

[0075] S101: In response to a virtual machine scheduling instruction, determining a set of virtual machines to be scheduled and each physical machine corresponding to the virtual machine scheduling instruction.

[0076] In this embodiment, the virtual machine scheduling instruction may be used to instruct to schedule the virtual machine to a physical machine.

[0077] Optionally, the virtual machine scheduling instruction can be parsed to obtain instruction information; each virtual machine identifier and each physical machine identifier in the instruction information can be obtained; the virtual machine corresponding to each virtual machine identifier and the physical machine corresponding to each physical machine identifier can be determined; and the virtual machine set composed of the virtual machines corresponding to each virtual machine identifier can be determined as the set of virtual machines to be scheduled corresponding to the virtual machine scheduling instruction.

[0078] Optionally, the physical machine may include at least one of a portable computer, a server, or a host.

[0079] S102: Obtain a virtual machine scheduling problem model corresponding to the set of virtual machines to be scheduled; the virtual machine scheduling problem model is constructed by a preset set of objective functions and constraints; the objective function set includes at least one of a first objective function aiming at minimizing user dissatisfaction, a second objective function aiming at minimizing the idle rate of physical machine service resources, a third objective function aiming at minimizing physical machine energy consumption, and a fourth objective function aiming at minimizing physical machine load balancing; the constraints are determined based on the service resource utilization of each of the physical machines.

[0080] In this embodiment, the service resources of the physical machine may include at least one of the CPU idle rate, the memory idle rate, the external memory idle rate, and the bandwidth idle rate. Accordingly, the second objective function aimed at minimizing the idle rate of the physical machine service resources may include at least one of the first sub-objective function aimed at minimizing the CPU idle rate, the second sub-objective function aimed at minimizing the memory idle rate, the third sub-objective function aimed at minimizing the external memory idle rate, and the fourth sub-objective function aimed at minimizing the bandwidth idle rate.

[0081] Optionally, the service resource utilization of the physical machine may include at least one of CPU utilization, memory utilization, external storage utilization, and bandwidth utilization.

[0082] In this embodiment, the constraint condition may be that the resource utilization of each physical machine is less than 1. The constraint condition may specifically include a first sub-constraint condition that the CPU utilization of each physical machine is less than 1, a second constraint sub-condition that the memory utilization of each physical machine is less than 1, a third constraint condition that the external memory utilization of each physical machine is less than 1, and a fourth constraint sub-condition that the bandwidth utilization of each physical machine is less than 1.

[0083] S103: Solving the virtual machine scheduling problem model based on a preset individual adaptive search dynamic constraint multi-objective optimization algorithm to obtain a target scheduling solution; the target scheduling solution represents the physical machine to which each virtual machine in the set of virtual machines to be scheduled needs to migrate.

[0084] In this embodiment, the target scheduling solution may be a Pareto optimal solution of the virtual machine scheduling problem model.

[0085] S104: Perform virtual machine scheduling according to the target scheduling scheme.

[0086] In this embodiment, the physical machine to which each virtual machine represented by the target scheduling solution needs to migrate can be determined, and each virtual machine is migrated to the physical machine to which each virtual machine needs to migrate, so as to complete virtual machine scheduling.

[0087] By applying the method provided in an embodiment of the present invention, a set of virtual machines to be scheduled and each physical machine can be first determined; then a virtual machine scheduling problem model corresponding to the set of virtual machines to be scheduled can be obtained; the virtual machine scheduling problem model can be solved based on a preset individual adaptive search dynamic constrained multi-objective optimization algorithm to obtain a target scheduling solution; the target scheduling solution represents the physical machine to which each virtual machine in the set of virtual machines to be scheduled needs to migrate; and virtual machines can be scheduled according to the target scheduling solution. By applying the method provided in an embodiment of the present invention, the virtual machine scheduling problem model can be solved using an individual adaptive search dynamic constrained multi-objective optimization algorithm, which can shorten the computation time of the virtual machine scheduling solution and improve virtual machine scheduling efficiency.

[0088] In some embodiments, after obtaining the target scheduling solution, the target scheduling solution may be outputted so that the user can schedule the virtual machines based on the target scheduling solution.

[0089] In one embodiment of the present invention, based on the above solution, optionally, the process of solving the virtual machine scheduling problem model using a preset individual adaptive search dynamic constrained multi-objective optimization algorithm to obtain a target scheduling solution, as shown in FIG2 , includes:

[0090] S201: Generate a parent population corresponding to the virtual machine scheduling problem model; the parent population includes a preset number of population individuals, and each of the population individuals is a solution to the virtual machine scheduling problem model.

[0091] Optionally, the solution information of the virtual machine scheduling problem model may include the encoding of the solution, the values ​​of the solution on various objective and constraint dimensions, the constraint violation value of the solution, the weight information of each search operator of the solution, and the number of times the quality of the solution has not been continuously improved.

[0092] Optionally, the decoded code may be the physical machine corresponding to each virtual machine.

[0093] In this embodiment, a one-way linked list can be used to store the solution of the virtual machine scheduling problem model. The data structure of the one-way linked list supports the fast insertion and deletion of nodes, which has great advantages for large-scale virtual machine scheduling problems, can greatly reduce the running time of the program, and improve the timeliness of the algorithm.

[0094] S202: Select a main objective function from each objective function in the objective function set of the virtual machine scheduling problem model, and convert the objective functions other than the main objective function in the objective function set into objective constraints, and the constraint boundary of each objective constraint is determined based on the maximum value of each population individual of the parent population on the dimension of the objective constraint.

[0095] In this embodiment, one objective function may be selected from various objective functions as the main objective function.

[0096] In this embodiment, the objective functions other than the main objective function in the objective function set can be converted into objective constraint conditions by a preset ε constraint processing method, ε i Denotes the objective function f i (x) The boundary of the target constraint obtained by transformation.

[0097] For example, the objective function set is expressed as: min{f1(x),f2(x),...,f i (x)}; min f1(x) can be selected as the objective main function; the remaining objective functions are converted into objective constraints, as follows: min f1(x) f2(x)≤ε2,...,f i (x)≤ε i

[0098] In some embodiments, a selection instruction may be received, and a main objective function may be selected from various objective functions according to the selection instruction; optionally, the selection instruction may include user demand information.

[0099] In some embodiments, a first objective function f1(x) aiming to minimize user dissatisfaction may be selected as the main objective function, and objective functions other than the main objective function may be converted into objective constraints.

[0100] S203: Obtain search operator weight information of each individual in the currently generated parent population.

[0101] In this embodiment, the search operator weight information of each population individual may include the weight of each population individual corresponding to each preset search operator; the greater the weight corresponding to each search operator, the greater the probability that the search operator is selected.

[0102] S204: Selecting a search operator for each individual in the population according to current search operator weight information of each individual in the population; the search operator is one of a heuristic search operator and a non-heuristic search operator.

[0103] In this embodiment, the search operator of each population individual may be selected according to the weight corresponding to each search operator in the search operator weight information of each population individual.

[0104] In this embodiment, by selecting the search operator of each individual in the population according to the current search operator weight information of each individual in the population, the individual can optimize itself by selecting a search operator suitable for improving its own performance with a greater probability based on its own structural characteristics.

[0105] S205: Utilizing the search operator of each population individual in the currently generated parent population, perform an optimization operation on each population individual to obtain a target population.

[0106] In this embodiment, the heuristic search operator can be used to search based on heuristic information. For example, if the physical machine has the lowest energy consumption, the search method may be to migrate the virtual machines on a physical machine with a small number of virtual machines to other physical machines; for example, for load balancing, the search method may be to migrate the virtual machines on the physical machine with the heaviest load pressure to the physical machine with less load pressure; such as in terms of service resource utilization such as CPU, memory, external storage, and bandwidth utilization, the search method may be to migrate the virtual machine with the largest demand for the resource on the physical machine with the highest resource utilization to the physical machine with the lowest resource utilization, and so on, thereby optimizing the population individuals.

[0107] Optionally, non-heuristic operators can be used for non-heuristic searches. For example, the following search methods can be performed: randomly exchanging a single virtual machine node on any two physical machines, randomly exchanging multiple virtual machine nodes on any two physical machines; randomly migrating a virtual machine on a physical machine to another physical machine; randomly migrating multiple virtual machines on a physical machine to another physical machine, etc.; thereby optimizing the individuals in the population.

[0108] S206: Determine the main objective function value and constraint violation value of each individual in the target population on the main objective function, wherein the constraint violation value of each individual represents the degree to which the individual violates the constraint condition and each target constraint condition.

[0109] In this embodiment, the larger the constraint violation value of a population individual, the greater the degree to which the population individual violates the constraint conditions and the target constraint conditions; the smaller the constraint violation value of a population individual, the smaller the degree to which the population individual violates the constraint conditions and the target constraint conditions.

[0110] S207: According to the main objective function value and the constraint violation value of each population individual in the target population, a preset number of population individuals are selected from the target population to obtain a descendant population.

[0111] In this embodiment, the quality of each population individual can be determined based on the main objective function value and constraint violation value of each population individual, and a preset number of population individuals are selected from the target population in descending order of the quality of each population individual, and the selected population individuals are formed into a descendant population.

[0112] S208: Merge the parent population and the offspring population to obtain an individual set.

[0113] In this embodiment, the parent population and the child population may be merged, and duplicate population individuals after the merger may be removed to obtain an individual set.

[0114] S209: Perform non-dominated sorting on the individual set to obtain a non-dominated sorting result.

[0115] In this embodiment, the non-dominated sorting result may include the Pareto rank of each population individual in the currently generated parent population.

[0116] S210: Selecting a preset number of population individuals from the individual set according to the non-dominated sorting result to generate a parent population of a new generation.

[0117] S211: Determine whether the parent population of the new generation currently generated meets the preset stop iteration condition, if not, execute S212, if so, execute S213.

[0118] In this embodiment, when the number of generations of the parent population of the new generation reaches a preset iteration threshold, it is determined that the parent population of the new generation meets the preset stop iteration condition; otherwise, it is determined that the parent population of the new generation does not meet the stop iteration condition.

[0119] S212: updating the boundary of each target constraint condition according to the maximum value of each population individual in the currently generated parent population in each target constraint condition dimension, and returning to execute S203.

[0120] In this embodiment, by updating the boundaries of the target constraint conditions, the constraint boundaries can be gradually shrunk during the population evolution process, so that the population moves closer to the optimal value.

[0121] S213: Select a target individual from the parent population of the new generation currently generated, and use the target individual as a target scheduling solution.

[0122] In this embodiment, after the target scheduling solution is obtained, the target scheduling solution may be output.

[0123] In an embodiment provided by the present invention, based on the above solution, optionally, obtaining the search operator weight information of each individual in the currently generated parent population includes:

[0124] For each of the population individuals in the currently generated parent population, if the population individual is a new individual, or an individual that has failed to perform the optimization operation for multiple consecutive times, the current search operator weight information of the population individual is obtained according to the preset initial weight; if the population individual is an individual that successfully performed the optimization operation the previous time, the weight corresponding to the target search operator in the search operator weight information of the population individual is increased to obtain the new search operator weight information of the population individual, where the target search operator is the search operator used by the population individual to successfully perform the optimization operation the previous time.

[0125] In this embodiment, whether the optimization of the population individuals is successful can be determined by comparing the mass of the population individuals before the optimization operation is performed with the mass of the population individuals after the optimization operation is performed; for each population individual, if the mass of the population individual after the optimization operation is greater than the mass before the optimization operation is performed, then the optimization of the population individual is determined to be successful; if the mass of the population individual after the optimization operation is not greater than the mass before the optimization operation, then the optimization of the population individual is determined to have failed.

[0126] In this embodiment, if the population individual is a new individual, or an individual that has failed to perform the optimization operation for multiple consecutive times, the initial weight may be used as the weight of the population individual corresponding to each search operator.

[0127] Optionally, the weight corresponding to the target search operator in the search operator weight information of the population individual is increased according to a preset step size. For example, the weight corresponding to the target search operator may be increased by one.

[0128] In this embodiment, after a population individual fails to perform the optimization operation for multiple consecutive times, the weights corresponding to each search operator in the search operator information of the population individual can be set as the initial weights, which greatly avoids the algorithm from falling into local optimality and increases the algorithm's exploration ability.

[0129] In an embodiment provided by the present invention, based on the above solution, optionally, generating a parent population corresponding to the virtual machine scheduling problem model includes:

[0130] Randomly selecting a preset number of first population individuals in the solution space of the virtual machine scheduling problem model;

[0131] Clustering each virtual machine in the set of virtual machines to be scheduled according to the service resources required by each virtual machine using a preset agglomerative hierarchical clustering algorithm to obtain a clustering result; obtaining a preset number of second population individuals in the solution space of the virtual machine scheduling problem model based on the clustering result;

[0132] The preset number of individuals of the first population and the preset number of individuals of the second population form an initial individual set;

[0133] Performing Pareto sorting on each individual of the first population and each individual of the second population in the initial individual set to obtain a sorting result;

[0134] A preset number of population individuals are selected from the initial individual set according to the sorting result to generate a parent population corresponding to the virtual machine scheduling problem model.

[0135] In this embodiment, the number of individuals in the first population, the number of individuals in the second population, and the number of the parent population may be the same or different.

[0136] In this embodiment, the preset number of first population individuals and the preset number of second population individuals may be merged, and duplicate population individuals may be removed to obtain an initial individual set.

[0137] Optionally, according to the Pareto level of each population individual in the initial individual set included in the sorting result, a preset number of population individuals can be selected from the initial individual set to generate a parent population corresponding to the virtual machine scheduling problem model.

[0138] In this embodiment, the service resources required by the virtual machine may include CPU, memory, external storage, bandwidth resources, etc. Virtual machines with similar CPU, memory, external storage, and bandwidth resource requirements are grouped as a class and individuals are generated heuristically.

[0139] In an embodiment provided by the present invention, based on the above solution, optionally, selecting a preset number of population individuals from the individual set according to the non-dominated sorting result to generate a new generation of parent population includes:

[0140] Determine the Pareto rank of each population individual in the individual set based on the non-dominated sorting result;

[0141] determining the crowding degree of each individual in the population at each Pareto level;

[0142] According to the Pareto level, the crowding degree and the crowding degree comparison operator of each individual in the population, a preset number of population individuals are selected from the individual set to obtain a parent population of a new generation.

[0143] In this embodiment, a preset number of population individuals are selected from the individual set based on the Pareto level, the crowding degree, the crowding degree comparison operator, and the constraint violation value of each population individual to obtain a new generation of parent population, which can ensure population diversity while retaining excellent population individuals.

[0144] In an embodiment provided by the present invention, based on the above solution, optionally, selecting a target individual from the parent population of the new generation currently being generated includes:

[0145] Determining a function value of each population individual in the parent population of the new generation in the objective function and a constraint violation value;

[0146] A target individual is selected from the parent population of the new generation according to the function value of each individual in the population in the objective function and the constraint violation value.

[0147] In some embodiments, whether each population individual violates the constraint condition is determined based on the constraint violation value of each population individual; if there is a population individual that does not violate the constraint condition, the target individual can be selected from the parent population of the new generation based on the function value of the first objective function of each population individual that does not violate the constraint condition.

[0148] FIG3 shows a flowchart of a dynamic constrained multi-objective optimization process based on individual adaptive search for solving a multi-objective combination optimization problem, specifically including:

[0149] Step 1: Construct a virtual machine problem model; in this embodiment, the virtual machine scheduling problem is to reasonably allocate the virtual machines that users need to activate to physical machines. This problem can be abstracted as a knapsack problem, where virtual machine resources are items and physical machines are knapsacks. The virtual machine resources loaded by each physical machine are part of the solution, and the combination of virtual machine resources loaded by all physical machines is a complete solution. Before encoding the solution, it is necessary to integer-number the virtual machine resources and then use the numbers to construct the solution. Considering the time consumption of the algorithm, as shown in Figure 4, a linked list with insertion and deletion functions can be used to store the solution code. The objective function is considered from the customer's perspective, and finally seven objective functions are determined, including customer dissatisfaction f1(x), CPU idle rate f2(x), memory idle rate f3(x), external memory idle rate f4(x), bandwidth idle rate f5(x), physical machine energy consumption f6(x), and load balancing f7(x). The CPU utilization, memory utilization, external memory utilization, and bandwidth utilization of each physical machine k must be less than or equal to 1. There are four constraints in total.

[0150] Step 2: Use an agglomerative hierarchical clustering algorithm to initialize individuals. All initial individuals are feasible solutions. To increase population diversity, a random initialization method is introduced. Both initialization methods generate 80 individuals, forming a combined population of 160 individuals. After removing duplicate individuals from the combined population, the non-dominated sorting genetic algorithm (NSGA-II) is used to select 80 individuals as the initial population. The agglomerative hierarchical clustering algorithm fully utilizes the virtual machine resource requirements and physical machine load capacity information in the problem, which can reduce the pressure on the algorithm to optimize the population.

[0151] Step 3: Design a search operator so that the algorithm can converge quickly. In this embodiment, the search operator includes a non-heuristic search operator and a heuristic search operator. For non-heuristic search operators, such as randomly exchanging a single virtual machine node on any two physical machines, randomly exchanging multiple virtual machine nodes on any two physical machines; randomly migrating a virtual machine on a physical machine to another physical machine; randomly migrating multiple virtual machines on a physical machine to another physical machine, etc. For heuristic search operators, if the energy consumption of the physical machine is the lowest, it is necessary to migrate the virtual machines on the physical machine with a small number of virtual machines to other physical machines; if load balancing is required, it is necessary to migrate the virtual machines on the physical machine with the highest load pressure to the physical machine with less load pressure; if the CPU, memory, external storage, and bandwidth utilization are concerned, it is necessary to migrate the virtual machine with the highest resource demand on the physical machine with the highest resource utilization to the physical machine with the lowest resource utilization, etc.

[0152] Step 4: Design an individual-based adaptive mechanism. In this embodiment, since the structural characteristics of individuals in the population are different, their sensitivity to the designed search operator is different. It is difficult for the population-based adaptive mechanism to reflect the differences in the structure of each individual. Therefore, an individual-based adaptive mechanism is designed. When the algorithm starts to execute, the weight value of the search operator of each individual is 1. The probability of the search operator being selected calculated based on the weight value is the same. As the algorithm evolves on the population, if the search operator LS i Can improve the individual, then the LS corresponding to the individual i The greater the weight value of +1, the greater the probability of the search operator being selected. This will enable the individual to select a search operator that is suitable for improving its own performance with a greater probability to optimize itself according to its own structural characteristics during the execution of the algorithm, thereby increasing the development capability of the algorithm. Considering that during the operation of the algorithm, the search operator with better performance has a large probability of being selected due to its large weight value, but the search operator is powerless to optimize the individual in the later stage of evolution, resulting in a waste of computing resources. In order to avoid this situation, an anti-convergence mechanism is designed. When an individual fails to optimize for 20 consecutive generations, the weight value of the search operator of the individual is reset to 1, so that other search operators can be selected in the subsequent optimization process, which greatly avoids the algorithm from falling into local optimality and increases the exploration capability of the algorithm.

[0153] Step 5: Introducing a dynamic constrained multi-objective optimization algorithm framework. In this embodiment, the virtual machine scheduling problem model has seven objectives and four constraints. Using a multi-objective optimization algorithm to solve this problem model will produce multiple non-dominated solutions. Therefore, a dynamic constrained multi-objective optimization algorithm framework is introduced to equivalently convert the important objective functions f2(x), f3(x), f4(x), f5(x), f6(x), and f7(x) into constraints, thereby converting the seven-objective virtual machine resource problem into a two-objective optimization problem. The constraints are then processed using the ε constraint processing method of the dynamic constrained multi-objective optimization algorithm framework. A constraint violation value objective is introduced. Because individual feasibility is prioritized when selecting the next generation parent population, f2(x), f3(x), f4(x), f5(x), f6(x), and f7(x) can be greatly optimized. At the beginning of the algorithm, the constraint bounds are the maximum values ​​of the initial population in each constraint dimension. During the evolution process, the constraint bounds are gradually contracted, forcing the population to approach the optimal value until the algorithm converges.

[0154] Step 6: Merge the parent population and the child population into a joint population (i.e., the above-mentioned individual set), remove duplicate individuals from the joint population, and then use the non-dominated sorting genetic algorithm (NSGA-II) to select 80 population individuals from the joint population as the next generation parent population.

[0155] Corresponding to the method shown in FIG1 , an embodiment of the present invention further provides a virtual machine scheduling device for implementing the method shown in FIG1 . The schematic diagram of the virtual machine scheduling device is shown in FIG5 , and specifically includes:

[0156] A determining unit 501 is configured to determine, in response to a virtual machine scheduling instruction, a set of virtual machines to be scheduled and each physical machine corresponding to the virtual machine scheduling instruction;

[0157] A first execution unit 502 is configured to obtain a virtual machine scheduling problem model corresponding to the set of virtual machines to be scheduled; the virtual machine scheduling problem model is constructed by a preset objective function and constraint conditions; the objective function includes at least one of a first objective function with the goal of minimizing user dissatisfaction, a second objective function with the goal of minimizing the idle rate of physical machine service resources, a third objective function with the goal of minimizing physical machine energy consumption, and a fourth objective function with the goal of minimizing physical machine load balancing; the constraint conditions are determined based on the service resource utilization rate of each physical machine;

[0158] The second execution unit 503 is configured to solve the virtual machine scheduling problem model based on a preset individual adaptive search dynamic constraint multi-objective optimization algorithm to obtain a target scheduling solution; the target scheduling solution represents the physical machine to which each virtual machine in the set of virtual machines to be scheduled needs to be migrated;

[0159] The scheduling unit 504 is configured to schedule the virtual machines according to the target scheduling scheme.

[0160] In an embodiment of the present invention, based on the above solution, optionally, the first execution unit 502 includes:

[0161] A first generating subunit is configured to generate a parent population corresponding to the virtual machine scheduling problem model; the parent population includes a preset number of population individuals, each of which is a solution to the virtual machine scheduling problem model;

[0162] a selection subunit, configured to select a primary objective function from each objective function in the objective function set of the virtual machine scheduling problem model, convert objective functions other than the primary objective function in the objective function set into objective constraints, wherein a constraint boundary of each objective constraint is determined based on a maximum value of each population individual of the parent population on a dimension of the objective constraint;

[0163] A first execution subunit is configured to obtain search operator weight information of each individual in the currently generated parent population;

[0164] A first selection subunit, configured to select a search operator for each individual in the population according to current search operator weight information of each individual in the population; the search operator is one of a heuristic search operator and a non-heuristic search operator;

[0165] an optimization subunit, configured to utilize the search operator of each of the population individuals in the currently generated parent population to perform an optimization operation on each of the population individuals to obtain a target population;

[0166] a determination subunit, configured to determine a main objective function value and a constraint violation value of each of the population individuals in the target population on the main objective function, wherein the constraint violation value of each of the population individuals represents the degree to which the population individual violates the constraint condition and each of the target constraint conditions;

[0167] a second selection subunit, configured to select a preset number of individuals from the target population according to the main objective function value and the constraint violation value of each individual in the target population, to obtain an offspring population;

[0168] A second execution subunit is configured to merge the parent population and the child population to obtain an individual set;

[0169] a sorting subunit, configured to perform a non-dominated sort on the individual set to obtain a non-dominated sort result;

[0170] A second generation subunit is configured to select a preset number of population individuals from the individual set according to the non-dominated sorting result to generate a parent population of a new generation;

[0171] a third execution subunit, configured to, if the parent population of the new generation currently generated does not satisfy a preset stopping condition for iteration, update the boundary of each target constraint condition according to the maximum value of each population individual in the parent population currently generated on each dimension of the target constraint condition, and return to the step of obtaining a search operator weight for each population individual in the parent population currently generated;

[0172] The fourth execution subunit is configured to select a target individual from the parent population of the new generation currently generated, and use the target individual as a target scheduling solution when the parent population of the new generation currently generated meets a preset stop iteration condition.

[0173] In an embodiment provided by the present invention, based on the above solution, optionally, the first execution subunit includes:

[0174] A processing module is used to obtain, for each of the population individuals in the currently generated parent population, the current search operator weight information of the population individual based on a preset initial weight if the population individual is a new individual or an individual that has failed to perform the optimization operation multiple times in a row; if the population individual is an individual that successfully performed the optimization operation the previous time, increase the weight corresponding to the target search operator in the search operator weight information of the population individual to obtain new search operator weight information of the population individual, where the target search operator is the search operator used by the population individual to successfully perform the optimization operation the previous time.

[0175] In an embodiment provided by the present invention, based on the above solution, optionally, the first generating subunit includes:

[0176] A first execution module is configured to randomly select a preset number of first population individuals from the solution space of the virtual machine scheduling problem model;

[0177] a second execution module, configured to cluster the virtual machines in the set of virtual machines to be scheduled according to the service resources required by each virtual machine using a preset agglomerative hierarchical clustering algorithm to obtain a clustering result; and obtain a preset number of second population individuals in the solution space of the virtual machine scheduling problem model based on the clustering result;

[0178] A third execution module is configured to form an initial individual set from the preset number of first population individuals and the preset number of second population individuals;

[0179] a sorting module, configured to perform Pareto sorting on each individual of the first population and each individual of the second population in the initial individual set to obtain a sorting result;

[0180] A selection module is used to select a preset number of population individuals from the initial individual set according to the sorting result to generate a parent population corresponding to the virtual machine scheduling problem model.

[0181] In an embodiment provided by the present invention, based on the above solution, optionally, the second generating subunit includes:

[0182] A first determining module is configured to determine a Pareto rank of each population individual in the individual set based on the second non-dominated sorting result;

[0183] A second determining module is used to determine the crowding degree of each individual in the population at each Pareto level;

[0184] The fourth execution module is configured to select a preset number of population individuals from the individual set according to the Pareto level, the crowding degree and the crowding degree comparison operator of each population individual to obtain a parent population of a new generation.

[0185] The specific principles and execution processes of each unit and module in the virtual machine scheduling device disclosed in the above embodiment of the present invention are the same as those of the virtual machine scheduling method disclosed in the above embodiment of the present invention. Please refer to the corresponding parts of the virtual machine scheduling method provided in the above embodiment of the present invention, and no further details will be given here.

[0186] An embodiment of the present invention further provides a storage medium, which includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the above-mentioned virtual machine scheduling method.

[0187] An embodiment of the present invention further provides an electronic device, the structure of which is shown in FIG6 . The electronic device includes a memory 601 and one or more instructions 602 . The one or more instructions 602 are stored in the memory 601 and are configured to be executed by one or more processors 603 to perform the following operations:

[0188] In response to the virtual machine scheduling instruction, determining a set of virtual machines to be scheduled and each physical machine corresponding to the virtual machine scheduling instruction;

[0189] Obtaining a virtual machine scheduling problem model corresponding to the set of virtual machines to be scheduled; the virtual machine scheduling problem model is constructed by preset objective functions and constraints; the objective function set includes at least one of a first objective function with the goal of minimizing user dissatisfaction, a second objective function with the goal of minimizing the idle rate of physical machine service resources, a third objective function with the goal of minimizing physical machine energy consumption, and a fourth objective function with the goal of minimizing physical machine load balancing; the constraints are determined based on the service resource utilization of each of the physical machines;

[0190] Solving the virtual machine scheduling problem model based on a preset individual adaptive search dynamic constraint multi-objective optimization algorithm to obtain a target scheduling solution; the target scheduling solution represents the physical machine to which each virtual machine in the set of virtual machines to be scheduled needs to be migrated;

[0191] The virtual machine is scheduled according to the target scheduling scheme.

[0192] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Similarities between the various embodiments can be referred to in conjunction with each other. For device embodiments, since they are generally similar to method embodiments, their description is relatively simple, and for relevant details, reference can be made to the description of the method embodiments.

[0193] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are merely used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations.

[0194] For the convenience of description, the above device is described as being divided into various units according to their functions. Of course, when implementing the present invention, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0195] From the above description of the embodiments, it can be seen that those skilled in the art can clearly understand that the present invention can be implemented by means of software plus the necessary general-purpose hardware platform. Based on this understanding, the technical solution of the present invention, or the portion that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a storage medium such as ROM / RAM, a magnetic disk, or an optical disk, and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments of the present invention or certain parts of the embodiments.

[0196] The above is a detailed introduction to a virtual machine scheduling method provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core ideas. At the same time, for those skilled in the art, according to the ideas of the present invention, there may be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A virtual machine scheduling method, characterized in that: include: In response to the virtual machine scheduling instruction, determining a set of virtual machines to be scheduled and each physical machine corresponding to the virtual machine scheduling instruction; Obtaining a virtual machine scheduling problem model corresponding to the set of virtual machines to be scheduled; The virtual machine scheduling problem model is constructed by a preset set of objective functions and constraints; the set of objective functions includes at least one of a first objective function with the goal of minimizing user dissatisfaction, a second objective function with the goal of minimizing the idle rate of physical machine service resources, a third objective function with the goal of minimizing physical machine energy consumption, and a fourth objective function with the goal of minimizing physical machine load balancing; the constraints are determined based on the service resource utilization of each of the physical machines; Solving the virtual machine scheduling problem model based on a dynamic constrained multi-objective optimization algorithm for individual adaptive search to obtain a target scheduling solution; The target scheduling scheme represents the physical machine to which each virtual machine in the set of virtual machines to be scheduled needs to migrate; The virtual machine is scheduled according to the target scheduling scheme.

2. The method according to claim 1, characterized in that The dynamic constraint multi-objective optimization algorithm using individual adaptive search is used to solve the virtual machine scheduling problem model to obtain a target scheduling solution, including: Generate a parent population corresponding to the virtual machine scheduling problem model; the parent population includes a preset number of population individuals, each of which is a solution to the virtual machine scheduling problem model; A main objective function is selected from each objective function in the objective function set of the virtual machine scheduling problem model, and objective functions other than the main objective function in the objective function set are converted into objective constraints, wherein the constraint boundary of each objective constraint is determined based on the maximum value of each population individual of the parent population on the dimension of the objective constraint; Obtaining search operator weight information of each individual in the parent population currently generated; Selecting a search operator for each individual in the population according to current search operator weight information of each individual in the population; the search operator is one of a heuristic search operator and a non-heuristic search operator; Using the search operator of each individual in the parent population currently generated, perform an optimization operation on each individual in the population to obtain a target population; Determine the main objective of each individual in the target population on the main objective function A function value and a constraint violation value, wherein the constraint violation value of each individual in the population represents the degree to which the individual in the population violates the constraint condition and each target constraint condition; According to the main objective function value and the constraint violation value of each population individual in the target population, a preset number of population individuals are selected from the target population to obtain a descendant population; Merging the parent population and the offspring population to obtain an individual set; Performing non-dominated sorting on the individual set to obtain a non-dominated sorting result; Selecting a preset number of population individuals from the individual set according to the non-dominated sorting result to generate a new generation of parent population; In the case that the parent population of the new generation currently generated does not meet the preset stop iteration condition, the boundary of each target constraint condition is updated according to the maximum value of each population individual in the parent population currently generated on each dimension of the target constraint condition, and the step of obtaining the search operator weight of each population individual in the parent population currently generated is returned to be executed; When the parent population of the new generation currently generated meets the preset condition for stopping iteration, a target individual is selected from the parent population of the new generation currently generated, and the target individual is used as a target scheduling solution.

3. The method according to claim 2, characterized in that The step of obtaining the search operator weight information of each individual in the parent population currently generated includes: For each individual in the currently generated parent population, if the individual is a new individual, or an individual that has failed to perform the optimization operation for multiple consecutive times, the current search operator weight information of the individual is obtained according to the preset initial weight; if the individual is an individual that successfully performed the optimization operation the last time, the weight corresponding to the target search operator in the search operator weight information of the individual is increased to obtain new search operator weight information of the individual, where the target search operator is the search operator used by the individual to successfully perform the optimization operation the last time.

4. The method according to claim 2, characterized in that: The generating of the parent population corresponding to the virtual machine scheduling problem model includes: Randomly selecting a preset number of first population individuals in the solution space of the virtual machine scheduling problem model; Using a preset agglomerative hierarchical clustering algorithm, clustering each of the virtual machines according to the service resources required by each virtual machine in the set of virtual machines to be scheduled, to obtain a clustering result; The clustering results are used to obtain a preset number of second population individuals in the solution space of the virtual machine scheduling problem model; The preset number of first population individuals and the preset number of second population individuals form an initial individual set; Performing Pareto sorting on each individual of the first population and each individual of the second population in the initial individual set to obtain a sorting result; A preset number of population individuals are selected from the initial individual set according to the sorting result to generate a parent population corresponding to the virtual machine scheduling problem model.

5. The method according to claim 2, characterized in that: The step of selecting a preset number of population individuals from the individual set according to the non-dominated sorting result to generate a new generation of parent population includes: Determine the Pareto rank of each population individual in the individual set based on the non-dominated sorting result; Determining the crowding degree of each individual of the population at each of the Pareto levels; According to the Pareto level, the crowding degree and the crowding degree comparison operator of each individual in the population, a preset number of individuals in the population are selected from the individual set to obtain a parent population of a new generation.

6. A virtual machine scheduling device, characterized in that: include: A determination unit, configured to determine, in response to a virtual machine scheduling instruction, a set of virtual machines to be scheduled and each physical machine corresponding to the virtual machine scheduling instruction; A first execution unit is used to obtain a virtual machine scheduling problem model corresponding to the set of virtual machines to be scheduled; the virtual machine scheduling problem model is constructed by a preset objective function and constraint conditions; the objective function includes at least one of a first objective function with the goal of minimizing user dissatisfaction, a second objective function with the goal of minimizing the idle rate of physical machine service resources, a third objective function with the goal of minimizing physical machine energy consumption, and a fourth objective function with the goal of minimizing physical machine load balancing; the constraint conditions are determined based on the service resource utilization rate of each of the physical machines; A second execution unit is used to solve the virtual machine scheduling problem model based on a preset individual adaptive search dynamic constraint multi-objective optimization algorithm to obtain a target scheduling solution; The target scheduling scheme represents the physical machine to which each virtual machine in the set of virtual machines to be scheduled needs to migrate; The scheduling unit is used to schedule the virtual machine according to the target scheduling scheme.

7. The device according to claim 6, characterized in that The first execution unit includes: A first generating subunit is used to generate a parent population corresponding to the virtual machine scheduling problem model; the parent population includes a preset number of population individuals, each of which is a solution to the virtual machine scheduling problem model; A selection subunit is used to select a main objective function from each objective function in the objective function set of the virtual machine scheduling problem model, and convert the objective functions other than the main objective function in the objective function set into objective constraints, wherein the constraint boundary of each objective constraint is determined based on the maximum value of each population individual of the parent population on the dimension of the objective constraint; A first execution subunit is used to obtain the search operator weight information of each individual in the parent population currently generated; A first selection subunit, configured to select a search operator for each individual in the population according to current search operator weight information of each individual in the population; the search operator is one of a heuristic search operator and a non-heuristic search operator; An optimization subunit, configured to utilize the search operator of each of the population individuals in the currently generated parent population to perform an optimization operation on each of the population individuals to obtain a target population; A determination subunit, used to determine the main objective function value and the constraint violation value of each of the population individuals in the target population on the main objective function, wherein the constraint violation value of each of the population individuals represents the degree to which the population individual violates the constraint condition and each of the target constraint conditions; A second selection subunit is used to select a preset number of population individuals in the target population according to the main objective function value and the constraint violation value of each population individual in the target population to obtain a descendant population; A second execution subunit is used to merge the parent population and the child population to obtain an individual set; A sorting subunit, used for performing non-dominated sorting on the individual set to obtain a non-dominated sorting result; A second generation subunit is used to select a preset number of population individuals from the individual set according to the non-dominated sorting result to generate a new generation of parent population; The third execution subunit is used for updating the boundary of each target constraint condition according to the maximum value of each population individual in the currently generated parent population on each target constraint condition dimension when the currently generated parent population of the new generation does not meet the preset stop iteration condition, and returning to execute the method for obtaining each population individual in the currently generated parent population. Steps to search operator weights; The fourth execution subunit is used to select a target individual from the parent population of the new generation currently generated, and use the target individual as a target scheduling scheme when the parent population of the new generation currently generated meets a preset stop iteration condition.

8. The device according to claim 7, characterized in that The first generating subunit comprises: A first execution module, configured to randomly select a preset number of first population individuals in the solution space of the virtual machine scheduling problem model; The second execution module is used to cluster each of the virtual machines in the set of virtual machines to be scheduled according to the service resources required by each of the virtual machines using a preset agglomerative hierarchical clustering algorithm to obtain a clustering result; and obtain a preset number of second population individuals in the solution space of the virtual machine scheduling problem model according to the clustering result; A third execution module is used to form an initial individual set by combining the preset number of first population individuals and the preset number of second population individuals; A sorting module, used for performing Pareto sorting on each individual of the first population and each individual of the second population in the initial individual set to obtain a sorting result; A selection module is used to select a preset number of population individuals from the initial individual set according to the sorting result to generate a parent population corresponding to the virtual machine scheduling problem model.

9. A storage medium, characterized in that: The storage medium includes storage instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the virtual machine scheduling method according to any one of claims 1 to 5.

10. An electronic device, characterized in that: The system comprises a memory and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by one or more processors to execute the virtual machine scheduling method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Multi-objective virtual machine adaptive position selection method and distributed cloud system

    CN108009003A

  • Cloud resource allocation method and system based on multi-objective optimization

    CN110471762A

  • Multi-target task scheduling method and system

    CN110489229A

  • Determining an allocation configuration for allocating virtual machines to physical machines

    US20120198447A1

Cited By

  • Cloud host load balancing method and device, computer equipment, readable storage medium and program product

    CN119645643A

  • Device structure and process condition optimization method and apparatus, and electronic device

    CN119647241A

  • Network construction type energy storage multi-objective optimization configuration method

    CN119787422A

  • Multi-target workshop scheduling method considering workpiece quality and variable machining time

    CN119809223A

  • Large-scale Hadoop cluster virtual machine placement method based on multi-objective optimization

    CN119902856A