媲美oracle awr/statspack的mysql awr第一版发布
现发布alpha版mysql awr,其提供的特性类似于oracle awr或statspack+集中式监控。对于原来从事oracle dba或者相关运维的人原来说,这会是个不错的选择。
至于我为什么不选择用zabbix,monyog,nagios等等监控工具,相信各数据库专家们懂的。
系统逻辑结构
支持配置监控多个mysql实例。
关键监控内容
一、源系统配置
建议percona server 5.6/mariadb+,支持mysql,percona,mariadb 5.6,5.7。
启用performance_schema,userstat参数
创建perf_stat用户,授予select information_schema,performance_schema select/truncate权限;
- 确保安装了lsof,或yum install lsof进行安装。
CREATE USER perf_stat@'%' IDENTIFIED BY 'hundsun';
GRANT ALL ON information_schema.* TO perf_stat@'%' ;
GRANT ALL ON performance_schema.* TO perf_stat@'%' ;
二、perfstat配置
1、创建存储表结构
create database perf_stat;
use perf_stat;
Create table apps (hostname varchar(64),port int,appname varchar(64) primary key,ver varchar(64));
Create table app_snaps (hostname varchar(64),appname varchar(64),snap_id int,log_time datetime); 保留7天自动删除
Create index idx_app_snaps_appname on app_snaps(appname);
create table IS_GLOBAL_STATUS(hostname varchar(64),appname varchar(64),log_time datetime,snap_id int,variable_name varchar(64),variable_value varchar(64)); 启动以来全量
Create index idx_global_status_app_snap on IS_GLOBAL_STATUS(appname,snap_id);
create table IS_GLOBAL_VARIABLES(hostname varchar(64),appname varchar(64),log_time datetime,snap_id int,variable_name varchar(64),variable_value varchar(64)); 启动以来全量
Create index idx_global_VARIABLES_app_snap on IS_GLOBAL_VARIABLES(appname,snap_id);
create table ps_events_waits_summary_global_by_event_name
(
hostname varchar(64),appname varchar(64),log_time datetime,snap_id int,
`EVENT_NAME` varchar(128) NOT NULL,
`COUNT_STAR` bigint(20) unsigned NOT NULL,
`SUM_TIMER_WAIT` bigint(20) unsigned NOT NULL,
`MIN_TIMER_WAIT` bigint(20) unsigned NOT NULL,
`AVG_TIMER_WAIT` bigint(20) unsigned NOT NULL,
`MAX_TIMER_WAIT` bigint(20) unsigned NOT NULL
);
Create index idx_ewsgben_app_snap on ps_events_waits_summary_global_by_event_name(appname,snap_id);
本间隔前n分钟增量
create table ps_table_io_waits_summary_by_table
(
hostname varchar(64),appname varchar(64),log_time datetime,snap_id int,
`OBJECT_TYPE` varchar(64) DEFAULT NULL,
`OBJECT_SCHEMA` varchar(64) DEFAULT NULL,
`OBJECT_NAME` varchar(64) DEFAULT NULL,
`COUNT_STAR` bigint(20) unsigned NOT NULL,
`SUM_TIMER_WAIT` bigint(20) unsigned NOT NULL,
`MIN_TIMER_WAIT` bigint(20) unsigned NOT NULL,
`AVG_TIMER_WAIT` bigint(20) unsigned NOT NULL,
`MAX_TIMER_WAIT` bigint(20) unsigned NOT NULL,
`COUNT_READ` bigint(20) unsigned NOT NULL,
`SUM_TIMER_READ` bigint(20) unsigned NOT NULL,
`MIN_TIMER_READ` bigint(20) unsigned NOT NULL,
`AVG_TIMER_READ` bigint(20) unsigned NOT NULL,
`MAX_TIMER_READ` bigint(20) unsigned NOT NULL,
`COUNT_WRITE` bigint(20) unsigned NOT NULL,
`SUM_TIMER_WRITE` bigint(20) unsigned NOT NULL,
`MIN_TIMER_WRITE` bigint(20) unsigned NOT NULL,
`AVG_TIMER_WRITE` bigint(20) unsigned NOT NULL,
`MAX_TIMER_WRITE` bigint(20) unsigned NOT NULL,
`COUNT_FETCH` bigint(20) unsigned NOT NULL DEFAULT '0',
`SUM_TIMER_FETCH` bigint(20) unsigned NOT NULL DEFAULT '0',
`MIN_TIMER_FETCH` bigint(20) unsigned NOT NULL DEFAULT '0',
`AVG_TIMER_FETCH` bigint(20) unsigned NOT NULL DEFAULT '0',
`MAX_TIMER_FETCH` bigint(20) unsigned NOT NULL DEFAULT '0',
`COUNT_INSERT` bigint(20) unsigned NOT NULL DEFAULT '0',
`SUM_TIMER_INSERT` bigint(20) unsigned NOT NULL DEFAULT '0',
`MIN_TIMER_INSERT` bigint(20) unsigned NOT NULL DEFAULT '0',
`AVG_TIMER_INSERT` bigint(20) unsigned NOT NULL DEFAULT '0',
`MAX_TIMER_INSERT` bigint(20) unsigned NOT NULL DEFAULT '0',
`COUNT_UPDATE` bigint(20) unsigned NOT NULL DEFAULT '0',
`SUM_TIMER_UPDATE` bigint(20) unsigned NOT NULL DEFAULT '0',
`MIN_TIMER_UPDATE` bigint(20) unsigned NOT NULL DEFAULT '0',
`AVG_TIMER_UPDATE` bigint(20) unsigned NOT NULL DEFAULT '0',
`MAX_TIMER_UPDATE` bigint(20) unsigned NOT NULL DEFAULT '0',
`COUNT_DELETE` bigint(20) unsigned NOT NULL DEFAULT '0',
`SUM_TIMER_DELETE` bigint(20) unsigned NOT NULL DEFAULT '0',
`MIN_TIMER_DELETE` bigint(20) unsigned NOT NULL DEFAULT '0',
`AVG_TIMER_DELETE` bigint(20) unsigned NOT NULL DEFAULT '0',
`MAX_TIMER_DELETE` bigint(20) unsigned NOT NULL DEFAULT '0'
);
Create index idx_tiwsbt_app_snap on ps_table_io_waits_summary_by_table(appname,snap_id);
本间隔前n分钟增量
create table ps_table_lock_waits_summary_by_table
(
hostname varchar(64),appname varchar(64),log_time datetime,snap_id int,
`OBJECT_TYPE` varchar(64) DEFAULT NULL,
`OBJECT_SCHEMA` varchar(64) DEFAULT NULL,
`OBJECT_NAME` varchar(64) DEFAULT NULL,
`COUNT_STAR` bigint(20) unsigned NOT NULL,
`SUM_TIMER_WAIT` bigint(20) unsigned NOT NULL,
`MIN_TIMER_WAIT` bigint(20) unsigned NOT NULL,
`AVG_TIMER_WAIT` bigint(20) unsigned NOT NULL,
`MAX_TIMER_WAIT` bigint(20) unsigned NOT NULL,
`COUNT_READ` bigint(20) unsigned NOT NULL,
`SUM_TIMER_READ` bigint(20) unsigned NOT NULL,
`MIN_TIMER_READ` bigint(20) unsigned NOT NULL,
`AVG_TIMER_READ` bigint(20) unsigned NOT NULL,
`MAX_TIMER_READ` bigint(20) unsigned NOT NULL,
`COUNT_WRITE` bigint(20) unsigned NOT NULL,
`SUM_TIMER_WRITE` bigint(20) unsigned NOT NULL,
`MIN_TIMER_WRITE` bigint(20) unsigned NOT NULL,
`AVG_TIMER_WRITE` bigint(20) unsigned NOT NULL,
`MAX_TIMER_WRITE` bigint(20) unsigned NOT NULL,
`COUNT_READ_NORMAL` bigint(20) unsigned NOT NULL DEFAULT '0',
`SUM_TIMER_READ_NORMAL` bigint(20) unsigned NOT NULL DEFAULT '0',
`MIN_TIMER_READ_NORMAL` bigint(20) unsigned NOT NULL DEFAULT '0',
`AVG_TIMER_READ_NORMAL` bigint(20) unsigned NOT NULL DEFAULT '0',
`MAX_TIMER_READ_NORMAL` bigint(20) unsigned NOT NULL DEFAULT '0',
`COUNT_READ_WITH_SHARED_LOCKS` bigint(20) unsigned NOT NULL DEFAULT '0',
`SUM_TIMER_READ_WITH_SHARED_LOCKS` bigint(20) unsigned NOT NULL DEFAULT '0',
`MIN_TIMER_READ_WITH_SHARED_LOCKS` bigint(20) unsigned NOT NULL DEFAULT '0',
`AVG_TIMER_READ_WITH_SHARED_LOCKS` bigint(20) unsigned NOT NULL DEFAULT '0',
`MAX_TIMER_READ_WITH_SHARED_LOCKS` bigint(20) unsigned NOT NULL DEFAULT '0',
`COUNT_READ_HIGH_PRIORITY` bigint(20) unsigned NOT NULL DEFAULT '0',
`SUM_TIMER_READ_HIGH_PRIORITY` bigint(20) unsigned NOT NULL DEFAULT '0',
`MIN_TIMER_READ_HIGH_PRIORITY` bigint(20) unsigned NOT NULL DEFAULT '0',
`AVG_TIMER_READ_HIGH_PRIORITY` bigint(20) unsigned NOT NULL DEFAULT '0',
`MAX_TIMER_READ_HIGH_PRIORITY` bigint(20) unsigned NOT NULL DEFAULT '0',
`COUNT_READ_NO_INSERT` bigint(20) unsigned NOT NULL DEFAULT '0',
`SUM_TIMER_READ_NO_INSERT` bigint(20) unsigned NOT NULL DEFAULT '0',
`MIN_TIMER_READ_NO_INSERT` bigint(20) unsigned NOT NULL DEFAULT '0',
`AVG_TIMER_READ_NO_INSERT` bigint(20) unsigned NOT NULL DEFAULT '0',
`MAX_TIMER_READ_NO_INSERT` bigint(20) unsigned NOT NULL DEFAULT '0',
`COUNT_READ_EXTERNAL` bigint(20) unsigned NOT NULL DEFAULT '0',
`SUM_TIMER_READ_EXTERNAL` bigint(20) unsigned NOT NULL DEFAULT '0',
`MIN_TIMER_READ_EXTERNAL` bigint(20) unsigned NOT NULL DEFAULT '0',
`AVG_TIMER_READ_EXTERNAL` bigint(20) unsigned NOT NULL DEFAULT '0',
`MAX_TIMER_READ_EXTERNAL` bigint(20) unsigned NOT NULL DEFAULT '0',
`COUNT_WRITE_ALLOW_WRITE` bigint(20) unsigned NOT NULL DEFAULT '0',
`SUM_TIMER_WRITE_ALLOW_WRITE` bigint(20) unsigned NOT NULL DEFAULT '0',
`MIN_TIMER_WRITE_ALLOW_WRITE` bigint(20) unsigned NOT NULL DEFAULT '0',
`AVG_TIMER_WRITE_ALLOW_WRITE` bigint(20) unsigned NOT NULL DEFAULT '0',
`MAX_TIMER_WRITE_ALLOW_WRITE` bigint(20) unsigned NOT NULL DEFAULT '0',
`COUNT_WRITE_CONCURRENT_INSERT` bigint(20) unsigned NOT NULL DEFAULT '0',
`SUM_TIMER_WRITE_CONCURRENT_INSERT` bigint(20) unsigned NOT NULL DEFAULT '0',
`MIN_TIMER_WRITE_CONCURRENT_INSERT` bigint(20) unsigned NOT NULL DEFAULT '0',
`AVG_TIMER_WRITE_CONCURRENT_INSERT` bigint(20) unsigned NOT NULL DEFAULT '0',
`MAX_TIMER_WRITE_CONCURRENT_INSERT` bigint(20) unsigned NOT NULL DEFAULT '0',
`COUNT_WRITE_DELAYED` bigint(20) unsigned NOT NULL DEFAULT '0',
`SUM_TIMER_WRITE_DELAYED` bigint(20) unsigned NOT NULL DEFAULT '0',
`MIN_TIMER_WRITE_DELAYED` bigint(20) unsigned NOT NULL DEFAULT '0',
`AVG_TIMER_WRITE_DELAYED` bigint(20) unsigned NOT NULL DEFAULT '0',
`MAX_TIMER_WRITE_DELAYED` bigint(20) unsigned NOT NULL DEFAULT '0',
`COUNT_WRITE_LOW_PRIORITY` bigint(20) unsigned NOT NULL DEFAULT '0',
`SUM_TIMER_WRITE_LOW_PRIORITY` bigint(20) unsigned NOT NULL DEFAULT '0',
`MIN_TIMER_WRITE_LOW_PRIORITY` bigint(20) unsigned NOT NULL DEFAULT '0',
`AVG_TIMER_WRITE_LOW_PRIORITY` bigint(20) unsigned NOT NULL DEFAULT '0',
`MAX_TIMER_WRITE_LOW_PRIORITY` bigint(20) unsigned NOT NULL DEFAULT '0',
`COUNT_WRITE_NORMAL` bigint(20) unsigned NOT NULL DEFAULT '0',
`SUM_TIMER_WRITE_NORMAL` bigint(20) unsigned NOT NULL DEFAULT '0',
`MIN_TIMER_WRITE_NORMAL` bigint(20) unsigned NOT NULL DEFAULT '0',
`AVG_TIMER_WRITE_NORMAL` bigint(20) unsigned NOT NULL DEFAULT '0',
`MAX_TIMER_WRITE_NORMAL` bigint(20) unsigned NOT NULL DEFAULT '0',
`COUNT_WRITE_EXTERNAL` bigint(20) unsigned NOT NULL DEFAULT '0',
`SUM_TIMER_WRITE_EXTERNAL` bigint(20) unsigned NOT NULL DEFAULT '0',
`MIN_TIMER_WRITE_EXTERNAL` bigint(20) unsigned NOT NULL DEFAULT '0',
`AVG_TIMER_WRITE_EXTERNAL` bigint(20) unsigned NOT NULL DEFAULT '0',
`MAX_TIMER_WRITE_EXTERNAL` bigint(20) unsigned NOT NULL DEFAULT '0'
);
Create index idx_tlwsbt_app_snap on ps_table_lock_waits_summary_by_table(appname,snap_id);
本间隔前n分钟增量
create table ps_table_io_waits_summary_by_index_usage
(
hostname varchar(64),appname varchar(64),log_time datetime,snap_id int,
`OBJECT_TYPE` varchar(64) DEFAULT NULL,
`OBJECT_SCHEMA` varchar(64) DEFAULT NULL,
`OBJECT_NAME` varchar(64) DEFAULT NULL,
`INDEX_NAME` varchar(64) DEFAULT NULL,
`COUNT_STAR` bigint(20) unsigned NOT NULL,
`SUM_TIMER_WAIT` bigint(20) unsigned NOT NULL,
`MIN_TIMER_WAIT` bigint(20) unsigned NOT NULL,
`AVG_TIMER_WAIT` bigint(20) unsigned NOT NULL,
`MAX_TIMER_WAIT` bigint(20) unsigned NOT NULL,
`COUNT_READ` bigint(20) unsigned NOT NULL,
`SUM_TIMER_READ` bigint(20) unsigned NOT NULL,
`MIN_TIMER_READ` bigint(20) unsigned NOT NULL,
`AVG_TIMER_READ` bigint(20) unsigned NOT NULL,
`MAX_TIMER_READ` bigint(20) unsigned NOT NULL,
`COUNT_WRITE` bigint(20) unsigned NOT NULL,
`SUM_TIMER_WRITE` bigint(20) unsigned NOT NULL,
`MIN_TIMER_WRITE` bigint(20) unsigned NOT NULL,
`AVG_TIMER_WRITE` bigint(20) unsigned NOT NULL,
`MAX_TIMER_WRITE` bigint(20) unsigned NOT NULL,
`COUNT_FETCH` bigint(20) unsigned NOT NULL DEFAULT '0',
`SUM_TIMER_FETCH` bigint(20) unsigned NOT NULL DEFAULT '0',
`MIN_TIMER_FETCH` bigint(20) unsigned NOT NULL DEFAULT '0',
`AVG_TIMER_FETCH` bigint(20) unsigned NOT NULL DEFAULT '0',
`MAX_TIMER_FETCH` bigint(20) unsigned NOT NULL DEFAULT '0',
`COUNT_INSERT` bigint(20) unsigned NOT NULL DEFAULT '0',
`SUM_TIMER_INSERT` bigint(20) unsigned NOT NULL DEFAULT '0',
`MIN_TIMER_INSERT` bigint(20) unsigned NOT NULL DEFAULT '0',
`AVG_TIMER_INSERT` bigint(20) unsigned NOT NULL DEFAULT '0',
`MAX_TIMER_INSERT` bigint(20) unsigned NOT NULL DEFAULT '0',
`COUNT_UPDATE` bigint(20) unsigned NOT NULL DEFAULT '0',
`SUM_TIMER_UPDATE` bigint(20) unsigned NOT NULL DEFAULT '0',
`MIN_TIMER_UPDATE` bigint(20) unsigned NOT NULL DEFAULT '0',
`AVG_TIMER_UPDATE` bigint(20) unsigned NOT NULL DEFAULT '0',
`MAX_TIMER_UPDATE` bigint(20) unsigned NOT NULL DEFAULT '0',
`COUNT_DELETE` bigint(20) unsigned NOT NULL DEFAULT '0',
`SUM_TIMER_DELETE` bigint(20) unsigned NOT NULL DEFAULT '0',
`MIN_TIMER_DELETE` bigint(20) unsigned NOT NULL DEFAULT '0',
`AVG_TIMER_DELETE` bigint(20) unsigned NOT NULL DEFAULT '0',
`MAX_TIMER_DELETE` bigint(20) unsigned NOT NULL DEFAULT '0'
);
Create index idx_tiwsbiu_app_snap on ps_table_io_waits_summary_by_index_usage(appname,snap_id);
本间隔前n分钟增量
create table ps_events_statements_summary_by_digest
(
hostname varchar(64),appname varchar(64),log_time datetime,snap_id int,
`SCHEMA_NAME` varchar(64) DEFAULT NULL,
`DIGEST` varchar(32) DEFAULT NULL,
`DIGEST_TEXT` longtext,
`COUNT_STAR` bigint(20) unsigned NOT NULL,
`SUM_TIMER_WAIT` bigint(20) unsigned NOT NULL,
`MIN_TIMER_WAIT` bigint(20) unsigned NOT NULL,
`AVG_TIMER_WAIT` bigint(20) unsigned NOT NULL,
`MAX_TIMER_WAIT` bigint(20) unsigned NOT NULL,
`SUM_LOCK_TIME` bigint(20) unsigned NOT NULL,
`SUM_ERRORS` bigint(20) unsigned NOT NULL,
`SUM_WARNINGS` bigint(20) unsigned NOT NULL,
`SUM_ROWS_AFFECTED` bigint(20) unsigned NOT NULL,
`SUM_ROWS_SENT` bigint(20) unsigned NOT NULL,
`SUM_ROWS_EXAMINED` bigint(20) unsigned NOT NULL,
`SUM_CREATED_TMP_DISK_TABLES` bigint(20) unsigned NOT NULL,
`SUM_CREATED_TMP_TABLES` bigint(20) unsigned NOT NULL,
`SUM_SELECT_FULL_JOIN` bigint(20) unsigned NOT NULL,
`SUM_SELECT_FULL_RANGE_JOIN` bigint(20) unsigned NOT NULL,
`SUM_SELECT_RANGE` bigint(20) unsigned NOT NULL,
`SUM_SELECT_RANGE_CHECK` bigint(20) unsigned NOT NULL,
`SUM_SELECT_SCAN` bigint(20) unsigned NOT NULL,
`SUM_SORT_MERGE_PASSES` bigint(20) unsigned NOT NULL,
`SUM_SORT_RANGE` bigint(20) unsigned NOT NULL,
`SUM_SORT_ROWS` bigint(20) unsigned NOT NULL,
`SUM_SORT_SCAN` bigint(20) unsigned NOT NULL,
`SUM_NO_INDEX_USED` bigint(20) unsigned NOT NULL,
`SUM_NO_GOOD_INDEX_USED` bigint(20) unsigned NOT NULL,
`FIRST_SEEN` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`LAST_SEEN` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
);
Create index idx_digest_app_snap on ps_events_statements_summary_by_digest(appname,snap_id);
本间隔前n分钟增量
FLUSH INDEX_STATISTICS
create table IS_INDEX_STATISTICS
(
hostname varchar(64),appname varchar(64),log_time datetime,snap_id int,
`TABLE_SCHEMA` varchar(192) NOT NULL DEFAULT '',
`TABLE_NAME` varchar(192) NOT NULL DEFAULT '',
`INDEX_NAME` varchar(192) NOT NULL DEFAULT '',
`ROWS_READ` bigint(21) unsigned NOT NULL DEFAULT '0'
);
Create index idx_index_statistics_app_snap on IS_INDEX_STATISTICS(appname,snap_id);
本间隔前n分钟增量
FLUSH TABLE_STATISTICS
create table IS_TABLE_STATISTICS
(
hostname varchar(64),appname varchar(64),log_time datetime,snap_id int,
`TABLE_SCHEMA` varchar(192) NOT NULL DEFAULT '',
`TABLE_NAME` varchar(192) NOT NULL DEFAULT '',
`ROWS_READ` bigint(21) unsigned NOT NULL DEFAULT '0',
`ROWS_CHANGED` bigint(21) unsigned NOT NULL DEFAULT '0',
`ROWS_CHANGED_X_INDEXES` bigint(21) unsigned NOT NULL DEFAULT '0'
);
Create index idx_table_statistics_app_snap on IS_TABLE_STATISTICS(appname,snap_id);
本间隔前n分钟增量
2、配置监控的数据源
在当前版本的mysql awr实现中,暂不支持通过web控制台方式增加监控节点(下一个版本会支持)。
要增加监控的节点,需要在三个地方进行改动,如下所示:
(1)、在WEB-INF/conf/spring-servlet.xml中增加一个类似如下的数据源:
<bean id="hitop_pxc_db1_ds" class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close">
<property name="url" value="${hitop_pxc_db1_ds.jdbc.url}" />
<property name="driverClassName" value="${hitop_pxc_db1_ds.jdbc.driverClassName}" />
<property name="username" value="${hitop_pxc_db1_ds.jdbc.username}" />
<property name="password" value="${hitop_pxc_db1_ds.jdbc.password}" />
<property name="maxActive" value="${hitop_pxc_db1_ds.jdbc.maxActive}" />
<property name="maxIdle" value="${hitop_pxc_db1_ds.jdbc.maxIdle}" />
<property name="maxWait" value="${hitop_pxc_db1_ds.jdbc.maxWait}" />
<property name="validationQuery" value="select 1" />
<property name="defaultAutoCommit" value="true" />
</bean>
同时在dataSource中增加对应的条目,如下所示:
<bean id="dataSource" class="com.cyl.kernel.DynamicDataSource">
<property name="targetDataSources">
<map key-type="java.lang.String">
<entry key="localSrc_ds" value-ref="localSrc_ds" />
<entry key="hitop_pxc_db1_ds" value-ref="hitop_pxc_db1_ds" />
<entry key="perfstat_ds" value-ref="perfstat_ds" />
</map>
</property>
<property name="defaultTargetDataSource" ref="perfstat_ds" />
</bean>
(2)、在WEB-INF/conf/jdbc-mysql.properties中增加对应的系统配置,如下所示:
hitop_pxc_db1_ds.jdbc.driverClassName=com.mysql.jdbc.Driver
hitop_pxc_db1_ds.jdbc.url=jdbc:mysql://172.28.1.102:3306/performance_schema?useUnicode=true&characterEncoding=gbk&autoReconnect=true&failOverReadOnly=false
hitop_pxc_db1_ds.jdbc.username=root
hitop_pxc_db1_ds.jdbc.password=hundsun
hitop_pxc_db1_ds.jdbc.maxActive=5
hitop_pxc_db1_ds.jdbc.maxIdle=2
hitop_pxc_db1_ds.jdbc.maxWait=10000
(3)登录使用perf_stat用户登录监控服务器mysql,执行如下insert语句:
USE perf_stat;
INSERT INTO apps(hostname,PORT,appname,ver) VALUES('mysql服务器地址',端口,'唯一标识该mysql实例的id,不得重复','mysql大版本');
如:
INSERT INTO apps(hostname,PORT,appname,ver) VALUES('localhost',3306,'localSrc','5.6');
INSERT INTO apps(hostname,PORT,appname,ver) VALUES('localhost',3306,'localSrc','5.7'); 5.6、5.7经过测试,5.5不确定
三、perfstat后台服务
1、每隔15/20分钟采集一次;采集时会自动过滤mysql、performance_schema、information_schema三个对象中的CRUD以及各种操作
采集时对于PS中表的操作,会设置SET sql_log_bin = off;以避免truncate PS相关表时传播到其他节点(如果主从或者galera cluster的话)
2、自动清除7天前的日志
四、访问
war包下载地址,baidu pan http://pan.baidu.com/s/1slf8h5b。
下一版本计划更新内容:
1、支持界面增加被监控实例,简化配置;
2、支持监控暂停与恢复;
3、支持不同实例不同调度策略;
4、增加slave监控;
媲美oracle awr/statspack的mysql awr第一版发布的更多相关文章
- mysql awr 1.0.5 GA正式版发布
1.0.5变更内容 1.修复centos 7下swap值不正确:2.中文乱码:3.begin/end snap下拉显示Mysql启动时间:4.两次快照间不能重启过:5.新增tab页面查看mysql存储 ...
- mysql awr v1.0.1发布
现发布mysql awr v1.0.1 修复问题: 1.galera cluster下flush table/index_statistcs时如果系统中业务ddl频繁可能会导致很多进程处于prepar ...
- ORACLE AWR概述及生成AWR报告
1.Overview of the Automatic Workload Repository The Automatic Workload Repository (AWR) collects, pr ...
- 你搞懂 ORACLE、 SQLSERVER、MYSQL与DB2的区别了吗
ORACLE. SQLSERVER.MYSQL与DB2的区别--平台性: Oracle.MYSQL与DB2可在所有主流平台上运行: SQL Server只能在Windows下运行: --安 ...
- Oracle中如何实现Mysql的两表关联update操作
在看<MySQL 5.1参考手册>的时候,发现MySQL提供了一种两表关联update操作.原文如下: UPDATE items,month SET items.price=month.p ...
- oracle数据库不支持mysql中limit功能
oracle数据库不支持mysql中limit功能,但可以通过rownum来限制返回的结果集的行数,rownum并不是用户添加的字段,而是oracle系统自动添加的. (1)使查询结果最多返回前10行 ...
- Oracle、DB2、MySql、SQLServer JDBC驱动
四种数据库JDBC驱动,还列出了连接的Class驱动名和Url Pattern,DB2包括Type 2.Type 3和Type 4三种模式.注意驱动包名称的大小写. Oralce连接驱动包名和URL ...
- 蓝色的成长记录——追逐DBA(8):为了夺回SP报告,回顾oracle的STATSPACK实验
***********************************************声明*************************************************** ...
- Oracle SQL developer 连接 MySQL 数据库安装配置
1. 下载 JDBC driver for MySQL 下载链接: https://dev.mysql.com/downloads/connector/j/ 下载成功后,解压缩,得到 mysql jd ...
随机推荐
- iOS开发之身份证号码校验
// // Card.h // THCStore // // Created by Mac on 15/7/15. // Copyright (c) 2015年 Mac. All rights ...
- LeetCode: 221_Maximal Square | 二维0-1矩阵中计算包含1的最大正方形的面积 | Medium
题目: Given a 2D binary matrix filled with 's and return its area. For example, given the following ma ...
- java之内部类(InnerClass)----非静态内部类、静态内部类、局部内部类、匿名内部类
提起java内裤类(innerClass)很多人不太熟悉,实际上类似的概念在c++里面也有,那就是嵌套类(Nested Class),关于这俩者的区别,在下文中会有对比.内部类从表面上看,就是在类中定 ...
- SNF开发平台WinForm之十三-单独从服务器上获取PDF文件进行显示-SNF快速开发平台3.3-Spring.Net.Framework
1运行效果: 2开发实现: 如果需要单独显示PDF文件时用下面代码去实现,指定url地址. 地址: . 获取附件管理的实体对象: List<KeyValuePair<string, obj ...
- Java获取路径方法&相对路径读取xml文件方法
(1).request.getRealPath("/");//不推荐使用获取工程的根路径 (2).request.getRealPath(request.getRequestURI ...
- IIS 7完全攻略之日志记录配置(摘自网络)
IIS 7完全攻略之日志记录配置 作者:泉之源 [IT168 专稿]除了 Windows 提供的日志记录功能外,IIS 7.0 还可以提供其他日志记录功能.例如,可以选择日志文件格式并指定要记录的请求 ...
- [Design Patterns] 2. Design principle
Single Responsibility Principle 类的设计趋向于:Use Case Diagram --> (derived) --> Detail Open-Closed ...
- iOS-图片轮播-SDCycleSCrollView的使用
介绍: SDCycleScrollView 是一款非常强大的轮播图第三方. 轮播流畅,手滑流畅.使用方便.自定义简单. 可以更改pageControl. 一. Demo地址 https://pan.b ...
- java基础---->java中正则表达式二
跟正则表达式相关的类有:Pattern.Matcher和String.今天我们就开始Java中正则表达式的学习. Pattern和Matcher的理解 一.正则表达式的使用方法 一般推荐使用的方式如下 ...
- Mysql学习笔记(七)查(补充)
PS:五一还是要学习...虽然有点苦逼..但是路是自己选的,那么自己就要坚持的走下去... 学习内容: 1.数据库查找的补充... 查找涉及的东西比较多,在上一个章节没有完全介绍...我们还是以pet ...