Font Size: a A A

Design And Study Of The Distributed Consensus Microservice Configuration Center

Posted on:2018-03-03Degree:MasterType:Thesis
Country:ChinaCandidate:S K FuFull Text:PDF
GTID:2428330569485451Subject:Computer technology
Abstract/Summary:PDF Full Text Request
In software field,the design of a system architect is an everlasting topic to discuss.In recent years,on the basis of microservices' flexibility,efficiency,and high scalability,it has become a technical hotspot as a system architect and starts a new technical trend.Its main philosophy is splitting applications into smaller cooperating components so that to make the applications readily maintainable and agile.It physically separates presentation,control,and access layers,which are three logical layers.On each layer,taking the size and features of the application into consideration,it is split into small independent parts,which can appreciate the benefits of the agility and scalability.One core issue of the microservices is to make thousands of microservices orchestrated well in such a highly environment.This thesis aims to probe and develop a Configuration Center to solve this issue.Based a readily understandable consensus algorithm,raft,a distributed key-value storage module is constructed,which is an essential part of the configuration center.For the storage module,the leader selection and log replication are completed to achieve the consensus feature.RESTful interfaces are designed to communicate with other modules of the configuration center.The registry module provides native support for the Docker to register services.The Service discovery and Configuration module are developed to cooperate with the service registry module.Finally,I do performance benchmark and module test in the real production environment.According to the configuration file dynamically rendered by the service discovery and configuration module,Nginx does load balancing over three web application instances.By this,the configuration center's high availability and distributed consensus are tested and validated.
Keywords/Search Tags:microservice, consensus, service registry, service discovery
PDF Full Text Request
Related items