Spring Cloud Micro-service Distributed Link Tracking sleuth and Zipkin

Source: Internet
Author: User

Zipkin is an open source distributed tracking system, open-source by Twitter, dedicated to collecting timing data for services to address latency issues in microservices architectures, including data collection, storage, discovery, and presentation. Its theoretical model comes from the Google Dapper paper. Each microservices reports timing data to Zipkin, and Zipkin generates a dependency graph through the Zipkin UI based on the call relationship, showing how many trace requests pass through each service, which allows developers to easily collect and analyze data through a Web front end, such as the processing time of each request service , it can conveniently monitor the bottleneck in the system.

Zipkin Service Side

Regarding the service side of Zipkin, after using the Spring Boot 2.x version, the official is not recommended to customize the compilation, you can directly use the compiled jar package, details: https://github.com/openzipkin/zipkin/issues/ 1962, and the previous @enablezipkinserver has been @deprecated, and the test environment can be run quickly through official scripts or Docker.

Using scripts

Curl-ssl https://zipkin.io/quickstart.sh | bash-sJava-jar Zipkin.jar

Using Docker

sudo YumRemove Docker docker-client docker-client-latest Docker-common docker-latest docker-latest-logrotate docker-logrotate Docker-selinux Docker-engine-selinux docker-enginesudo Yum Install-YYum-utils device-mapper-persistent-Data lvm2#Yum-config-manager--add-repo https://Download.docker.com/linux/centos/docker-ce.repoYum-config-manager--add-repo http://Mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.reposudo Yum Installdocker-CEsudoSystemctl Enable Docker &&Systemctl start Dockersudosystemctl Status DockersudoSystemctl daemon-Reloadsudosystemctl Restart Dockerdocker run-d-p9411:9411Openzipkin/zipkin

Spring Cloud Micro-service Distributed Link Tracking sleuth and Zipkin

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.