A microservice deployment method for cloud and multi-edge network node collaboration

By modeling a microservice deployment model in a cloud and multi-edge network node collaboration scenario and using reinforcement learning algorithms, the microservice deployment structure is optimized, solving the problem of failing to effectively deploy complex microservice applications in existing technologies, and achieving low-cost Deployment strategies for latency and low resource consumption.

CN118337640BActive Publication Date: 2024-10-29湖北省楚天云有限公司 +1

Patent Information

Application Number
CN202410753704.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-10-29
Estimated Expiration
2044-06-12

AI Technical Summary

Technical Problem

Existing technologies fail to effectively deploy complex microservice applications in cloud and multi-edge network node collaboration scenarios, and fail to consider the diverse communication methods and resource consumption between microservices, resulting in delays and resource waste.

Method used

By modeling the topology of cloud and multi-edge network nodes and the microservice deployment model, the Thompson sampling exploration mechanism based on clipped Gaussian approximation and the reinforcement learning algorithm of multi-step training are used to optimize the microservice deployment structure to reduce end-to-end delay and Resource consumption.

Benefits of technology

It minimizes resource consumption while meeting end-to-end latency, provides microservice deployment strategies in cloud and multi-edge network node collaboration scenarios, and improves application deployment efficiency and resource utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118337640B_ABST
    Figure CN118337640B_ABST
Patent Text Reader

Abstract

The present invention provides a method for deploying microservices in collaboration with cloud and multiple edge network nodes, including: modeling the network topology structure of the collaboration between cloud and multiple edge network nodes and the application program composed of microservice nodes, distributed databases, and multiple communication modes to obtain a microservice deployment model; taking end-to-end delay, resource consumption, and deployment success rate as optimization targets, a reinforcement learning algorithm based on a Thompson sampling exploration mechanism of a clipped Gaussian approximation and a qualification tracking strategy of multi-step training is used to train the microservice deployment model; based on the converged microservice deployment model, an optimal deployment scheme for microservices for the current network environment and request is obtained. The present invention solves the problem of microservice deployment in the scenario of collaboration between cloud and multiple edge network nodes by designing a reinforcement learning algorithm based on a Thompson sampling exploration strategy of a clipped Gaussian approximation and a qualification tracking mechanism to minimize resource consumption on the basis of satisfying end-to-end delay.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of edge computing, and more specifically, to a microservice deployment method for collaboration between a cloud and multiple edge network nodes. Background Art

[0002] With the rapid development of IoT technology and 5G, the number of applications has exploded, and some smart IoT applications such as smart transportation, telemedicine, and autonomous driving have high requirements for latency and stability. Due to the limited computing and storage capabilities of terminal devices and the centralized data storage development method. Terminal devices cannot respond to user requests completely and quickly locally. Computation-intensive applications are usually offloaded to cloud computing data centers for execution. Cloud computing centers have flexible and scalable massive resources and computing power, which can remotely store and process data and processing tasks submitted by terminal IoT devices. However, the cloud computing center is far away from the terminal device, and usually requires multi-hop wide area network transmission, which brings high latency and seriously affects the user experience of latency-sensitive applications. Deploying all user programs in the cloud computing center can no longer meet the strict service quality requirements of latency-sensitive applications. Edge computing is a computing paradigm that is closer to the user end and can reduce the wide area network latency caused by long-distance transmission. However, edge network nodes cannot provide full and highly available services due to their limited storage and computing resources. Therefore, the cloud computing center and multiple edge network nodes form a cloud-edge collaborative network architecture to bring new solutions for the deployment of latency-sensitive applications.

[0003] Applications are mainly composed of independent but loosely coupled microservices. In large-scale application development, microservice architecture has the advantages of modularity, strong isolation, and flexible scalability. For example, Amazon surveys show that every 100 millisecond increase in user end-to-end latency will lead to a 1% drop in sales. Therefore, it is crucial to find a deployment strategy that reduces application latency, improves user experience, and reduces the waste of expensive cloud resources.

[0004] Traditionally, requests submitted by end users are modeled as tasks, and a 0-1 binary offloading strategy is used to determine whether the terminal task is executed locally, at the edge network node, or at the cloud computing center with the goal of minimizing latency and energy consumption. However, without considering the complex internal structure and communication methods of application requests, simply modeling requests as complete task models in a coarse-grained manner cannot obtain an effective deployment strategy for microservice distributed applications with increasingly complex structures and scales.

[0005] Currently, no related work uses reinforcement learning to conduct a detailed study on the deployment method of applications consisting of microservice nodes, database nodes, and complex communication methods in the scenario of cloud and multi-edge network nodes. Most of the existing work models the requests submitted by end users as tasks, and adopts a 0-1 binary offloading strategy to determine whether the terminal task is executed locally or on edge network nodes or cloud computing centers with the goal of minimizing latency and energy consumption. However, without considering the complex internal composition and communication methods of application requests, simply modeling the requests as a complete task model in a coarse-grained manner cannot obtain an effective deployment strategy for microservice distributed applications with increasingly complex structure scales. In addition, the method that considers the fine-grained composition of the application treats the communication between microservices as the same when modeling, without considering the diversity of communication between microservice monomers in current large-scale applications, which is contrary to reality. Therefore, how to implement the deployment of applications consisting of microservice nodes, database nodes, and complex communication methods has become an urgent problem to be solved. Summary of the invention

[0006] The present invention aims at solving the technical problems in the prior art and provides a method for deploying microservices of cloud and multi-edge network nodes, including:

[0007] Model the network topology structure of cloud and multi-edge network nodes and the application composed of microservice nodes, distributed databases, and multiple complex communication methods to obtain a microservice deployment model of cloud and multi-edge network nodes.

[0008] Based on the network topology structure and microservice deployment model coordinated by the cloud and multiple edge network nodes, the end-to-end latency, resource consumption, and deployment success rate of the microservice application deployment structure are optimized to build a reinforcement learning training environment and deployment scheme evaluation index for the microservice deployment model;

