4 2.0 Demo Application Cluster chn
吴晟 Wu Sheng edited this page 2017-04-26 20:26:31 +08:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

  • 这个测试应用集群同样基于docker和docker compose技术。如果你想追踪一个分布式应用集群,但是你不想自己写一个,这个集群会是一个好的选择。请确保,你熟悉docker和docker compose相关技术。

  • 你可以从这里下载demo的源代码: sky-walking/docker-skywalking-test-cluster

  • 运行demo

(1) 下载 agent 探针

(2) 重命名 agent jar 文件

  • 将 skywalking-agent-2.0-2016.jar 重命名为 skywalking-agent.jar

(3) 配置 docker-compose.xml

  • 你可以在这里 找到需要修改的文件.
  • 将 SERVER_LIST 设置为路由节点地址
    environment:
      - SERVER_LIST=192.168.1.6:23000

(4) 运行如下命令

   > docker-compose pull
   > docker-compose up

(5) 通过 http://localhost:18080/portal/, 可以访问项目页面

  • 等待时间,取决于主机性能

(6) 可以通过日志中的traceid,查询Trace信息