Survey of Percona Toolkit - Command-line Tools for MySQL

461 views

Published on

The presentation provides you with a brief ovreview of all the essential Command-line tools used for MySQL.

Percona provides an in-depth review of your database and recommends appropriate changes by performing a complete MySQL health check in which we identify inefficiencies, find problems before they occur, and ensure that your MySQL database is in the best condition.

Published in: Software
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
461
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Survey of Percona Toolkit - Command-line Tools for MySQL

  1. 1. Survey of Percona Toolkit - Command-line Tools for MySQL Daniel Nichter - June 17, 2013
  2. 2. Overview • What is Percona Toolkit? • Survey of 9 tools • Summary Company Confidential December 2010 -2-
  3. 3. Overview • What is Percona Toolkit? • Survey of 9 tools • Summary Company Confidential December 2010 -3-
  4. 4. 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 • 5 years mature, thousands of tests, 20 testing environments, 2 full-time developers • Free, open-source percona.com/software/percona- toolkit Company Confidential December 2010 -4-
  5. 5. Overview • What is Percona Toolkit? • Survey of 9 tools • Summary Company Confidential December 2010 -5-
  6. 6. 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 Company Confidential December 2010 -6-
  7. 7. pt-duplicate-key-checker (2) • “Find duplicate indexes and foreign keys on MySQL tables” – Remove useless indexes, safely • Benefits: – Simpler tables – Faster INSERTs Company Confidential December 2010 -7-
  8. 8. pt-mysql-summary (3) • “Summarize MySQL information nicely” – MySQL tricorder • Benefits: – Easily learn about a MySQL server Company Confidential December 2010 -8-
  9. 9. I detect high levels of awesome.
  10. 10. pt-mysql-summary (3) • “Summarize MySQL information nicely” – MySQL tricorder • Benefits: – Easily learn about a MySQL server Company Confidential December 2010 -10-
  11. 11. pt-summary (4) • “Summarize system information nicely” – System tricorder • Benefits: – Easily learn about a system Company Confidential December 2010 -11-
  12. 12. pt-online-schema-change (5) • “ALTER tables without locking them” – Hot online ALTER TABLE • Benefits: – Zero downtime – Low impact – Tries and retries Company Confidential December 2010 -12-
  13. 13. 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 Company Confidential December 2010 -13-
  14. 14. 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 Company Confidential December 2010 -14-
  15. 15. A warrior always verifies replication integrity
  16. 16. 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 Company Confidential December 2010 -16-
  17. 17. pt-table-sync (9) • “Synchronize MySQL table data efficiently” – Fix slaves with incorrect data • Benefits: – Easily fix problems found by pt-table-checksum Company Confidential December 2010 -17-
  18. 18. Overview • What is Percona Toolkit? • Survey of 9 tools • Summary Company Confidential December 2010 -18-
  19. 19. 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 Company Confidential December 2010 -19-
  20. 20. Thank You percona.com/software/percona-toolkit daniel@percona.com launchpad.net/percona-toolkit Company Confidential December 2010 -20-

×