[0009] The microservice deployment model is trained based on the Thompson sampling exploration mechanism of clipped Gaussian approximation and the reinforcement learning algorithm of the qualification tracking strategy of multi-step training, and a converged microservice deployment model of cloud and multi-edge network nodes collaboration is obtained;

[0010] After the training is completed, the current network environment of the cloud and multi-edge collaborative network topology and the characteristic information of the user application request are input into the converged microservice deployment model to obtain the optimal microservice deployment plan for the current network environment and request.

[0011] The present invention provides a microservice deployment method for collaboration between cloud and multiple edge network nodes. By designing a Thompson sampling exploration strategy based on clipped Gaussian approximation and a reinforcement learning algorithm of the eligibility tracking mechanism, the method solves the problem of microservice deployment in the scenario of collaboration between cloud and multiple edge network nodes with the goal of minimizing resource consumption while meeting end-to-end latency. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 A flow chart of a microservice deployment method for cloud and multi-edge network node collaboration provided by the present invention;

[0013] Figure 2 Modeling a schematic diagram of the application structure;

[0014] Figure 3 A schematic diagram of the microservice deployment model;

[0015] Figure 4 Schematic diagram of the algorithm structure for microservice deployment of reinforcement learning algorithms. DETAILED DESCRIPTION

[0016] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. In addition, the technical features in the various embodiments or single embodiments provided by the present invention can be arbitrarily combined with each other to form a feasible technical solution. This combination is not subject to the constraints of the sequence of steps and / or the structural composition mode, but must be based on the ability of ordinary technicians in this field to achieve. When the combination of technical solutions is contradictory or cannot be achieved, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0017] Figure 1 A flow chart of a microservice deployment method for cloud and multi-edge network node collaboration provided by the present invention, such as Figure 1 As shown, the method includes:

[0018] Step 1: Model the network topology structure of cloud and multi-edge network nodes and the application composed of microservice nodes, distributed databases, and multiple complex communication methods to obtain a microservice deployment model of cloud and multi-edge network nodes.

[0019] The structural diagram of application modeling can be found in Figure 2 The embodiment of the present invention solves the problem of deploying microservice applications in a scenario where cloud computing and multiple edge network nodes are coordinated. Figure 2As shown: User requests are composed of a series of loosely coupled and mutually cooperative single microservices and a database that is read and written by multiple applications. The execution of these microservices and the reading and writing of the database must meet a certain order. There are three ways of communication between microservices or databases: IPC (inter-process communication) that transmits information between different processes, Http requests that rely on TCP / IP full network protocol connections or middleware communication methods that encapsulate Netty: RPC (remote procedure call), and MQ (message communication) methods through distributed middleware message publishing and subscription mode. And a complete application is composed of multiple microservice chains responsible for different functions.

[0020] The embodiment of the present invention converts microservice application The model is in the form of a multi-branch tree. The nodes of the tree are composed of microservice nodes with different data transmission quantities, computing power, storage resource occupancy, CPU computing cycles, and distributed databases that occupy a large amount of IO and storage resources. Distributed databases only deploy database nodes in cloud computing centers because they need to undertake high concurrent reading and writing, high performance, high reliability, robustness, and data privacy.

[0021] The present invention is used Represents a microservice application, where Represents a microservice node, Represents a database node. Represents a microservice node arrive The directed edge of Represents the request edge from microservice to database. The edge weight value consists of two parts. One is the data transmission size between microservice nodes or between microservice nodes and database, which is expressed as The second is different communication modes between microservice nodes or microservice nodes and databases. In the current microservice application engineering architecture, there are mainly the following types of inter-service communication: IPC (inter-process communication) that transmits information between different processes, HTTP requests that rely on TCP / IP full network protocol connections or middleware communication methods that encapsulate Netty: RPC (remote procedure call), and MQ (message communication) through the distributed middleware message publishing and subscription mode. Different microservice application requests issued by users are represented as , where each After evaluation, the sample carries the arrival rate , user access transmission data The number of request feature information sent back to the user by the edge cloud node or cloud computing center This paper defines that each user request microservice chain carries the maximum tolerable task completion delay data, expressed as .

[0022] Applications are divided into different monolithic microservice nodes and distributed databases Each single microservice The demand for resource occupancy corresponds to the resources owned by the network nodes. Computing resources Representation, memory resources The CPU cycles required for processing a single service are expressed as ,In this article, the database nodes are deployed in a cloud computing center with ,unlimited resources. When deploying the database nodes, there is no ,need to consider resource limitations, only the transmission delay between the ,parent and child service nodes.

[0023] Reference Figure 3 , Figure 3 This is a schematic diagram of the deployment structure of the reinforcement learning microservice in which the cloud and multiple edge network nodes are coordinated in the present invention. Figure 3 As shown, Figure 3 The network structure of the example consists of a cloud computing center with unlimited resources and four edge network nodes. The cloud computing center and the multi-edge network nodes communicate via a wide area network, and the coordinated multi-edge network nodes communicate via a multi-edge network. User requests distributed at the edge include PC requests, mobile user requests, AI autonomous driving, drone offloading, VR and other resource-sensitive or computing-intensive applications. The microservice monomers that make up these applications can be deployed in the cloud computing center or in the edge network nodes, where the distributed database is deployed in the cloud computing center. Figure 3 In the application consisting of dual branches and IPC, RPC, and MQ communication methods, some microservices are deployed in edge network nodes and the other part is deployed in the cloud computing center.

[0024] In the specific model establishment and implementation process, the physical network environment composed of multiple edge network nodes and cloud computing centers is used Indicates that represents the set of edge network nodes, Represents the cloud computing center, and the data transmission bandwidth rate between different edge network nodes is represented by a two-dimensional array Indicates that Represents an edge network node and The bandwidth rate between them. The cloud computing center has a larger network delay than the edge network nodes due to the long-distance multiple WAN transmission. , for each edge network node in the physical network, use Represents a physical node Resources The size of each node is defined in the present invention as the CPU computing power resource of the node. Indicates the memory resources of the node express.

