The Top 9 Percona Toolkit Tools that Can Make Your Job Easier · 3. pt-mysql-summary: Learn about a...
Transcript of The Top 9 Percona Toolkit Tools that Can Make Your Job Easier · 3. pt-mysql-summary: Learn about a...
www.percona.com
The Top 9 Percona Toolkit Tools that Can Make Your Job Easier
Daniel Nichter May 7, 2014
www.percona.com
Overview
• Advice for getting the most from this talk
• What is Percona Toolkit?
• Survey of 9 tools
• Summary
2
www.percona.com
Advice for getting the most from this talk
• Avoid taking detailed notes; everything and more is already online
• Unanswered questions are OK; answers and more are already online
• It’s a survey; let it spark ideas
3
www.percona.com
What is Percona Toolkit?
• Collection of command-line tools for MySQL, Percona Server, and MariaDB – For a wide range of MySQL DBA tasks
• Professionally developed, supported, and maintained by Percona
• 6 years mature, thousands of tests, 20 testing environments, 2 full-time developers
• Free, open-source percona.com/software/percona-toolkit
4
www.percona.com
Survey of 9 tools: pt-archiver (1)
• “Archive rows from a MySQL table into another table or a file”
–Remove useless data, safely and slowly
• Benefits:
–Faster queries
–Easier backups
5
www.percona.com
Survey of 9 tools: pt-duplicate-key-checker (2)
• “Find duplicate indexes and foreign keys on MySQL tables”
–Remove useless indexes, safely
• Benefits:
–Simpler tables
–Faster INSERTs
6
www.percona.com
Survey of 9 tools: pt-mysql-summary (3)
• “Summarize MySQL information nicely”
–MySQL tricorder
• Benefits:
–Easily learn about a MySQL server
7
www.percona.com
Survey of 9 tools: pt-summary (4)
• “Summarize system information nicely”
–System tricorder
• Benefits:
–Easily learn about a system
8
www.percona.com
Survey of 9 tools: pt-online-schema-change (5)
• “ALTER tables without locking them”
–Hot online ALTER TABLE
• Benefits:
–Zero downtime
–Low impact
–Tries and retries
9
www.percona.com
Survey of 9 tools: pt-query-digest (6)
• “Analyze MySQL queries from logs, processlist, and tcpdump”
–Find slow queries
• Benefits:
–#1 performance optimization task: find and fix slow queries
–Track and review queries
10
www.percona.com
Survey of 9 tools: pt-stalk (7)
• “Collect forensic data about MySQL when problems occur”
–Postmortem analysis of MySQL problem
• Benefits:
–Never sleeps, so you can
–Collects a lot of vital data
11
www.percona.com
Survey of 9 tools: pt-table-checksum (8)
• “Verify MySQL replication integrity”
–Find slaves with incorrect data
• Benefits:
–Important knowledge for very little effort
–Knowing a problem exists is the first step towards fixing it
12
www.percona.com
Survey of 9 tools: pt-table-sync (9)
• “Synchronize MySQL table data efficiently”
–Fix slaves with incorrect data
• Benefits:
–Easily fix problems found by pt-table-checksum
13
www.percona.com
Summary
1. pt-archiver: Remove useless data
2. pt-duplicate-key-checkers: Remove useless indexes
3. pt-mysql-summary: Learn about a MySQL server
4. pt-summary: Learn about a system
5. pt-online-schema-change: Hot online ALTER TABLE
6. pt-query-digest: Find slow queries
7. pt-stalk: Collect vital data for postmortem analysis
8. pt-table-checksum: Find slaves with incorrect data
9. pt-table-sync: Fix slaves with incorrect data
14
www.percona.com
Thank You
percona.com/software/percona-toolkit
15