PinPoint-Deploy[部署]

栏目: 数据库 · 发布时间: 7年前

内容简介:组件:所需环境
Pinpoint is an APM (Application Performance Management) tool for large-scale distributed systems written in Java.

系统架构

  • 架构图

PinPoint-Deploy[部署]

组件:

  • pinpoint-collector-1.7.3.war (数据收集)

  • pinpoint-web-1.7.3.war (页面展示)

  • pinpoint-agent-1.7.3.tar.gz (数据采集)

所需环境

版本适配信息

  • Tomcat-8.5.32(web container)
  • Hbase-1.2.6 (for storage)

部署步骤

  1. 安装HBase

    • 创建监控所需的HBase 表
  2. 下载最新PinPoint执行文件(或自行git clone —> maven build)

    • The current stable version is v1.7.3.
    • DownLoad
  3. 部署 Pinpoint Collector

    • 解压 pinpoint-collector-$VERSION.warTomcat 容器
    • 修改 pinpoint-collector.properties , hbase.properties 文件
  4. 部署 Pinpoint Web

    • 解压 pinpoint-web-$VERSION.warTomcat 容器
    • 修改 pinpoint-web , hbase.properties 文件
  5. 启动Tomcat

  6. 部署 Pinpoint Agent

    • 解压 pinpoint-agent 压缩包
    • 设置 -javaagent:$AGENT_PATH/pinpoint-bootstrap-$VERSION.jar JVM参数到 App Jar 启动参数
    • 设置 -Dpinpoint.agentId and -Dpinpoint.applicationName 到 App Jar 启动参数
    • 启动Java App

部署

  • Tomcat 两个webapp实例
......
<Service name="Catalina1">
    <Connector port="8081" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />
    <Engine name="Catalina1" defaultHost="localhost">
      <Realm className="org.apache.catalina.realm.LockOutRealm">
        <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/>
      </Realm>
      <Host name="localhost"  appBase="/home/wxmimperio/software/apache-tomcat-8.5.32/pinpoint-web" unpackWARs="true" autoDeploy="true">
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log" suffix=".txt" pattern="%h %l %u %t "%r" %s %b" />
      </Host>
    </Engine>
  </Service>
  
  <Service name="Catalina2">
    <Connector port="8082" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />  
    <Engine name="Catalina2" defaultHost="localhost">
      <Realm className="org.apache.catalina.realm.LockOutRealm">
        <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/>
      </Realm>
      <Host name="localhost"  appBase="/home/wxmimperio/software/apache-tomcat-8.5.32/pinpoint-collector" unpackWARs="true" autoDeploy="true">
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log" suffix=".txt" pattern="%h %l %u %t "%r" %s %b" />
      </Host>
    </Engine>
  </Service>
......
  • 初始化Hbase 监控表
# https://github.com/naver/pinpoint/blob/master/hbase/scripts/hbase-create.hbase

vim hbase-create.hbase

hbase shell hbase-create.hbase
  • pinpoint-web

解压war,修改配置文件:

# unzip pinpoint-web-1.7.3.war -d pinpoint-web-1.7.3

# /apache-tomcat-8.5.32/pinpoint-web/pinpoint-web-1.7.3/WEB-INF/classes

vim hbase.properties
# 设置hbase地址
hbase.client.host=192.168.1.110
hbase.client.port=2181

vim pinpoint-web.properties
# 关闭集群模式
cluster.enable=false
  • pinpoint-collector
# unzip pinpoint-collector-1.7.3.war -d pinpoint-collector-1.7.3

# /apache-tomcat-8.5.32/pinpoint-collector/pinpoint-collector-1.7.3/WEB-INF/classes

vim hbase.properties
# 设置hbase地址
hbase.client.host=192.168.1.110
hbase.client.port=2181

vim pinpoint-collector.properties
# 关闭集群模式
cluster.enable=false
  • 重启Tomcat
./startup.sh

# http://192.168.1.110:8081/pinpoint-web-1.7.3/#/main
  • 部署应用
java -javaagent:/home/wxmimperio/software/pinpoint/pinpoint-agent-1.7.3/pinpoint-bootstrap-1.7.3.jar -Dpinpoint.agentId=wxm-consumer -Dpinpoint.applicationName=wxm-consumer -jar spring-boot-test-1.0-SNAPSHOT.jar

PinPoint-Deploy[部署]

PinPoint-Deploy[部署]


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

尽在双11:阿里巴巴技术演进与超越

尽在双11:阿里巴巴技术演进与超越

阿里巴巴集团双11技术团队 / 电子工业出版社 / 2017-4 / 79

“双 11”,诞生于杭州,成长于阿里,风行于互联网,成就于新经济,贡献于全世界。 从 2009 年淘宝商城起,双 11 已历经八年。每年的双 11 既是当年的结束,又是走向未来的起点。技术的突破创新,商业模式的更替交互,推动着双 11 迈步向前。 《尽在双11——阿里巴巴技术演进与超越》是迄今唯一由阿里巴巴集团官方出品、全面阐述双 11 八年以来在技术和商业上演进和创新历程的书籍。内容......一起来看看 《尽在双11:阿里巴巴技术演进与超越》 这本书的介绍吧!

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具