[0025] Since the cloud computing center has a flexible expansion strategy in the actual computer room operation and maintenance, the present invention does not constrain the resources of the cloud computing center. However, the microservice image requires a longer task processing time on the edge network nodes where resources are limited and CPU and IO competition is fierce. In the actual deployment process, it is unwise to deploy computing-intensive applications to edge network nodes to reduce end-to-end communication delays, which will lead to more serious computing delays. Therefore, when deploying microservices in a cloud-edge collaboration scenario, it is necessary to find a delicate balance between the communication delay, computing delay and resource consumption of the microservices after deployment. In the queuing network, the computing rate of the cloud computing center and the edge network nodes is positively correlated with the service rate, so the queuing network is used. and represents the service rate, where represents the edge network node, and C represents the cloud computing center.

[0026] Among them, modeling the application includes: collecting the average service rate of the cloud computing center representing the microservice computing function, the number of edge network nodes, the transmission bandwidth between different edge network nodes, the edge network node CPU, the number of memory resources, the communication bandwidth between the edge network node and the cloud computing center, and the set of microservice applications currently requested by the user, the application request arrival rate and the maximum tolerable delay of the user request service, to obtain the network topology structure of the collaboration between the cloud and multiple edge network nodes.

[0027] The application is modeled as a tree-like collection consisting of ordinary service nodes and distributed databases, where the communication between service nodes and between service nodes and databases is modeled as three communication modes, including the IPC communication mode for transmitting information between different processes, the Http request connected by the TCP / IP complete network protocol or the middleware communication mode encapsulating Netty, and the MQ communication mode through the distributed middleware message publishing and subscription mode, thus obtaining the microservice deployment model of the application.

[0028] Step 2: Based on the network topology structure and microservice deployment model of the cloud and multi-edge network nodes, a reinforcement learning training environment and deployment scheme evaluation indicators for the microservice deployment model are constructed to optimize the end-to-end latency, resource consumption, and deployment success rate of the microservice application deployment structure as the optimization goal.

[0029] For the database in the application, we only deploy the database nodes in the cloud computing center to meet the needs of high concurrent reading and writing, high performance, high reliability, and data privacy for the distributed database. The resource consumption of computing and deploying microservice nodes and databases is as follows:

[0030] ;

[0031] The deployment cost of each microservice node in the edge network node and cloud computing center is expressed as < , >, Set to The cost of deploying microservices on edge network nodes, Indicates that Resource consumption of deployment in cloud computing centers. Deployment cost of database nodes in applications< , >Set to <+ ,0>, is the decision variable.

[0032] The end-to-end delay is calculated in training as follows:

[0033] The first step is to calculate the backhaul transmission delay of the access request:

[0034] The request access delay when the end user submits a request to the cloud-edge collaborative computing environment is expressed as , the specific transmission delay is calculated as follows:

[0035] ;

[0036] The data return delay of the final microservice application calculation result delivered to the end user or device is expressed as .

[0037] ;

[0038] in and Do not represent microservice application requests The upload and download data size, , They represent the upload bandwidth from the end user to the multi-edge network nodes and the cloud computing center, respectively. , They represent the download bandwidth from multiple edge network nodes and cloud computing centers to end users respectively.

[0039] The second step is to calculate the data transmission delay:

[0040] ;

[0041] in represents the bandwidth between edge cloud network nodes, represents the bandwidth between the edge network node and the cloud computing center, where Represents the current microservice The deployment, Indicates the target server for the parent service deployment. It represents the magnitude factor of the average transmission delay when the parent and child microservices are deployed on the same machine using inter-process communication. It represents the magnitude factor of the average transmission delay when the parent and child microservices are deployed in different machines using RPC remote procedure calls. Represents the magnitude factor of the average transmission delay when parent and child microservices are deployed in different machines and communicate using message middleware.

[0042] The third step is to calculate the data processing delay:

[0043] Define data processing delay as the time required to process data on the server according to the deployment plan. Medium Service The execution delay of the current service Required Cycles divided by the number of unloaded cluster machines The frequency cycle of the CPU , the calculation formula is:

[0044] ;

[0045] Application requests consisting of multiple monolithic microservices The total queuing delay that needs to be experienced It can be expressed as:

[0046] ;

[0047] The fourth step is to calculate the queuing delay:

[0048] Monolithic Microservices At the edge network node The queuing delay at is:

[0049]

[0050] in Indicates arrival at the service node superior The request traffic of the application.

[0051] Application requests consisting of multiple monolithic microservices The total queuing delay that needs to be experienced It can be expressed as:

[0052] .

[0053] Step 3: Train the microservice deployment model based on the Thompson sampling exploration mechanism of clipped Gaussian approximation and the reinforcement learning algorithm of the eligibility tracking strategy of multi-step training to obtain a converged microservice deployment model that collaborates with the cloud and multiple edge network nodes.

[0054] Among them, see Figure 4 , is a schematic diagram of training a microservice deployment model based on reinforcement learning. In order to achieve the purpose of training a microservice deployment model, the present invention proposes a reinforcement learning microservice deployment system for cloud and multi-edge network nodes. Specifically, the reinforcement learning microservice deployment system for cloud and multi-edge network nodes includes:

[0055] The interactive environment module is used to interact with the intelligent agent during the training process of the reinforcement learning model. The key lies in the state space design, action space design, and reward function design for complex microservice deployment in cloud and edge collaboration scenarios.

[0056] Reinforcement learning network module: used to obtain the most suitable deployment action according to the current environment state, and is responsible for the calculation and gradient update of the strategy model loss function. The key lies in the design of the network structure and loss function.

[0057] Experience storage module: including experience playback pool and storage for storing state, action, reward, and next state quadruple The qualification tracking value in the step training state change, wherein the key is the qualification tracking strategy designed by the present invention, for the problem of reward sparseness and reward delay that the present invention needs to solve, it can be solved by storing the past The state, behavior, and reward combination data of the step will pass the knowledge learned in the past to the next step, which will propagate knowledge at a faster rate, thereby accelerating learning. Without tracking, the sparse reward obtained by the agent will only propagate the value one step forward, and then pass the knowledge through random sampling of the experience replay pool. However, the randomness of sampling causes the combination monomer to have no continuity, and the reward function cannot be calculated according to the complete scheme.

