Multi-head multi-target computing power scheduling method for distribution micro-grid
Through the multi-head and multi-objective computing power scheduling method, the multi-head NSGA-II algorithm is used to optimize the deployment of microservice instances, solving the low efficiency of computing resource utilization and multi-objective optimization problems in edge computing scenarios in distribution microgrids, and improving system performance and response. speed.
Patent Information
- Application Number
- CN202410779268.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-10-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In edge computing scenarios in distribution microgrids, the utilization efficiency of computing resources is not high, and existing resource scheduling strategies are difficult to cope with multi-objective optimization, resulting in limited system performance and reliability.
It adopts a multi-head and multi-objective computing power scheduling method, senses the computing power resource requirements of microservices through the resource scheduler, uses the multi-head NSGA-II algorithm to optimize the microservice instance deployment strategy, and combines CPU usage, memory usage and latency optimization goals to achieve Efficient allocation and scheduling of resources.
It improves the performance and response speed of the distribution microgrid system, adapts to the growth of computing requirements and the complexity of the operating environment, enhances the processing power and search efficiency of multi-objective optimization, and obtains better computing resource scheduling strategies.
Smart Images

Figure CN118799117A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of distribution microgrids, and relates to a scheduling and control technology of computing power resources of distribution microgrids, and specifically to a multi-head and multi-target computing power scheduling method for distribution microgrids in edge computing scenarios. Background Art
[0002] With the continuous growth of global energy demand and the urgent call for sustainable development, distributed power distribution network, as an innovative form of power supply, is gradually receiving widespread attention around the world. The distribution microgrid is built on the basis of the traditional power system, integrating advanced wireless communication networks and a new generation of intelligent terminal technology to form a new advanced information interaction grid system. The distribution microgrid covers a variety of complex application business links, such as control business, collection business and mobile application business, and these businesses have different requirements for computing resources. Therefore, the reasonable allocation of resources is crucial to ensure the efficient operation and safety of the distribution microgrid. The control business locates faults in time and maintains the balance of supply and demand by monitoring and analyzing power data and its changes; the collection business focuses on collecting power consumption information and monitoring power quality, providing key support for data analysis and optimization of the power grid; the mobile application business uses inspections such as drones and robots, and significantly reduces manual operations through real-time video analysis technology to improve operation and maintenance efficiency. Many of these businesses can benefit from the implementation of edge computing. By processing data at the edge of the power grid system, the response speed and system efficiency can be improved. Edge computing technology, by providing services directly to users on the local side, has the significant advantages of low latency and high reliability. It can significantly reduce the communication delay of the distribution microgrid information interaction system and improve its delay symmetry.
[0003] In the distribution microgrid, related businesses have strict requirements for low latency and high reliability, while edge nodes often face the problem of insufficient computing power. Faced with such challenges, with the continuous growth of business needs that rely on edge computing and the increasingly complex operating environment, the adoption of more advanced resource management strategies has become the key to improving efficiency and stability. Since different business scenarios have different requirements for computing resources, these requirements change dynamically over time and specific circumstances. Therefore, in the face of emergencies or peak periods, some edge computing nodes may bear too much computing tasks, while in normal times, a large number of resources may be underutilized. An effective resource management strategy should be able to dynamically adjust resource allocation to improve the efficiency of edge computing resources, thereby ensuring the overall efficiency and stability of the system.
[0004] At present, there are many studies on resource scheduling strategies in edge computing scenarios: for example, Reference 1 [Peng Q, Wu C, Xia Y, et al. DoSRA: A decentralized approach to online edge task scheduling and resource allocation [J]. IEEE Internet of Things Journal, 2021, 9 (6): 4677-4692.] proposes a decentralized approach to the online edge IoT task scheduling and resource allocation problem, which can significantly reduce the offloading response time and improve resource utilization. Reference 2 [Tsourdinis T, Makris N, Fdida S, et al. DRL-based Service Migration for MEC Cloud-Native 5G and beyond Networks [C] / / 2023 IEEE 9th International Conference on Network Softwarization (NetSoft). IEEE, 2023: 62-70.] achieves seamless real-time migration of edge services through deep reinforcement learning technology. Reference 3 [Brandherm F, Gedeon J, Abboud O, et al. BigMEC: Scalable Service Migration for Mobile Edge Computing [C] / / 2022 IEEE / ACM 7th Symposium on Edge Computing (SEC). IEEE, 2022: 136-148.] proposed a decentralized service migration decision algorithm based on quality of service, which combines reinforcement learning, can adapt to unknown environments, and considers the transition cost of long-term optimization layout updates. However, the above-mentioned existing resource scheduling strategies often only focus on a single optimization goal, which makes it difficult for them to cope with the growing complexity and challenges in power grid operations. Especially in the edge computing business scenarios of distribution microgrids, considering the diversity of computing power resources, it is particularly important and practical to adopt a method that integrates multiple optimization goals. This multi-objective optimization strategy can more comprehensively balance and meet different business needs and improve the efficiency and reliability of the overall system.
[0005] In summary, in the existing distribution microgrid technology, especially in the edge computing environment, there are two major technical challenges: first, the demand for computing resources in the distribution microgrid business often changes dynamically, but the computing resources of the edge nodes are affected by hardware and network conditions, which will lead to the utilization efficiency of various computing resources being less than ideal; second, when the resource scheduling strategy is actually deployed, there may be a long scheduling delay, which will affect the response speed and processing capacity of the system. These problems limit the performance and reliability of the distribution microgrid system, and thus affect the overall efficiency of the system and user experience. Summary of the invention
[0006] In response to the above problems, the present invention proposes a multi-head and multi-objective computing power scheduling method for distribution microgrids, which is applied in edge computing scenarios to optimize resource allocation in distribution microgrids, improve the overall system performance of distribution microgrids, and ensure service stability and response speed to cope with the growing computing needs and complexity of the operating environment.
[0007] A multi-head and multi-objective computing power scheduling method for a distribution microgrid of the present invention comprises the following steps:
[0008] Step 1) Deploy a resource scheduler in the scenario. The resource scheduler senses the demand for microservice computing resources in the distribution microgrid at each control moment and schedules and deploys them on the edge server. The demand for microservice computing resources is represented by the number of microservice instances. The resource scheduler configures the optimization goal of deploying microservice instances to edge servers and sets the importance weight of each optimization goal.
[0009] The optimization objectives include: minimizing the differences in CPU usage and memory usage among edge servers, and reducing the total latency; the total latency refers to the sum of the migration latency of all microservice instances between edge nodes; the set constraints include: each microservice instance is uniquely deployed on an edge server, avoiding the deployment of instances of the same microservice on a single edge server, all microservice instances are allocated to edge servers, and the total demand for each computing power of all microservice instances deployed on each edge server does not exceed the corresponding computing power resource upper limit of the edge server.
[0010] Step 2) The resource scheduler obtains the usage of various computing resources of each edge computing node managed at the current time T, obtains the instance deployment of the distribution microgrid microservice at time T, determines the distribution microgrid microservice instance to be deployed at time T+1, and then executes the multi-head NSGA-II algorithm based on all the information obtained to calculate the optimal strategy solution set for the deployment of the microservice instance at time T+1.
[0011] The multi-head NSGA-II algorithm sets the number of heads according to the number of optimization targets, each head contains at least two optimization targets and the optimization target combinations of different heads are different. The NSGA-II algorithm is used in each head to optimize and solve the corresponding optimization target combination. The population individuals generated in the NSGA-II algorithm represent a strategy for deploying the microservice instance at time T+1 to the edge server; the NSGA-II algorithm is executed in parallel for the optimization target combination of each head to obtain the strategy solution set under different optimization target combinations and merge them into the optimal strategy solution set.
[0012] Step 3: Select the optimal strategy from the optimal strategy solution set according to the importance weight of the optimization target. Then, based on the optimal strategy, realize the redistribution of the distribution microgrid microservice instances at time T+1 through the expansion and contraction and migration of microservice instances, and realize the scheduling of computing resources.
[0013] Compared with the prior art, the advantages and positive effects of the present invention are as follows: (1) The method of the present invention realizes the efficient allocation of multiple computing resources in the edge computing scenario, improves the overall system performance of the distribution microgrid, ensures the stability and response speed of the service, and can adapt to the growing computing needs and the complexity of the operating environment. (2) The method of the present invention uses the multi-head NSGA-II algorithm to perform parallel solutions under different optimization target combinations. While realizing efficient parallel processing of multi-objective optimization, since each "head" in this innovative structure focuses on a specific optimization target combination, this greatly enhances the solution performance when dealing with power dispatch problems with multiple conflicting targets, so it can more effectively balance these targets and accelerate the algorithm solution to converge to the Pareto optimal frontier. (3) Traditional multi-objective optimization algorithms are not efficient in dealing with high-dimensional target problems, especially crowding distance calculation in high-dimensional space, which often leads to insufficient population diversity, so the obtained optimization strategy set is limited. By introducing a multi-head attention mechanism, the method of the present invention can enable each "head" to more effectively manage the target subspace it focuses on, thereby improving the diversity of the population and the overall search performance. Compared with the traditional NSGA-II algorithm, the improved multi-head NSGA-II algorithm of the present invention can obtain more and better scheduling strategies, and each "head" can also independently adjust its search strategy, which not only enhances the parallel capability of processing multi-target problems, but also significantly optimizes the search efficiency, and can more efficiently obtain better and more reliable computing resource scheduling strategies. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 This is a schematic diagram of the structure of the distribution microgrid microservice computing power resource rescheduling scenario of the present invention;
[0015] Figure 2 A Pareto surface comparison diagram generated under different objectives in the simulation results of the present invention;
[0016] Figure 3 A Pareto surface generated by an improved multi-objective algorithm in the simulation results of the present invention;
[0017] Figure 4 It is a comparison chart of the Pareto optimal solutions of the improved algorithm and the original algorithm in the simulation results of the present invention. DETAILED DESCRIPTION
[0018] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments.
[0019] In the environment of edge computing network, with the dynamic changes of microservice deployment, it is very important to ensure the balanced allocation of network resources. To solve this problem, the multi-head and multi-target computing power scheduling method for distribution microgrid of the present invention uses the microservice computing power resource rescheduling model to timely expand or shrink or migrate microservice instances, and at the same time, it places special emphasis on maintaining the continuous availability of microservices during the migration process.
[0020] First, the scene modeling is carried out. Figure 1 As shown, the edge computing network includes multiple edge servers and a resource scheduler responsible for rescheduling. Each edge server is equipped with a base station BS around it, which is responsible for providing it with necessary network support.
[0021] First, define the set E = [e1, e2, ..., e i ,…,e M ] represents all edge servers, M is the number of edge servers, and for each edge server e i Defines a resource vector R i , resource vector Including computing resources such as CPU, memory, and bandwidth, is the k-th dimension of available computing power resources on the ith edge server. The resource scheduler will analyze the business data traffic in the previous period and adjust the computing power resource requirements of each microservice accordingly to respond to actual business changes. In the network, the changes in the demand for computing power resources by microservices are represented by the number of instances deployed by the microservices. By adjusting the number of instances of each microservice on different edge servers, it can dynamically adapt to changes in computing power resource requirements. Define the set of microservices deployed in the network as S = [s1, s2, …, s j ], where the computing demand of each service is determined by the number of microservice instances deployed in the network N = [n1,n2,…,n j ] to determine that the jth microservice s j The number of instances deployed in the network is n jWhen the number of deployed microservice instances in the edge computing network is adjusted, the rescheduling of the microservice instances will be triggered. Due to the differences in computing performance between edge nodes, different microservices have different resource requirements for each edge node. The resource requirements of microservices on different nodes in the edge computing network can be expressed as in Represents the resource requirement of the k-th dimension computing power of the j-th microservice instance on the i-th edge server.
[0022] In the edge computing network, strict resource constraints must be followed when implementing instance deployment to ensure the practical feasibility of the deployment plan. Each instance must be uniquely placed on a designated edge computing node to prevent an instance from existing on multiple edge computing nodes at the same time, and to prevent instances of the same type from being concentrated on a single edge computing node, thereby reducing the risk of service interruption caused by node failures. All instances to be deployed should be allocated to edge nodes to ensure that no instances are missed. In addition, the total computing power required for instances deployed on each node should not exceed the computing power resource limit of the node to maintain the stability and efficiency of the node operation. Suppose the available computing power resources of the kth dimension on the i-th edge node are All microservice instances deployed on this node are represented as s i , the k-th dimension computing power resource required by microservice instance j on edge node i is expressed as The constraints are described as:
[0023]
[0024] In order to minimize the system cost, that is, to minimize the latency cost and optimize the computing resource allocation, the following two problems need to be solved: (1) determine the task migration strategy for each edge server, that is, find the best edge node deployment location for the microservice instance to ensure the balance of computing power between edge servers; (2) when migrating microservices on edge servers, how to effectively reduce the total number of migrated microservice instances, thereby reducing latency and resource consumption. The implementation of these strategies is expected to significantly improve the overall performance and efficiency of edge computing networks.
[0025] The method of the present invention proposes a multi-head non-dominated sorting genetic algorithm to solve the above problems. Nondominant Sorting Genetic Algorithm II (NSGA-II) is a widely used multi-objective optimization algorithm that shows good efficiency and accuracy in finding Pareto optimal solutions. However, it has the problem of high computational complexity when dealing with large-scale problems, especially when facing a large number of targets, the performance of the algorithm will decline. In addition, in high-dimensional target space, the traditional crowding distance may not be sufficient to effectively maintain population diversity, making it difficult to maintain population diversity. Therefore, NSGA-II may have omissions when looking for the Pareto optimal frontier, fall into local optimal solutions during the search process, and cannot find all Pareto optimal solutions. The method of the present invention proposes an improved NSGA-II algorithm, which effectively decomposes and processes multiple optimization objectives in parallel by introducing a multi-head mechanism, and each branch focuses on solving a specific optimization problem.
[0026] The focus of the NSGA-II algorithm is on the crowding distance operator and the elite strategy. The crowding distance operator is a method for maintaining population diversity by measuring the distribution of individuals in the target space. Specifically, for each individual in the population, the crowding distance is calculated by summing up the distance differences between it and its neighboring individuals on all objective functions. In each iterative selection process, the individuals in the population are first sorted according to the value of each objective function. Then, for each individual, the distance between it and its neighbors on both sides on each objective function is calculated, and this distance is determined by the value difference between the neighboring individuals on the objective function. For the crowding distance component of the i-th individual on the j-th objective function, first determine the previous and next individuals of the individual on the objective function, and let the objective function values of these individuals be f respectively. j (i-1) and f j (i+1), then the crowding component of the individual on the jth objective function is calculated as f j (i+1)-f j (i-1). Finally, the crowding distance D of each individual i is i It is the sum of its crowding components on all objective functions, that is:
[0027]
[0028] Where m represents the number of objective functions.
[0029] The crowding distance value is used to guide the selection process of the population, helping the algorithm to effectively explore the target space while maintaining the diversity of solutions. In the selection process of NSGA-II, when two individuals are in the same non-dominated level, the crowding distance of the individuals plays a decisive role. Individuals with larger crowding distances are more likely to be selected because it indicates that they are located in relatively distant areas in the target space. This selection mechanism helps to maintain a uniform distribution of the population in the target space, thereby promoting the diversity of the entire population. In this way, the NSGA-II algorithm ensures that while pursuing the optimization goal, it can also effectively explore the solution space and maintain the diversity of individuals in the population, which is important for avoiding the algorithm from converging to a local optimal solution too early.
[0030] The elite strategy is a method to ensure that the dominant solution can be genetically transmitted by retaining the best individuals in each generation. This strategy can accelerate the convergence speed of the algorithm and prevent the loss of excellent solutions. It relies on two core mechanisms: fast non-dominated sorting and crowding sorting. In each generation, the current population P is first t Its offspring population Q t Merge to form a merged population that is twice the size of the original population. Then, through fast non-dominated sorting, the individuals of the merged population are stratified according to the dominance relationship between individuals, and those individuals in the lower non-dominated level, that is, those close to the Pareto front, are preferentially retained. Subsequently, within each non-dominated layer, the crowding degree of the neighborhood around them is evaluated by calculating the crowding distance of the individuals. When constructing a new generation of population, the algorithm gives priority to selecting from individuals with lower non-dominated levels. If the number of these individuals is not enough to fill the new population, they are selected from the group of individuals with the same non-dominated level according to the crowding degree from large to small, and those individuals that are relatively isolated in the target space are preferentially selected to ensure the diversity of the population.
[0031] Generate a new generation of population P t+1 After that, the next step is to generate the offspring population Q through crossover and mutation operations. t+1 The most common crossover method is to use simulated binomial crossover, which implements single-point crossover through simulated crossover operator. Its operation follows two basic principles, namely:
[0032] 1. The average value of the difference between the two parent individuals before and after the crossover is equal to the average value of the difference between the two offspring individuals, that is:
[0033]
[0034] 2. The quotient of the difference between the two parent individuals before and after the crossover and the difference between the two offspring individuals is approximately equal to 1, that is
[0035]
[0036] Among them, P1 and P2 represent two parent individuals, and Q1 and Q2 represent two offspring individuals.
[0037] Such a design not only ensures the stable transmission of the dominant solution, but also provides a guarantee for the diversity of the population and the global exploration capability of the algorithm.
[0038] The multi-head attention mechanism is a technology used in the field of natural language processing to capture complex relationships between sequence data. One of the advantages of the multi-head attention mechanism is its wide attention capability: multiple attention heads can focus on different features in the sequence, so that the model can better understand and express different levels of the sequence, and improve the model's ability to handle language diversity. The improved NSGA-II algorithm proposed in the present invention introduces a multi-head mechanism, allowing the algorithm to process multiple optimization objectives in parallel, and each branch focuses on the optimization of a specific objective, thereby improving the quality of the solution and the efficiency of the algorithm. In this mechanism, each "head" can be regarded as an independent module, focusing on different optimization objectives. Such a design allows the algorithm to calculate the outputs of multiple heads in parallel, thereby improving computational efficiency to a certain extent. The multi-head NSGA-II algorithm flow of the present invention is shown in Table 1:
[0039] Table 1 Multi-head NSGA-II algorithm of the present invention
[0040]
[0041] In the present invention, the microservice computing power demand in the edge computing scenario in the distribution microgrid will change dynamically. Each edge computing node has different computing power resources, including CPU and memory. When the microservice instance is deployed on the node, it will occupy the corresponding resources according to the computing power performance of the node. In the microservice architecture, the response time, reliability and resource utilization of the service directly affect the operating efficiency of the system.
[0042] In view of the application scenarios of the present invention, the embodiments of the present invention set multiple optimization goals, including minimizing the difference in CPU usage and memory usage among the edge nodes of the network and reducing the total delay time, aiming to improve the balance of network computing resources and shorten the total scheduling time. The specific objective function designed by the embodiments of the present invention is described below.
[0043] (1) In order to measure the balance of computing resource usage on each edge node in the network, the embodiment of the present invention performs a computing resource balance assessment by considering the CPU utilization and memory utilization of each edge node, so as to effectively evaluate and improve the uniform distribution of resource usage. For CPU utilization and memory utilization, the variance of the corresponding resource utilization is calculated respectively, as follows:
[0044]
[0045] in, Indicates the utilization rate of the k-th dimension computing power on edge node i at the current moment, It represents the average utilization rate of the k-th dimension computing power on all edge nodes in the network at the current moment. Represents the variance of the utilization rate of the k-th dimension computing power on all edge nodes. The smaller the value, the better the balance of the corresponding computing resources.
[0046] (2) Minimize the migration delay. The embodiment of the present invention mainly considers the migration delay of the microservice instance between edge nodes. Assuming that each edge node already has the corresponding image of the microservice, the migration delay is affected by the startup time of the microservice instance. In the embodiment of the present invention, the migration delay of the microservice instance is mainly determined by the startup time of the microservice instance. During the scheduling process, the migration delay is directly related to the number of microservice instances that are scaled up or down. The fewer the number of instances that are scaled up or down, the shorter the delay; the more the number of instances, the longer the delay.
[0047] In the multi-head NSGA-II algorithm of the present invention, each "head" focuses on several related optimization goals. For example, one "head" may be more focused on optimizing the target combination [CPU, memory], one "head" may focus on optimizing the target combination [memory, latency], and another head focuses on the target combination [latency, CPU], so that the algorithm can be optimized in different dimensions to achieve a more comprehensive and balanced resource management and scheduling strategy. The target combination targeted by each "head" can be flexibly set by the user according to actual needs and scenario characteristics to adapt to different optimization needs and priorities.
[0048] For example, the "head" for the target combination [CPU, memory] mainly solves how to allocate these two resources between different nodes to maximize resource utilization and load balancing, and reduce the situation where one node is overloaded while other nodes are idle. The "head" for the target combination [memory, latency] is more concerned with how to reduce data processing and transmission time by optimizing memory usage and configuration, which is particularly critical in data-intensive applications. Finally, the "head" for the target combination [latency, CPU] may focus on how to optimize response time and processing speed by adjusting CPU resource allocation, which is especially important when dealing with real-time data and high-performance computing requirements. At the same time, this approach can also reduce computational complexity, thereby better maintaining population diversity and ensuring the algorithm's search ability to find Pareto optimal solutions.
[0049] In an embodiment of the present invention, the resource scheduler obtains the usage of various computing resources of each edge computing node and the instance deployment of the microgrid microservice at the current time T, and determines the microservice instance that needs to be deployed in the microgrid at the next moment, and then sets the optimization target combination of the multi-head NSGA-II algorithm. Under each optimization target combination, the NSGA-II algorithm is executed to generate a population. Each individual in the population represents a strategy for deploying the microservice instance at time T+1 to the edge server. The individuals are iteratively updated to obtain the optimal individual set under each optimization target combination.
[0050] When generating population individuals, the embodiment of the present invention needs to meet the above constraints, namely: (1) Each microservice instance is uniquely deployed on an edge server. A flag can be set for each microservice instance to indicate whether it has been deployed. The flag takes a value of 0 or 1. When the value is 0, it indicates that it is not deployed, and when the value is 1, it indicates that it has been deployed; (2) All microservice instances are allocated to edge servers, that is, all microservice instances are eventually marked as deployed; (3) Avoid deploying instances of the same microservice on a single edge server, and obtain the number of instances n of each microservice j that needs to be deployed at time T+1. j , for each edge server, count the number of instances of microservice j deployed on it M j , requiring M j Less than n j ; (4) The total demand for each computing power of all microservice instances deployed on each edge server does not exceed the corresponding computing power resource upper limit of the edge server, as described in formula (1).
[0051] The embodiment of the present invention obtains the optimization strategy solution sets under different optimization target combinations and merges them into the optimal strategy solution set. Then, according to the set optimization target weight, the weighted target value of each individual in the optimal strategy solution set is calculated, and the individual with the best weighted target value is selected as the optimal strategy at time T+1. According to the strategy, the microservice instance is expanded, reduced and migrated on the edge server at time T+1 to realize the scheduling of computing resources.
[0052] By introducing the multi-head attention mechanism, the present invention not only improves the quality and efficiency of the optimal scheduling strategy solution, but also reduces the computational complexity and effectively maintains the population diversity, thereby enhancing the algorithm's extensive search capability when exploring the solution space and more effectively finding the Pareto optimal solution.
[0053] (1) Simulation setup: In order to verify the performance of the method of the present invention, MATLAB was used for scenario construction and numerical simulation. In this experiment, the edge computing scenario in the distribution microgrid was simulated, in which three edge servers and four distribution microgrid microservices were deployed. The computing power demand of microservices in this network will be adjusted according to the dynamic changes in the number of instances. Each edge computing node has different computing resources, including CPU and memory. When the microservice instance is deployed on the node, it will occupy the corresponding resources according to the computing power performance of the node.
[0054] As the demand for network services changes, the deployment of microservices in the network needs to be rescheduled. The corresponding Pareto optimal solution set that meets each optimization goal is calculated, and then the appropriate solution is selected as the optimal rescheduling solution for the edge computing network according to the network demand. Finally, the microservice migration method implementation plan proposed in the present invention is used.
[0055] (2) Simulation results: Figure 2 The Pareto surfaces calculated using different heads for the three objectives are shown. The yellow surface is the Pareto surface obtained by further calculating the three Pareto curves obtained by taking two objectives from each of the multiple objectives, such as [CPU, memory], [CPU, latency], and [memory, latency]. The blue surface is the Pareto surface calculated for the three optimization objectives [CPU, memory, latency], which is the solution set that can be obtained by calculating all optimization objectives only once in the original NSGA-II algorithm. It can be seen that the Pareto surfaces obtained by calculating the heads of two optimization objectives are not the same as those obtained by calculating the heads of three optimization objectives, which also means that there are Pareto optimal solutions on different surfaces that are not found on the other surface.
[0056] Figure 3 The displayed surface is obtained by the NSGA-II algorithm improved by the method of the present invention. The surface is actually Figure 2 This merger clearly demonstrates the advantage of the improved NSGA-II algorithm of the present invention over the original NSGA-II algorithm in obtaining the Pareto optimal surface, which is manifested as a more complete and widely covered optimal solution set.
[0057] Figure 4The coordinates of some actual Pareto optimal solutions that constitute the Pareto surface are shown. In the figure, the black circle marks the Pareto optimal solution calculated by the original NSGA-II algorithm, while the red asterisk represents the Pareto optimal solution calculated by the method of the present invention. The representation in the small box shows some specific examples of Pareto dominance relationships. All the optimal solution coordinates explored by the original algorithm can find the corresponding same solution or be dominated by the new solution in the solution set explored by the method of the present invention. This observation not only verifies the advantage of the NSGA-II algorithm improved by the method of the present invention in the completeness of the Pareto optimal solution set, but also clearly shows that its solution space exploration performance is significantly improved compared with the original NSGA-II algorithm.
[0058] Through simulation experiments, it is concluded that the NSGA-II algorithm improved by the method of the present invention can significantly improve the performance in maintaining population diversity and strengthening the exploration performance of the Pareto optimal frontier, thereby providing a more efficient and reliable solution strategy for multi-objective optimization. Applied in the scenario of the present invention, it can more efficiently obtain the scheduling strategy of computing resources at the next moment, and the obtained scheduling strategy is more reliable.
[0059] Except for the technical features described in the specification, all of them are known technologies to those skilled in the art. The present invention omits the description of known components and known technologies to avoid redundancy and unnecessary limitation of the present invention. The implementation methods described in the above embodiments do not represent all implementation methods consistent with the present application. On the basis of the technical solution of the present invention, various modifications or variations that can be made by those skilled in the art without creative labor are still within the protection scope of the present invention.
Claims
1. A multi-head and multi-objective computing power scheduling method for distribution microgrids, characterized in that: The steps include: Step 1: deploy a resource scheduler in the scenario. The resource scheduler senses the demand for microservice computing resources in the distribution microgrid at each control moment and schedules and deploys them on the edge server. The demand for microservice computing resources is represented by the number of microservice instances. The resource scheduler configures the optimization goal of deploying microservice instances to edge servers. The optimization objectives include: minimizing the difference in CPU usage and memory usage among edge servers, and reducing the total latency; the total latency refers to the sum of the migration latency of all microservice instances between edge servers; The constraints set include: each microservice instance is deployed uniquely on an edge server, avoiding the deployment of instances of the same microservice on a single edge server; all microservice instances are assigned to edge servers; the total demand for each computing power of all microservice instances deployed on each edge server does not exceed the corresponding computing power resource limit of the edge server; Step 2: The resource scheduler obtains the usage of various computing resources of each edge server at the current time T and the deployment of microservice instances of the distribution microgrid, determines the microservice instances that need to be deployed in the distribution microgrid at time T+1, and then calculates the optimal strategy solution set for the deployment of microservice instances at time T+1 through the multi-head NSGA-II algorithm; The multi-head NSGA-II algorithm sets the number of heads according to the number of optimization targets, each head contains at least two optimization targets and the optimization target combinations of the heads are different. The NSGA-II algorithm is used in each head to optimize and solve the corresponding optimization target combination. The population individuals generated in the NSGA-II algorithm represent a strategy for deploying the microservice instance at time T+1 to the edge server; the NSGA-II algorithm is executed in parallel for the optimization target combination of each head, and the strategy solution set under different optimization target combinations is obtained and merged into the optimal strategy solution set; Step 3: Select the optimal strategy from the optimal strategy solution set according to the importance weight of the optimization target, and then redistribute the distribution microgrid microservice instances through the expansion and migration of microservice instances at time T+1 according to the optimal strategy.
2. The method according to claim 1, characterized in that In step 1, the CPU usage variance and memory usage variance of all edge servers are calculated to evaluate the computing power resource balance of each edge server at the current moment; Assume that at the current moment, the utilization rate of the k-th dimension computing power on edge server i is The average k-th dimension computing power utilization rate of all edge servers is Then the variance of the k-th dimension computing power utilization of all edge servers at the current moment is calculated as follows: variance The smaller the value of , the better the balance of the k-th dimension computing resources in each edge server.
3. The method according to claim 1, characterized in that In the step 1, assuming that the corresponding image of the microservice is already stored on the edge server, the migration delay of the microservice instance between the edge servers is determined by the startup time of the microservice instance.
4. The method according to claim 1, 2 or 3, characterized in that: In step 2, when using the NSGA-II algorithm to solve the optimization goal, a population individual that meets the constraint conditions is generated, and the number of instances M of each microservice j deployed on each edge server is counted. j , requiring M j Less than n j , n j The number of instances of microservice j that need to be deployed at time T+1 obtained by the resource scheduler.
5. The method according to claim 1, 2 or 3, characterized in that: In the step 2, three optimization target combinations are set, namely [CPU, memory], [CPU, delay], and [memory, delay]. Among them, the CPU optimization target refers to minimizing the difference in CPU utilization among each edge server, the memory optimization target refers to minimizing the difference in memory utilization among each edge server, and the delay optimization target refers to reducing the total delay.
6. The method according to claim 1, characterized in that In step 2, for each individual in the optimal strategy solution set, the weighted sum of the optimization objectives is calculated according to the importance weight of the optimization objective, and the optimal strategy is selected according to the weighted sum.
Citation Information
Patent Citations
Micro-service combination deployment and scheduling method under multi-objective optimization
CN111027736A
Mobile edge network intelligent resource allocation method capable of dividing tasks
CN113873022A
Flexible load regulation and control method and device under multiple scenes, medium and equipment
CN117375001A
Micro-service deployment method and system based on edge computing
CN118075128A
Electronic device and method for model reasoning, and storage medium
WO2024114520A1
Cited By
AI model adaptive compression method and system oriented to maneuvering application scene
CN120179421A
Multi-mode-based computing power scheduling method and device, server and storage medium
CN121116650A
System configuration method and device, electronic equipment and computer program product
CN121585738A
