3.0 部署collector
吴晟 Wu Sheng edited this page 2017-07-04 10:25:08 +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.

所需的第三方软件

  • 被监控程序要求JDK6+
  • sky-walking server和webui要求JDK8+
  • Elasticsearch 5.2.2 或 5.3,可以部署单实例,或者集群

下载发布版本

部署Elasticsearch

  • 修改elasticsearch.yml文件
    • 设置 cluster.name: CollectorDBCluster。此名称需要和collector配置文件一致。
    • 设置 node.name: anyname, 可以设置为任意名字,如Elasticsearch为集群模式,则每个节点名称需要不同。
    • 增加如下配置
thread_pool.bulk.queue_size: 1000
  • 启动Elasticsearch

部署collector

  1. 解压安装包tar -xvf skywalking-collector.tar.gz,windows用户可以选择zip包
  2. 设置config目录下的collector.config配置文件
  • cluster.current.hostname: 当前主机名或者IP地址,请使用真实的地址,默认为127.0.0.1
  • cluster.current.port: akka通讯端口,按需设置即可。
  • http.port: RESTful服务地址,探针(agent)和WEBUI的配置服务时,所需的地址
  • es.cluster.name: Elasticsearch集群名称,需要和elasticsearch.yml中的cluster.name配置项一致,默认为CollectorDBCluster
  • es.cluster.nodes: Elasticsearch集群节点列表,例如:ip:port,ip2:port2
  • cluster.seed_nodes: akka通讯种子节点列表。需要了解akka配置的相关信息,可参考akka文档,或加入QQ群讨论。
  1. 运行bin/startup.sh启动。windows用户为.bat文件。

  • collector可以部署任意多个集群节点,为了保证集群间的通讯,你需要选取其中的部分节点(3-5个节点)作为akka通讯种子节点,将信息配置到config/collector.config文件中cluster.seed_nodes配置项下。
  • 格式为:cluster.current.hostname_1:cluster.current.port1, cluster.current.hostname_2:cluster.current.port2。如20.1.7.45:18000,20.1.7.55:18000。

部署webui

参考webui配置文档