[0058] Action selection module: The role of the action selection module is to maintain a certain amount of exploration while selecting the model to output the optimal action after the policy network of the network structure module outputs the action, so as to prevent the model from falling into a local optimal solution. The key is that the present invention designs a Thompson sampling exploration mechanism based on clipped Gaussian approximation, which increases the effective exploration of the model under the premise of existing knowledge and avoids the randomness of the ε-greedy algorithm during exploration. In addition, the present invention specifies the safety zone by clipping the posterior function after the Gaussian approximation by specifying the standard deviation, and as the number of training rounds increases, the size of the safety zone gradually approaches the mean, reducing the space for model exploration and further enhancing the stability of the later training model.

[0059] First, we build the network environment module that interacts with the agent, which is mainly composed of state space, action space, and reward function.

[0060] The state space state The settings are as follows:

[0061] In order to enable the reinforcement learning agent to effectively evaluate the advantages and disadvantages of the deployment scheme, the embodiment of the present invention carries out a detailed design of the environment, integrating the communication mode characteristics into the microservice application request characteristics and the network resource characteristics of the cloud-edge collaboration to form an environment state that interacts with the agent, which is expressed as :

[0062] ;

[0063] in Represents the communication mode between microservices, including IPC (inter-process communication), RPC (remote procedure call), and MQ (message middleware publish-subscribe mode communication). When the location of the deployed parent microservice and the location of the child microservice are in the same edge network node, the communication mode between different microservices is IPC inter-process communication. Compared with the latter two communication modes, inter-process communication has the smallest delay cost because it does not involve hardware facilities such as gateways. When the parent and child microservices are deployed on different machines, the communication mode is RPC remote procedure call and MQ message queue communication. These two communication modes that rely on middleware have a greater transmission delay cost through wide area network transmission.

[0064] Represents the characteristic information of the network topology, which is composed of the , the remaining amount of memory resources, the maximum number of two-dimensional feature vectors, the data transmission bandwidth adjacent matrix representing the network connection status between each node, and the CPU frequency. The bandwidth resources transmitted by different edge network nodes and cloud computing centers through the wide area network , multi-edge network nodes and cloud computing centers have deployed microservice status information in Represents an edge computing node The set of microservice numbers deployed on Represents a collection of microservice numbers deployed in a cloud computing center. Indicates the user's microservice application request information, which consists of the microservice number to be deployed and the , memory, CPU cycles required for single microservice calculations, request arrival rate, maximum tolerable end-to-end delay, and other information.

[0065] Action Space The settings are as follows:

[0066] The action of the agent is to select the best deployment location for each single microservice in the microservice request application, and reduce resource consumption while meeting the target resource constraints and the overall microservice application delay sensitivity. The most direct solution is to let the agent return the placement of all microservice instances in the request chain in one action execution, but this means that the agent will determine the deployment location of a large number of microservices in one action, which will cause a huge change in the state of the environment. This sudden increase in uncertainty brings greater obstacles to the agent's learning to adapt to the environment, resulting in the inability of the reinforcement learning algorithm to obtain an effective deployment plan. Therefore, at each action time of the agent, the action is defined as the target server node for the deployment of the single microservice requested by the application, specifically:

[0067]

[0068] in is the edge server node, For cloud computing centers, For the single microservice that needs to be deployed currently. If the microservice node If it is a database node, then the microservice node Deployed in cloud computing center, microservice node For ordinary service nodes, the microservice nodes Deployed on edge server nodes.

[0069] Reward Function The settings are as follows:

[0070] In the process of reinforcement learning training, the reward function value is used to evaluate the quality of the action selected by the policy network for the current state. It is a formal feature of the objective function of a complex optimization problem. The agent tends to maximize the reward. Therefore, it is necessary to ensure that the reward function can maintain the delicate constraints and balance between multiple objectives and allow the agent to have the maximum reward benefit that can be achieved.

[0071] In the above model, the ultimate goal of reinforcement learning is to deploy applications consisting of databases and microservices and multiple communication methods in a cloud-edge collaborative environment, reducing resource consumption while meeting the application's requirements for QOS latency. The evaluation of the pros and cons of a deployment plan can only be performed after all applications are fully deployed, that is, all rewards obtained during the deployment process are sparse, and the single-step update feature of reinforcement learning results in only local knowledge being acquired at the beginning of training, leading to blind exploration and failure to obtain valuable experience; in the later stages of training, due to the accumulation of too much low-value experience, the sample contribution required for parameter update of the target network is low, resulting in slow convergence or even no convergence, and failure to obtain an effective microservice deployment strategy.

[0072] In order to solve the above problems, a reward shaping method is adopted in the reward function design. By constructing fine-grained rewards in the deployment process, the reinforcement learning algorithm is guided to develop a better deployment strategy. In the algorithm training process, an exploration algorithm based on Thompson sampling is designed to constrain the exploration process of the intelligent agent. This part is given in detail in the algorithm design. For a complete deployment decision of multiple applications, when the intelligent agent fails to deploy the database to the cloud computing center due to insufficient server resources or failure to deploy the database to the cloud computing center, the intelligent agent needs to be punished to avoid failed deployment. After the single microservice is successfully deployed, since the initial microservice single node deployment result has little impact on the latency of the final complete deployment plan, as the deployment continues, the deployment of subsequent microservice nodes has an increasing proportion of the impact on the final latency. This embodiment defines a weight factor Adjust the importance of each microservice single node on latency during deployment. The specific calculation is as follows:

[0073] ;

[0074] In order to refine the granularity of rewards during the deployment process, when the agent successfully deploys a single microservice while satisfying resource constraints, it will receive The reward is obtained by deploying the entire microservice application on the basis of successfully deploying a single service. When the deployment action fails, a penalty is given based on the importance of the current microservice in the entire application architecture, driving the agent to develop a better deployment strategy. The specific reward function is designed as follows:

[0075] ;

[0076] ;

[0077] Where R is the sparse reward function, is the deployment cost influencing factor, is the access and return delay influencing factor, is the delay influencing factor, This is the impact factor when the current action causes deployment failure.

