Font Size: a A A

Research On Load Balancing And Service Fault Tolerance Of Microservice Architecture

Posted on:2022-03-19Degree:MasterType:Thesis
Country:ChinaCandidate:K Q ZhangFull Text:PDF
GTID:2518306524452184Subject:Computer technology
Abstract/Summary:PDF Full Text Request
With the continuous development of my country's Internet technology,the internal structure of the software system is always in constant change,continuous update and adaptation.Because the microservice architecture has related characteristics such as service componentization,using this architecture can build a highly available and low-coupling application system.The microservice architecture has effectively improved the service quality of the system and has gradually become the mainstream software development architecture.The uneven load distribution of the microservice architecture will cause node overload problems,and invoke between services will produce an avalanche effect.Therefore,this thesis takes the microservice architecture as the research object,and conducts research on load balancing and service fault tolerance.The research content is as follows:(1)Aiming at the problem of load problem of microservice architecture in heterogeneous clusters.This thesis introduces the concept of partitioned virtual nodes,and uses entropy weight method to divide the weight of each service node based on the consistent hash with bounded loads algorithm.And then distribute the corresponding load according to the weight of each service node.Experiments show that the improved algorithm can satisfy the support of homogeneous clusters and heterogeneous clusters of microservices while maintaining high performance.(2)Aiming at the problem of the system avalanche effect that may occur when the service traffic in the microservice architecture is too large.This thesis designs a service fault-tolerant strategy based on a microservice gateway.Use the token bucket algorithm to customize the flow limit,and restricts the request flow of the service entrance according to different information requests.On this basis,the service degradation and fuse strategy are introduced.When the request delay exceeds the maximum value,an error message is returned,thereby denying access to the service.The experimental results show that the service fault tolerance strategy model based on the microservice gateway can be customized to limit the current according to the request,which effectively reduces the probability of system errors and improves the reliability of the microservice architecture system.(3)Finally,by analyzing the characteristics and functional requirements of the system instance.Based on the Spring Cloud technology stack,the overall design method of the microservice architecture system and the implementation method of core service components are explained.And the load balancing and service fault tolerance methods of this thesis are implemented in the system.The experimental results show that the load balancing and service fault tolerance strategy proposed in this thesis effectively solves the load balancing and service fault tolerance problems of the microservice architecture,and proposes a new scheme for the design of the microservice architecture system.
Keywords/Search Tags:Microservice Architecture, Load Balancing, Service Fault Tolerance, Spring Cloud, Consistent Hash Algorithm
PDF Full Text Request
Related items