Font Size: a A A

Research And Design Of Load Balancing Based On Microservice Architecture

Posted on:2022-04-09Degree:MasterType:Thesis
Country:ChinaCandidate:F YangFull Text:PDF
GTID:2518306602470634Subject:Computer Science and Technology
Abstract/Summary:PDF Full Text Request
With the vigorous development of emerging Internet businesses,the balance requirement between system performance and high concurrency cannot be satisfied by traditional software system architecture,leading to the emergence of microservice architecture,which has gained popularity in the industry due to its highly available organizational structure and agile development model.As the application of the microservice architecture has produced changes in the cluster structure and working mechanism,in order to maintain the efficiency and reliability of the system under high concurrency,it is particularly important to design a load balancing strategy that is more suitable for the microservice architecture.In recent years,the load-bounded consistent hash algorithm proposed by Google can achieve better load balancing effects,and can adapt to the dynamic adjustment of clusters under the microservice architecture,but it can be optimized in terms of virtual node mapping.Based on the load-bounded consistent hashing algorithm,this paper carries out the following research and improvement:First of all,based on the load-bounded consistent hashing algorithm,this paper introduces the utilization of system resources,and proposes an algorithm optimization strategy for the number of dynamic virtual nodes.For the high concurrency and high load scenarios under the microservice architecture cluster,the distribution process of the consistent hash algorithm is designed to improve the speed of requests hitting server nodes,and at the same time ensure the load balance of each node in the cluster.Secondly,while the improved load balancing algorithm is used for request allocation,this article uses time-series model modeling to predict the type of service request,preallocate the predicted service request type and record it in the collection.When the next actual request comes,the service request can be allocated according to the records in the collection,thereby improving the operating efficiency of the entire system.Finally,this article builds an architectural design scheme in the microservice high availability scenario,introduces a gateway cluster,and adds a layer of hash ring to allocate requests,and isolate the load balancing nodes through the service as a unit,reducing the pressure on each load balance nodes.Through experimental comparison,the load balancing algorithm improved in this paper shows better node load balance than other algorithms.The load balancing system using this algorithm has faster response time and high throughput in the case of high concurrency.
Keywords/Search Tags:Load balancing, Microservice, Consistent hashing, Time series model
PDF Full Text Request
Related items