[0078] The microservice deployment model mainly consists of two parts of the network structure, such as Figure 4 , including the current network and the target network. The two network structures are the same and are recorded as and ,in Used to select the action corresponding to the maximum Q value, The latest parameters are used to evaluate the Q value of the selected action, and the parameters of the target network are periodically copied from the evaluation network. This approach can effectively alleviate the overestimation problem, improve the accuracy of the Q value, and introduce the value function into the action advantage function about the impact of the current action on the state. , the value function for evaluating the quality of actions It consists of two parts: state value function , and action advantage function, as shown below:

[0079] ;

[0080] In the network structure, the value function network only has state The advantage function network part is related to the action at the same time. and status The two share some network parameters, which are recorded as , the unique network parameters of the advantage function network are recorded as , in the output layer of the same network parameter structure, the parallel structure branches into a network for calculating the state value function, and the parameters are recorded as , and the network parameters of the output action advantage function are , the dual-branch structure finally outputs the value estimate of the advantage function added by the aggregation layer, as follows:

[0081] ;

[0082] The optimized network structure can be defined according to the mean square error (MSE) loss function:

[0083] ;

[0084] in Indicates the parameters of the current network Represents the parameters of the target network.

[0085] During the training process, when the flag position is updated, the reinforcement learning model calculates the forward loss function according to the above formula and optimizes the policy network that generates the deployment action through gradient updates.

[0086] The experience storage module includes an experience revisit pool for storing the four-tuple of state, action, reward, and next-moment state during training; and a qualification tracking pool for storing qualification tracking values.

[0087] Each time the agent obtains an action, executes it in the environment module to obtain a reward, and switches to the state of the next moment, the four-tuple data of state, action, reward, and state of the next moment is stored in the experience replay pool. When the microservice deployment model needs to be updated, batch data is sampled from the experience replay pool to calculate the loss function and update the gradient in the reinforcement learning network structure. Its main function is to improve the training effect and stability. By storing the experience obtained from the interaction between the agent and the environment in a buffer pool, the experience replay pool can break the time correlation between data and make the training samples more independent. This not only improves the efficiency of data utilization, reduces the variance of training, but also makes the model easier to converge. At the same time, the random sampling mechanism of the experience replay pool allows the agent to reuse previous experience many times, enhances learning efficiency, and ensures the effective use of scarce but important experience. Overall, the experience replay pool is an important optimization method in the reinforcement learning algorithm, which provides strong support for the agent to learn and adapt to complex environments more effectively.

[0088] The qualification tracking pool is mainly through the use of future The target value is calculated by comparing the estimated value of the step state with the current state value, allowing the learned information to propagate over multiple time steps, increasing the correlation between the previous and next steps of the update process, providing a complete deployment evaluation while accelerating convergence. The return calculation formula for step qualification tracking is as follows:

[0089] ;

[0090] in is the attenuation factor, in the calculation When calculating the reward for each step, the cumulative decay factor is multiplied at each step so that the most recent action will account for a larger proportion of the total reward, which means that while obtaining the previously learned knowledge from the propagation, it is believed that the most recent step will make the agent move towards a better environment state. An attractive effect of eligibility tracking in solving the problem that a single-step update cannot obtain an effective and accurate reward is that for this problem of sparse rewards and delayed rewards, it is possible to store past The state, behavior, and reward combination data of the next step pass the knowledge learned in the past to the next step, which will propagate knowledge at a faster rate, thereby accelerating learning. Without tracking, the sparse reward obtained by the agent will only propagate the value one step forward, and then pass the knowledge through random sampling of the experience replay pool. However, the randomness of sampling causes the combination monomer to have no continuity, and the reward function cannot be calculated according to the complete scheme. Qualified backward view update value It is expressed as:

[0091] ;

[0092] in It is a parameter for eligibility tracking. The larger the value, the longer the length of the state-action combination sequence to be tracked. The agent will combine more distant knowledge to calculate the current reward value. In the reinforcement learning network structure module, the eligibility tracking of the reward will be considered when calculating the updated TD error at each step, such as the above loss function:

[0093] ;

[0094] The calculated TD error is:

[0095] ;

[0096] The loss function after adding eligibility tracking is defined as:

[0097] .

[0098] The role of the action selection module is to maintain a certain level of exploration while selecting the optimal action to output from the model after the policy network of the network structure module outputs an action, so as to prevent the model from falling into a local optimal solution.

[0099] Specifically, the effect of the policy network parameters finally converged by reinforcement learning usually depends on the choice between the agent's execution of the policy network output during training and the choice between exploring better directions. By using the knowledge that has been learned so far, the cumulative return can be maximized, while choosing random exploration actions can sacrifice the current return in order to obtain new experience paths and improve understanding of the environment.

[0100] Classic action exploration algorithms such as the ε-greedy greedy strategy have a selection probability of The policy network outputs actions, or probabilities random actions, and as model training continues The probability gradually decreases. This exploration strategy that does not combine any relevant knowledge of action values ​​and relies solely on randomness is prone to accumulate a large amount of low-value behavioral experience, resulting in very low exploration efficiency and slow convergence during training. In addition, the ε-greedy algorithm cannot evaluate the uncertainty of the rewards of random behaviors selected by the agent, which means that it cannot guarantee that the optimal solution can be explored.

[0101] In order to solve the problem of low efficiency of ε-greedy exploration, the embodiment of the present invention designs a Thompson sampling strategy to combine the learned knowledge in the action exploration strategy, and samples an action from all states according to the probability of each state becoming the optimal state, thereby reducing the randomness in the selection of exploration actions.

