数据库管理工具-Percona Toolkit


Percona Toolkit 是一组主要使用Perl开发的高级命令行工具集,用来管理 MySQL 数据库服务器(及Percona Server)和系统任务,其功能包括检查主从复制的数据一致性、检查重复索引、定位 IO 占用高的表文件、在线 DDL 等,DBA 熟悉掌握 PT 工具后将极大提高工作效率。采用GPLv2协议授权。主要功能包括:
验证主节点和复制数据的一致性
有效的对记录行进行归档
找出重复的索引
总结 MySQL 服务器
从日志和 tcpdump 中分析查询
问题发生时收集重要的系统信息
Percona Toolkit is a collection of advanced command-line tools used by Percona support staff to perform a variety of MySQL and system tasks that are too difficult or complex to perform manually, including:
Verify master and replica data consistency
Efficiently archive rows
Find duplicate indexes
Summarize MySQL servers
Analyze queries from logs and tcpdump
Collect vital system information when problems occur
Tools are a vital part of any MySQL deployment, so it's important to use ones that are reliable and well-designed. Over 4,000 tests and several years of deployment, including some of the Internet's best-known sites, have proven the reliability of the tools in Percona Toolkit. And the combined experience and expertise of Percona ensures that each tool is well thought-out and designed.
Percona Toolkit is derived from Maatkit and Aspersa, two of the best-known utility toolkits for MySQL server administration.
在其主页上选择合适自己的 CPU 架构和操作系统版本 Percona Toolkit 包。
工具集分类
3.5.7 版本 Percona Toolkit 工具拥有 39 个工具,分为七大类(实用类、配置类、监控类、系统类、开发类、复制类、性能类)
pt-align,pt-fingerprint,pt-mext,pt-query-digest,pt-summary,pt-archiver,pt-fk-error-logger,pt-mongodb-index-check,pt-secure-collect,pt-table-checksum,pt-config-diff,pt-galera-log-explainer,pt-mongodb-query-digest,pt-show-grants,pt-table-sync,pt-deadlock-logger,pt-heartbeat,pt-mongodb-summary,pt-sift,pt-table-usage,pt-diskstats,pt-index-usage,pt-mysql-summary,pt-slave-delay,pt-upgrade,pt-duplicate-key-checker,pt-ioprofile,pt-online-schema-change,pt-slave-find,pt-variable-advisor,pt-fifo-split,pt-k8s-debug-collector,pt-pg-summary,pt-slave-restart,pt-visual-explain,pt-find,pt-kill,pt-pmp,pt-stalk
实用类
配置类
监控类
系统类
开发类
复制类
性能类
最新版本:3.0
项目主页:http://www.percona.com/software/percona-toolkit/
验证主节点和复制数据的一致性
有效的对记录行进行归档
找出重复的索引
总结 MySQL 服务器
从日志和 tcpdump 中分析查询
问题发生时收集重要的系统信息
Percona Toolkit is a collection of advanced command-line tools used by Percona support staff to perform a variety of MySQL and system tasks that are too difficult or complex to perform manually, including:
Verify master and replica data consistency
Efficiently archive rows
Find duplicate indexes
Summarize MySQL servers
Analyze queries from logs and tcpdump
Collect vital system information when problems occur
Tools are a vital part of any MySQL deployment, so it's important to use ones that are reliable and well-designed. Over 4,000 tests and several years of deployment, including some of the Internet's best-known sites, have proven the reliability of the tools in Percona Toolkit. And the combined experience and expertise of Percona ensures that each tool is well thought-out and designed.
Percona Toolkit is derived from Maatkit and Aspersa, two of the best-known utility toolkits for MySQL server administration.
在其主页上选择合适自己的 CPU 架构和操作系统版本 Percona Toolkit 包。
工具集分类
3.5.7 版本 Percona Toolkit 工具拥有 39 个工具,分为七大类(实用类、配置类、监控类、系统类、开发类、复制类、性能类)
pt-align,pt-fingerprint,pt-mext,pt-query-digest,pt-summary,pt-archiver,pt-fk-error-logger,pt-mongodb-index-check,pt-secure-collect,pt-table-checksum,pt-config-diff,pt-galera-log-explainer,pt-mongodb-query-digest,pt-show-grants,pt-table-sync,pt-deadlock-logger,pt-heartbeat,pt-mongodb-summary,pt-sift,pt-table-usage,pt-diskstats,pt-index-usage,pt-mysql-summary,pt-slave-delay,pt-upgrade,pt-duplicate-key-checker,pt-ioprofile,pt-online-schema-change,pt-slave-find,pt-variable-advisor,pt-fifo-split,pt-k8s-debug-collector,pt-pg-summary,pt-slave-restart,pt-visual-explain,pt-find,pt-kill,pt-pmp,pt-stalk
实用类
工具命令 | 工具用途 |
---|---|
pt-align | 将其它工具输出内容与列对齐 |
pt-archiver | 将表中的行存档到另一个表或文件中 |
pt-find | 查找表并执行命令 |
pt-fingerprint | 将查询转成密文 |
pt-kill | Kill掉符合条件的SQL |
pt-k8s-debug-collector | 从 k8s/OpenShift 集群收集调试数据(日志、资源状态等) |
pt-secure-collect | 收集、清理、打包和加密数据 |
配置类
工具命令 | 工具描述 |
---|---|
pt-config-diff | 比较数据库配置文件和参数 |
pt-mysql-summary | 对GreatSQL/MySQL配置和STATUS进行汇总 |
pt-variable-advisor | 分析参数,并提出建议 |
监控类
工具命令 | 工具描述 |
---|---|
pt-deadlock-logger | 提取和记录GreatSQL/MySQL死锁 |
pt-fk-error-logger | 提取和记录外键信息 |
pt-mext | 并行查看STATUS样本信息 |
pt-query-digest | 分析查询日志,并产生报告 |
pt-mongodb-summary | 收集有关 MongoDB 集群的信息 |
pt-pg-summary | 收集有关 PostgreSQL 集群的信息 |
系统类
工具命令 | 工具描述 |
---|---|
pt-diskstats | 查看系统磁盘状态 |
pt-fifo-split | 模拟切割文件并输出 |
pt-ioprofile | 查询进程IO并打印一个IO活动表 |
pt-sift | 浏览由pt-stalk创建的文件 |
pt-stalk | 出现问题时,收集诊断数据 |
pt-summary | 收集和显示系统概况 |
开发类
工具命令 | 工具描述 |
---|---|
pt-duplicate-key-checker | 列出并删除重复的索引和外键 |
pt-online-schema-change | 在线修改表结构 |
pt-show-grants | 规范化和打印权限 |
pt-upgrade | 在多个服务器上执行查询,并比较不同 |
复制类
工具命令 | 工具描述 |
---|---|
pt-heartbeat | 监控GreatSQL/MySQL复制延迟 |
pt-slave-delay | 设定从落后主的时间 |
pt-slave-find | 查找和打印所有GreatSQL/MySQL复制层级关系 |
pt-slave-restart | 监控Salve错误,并尝试重启Salve |
pt-table-checksum | 校验主从复制一致性 |
pt-table-sync | 高效同步表数据 |
pt-galera-log-explainer | 对多个Galera日志进行过滤、聚合和汇总 |
性能类
工具命令 | 工具描述 |
---|---|
pt-index-usage | 分析日志中索引使用情况,并出报告 |
pt-pmp | 查询结果跟踪,并汇总跟踪结果 |
pt-table-usage | 分析日志中查询并分析表使用情况 |
pt-visual-explain | 格式化执行计划 |
pt-mongodb-index-check | MongoDB 索引执行检查 |
pt-mongodb-query-digest | 通过聚合来自 MongoDB 查询分析器的查询来报告查询使用统计信息 |
最新版本:3.0
项目主页:http://www.percona.com/software/percona-toolkit/