![Page 1: The MySQL Diaspora - socallinuxexpo.org · • Extra diagnostic features over MySQL: per-table/ index/user/client performance counters, more detailed EXPLAIN, InnoDB data statistics,](https://reader036.vdocument.in/reader036/viewer/2022062601/5dd0f32ed6be591ccb637ccb/html5/thumbnails/1.jpg)
The MySQL DiasporaColin Charles, Monty Program Ab
[email protected]://montyprogram.com / http://mariadb.org/ http://bytebot.net/blog / @bytebot on Twitter
SCALE10x, Los Angeles, CA, USA21 January 2012
Friday, 27 January 12
![Page 2: The MySQL Diaspora - socallinuxexpo.org · • Extra diagnostic features over MySQL: per-table/ index/user/client performance counters, more detailed EXPLAIN, InnoDB data statistics,](https://reader036.vdocument.in/reader036/viewer/2022062601/5dd0f32ed6be591ccb637ccb/html5/thumbnails/2.jpg)
whoami
• Chief Evangelist, MariaDB
• Formerly of MySQL AB/Sun Microsystems
• Past lives included FESCO (Fedora Project), OpenOffice.org
Friday, 27 January 12
![Page 3: The MySQL Diaspora - socallinuxexpo.org · • Extra diagnostic features over MySQL: per-table/ index/user/client performance counters, more detailed EXPLAIN, InnoDB data statistics,](https://reader036.vdocument.in/reader036/viewer/2022062601/5dd0f32ed6be591ccb637ccb/html5/thumbnails/3.jpg)
Agenda
• The MySQL-based servers
• Patches for new features
• MySQL tools
• MySQL Cluster
• Support
Friday, 27 January 12
![Page 4: The MySQL Diaspora - socallinuxexpo.org · • Extra diagnostic features over MySQL: per-table/ index/user/client performance counters, more detailed EXPLAIN, InnoDB data statistics,](https://reader036.vdocument.in/reader036/viewer/2022062601/5dd0f32ed6be591ccb637ccb/html5/thumbnails/4.jpg)
MySQL release policy
• Alpha
• Beta
• GA - generally available
• Labs
• Developer Milestone Releases (DMR)
Friday, 27 January 12
![Page 5: The MySQL Diaspora - socallinuxexpo.org · • Extra diagnostic features over MySQL: per-table/ index/user/client performance counters, more detailed EXPLAIN, InnoDB data statistics,](https://reader036.vdocument.in/reader036/viewer/2022062601/5dd0f32ed6be591ccb637ccb/html5/thumbnails/5.jpg)
MySQL through the years
MySQL AB
Sun Oracle
3.23 5.1 5.5
4.0
4.1
5.0
MySQL AB
Sun Oracle
5.1 5.2 5.4
5.2 5.4 6.0
6.0 6.0 5.6
GA Plans & Cancellations
Friday, 27 January 12
![Page 6: The MySQL Diaspora - socallinuxexpo.org · • Extra diagnostic features over MySQL: per-table/ index/user/client performance counters, more detailed EXPLAIN, InnoDB data statistics,](https://reader036.vdocument.in/reader036/viewer/2022062601/5dd0f32ed6be591ccb637ccb/html5/thumbnails/6.jpg)
Where do you get MySQL from?
• mysql.com
• Over 55%-60% of 70,000 daily downloads are Microsoft Windows based
• your distribution of choice
• Linux, BSD, Mac
• packaged w/o many engines built-in
Friday, 27 January 12
![Page 7: The MySQL Diaspora - socallinuxexpo.org · • Extra diagnostic features over MySQL: per-table/ index/user/client performance counters, more detailed EXPLAIN, InnoDB data statistics,](https://reader036.vdocument.in/reader036/viewer/2022062601/5dd0f32ed6be591ccb637ccb/html5/thumbnails/7.jpg)
The commercial ecosystem
• Storage engines had an API since 5.1... being pluggable, there were also commercial engines available
• InfoBright, TokuDB, ScaleDB, Calpont, Nitro, SolidDB, RitmarkFS, etc.
• Hardware vendors too: Kickfire, Virident, Schooner, etc.
Friday, 27 January 12
![Page 8: The MySQL Diaspora - socallinuxexpo.org · • Extra diagnostic features over MySQL: per-table/ index/user/client performance counters, more detailed EXPLAIN, InnoDB data statistics,](https://reader036.vdocument.in/reader036/viewer/2022062601/5dd0f32ed6be591ccb637ccb/html5/thumbnails/8.jpg)
Let’s define:
• Fork
• Branch
Friday, 27 January 12
![Page 9: The MySQL Diaspora - socallinuxexpo.org · • Extra diagnostic features over MySQL: per-table/ index/user/client performance counters, more detailed EXPLAIN, InnoDB data statistics,](https://reader036.vdocument.in/reader036/viewer/2022062601/5dd0f32ed6be591ccb637ccb/html5/thumbnails/9.jpg)
Forks
Friday, 27 January 12
![Page 10: The MySQL Diaspora - socallinuxexpo.org · • Extra diagnostic features over MySQL: per-table/ index/user/client performance counters, more detailed EXPLAIN, InnoDB data statistics,](https://reader036.vdocument.in/reader036/viewer/2022062601/5dd0f32ed6be591ccb637ccb/html5/thumbnails/10.jpg)
Drizzle
• 64-bit only, *nix only
• Micro-kernel architecture
• Stripped out MySQL 6.0 to focus on everything as a plugin
• All C++ now
• Focus on the cloud (small plug-in relational DB)
• Replication via Google Protocol Buffers
Friday, 27 January 12
![Page 11: The MySQL Diaspora - socallinuxexpo.org · • Extra diagnostic features over MySQL: per-table/ index/user/client performance counters, more detailed EXPLAIN, InnoDB data statistics,](https://reader036.vdocument.in/reader036/viewer/2022062601/5dd0f32ed6be591ccb637ccb/html5/thumbnails/11.jpg)
Percona Performance Server
• or Percona Server with XtraDB
• MySQL + InnoDB enhancements + minimal server changes
• Extra diagnostic features over MySQL: per-table/index/user/client performance counters, more detailed EXPLAIN, InnoDB data statistics, better SHOW INNODB STATUS, FlashCache support
• Maatkit UDFs
Friday, 27 January 12
![Page 12: The MySQL Diaspora - socallinuxexpo.org · • Extra diagnostic features over MySQL: per-table/ index/user/client performance counters, more detailed EXPLAIN, InnoDB data statistics,](https://reader036.vdocument.in/reader036/viewer/2022062601/5dd0f32ed6be591ccb637ccb/html5/thumbnails/12.jpg)
MariaDB• community developed, feature enhanced,
backward compatible
• rebased branch, with a stack of new features: all of Percona Performance Server + storage engines, extended stats for slow query log, microsecond precision, table elimination, pool of threads, pluggable authentication, dynamic columns, NoSQL, group commit, optimiser fixes (most in 10 years), subqueries finally materialise, HeidiSQL shipped in Windows binaries
Friday, 27 January 12
![Page 13: The MySQL Diaspora - socallinuxexpo.org · • Extra diagnostic features over MySQL: per-table/ index/user/client performance counters, more detailed EXPLAIN, InnoDB data statistics,](https://reader036.vdocument.in/reader036/viewer/2022062601/5dd0f32ed6be591ccb637ccb/html5/thumbnails/13.jpg)
What’s lying around
• Patches from eBay, Tivo, Tokutek, DeNA, Google, Facebook
• MariaDB has quite a huge portion of the above integrated
• OurDelta? MepSQL? XAMPP?
• MySQL?
Friday, 27 January 12
![Page 14: The MySQL Diaspora - socallinuxexpo.org · • Extra diagnostic features over MySQL: per-table/ index/user/client performance counters, more detailed EXPLAIN, InnoDB data statistics,](https://reader036.vdocument.in/reader036/viewer/2022062601/5dd0f32ed6be591ccb637ccb/html5/thumbnails/14.jpg)
NoSQL in MySQL
• HandlerSocket
• Dynamic columns
• memcached interface to InnoDB
• memcached interface to NDB
Friday, 27 January 12
![Page 15: The MySQL Diaspora - socallinuxexpo.org · • Extra diagnostic features over MySQL: per-table/ index/user/client performance counters, more detailed EXPLAIN, InnoDB data statistics,](https://reader036.vdocument.in/reader036/viewer/2022062601/5dd0f32ed6be591ccb637ccb/html5/thumbnails/15.jpg)
Tools: Enterprise Monitoring
• Oracle’s MySQL Enterprise Monitor
• works for MySQL + Cluster
• SkySQL Enterprise Monitor (MONyog)
• FromDual MySQL Performance Monitor (Zabbiz-based)
• mysql-cacti-templates, Munin, SNMP/OpenNMS, mycheckpoint
Friday, 27 January 12
![Page 16: The MySQL Diaspora - socallinuxexpo.org · • Extra diagnostic features over MySQL: per-table/ index/user/client performance counters, more detailed EXPLAIN, InnoDB data statistics,](https://reader036.vdocument.in/reader036/viewer/2022062601/5dd0f32ed6be591ccb637ccb/html5/thumbnails/16.jpg)
Tools: Backup
• MySQL Enterprise Backup (InnoDB Hot Backup)
• xtrabackup (InnoDB/XtraDB, MyISAM)
• SkySQL Backup & Recovery Manager (Zmanda Recovery Manager - ZRM)
• mylvmbackup
Friday, 27 January 12
![Page 17: The MySQL Diaspora - socallinuxexpo.org · • Extra diagnostic features over MySQL: per-table/ index/user/client performance counters, more detailed EXPLAIN, InnoDB data statistics,](https://reader036.vdocument.in/reader036/viewer/2022062601/5dd0f32ed6be591ccb637ccb/html5/thumbnails/17.jpg)
Tools: Visual modelling tools
• MySQL Workbench
• SkySQL Visual Editor (SQLyog)
• HeidiSQL
Friday, 27 January 12
![Page 18: The MySQL Diaspora - socallinuxexpo.org · • Extra diagnostic features over MySQL: per-table/ index/user/client performance counters, more detailed EXPLAIN, InnoDB data statistics,](https://reader036.vdocument.in/reader036/viewer/2022062601/5dd0f32ed6be591ccb637ccb/html5/thumbnails/18.jpg)
Other useful tools
• Percona Toolkit (maatkit + aspersa)
• openark kit (incl. online schema change which Facebook adopted)
• MHA for MySQL - High Availability Manager + tools
Friday, 27 January 12
![Page 19: The MySQL Diaspora - socallinuxexpo.org · • Extra diagnostic features over MySQL: per-table/ index/user/client performance counters, more detailed EXPLAIN, InnoDB data statistics,](https://reader036.vdocument.in/reader036/viewer/2022062601/5dd0f32ed6be591ccb637ccb/html5/thumbnails/19.jpg)
MySQL Cluster
• MySQL (NDB) Cluster (7.1 available; 7.2 is a DMR)
• Percona XtraDB Cluster (Galera, alpha)
• Severalnines ClusterControl for MySQL Cluster, replication & Galera management/deployment/monitoring/auto-scaling tool
Friday, 27 January 12
![Page 20: The MySQL Diaspora - socallinuxexpo.org · • Extra diagnostic features over MySQL: per-table/ index/user/client performance counters, more detailed EXPLAIN, InnoDB data statistics,](https://reader036.vdocument.in/reader036/viewer/2022062601/5dd0f32ed6be591ccb637ccb/html5/thumbnails/20.jpg)
Support
MySQL MariaDBPercona Server
MySQL Cluster Drizzle
Oracle, SkySQL,
FromDual, Percona,
etc.
SkySQL, FromDual, Percona, Open Query
Percona, SkySQL,
FromDual
Oracle, SkySQL,
Severalnines,
Percona
SkySQL, Percona,
Blue Gecko
Friday, 27 January 12
![Page 21: The MySQL Diaspora - socallinuxexpo.org · • Extra diagnostic features over MySQL: per-table/ index/user/client performance counters, more detailed EXPLAIN, InnoDB data statistics,](https://reader036.vdocument.in/reader036/viewer/2022062601/5dd0f32ed6be591ccb637ccb/html5/thumbnails/21.jpg)
Support II
• Check:
• versions of MySQL supported
• distribution supported MySQL?
• Remote-DBA services also exist (Pythian, PalominoDB, Blue Gecko, etc.)
Friday, 27 January 12
![Page 22: The MySQL Diaspora - socallinuxexpo.org · • Extra diagnostic features over MySQL: per-table/ index/user/client performance counters, more detailed EXPLAIN, InnoDB data statistics,](https://reader036.vdocument.in/reader036/viewer/2022062601/5dd0f32ed6be591ccb637ccb/html5/thumbnails/22.jpg)
What do people use?
• pap.fr: “increased stability, improved performance, fewer anomalies” MySQL->MariaDB
• MySQL is losing traction due to its owner (FUD?) (+ associated costs)
• Percona Server: popular amongst their consulting clients
Friday, 27 January 12
![Page 23: The MySQL Diaspora - socallinuxexpo.org · • Extra diagnostic features over MySQL: per-table/ index/user/client performance counters, more detailed EXPLAIN, InnoDB data statistics,](https://reader036.vdocument.in/reader036/viewer/2022062601/5dd0f32ed6be591ccb637ccb/html5/thumbnails/23.jpg)
MySQL Enterprise-only features
• thread pool closed source, with only an API for community development
• PAM, Active Directory plugins via pluggable authentication API is closed source
• InnoDB Hot Backup has been closed since creation
• Check MariaDB out for opensource variants
Friday, 27 January 12
![Page 24: The MySQL Diaspora - socallinuxexpo.org · • Extra diagnostic features over MySQL: per-table/ index/user/client performance counters, more detailed EXPLAIN, InnoDB data statistics,](https://reader036.vdocument.in/reader036/viewer/2022062601/5dd0f32ed6be591ccb637ccb/html5/thumbnails/24.jpg)
InnoDB/XtraDB
• InnoDB in MySQL 5.5 is truly better than XtraDB in 5.1
• XtraDB in 5.5 > InnoDB in 5.5 (more instrumentation)
Friday, 27 January 12
![Page 25: The MySQL Diaspora - socallinuxexpo.org · • Extra diagnostic features over MySQL: per-table/ index/user/client performance counters, more detailed EXPLAIN, InnoDB data statistics,](https://reader036.vdocument.in/reader036/viewer/2022062601/5dd0f32ed6be591ccb637ccb/html5/thumbnails/25.jpg)
So what do you use?
• MySQL from mysql.com is probably sufficient for most needs
• Need a little more from MySQL? Percona server, MariaDB
• Need features of MariaDB, i.e. MySQL on steroids...
• Connectors are 100% the same
Friday, 27 January 12
![Page 26: The MySQL Diaspora - socallinuxexpo.org · • Extra diagnostic features over MySQL: per-table/ index/user/client performance counters, more detailed EXPLAIN, InnoDB data statistics,](https://reader036.vdocument.in/reader036/viewer/2022062601/5dd0f32ed6be591ccb637ccb/html5/thumbnails/26.jpg)
What can you use?
• i.e. what’s stable today
• MySQL 5.5
• Percona Server 5.5
• MariaDB 5.2
• Drizzle 7
Friday, 27 January 12
![Page 27: The MySQL Diaspora - socallinuxexpo.org · • Extra diagnostic features over MySQL: per-table/ index/user/client performance counters, more detailed EXPLAIN, InnoDB data statistics,](https://reader036.vdocument.in/reader036/viewer/2022062601/5dd0f32ed6be591ccb637ccb/html5/thumbnails/27.jpg)
Pragmatic CIO
• Think about support availability + cost
• Licensing is boring... think clouds?!?
• Subscriptions or fixing your problems (consulting, emergency services)
• Community vs Enterprise
• Continuity of projects/company
Friday, 27 January 12
![Page 28: The MySQL Diaspora - socallinuxexpo.org · • Extra diagnostic features over MySQL: per-table/ index/user/client performance counters, more detailed EXPLAIN, InnoDB data statistics,](https://reader036.vdocument.in/reader036/viewer/2022062601/5dd0f32ed6be591ccb637ccb/html5/thumbnails/28.jpg)
Q&A?email: [email protected]
http://montyprogram.com/ | http://mariadb.org/ twitter: @bytebot / url: http://bytebot.net/blog/
Friday, 27 January 12