[0102] The Thompson sampling algorithm is based on Bayesian theory. In the reinforcement learning algorithm, samples can be greedily drawn from the posterior distribution of the action state value to select actions, thereby maximizing the cumulative expectation of the action. Specifically, when the agent selects an action, it maintains the posterior probability distribution on the average reward of each unknown reward distribution that needs to be explored, reflecting the probability of success. Subsequent observations are based on the prior probability obtained in each round or each observation, thereby updating the probability distribution of success. Thompson sampling of distributions is widely used in recommendation algorithms, but maintaining binary parameters of Because the distribution needs to record a large number of action selection times during the training process, it is inefficient for problems with a large action space. Here, we use Gaussian distribution to visualize uncertainty and then perform Thompson sampling to obtain actions. For Thompson sampling represented by Gaussian distribution, if the posterior distribution is relatively narrow on the variable coordinate axis, it means that the uncertainty of the environment at the current step is small, and there is a high probability that a high-reward action can be taken. For a relatively wide posterior distribution. It means that the uncertainty of the environment is large and exploration can be carried out. That is to say, by calculating the posterior distribution to consider the uncertainty of the average reward brought by the agent's execution of different actions, when the agent chooses an action with higher uncertainty, the agent will be more inclined to explore new actions that have not been fully tried; when the uncertainty is lower, then the action with higher expected returns will have a greater probability of being adopted by the agent, thereby achieving a better approach while maintaining a certain exploration probability. As the agent observes the corresponding action, the credibility of the true average reward gradually increases, and the variance of the corresponding action gradually decreases. The specific calculation steps are as follows:

[0103] First consider Function Parameters Modeling in a Bayesian framework. Function parameters The modeling in the Bayesian framework is:

[0104] ;

[0105] in, yes The function's parameters, is the feature vector of the state-action pair.

[0106] Then calculate The likelihood function of the function is:

[0107] ;

[0108] in It is at the moment Rewards received, and Separate moments and 1 status, It is at the moment Select the action, Represents a sample of the reward path obtained by the agent's interaction with the environment.

[0109] Then use the multivariate Gaussian distribution to estimate Function parameters:

[0110] ;

[0111] In order to deal with the complexity of the posterior distribution, a Gaussian distribution is introduced to approximate the posterior distribution. This approximation is done by taking the mean and the covariance matrix To represent the shape of the posterior distribution, it is easier to perform numerical calculations:

[0112] ;

[0113] in, is the mean vector, is the covariance matrix, similar to the soft update strategy of the target network in the dual network structure of DDQN reinforcement learning. During the training process, the Gaussian distribution parameters also adopt the soft update strategy synchronously. The parameter update strategy is as follows:

[0114] ;

[0115] The Σ covariance matrix update strategy is as follows:

[0116] ;

[0117] in is the learning rate in the reinforcement learning algorithm.

[0118] We further use the Gaussian likelihood function to further represent the action space in terms of parameters The probability of the following is:

[0119] ;

[0120] in, is the variance of the noise, is the observed reward, This indicates that there is some noise in the observation of rewards, further enhancing the exploration mechanism.

[0121] Then, the safety zone is defined by clipping the Gaussian approximation posterior function by specifying the standard deviation, and as the number of training rounds increases, the size of the safety zone gradually approaches the mean. The clipping operator is processed as follows:

[0122] ;

[0123] in is the mean of the Gaussian distribution, is the attenuation factor.

[0124] The final Thompson sampling action selection strategy for safe zone pruning is as follows:

[0125] .

[0126] The complete training steps combining the interactive environment module, reinforcement learning network structure module, experience storage module, and action selection module are shown in the following pseudo code:

[0127] Algorithm 1: TSED3QN

[0128] Input: Learning Environment , learning rate , attenuation factor , sampling batch size , target network update frequency

[0129] Gaussian parameter update frequency , microservice request:

[0130] Output: Optimal deployment strategy ,

[0131] Initialize all states, actions and corresponding Q values

[0132] Initialize the experience replay pool D with a capacity of Size

[0133] Initialize the eligibility tracking pool E with a capacity of Size

[0134] Initialize the parameters of the target Q network

[0135] Initialize Thompson sampling Gaussian distribution parameters

[0136] 1:

[0137] 2: Initialize the learning environment

[0138] 3:

[0139] 4:

[0140] 5: Observe the current state

[0141] 6: Calculate the Thompson sampling parameters after Gaussian approximation

[0142] 7: Select Action

[0143] 8: In the environment Status Execute actions in , get the next state of the environment

[0144] 9: Calculate rewards according to the reward function formula

[0145] 10: Storage arrive middle

[0146] 11: Storage arrive

[0147] 12: Calculate the eligibility tracking value of the current state

[0148] 13: Update current status

[0149] 14: From the experience replay pool Medium Sampling Batches of training data

[0150] 15: From the Qualification Tracking Pool Medium Sampling Bulk qualification tracking data

[0151] 16: Calculate the loss function

[0152] 17: Update by gradient descent Network parameters

[0153] 18:

[0154] 19: Update the parameters of the target network

[0155] 20:

[0156] 21: Update Gaussian distribution parameters

[0157] 22: end for

[0158] 23: end for

[0159] 24: end for

[0160] 25: for microservice application requests

[0161] 26: Observe the current application request status and the network topology resource status of cloud-edge collaboration

[0162] 27: for microservice monomer

[0163] 28: Select Action

[0164] 29: In the environment Status Execute actions in , get the next state of the environment

[0165] 30: Calculate rewards based on the formula reward function formula

[0166] 31: Record deployment plan

[0167] 32: Update current status

[0168] 33: end for

[0169] 34: end for

[0170] 35;return ,

[0171] See also Figure 4 , which is the entire training process for the microservice deployment model, mainly includes:

[0172] Collect the state, action, reward and next state in the microservice deployment process, form a four-tuple, store it in the experience replay pool, input the four-tuple into the current network of the microservice deployment model, calculate the Q value of the current network, obtain the action output by the current network, and output the optimal action based on the Thompson sampling exploration mechanism based on the clipped Gaussian approximation according to the action output by the current network, and update it in the network environment Environment module. Sample the four-tuple from the experience replay pool, and track the state and action in the network environment Environment module in real time, store the real-time tracked state and action in the qualification tracking pool, and sample the state and action in the qualification tracking pool. Based on the four-tuple sampled from the experience replay pool and the state and action sampled from the qualification tracking pool, as well as the output Q value of the current network and the output Q' value of the target network, jointly calculate the loss function of the microservice deployment model, and update the Gaussian distribution function of the Thompson sampling exploration mechanism based on the clipped Gaussian approximation based on the loss function. Figure 4 The training structure completes the training of the microservice deployment model.

