Install

Performance Co-Pilot 提前安装依赖

  1. [root@iZrj97j6t7ih9hgz1me35hZ ~]# cat install.sh
  2. yum install -y docker
  3. yum install -y git
  4. yum install -y yum-utils-1.1.31-40.el7.noarch
  5. yum install lex
  6. yum install flex
  7. yum install -y bison
  8. yum install -y perl-ExtUtils-MakeMaker.noarch
  9. yum install -y libmicrohttpd
  10. yum install -y libmicrohttpd*
  11. yum install -y gcc-c++
  12. yum install -y pcp-libs-3.11.3-4.el7.x86_64
  13. yum install -y pcp-3.11.3-4.el7.x86_64

Installing Performance Co-Pilot 安装PCP

  1. git clone git://git.pcp.io/pcp
  2. cd pcp
  3. groupadd -r pcp
  4. useradd -c "Performance Co-Pilot" -g pcp -d /var/lib/pcp -M -r -s /usr/sbin/nologin pcp
  5. ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-webapi
  6. #./configure --prefix=/usr --libexecdir=/usr/lib --sysconfdir=/etc --localstatedir=/var --with-rcdir=/etc/init.d
  7. make
  8. make install
  9. /etc/init.d/pmcd start

Building Vector from Source 源码安装Vector

安装vector

  1. $ git clone https://github.com/Netflix/vector.git
  2. $ cd vector

安装:Node.JS, npm and Bower

  1. # yum install -y npm
  2. # npm install
  3. # npm install -g bower
  4. # bower install --allow-root
  5. # npm install --global gulp-cli
  6. # gulp build
  7. # Development ServerYou can run Vector with Gulp’s development web server and live reload. In order to start Gulp’s web server, just execute the serve task:
  8. # gulp serve

功能

PCP Collection Daemon (PMCD)

  1. # /etc/init.d/pmcd start

pmie (Performance Metrics Inference Engine)

  1. [root@iZrj97j6t7ih9hgz1me35hZ ~]# chkconfig pmie on

REF

web:

http://vectoross.io/docs/installing-performance-co-pilot.html

git Install :

https://github.com/muahao/pcp/blob/master/INSTALL.md

PCP quick start: http://pcp.io/docs/guide.html

快速部署PCP

  1. #!/bin/bash
  2. #Installing Collector Hosts
  3. yum install pcp -y
  4. chkconfig pmcd on
  5. service pmcd start
  6. chkconfig pmlogger on
  7. service pmlogger start
  8. #Installing Monitor Host
  9. yum install pcp-doc pcp-gui -y
  10. echo localhost n n PCP_LOG_DIR/pmlogger/localhost -r -T24h10m -c localhost >> /etc/pcp/pmlogger/control
  11. service pmlogger restart
  12. #Dynamic Host Discovery
  13. yum install pcp-manager -y
  14. chkconfig pmmgr on
  15. echo localhost >> /etc/pcp/pmmgr/target-host
  16. echo avahi >> /etc/pcp/pmmgr/target-discovery
  17. echo probe= ip.addr.tup.le/netmask >> /etc/pcp/pmmgr/target-discovery
  18. service pmmgr restart
  19. find /var/log/pcp/pmmgr
  20. #Installation Health Check
  21. pcp -h localhost
  22. #Monitoring Live Performance Metrics
  23. pminfo -h localhost
  24. #Retrospective Performance Analysis
  25. #Visualizing iostat and sar Data
  26. #iostat -t -x 2 > iostat.out
  27. #iostat2pcp iostat.out iostat.pcp
  28. #pmchart -t 2sec -a iostat.pcp
  29. #Process Level Performance Monitoring
  30. pminfo proc
  31. #Performance Metrics Inference
  32. chkconfig pmie on
  33. service pmie start
  34. #Enable monitoring of metrics from remote host acme.com :
  35. echo acme.com n PCP_LOG_DIR/pmie/acme.com -c config.acme.com
  36. service pmie restart
  37. #PCP Web Services
  38. yum install pcp-webapi -y
  39. chkconfig pmwebd on
  40. service pmwebd start
  41. #User Web Interface for Performance Metrics
  42. yum install -y pcp-webjs

