160 likes | 266 Views
MySQL Overview. Jed Reynolds Write Your Questions on the Board! Landscape, Engines, HA, Performance Questions. Overview. Landscape MySQL Engines Replication High Availability High Performance Questions. RDBMS Landscape. Smaller : SQLite, FireBird, BerkeleyDB
E N D
MySQL Overview • Jed Reynolds • Write Your Questions on the Board! • Landscape, Engines, HA, Performance • Questions
Overview • Landscape • MySQL Engines • Replication • High Availability • High Performance • Questions
RDBMS Landscape • Smaller: SQLite, FireBird, BerkeleyDB • MySQL, PostgeSQL, SQL Server • MySQL Enterprise, NDB • Larger: Oracle Enterprise, DB2, other OLTP
Oracle v MySQL? • Boring
MySQL Landscape • Various Editions: • Community,Standard, Standard, Enterprise • User Tools: • Workbench, Query Analyzer, Monitor • Commercial Variants • Percona, Kickfire • Sister projects: • MariaDB, askmonty.org • Drizzle, drizzle.org
MySQL Engines • InnoDB (v: XtraDB, PBXT, Aria) • ACID, Triggers, Transactions, MVCC • MyISAM • Non ACID, fast • NDB – in memory, cluster • BerkeleyDB - keystore • Memory • Archive • Federated
MySQL Replication • Built in, simple, multi-master • Log shipping • Single threaded • Capture log position and snapshot • Ignore some tables • Cross-engine
High Availability • No Backup: No Replication: No HA • You Want Montioring • Backup your logs and data • N+1, N+2 sized pools • Health criteria • Single v. Multi master, failover • Table Maintenance, Partitioning • Failure containment (when do you shard?)
High Performance • Avoid the database • Is a DB correct tool? • Pregenerated results? • Application caching? • Results caching, memcache
Multiple Data Stores? • Your RDBMS doesn't need to do it all • NoSQL is vague • Document, key store, or graph • http://en.wikipedia.org/wiki/NoSQL_(concept) • Full Text indexes: Sphinx, Lucene, Solr
2: Avoid your disk • Judcial query caching • Order by + group by = filesort • Avoid table scans, use indexes • Multi Column Indexes
3:Concurrency • Table locking • Separate servers/engines per task • Replication • Partitioning • Sharding
4:Disk thruput • Raid • Partitioning • Sharding
5:Maintenance • Contain maintenance impact • Practice in your dev env • Alters, Indexing • Optimize Table • Repair Table
Questions, Sources • Does Luke Skywalker use Oracle or CouchBase? • Askmonty.org • Drizzle.org • Percona.com • mysqlperformanceblog.com • www.xaprb.com/blog/ • Maatkit
Thank You • @jed_reynolds • jed@bitratchet.com • Blog.bitratchet.com • Sunday: Penguin Bike Ride After Talks!