| With the increasing scale of the Internet and the rapid increase in the number of users,the traditional monolithic architecture has been unable to meet business needs.In order to respond to the rapidly growing number of users and business needs,the architectural style has begun to evolve,and microservice architectures have gradually become popular.The single application is split into multiple sub-business modules,which are developed and maintained by different teams.Each module is deployed in a large-scale cluster.Due to the isolated business environment,complex business dependencies,and scattered business logs,real-time grasp of business service operations The situation is very complicated.Usually when there is a problem with the online business,it is necessary to find the problem in time and return to normal to minimize the loss.Therefore,it is necessary to study a monitoring system for monitoring the status of service calls.The research of the call chain monitoring system mainly includes five aspects: data collection,data processing,data storage,data query,and data display.Data collection is the collection and reporting of business service log data and remote call data.The log data collection uses open source The data file collection tool Filebeat is used to implement the remote call data collection using client tools based on open source component transformation that need to be embedded in the business service container;data processing is based on the reported log data and business Service call data is filtered,reorganized,and formatted according to corresponding rules.The call data processing is implemented using the open source call chain analysis tool Zipkin.The log data processing is implemented using the open source real-time data processing engine Logstash.The data storage is processed after processing.The formatted data is stored persistently for statistics and query service use.In this system,the log data and call chain data are stored in the Elasticsearch database,which is widely used in the industry.It has efficient and real-time full-text retrieval capabilities.Data query is mainly The business backend develops the call chain and log data query interface for front-end request access.The business interface is mainly implemented by the open source framework Springboot;the data display is mainly to visualize the monitoring data,that is,the development of the front-end userinterface,which mainly uses the B / S architecture system.Through the rendering of front-end pages on the web interface,users’ access operations are realized.The system implements the standard software development process and completes the design and development of the entire system.The actual operation performance of the past six months shows that the system has indeed greatly improved the work efficiency of developers and maintenance personnel,and has completed the expected goals of the system. |