Performance Co-Pilot的更多相关文章

  1. Performance Monitor4:监控SQL Server的IO性能

    SQL Server的IO性能受到物理Disk的IO延迟和SQL Server内部执行的IO操作的影响.在监控Disk性能时,最主要的度量值(metric)是IO延迟,IO延迟是指从Applicati ...

  2. Performance Tuning

    本文译自Wikipedia的Performance tuning词条,原词条中的不少链接和扩展内容非常值得一读,翻译过程中暴露了个人工程学思想和英语水平的不足,翻译后的内容也失去很多准确性和丰富性,需 ...

  3. Performance Monitor3:监控SQL Server的内存压力

    SQL Server 使用的资源受到操作系统的调度,同时,SQL Server在内部实现了一套调度算法,用于管理从操作系统获取的资源,主要是对内存和CPU资源的调度.一个好的数据库系统,必定在内存中缓 ...

  4. [MySQL Reference Manual] 23 Performance Schema结构

    23 MySQL Performance Schema 23 MySQL Performance Schema 23.1 性能框架快速启动 23.2 性能框架配置 23.2.1 性能框架编译时配置 2 ...

  5. Unity性能优化(2)-官方教程Diagnosing performance problems using the Profiler window翻译

    本文是Unity官方教程,性能优化系列的第二篇<Diagnosing performance problems using the Profiler window>的简单翻译. 相关文章: ...

  6. 使用ANTS Performance Profiler&ANTS Memory Profiler工具分析IIS进程内存和CPU占用过高问题

    一.前言 最近一段时间,网站经常出现两个问题: 1.内存占用率一点点增高,直到将服务器内存占满. 2.访问某个页面时,页面响应过慢,CPU居高不下. 初步判断内存一点点增多可能是因为有未释放的资源一直 ...

  7. KPI:Key Performance Indicator

    通信中KPI,是Key Performance Indicators的缩写,意思是关键性能指标.performance 还有绩效:业绩的意思,但显然不适用于这种场合. 通信中KPI的内容有:掉话率.接 ...

  8. Performance Monitor1:开始性能监控

    Performance Monitor是Windows内置的一个可视化监控工具,能够在OS级别上实时记录系统资源的使用情况,通过收集和存储日志数据,在SQL Server发生异常时,能够还原系统当时的 ...

  9. Performance Monitor2:Peformance Counter

    Performance Counter 是量化系统状态或活动的一个数值,Windows Performance Monitor在一定时间间隔内(默认的取样间隔是15s)获取Performance Co ...

  10. Disk IO Performance

    一,使用 Performance counter 监控Disk IO问题 1,Physical Disk vs. Logical Disk Windows可以在一个Physical Disk上划出若干 ...

随机推荐

  1. MySQL用Load Data local infile 导入部分数据后中文乱码

    今天在两台MySQL服务器之间导数据,因为另一个MySQL服务器是测试用的,差一个月的数据,从现有MySQL服务器select到一个文件,具体语句是: select * from news where ...

  2. 洛谷—— P2690 接苹果

    https://www.luogu.org/problem/show?pid=2690 题目背景 USACO 题目描述 很少有人知道奶牛爱吃苹果.农夫约翰的农场上有两棵苹果树(编号为1和2), 每一棵 ...

  3. 51nod——T1103 N的倍数

    题目来源: Ural 1302 基准时间限制:1 秒 空间限制:131072 KB 分值: 40 难度:4级算法题  收藏  关注 一个长度为N的数组A,从A中选出若干个数,使得这些数的和是N的倍数. ...

  4. Git用<<<<<<<,=======,>>>>>>>标记出不同分支的内容

    Git用<<<<<<<,=======,>>>>>>>标记出不同分支的内容 当Git无法自动合并分支时,就必须首先解 ...

  5. 先验概率 vs 后验概率

    其实还不是很懂.看了这篇文章: http://blog.csdn.net/passball/article/details/5859878   事情还没有发生,要求这件事情发生的可能性的大小,是先验概 ...

  6. python Flask JQuery使用说明

    0.前言     近期因为某种原因再次学习Flask框架.借助博客整理相关内容.Flask框架和Apache+PHP存在少许不同,Flask框架中JS和CSS文件存放于一个相对固定的位置. 普通情况下 ...

  7. leetCode 74.Search a 2D Matrix(搜索二维矩阵) 解题思路和方法

    Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the follo ...

  8. 【POJ 2044】 Weather Forecast

    [题目链接] http://poj.org/problem?id=2044 [算法] 广度优先搜索 [代码] #include <algorithm> #include <bitse ...

  9. 杂项: EasyUI | jQuery EasyUI

    ylbtech-杂项-JS: EasyUI | jQuery EasyUI jQuery EasyUI是一组基于jQuery的UI插件集合体,而jQuery EasyUI的目标就是帮助web开发者更轻 ...

  10. webpack到底怎么用?

    webpack到底怎么用? https://www.zhihu.com/question/39290543