https://github.com/ihaolin/dubbo-trace
基于Dubbo的分布式系统调用跟踪Demo
https://github.com/ihaolin/dubbo-trace
distributed dubbo trace
Last synced: 3 days ago
JSON representation
基于Dubbo的分布式系统调用跟踪Demo
- Host: GitHub
- URL: https://github.com/ihaolin/dubbo-trace
- Owner: ihaolin
- Created: 2016-11-24T01:00:44.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-29T02:31:28.000Z (over 8 years ago)
- Last Synced: 2025-09-08T19:41:38.724Z (about 1 month ago)
- Topics: distributed, dubbo, trace
- Language: Java
- Size: 33.2 KB
- Stars: 69
- Watchers: 14
- Forks: 58
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 基于dubbo的分布式系统调用跟踪demo
Quick Start:
+ 确保[zipkin server](http://zipkin.io/)已经正常启动;
+ 确保[zookeeper](http://zookeeper.apache.org/)已经正常启动:
+ 分别运行以下命令:+ 克隆项目:
```bash
git clone git@github.com:ihaolin/dubbo-trace.git
```
+ 编辑``trace-demo``各项目对应配置:+ app.properties:
```
# dubbo注册中心
dubbo.registry=zookeeper://localhost:2181
```
+ trace.yml:```
# ...# zipkin-server http地址
server: 'localhost:9411'# ...
```
+ 安装项目:```bash
mvn clean install -DskipTests
```
+ 运行user服务:```bash
./run_user.sh
```
+ 运行order服务:```bash
./run_order.sh
```
+ 运行web服务:```bash
./run_web.sh
```
+ 在浏览器请求:```
http://localhost:10000/api/orders/create
```
+ 即可zipkin-server中查看跟踪记录。+ 具体细节可参见[这篇文章](https://t.hao0.me/devops/2016/10/15/distributed-invoke-trace.html)。