[0173] Step 4: After the training is completed, the current network environment of the cloud and multi-edge collaborative network topology and the characteristic information of the user application request are input into the converged microservice deployment model to obtain the optimal microservice deployment solution for the current network environment and request.

[0174] Among them, when it is necessary to deploy the application request requested by the user in the network topology structure of cloud and multi-edge network nodes, the current network environment of the network topology structure of cloud and multi-edge collaboration and the characteristic information of the user application request are obtained respectively, and this information is input into the trained microservice deployment model to obtain the optimal microservice deployment plan for the current network environment and request.

[0175] In an embodiment of the present invention, the network topology structure of cloud and multi-edge network nodes and the application composed of microservice nodes, distributed databases, and three communication modes are first modeled to obtain a microservice deployment model of cloud and multi-edge network nodes; then, a reinforcement learning algorithm is designed to train the deployment decision model with the optimization goal of optimizing the end-to-end delay, resource consumption, and deployment success rate of the microservice application deployment structure, and a converged microservice deployment strategy model of cloud and multi-edge network nodes is obtained. After the training is completed, the current dynamically changing network topology structure of cloud and multi-edge collaboration and the characteristic information of user application requests are input into the converged microservice deployment strategy model to obtain the optimal deployment plan for the current network environment and request. The present invention solves the problem of microservice deployment in the scenario of cloud and multi-edge network nodes collaboration by designing a reinforcement learning algorithm based on the Thompson sampling exploration strategy of the clipped Gaussian approximation and the qualification tracking mechanism to minimize resource consumption on the basis of meeting the end-to-end delay.

[0176] Compared with the existing technology services, which do not consider the complex communication methods between application microservices and model the entire microservice monomer as a task to offload the task to the cloud computing center or edge network node, they do not consider that the actual application is actually composed of complex microservice monomers and databases; in addition, the solution based on reinforcement learning proposed by the existing technology has low exploration efficiency and cannot guarantee the optimal solution of model convergence. The present invention models the application as a tree-like set composed of microservice nodes, distributed databases, and three communication methods. By designing a Thompson sampling exploration strategy based on clipped Gaussian approximation and a reinforcement learning algorithm of the qualification tracking mechanism, the problem of microservice deployment in the collaborative scenario of cloud and multiple edge network nodes is solved with the goal of minimizing resource consumption on the basis of meeting end-to-end delay.

[0177] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0178] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0179] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0180] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1A function specified in one or more boxes.

[0181] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0182] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0183] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A microservice deployment method for cloud and multi-edge network nodes collaboration, It is characterized in that include: Model the network topology structure of cloud and multi-edge network nodes and the application composed of microservice nodes, distributed databases, and multiple complex communication methods to obtain a microservice deployment model of cloud and multi-edge network nodes. Based on the network topology structure and microservice deployment model coordinated by the cloud and multiple edge network nodes, the end-to-end latency, resource consumption, and deployment success rate of the microservice application deployment structure are optimized to build a reinforcement learning training environment and deployment scheme evaluation index for the microservice deployment model; The microservice deployment model is trained based on the Thompson sampling exploration mechanism of clipped Gaussian approximation and the reinforcement learning algorithm of the qualification tracking strategy of multi-step training, and a converged microservice deployment model of cloud and multi-edge network nodes collaboration is obtained; After the training is completed, the current network environment of the cloud and multi-edge collaborative network topology and the characteristic information of the user application request are input into the converged microservice deployment model to obtain the optimal microservice deployment solution for the current network environment and request; The reinforcement learning algorithm based on the Thompson sampling exploration mechanism of clipped Gaussian approximation and the qualification tracking strategy of multi-step training trains the microservice deployment model to obtain a converged microservice deployment model of cloud and multi-edge network node collaboration, including: Define the state space, action space and reward function based on the evaluation index of taking actions to calculate the network topology structure of cloud and multi-edge network nodes; Obtain the current state of the network topology structure of the cloud and multi-edge network nodes, obtain the deployment action based on the current state, and calculate the reward corresponding to the deployment action according to the reward function, and obtain the next state after the action to obtain a four-tuple, wherein the four-tuple includes the current state, action, reward, and next state; The microservice deployment model is trained based on the quadruple. During the training process, the loss function of the microservice deployment model is calculated and the gradient is updated based on the qualification tracking strategy to obtain the trained microservice deployment model, where the microservice deployment model is a deep Q network. The state space, action space and reward function of defining the network topology structure of the cloud and multiple edge network nodes in collaboration include: Determine the network topology feature information of the current cloud computing center and multi-edge network nodes, the application request microservice information to be deployed, and the application request program communication structure information, wherein the network topology feature information of the current cloud computing center and multi-edge network nodes includes the , the remaining amount of memory resources, the maximum number of two-dimensional feature vectors, the data transmission bandwidth adjacent matrix representing the network connection status between each node and the CPU frequency of each node, the application request microservice information to be deployed includes the microservice number to be deployed, the , memory, CPU cycles required for single microservice calculation, request arrival rate and maximum tolerable end-to-end delay, the application request program communication structure information includes IPC communication mode for transmitting information between different processes, Http request or middleware communication mode encapsulating Netty connected by TCP / IP complete network protocol, and MQ communication mode through distributed middleware message publishing and subscription mode; The network topology feature information of the current cloud computing center and multi-edge network nodes, the user microservice application request information to be deployed, and the delay factor of the application request program communication structure information are used as the state space; At each action time, the deployment action is defined as the target server node for the deployment of the single microservice requested by the application. It is expressed as: ; in For each edge network node, For cloud computing centers, Represents a database, A single microservice that needs to be deployed currently; Define a reward function based on taking actions to calculate evaluation indicators, including: ; ; ; In the formula, the weight factor Indicates the importance of the impact of each microservice single node on latency during the deployment process. When the single microservice is successfully deployed under the premise of meeting resource constraints, When the entire microservice application is deployed, you can get a reward based on the successful deployment of a single service. When the deployment fails, a penalty is given based on the importance of the current microservice in the entire application architecture; Data return delay, Cost consumption for deployment solutions, For the Step cost consumption, For the Cost of 1 step, The total delay for For the The total delay of the step, is the last node for deploying microservice requests, R is the sparse reward function, is the deployment cost influencing factor, is the access and return delay influencing factor, is the delay influencing factor, The impact factor when the current action causes deployment failure; The deployment action is obtained according to the current state, based on the Thompson sampling exploration mechanism of clipped Gaussian approximation, including: Will Parameters in network functions The modeling in the Bayesian framework is: ; in, is the feature vector of the state-action pair, s represents the state, a represents the action; calculate The likelihood function of the network function is: ; in, It is at the moment Rewards received, and Separate moments and Status of 1, It is at the moment Select the action, Represents a sample of reward paths obtained by the agent’s interaction with the environment; Use multivariate Gaussian distribution to estimate Parameters of network functions : ; By the mean and the covariance matrix To represent the shape of the posterior distribution of a multi-source Gaussian distribution: ; in, is the mean vector, is the covariance matrix, The parameter update strategy is as follows: ; The Σ covariance matrix update strategy is as follows: ; in is the learning rate in the reinforcement learning algorithm; The Gaussian likelihood function is used to further represent the action space in terms of parameters The probability of the following is: ; in, is the variance of the noise, is the observed reward; The safety zone is defined by clipping the Gaussian approximation posterior function by specifying the standard deviation. The clipping operator is as follows: ; in is the mean of the Gaussian distribution, is the attenuation factor; The Thompson sampling action selection strategy based on safe zone clipping is as follows: ; Based on the Thompson sampling action selection strategy, the action output by the dual network structure Determine optimal deployment actions; In the training process, the loss function of the microservice deployment model is calculated and the gradient is updated based on the qualification tracking strategy, including: storage The status, action, and reward combination data of the step are used to calculate the qualification tracking return value from the first step to the nth step. The calculation formula is as follows: ; in Indicates that the environment is in The state value estimated by the model, is a discount factor used to control the importance the agent places on future rewards; Update the backward view of eligibility tracking as follows: ; in It is the parameter for qualification tracking; Calculate the TD error after state transition: ; The loss function after adding eligibility tracking is defined as: 。 2. The microservice deployment method for cloud and multi-edge network node collaboration according to claim 1, It is characterized in that The network topology structure of cloud and multi-edge network nodes and the application composed of microservice nodes, distributed databases, and multiple complex communication methods are modeled, including: Collect the average service rate of the cloud computing center that provides microservice computing functions, the number of edge network nodes, the transmission bandwidth between different edge network nodes, the edge network node CPU, the number of memory resources, the communication bandwidth between the edge network node and the cloud computing center, as well as the set of microservice applications currently requested by users, the arrival rate of application requests, and the maximum tolerable delay of user request services, and obtain the network topology structure of the collaboration between the cloud and multiple edge network nodes; The application is modeled as a tree-like collection consisting of ordinary service nodes and distributed databases, where the communication between service nodes and between service nodes and databases is modeled as three communication modes, including the IPC communication mode for transmitting information between different processes, the Http request connected by the TCP / IP complete network protocol or the middleware communication mode encapsulating Netty, and the MQ communication mode through the distributed middleware message publishing and subscription mode, thus obtaining the microservice deployment model of the application.

3. The microservice deployment method for cloud and multi-edge network node collaboration according to claim 2, It is characterized in that The resource consumption mode of the microservice node and the distributed database in the cloud-edge collaborative network is as follows: For the database in the application, only the database node is deployed in the cloud computing center. During the training of the microservice deployment model, the resource consumption of deploying the microservice node and the database is as follows: ; The deployment cost of each microservice node in the edge network node and cloud computing center is expressed as < , >, Set to The cost of deploying microservices on edge network nodes, Indicates that Resource consumption in cloud computing centers, deployment cost of database nodes in applications< , > Set to <+ ,0>, is the decision variable.

4. The microservice deployment method for cloud and multi-edge network node collaboration according to claim 2, It is characterized in that The end-to-end delay includes the access request backhaul transmission delay, data transmission delay, data processing delay and queuing delay, where: Calculate the access request backhaul transmission delay, including: The request access delay when the end user submits a request to the cloud-edge collaborative computing environment is expressed as , the request access backhaul transmission delay is calculated as follows: ; The data return delay of the final microservice application calculation result delivered to the end user or device is expressed as : ; in and Respectively represent microservice application requests The upload and download data size, and They represent the upload bandwidth from the end user to the multi-edge network nodes and to the cloud computing center, respectively. and They represent the download bandwidth from multiple edge network nodes and cloud computing centers to end users respectively; Calculate data transmission delay ,include: ; in represents the bandwidth between edge network nodes, represents the bandwidth between the edge network node and the cloud computing center, where Represents the current microservice The deployment, Indicates the target server for the parent service deployment. It represents the magnitude factor of the average transmission delay when the parent and child microservices are deployed on the same machine using inter-process communication. It represents the magnitude factor of the average transmission delay when the parent and child microservices are deployed in different machines using RPC remote procedure calls. The magnitude factor of the average transmission delay when the parent and child microservices are deployed on different machines and use message middleware to communicate; Calculate data processing latency, including: Define data processing delay as the time required to process data on the server according to the deployment plan. Microservices The execution delay of the current microservice Required Cycles divided by the number of unloaded cluster machines The frequency cycle of the CPU , the calculation formula is: ; Application requests consisting of multiple monolithic microservices The total data processing delay required It is expressed as: ; Calculate the queuing delay, including: Monolithic Microservices At the edge network node The queuing delay at is: in Indicates arrival at the service node superior The request traffic of the application; Application requests consisting of multiple monolithic microservices The total queuing delay that needs to be experienced It is expressed as: 。

Citation Information

Patent Citations

  • Performance-aware micro-service adaptive deployment and resource allocation method and system in cloud edge environment

    CN117640378A

  • Methods and systems for self-healing in connected computing environments

    US11188413B1

Cited By

  • Micro-service resource scheduling method oriented to heterogeneous cloud edge collaborative environment

    CN122578718A