Ivan ZorattiSkySQL & MariaDBWhat’s all the buzz?V1304.01V1306.01Friday, 14 June 13
Who is Ivan?Friday, 14 June 13
30,000 ft viewFriday, 14 June 13
PAGEThe SkySQL View4Friday, 14 June 13
PAGEThe SkySQL View5MariaDBServer(s)Friday, 14 June 13
PAGEThe SkySQL View6MariaDBServer(s)MHA GaleraFriday, 14 June 13
PAGEThe SkySQL View7MariaDBServer(s)MHA GaleraGatewayFriday, 14 June 13
PAGEThe SkySQL View8SkySQL ClusterMariaDBServer(s)MHA GaleraGatewayFriday, 14 June 13
PAGE 9SkySQL ClusterMariaDBServer(s)MHA GaleraMonitorGatewayThe SkySQL ViewFriday, 14 June 13
PAGE 10SkySQL ClusterMariaDBServer(s)MHA GaleraAPIMonitorGatewayThe SkySQL ViewFriday, 14 June 13
PAGE 11SkySQL ClusterMariaDBServer(s)MHA GaleraGUIAPIMonitorGatewayThe SkySQL ViewFriday, 14 June 13
PAGE 12SkySQL ClusterMariaDBServer(s)MHA GaleraSkySQLManagerGUIAPIMonitorGatewayThe SkySQL ViewFriday, 14 June 13
PAGE 13SkySQL EnterpriseSkySQL ClusterMariaDBServer(s)MHA GaleraSkySQLManagerGUIAPIMonitorGatewayThe SkySQL ViewFriday, 14...
PAGE 14Configuration& ProvisioningSkySQL EnterpriseSkySQL ClusterMariaDBServerMHA GaleraSkySQLManagerGUIAPIMonitorGatewayT...
PAGE 15SkySQL Data SuiteConfiguration& ProvisioningSkySQL EnterpriseSkySQL ClusterMariaDBServerMHA GaleraSkySQLManagerGUIA...
MariaDBFriday, 14 June 13
PAGEOptimizer Enhancements175.5•Multi-Range Read (MRR)*•Index Merge / Sort intersection•Batch KeyAccess*•Block hash join•C...
PAGEGroup Commit185.5COMMIT&Friday, 14 June 13
PAGEAtomic Writes with FusionIO195.5innodb_use_atomic_writesinnodb_doublewrite=0innodb_file_flush_method=O_DIRECT |ALL_O_D...
PAGEVirtual & Dynamic Columns20VIRTUAL COLUMNS•For InnoDB, MyISAM andAria•PERSISTENT (stored) or VIRTUAL(generated)CREATE ...
PAGETokuDB•Fast inserts/increasedperformance•Increased Compression•Online administration•No Index rebuild215.5Friday, 14 J...
PAGEMariaDB Replication•Global Transaction ID• Server id• Sequence no• Event group (gtid_log_event)• Replication stream•Mu...
PAGECassandra Storage Engine23•Column Family == Table•Rowkey, static and dynamiccolumns allowed•Batch key access supportSE...
PAGEConnect Storage Engine24•Any file format as MySQLTABLE:•ODBC•Text, XML, *ML•Excel,Access etc.•MariaDB CREATE TABLE opt...
ClusterAvailabilityFriday, 14 June 13
PAGEAutomatic Failover with Pacemaker26ReplicatorDatabaseDatabaseDatabase DatabaseDataStoreSkySQLManagerFriday, 14 June 13
PAGEAutomatic Failover with Pacemaker27ReplicatorDatabaseDatabaseDatabase DatabaseDataStoreSkySQLManager[root@node2 init.d...
SkySQL ManagerFriday, 14 June 13
PAGECharts and Monitors29Friday, 14 June 13
PAGETimeline30Friday, 14 June 13
PAGERESTfulAPI31Friday, 14 June 13
SkySQL GatewayFriday, 14 June 13
PAGESkySQL Gateway33Friday, 14 June 13
PAGESkySQL Gateway•For MariaDB 5.5 & 10, Oracleand Percona Server 5.5 & 5.6•MySQL Replication/MHA&Galera clusters•Local au...
PAGETable Replication Consistency35DatabaseDatabaseDatabase Database DatabaseClient ApplicationCommunication ProtocolOutbo...
PAGETry SkySQL Manager now...36• Web:• www.skysql.com• www.mariadb.org• Downloads:• MariaDB: downloads.mariadb.org• SkySQL...
PAGEWhat’s all the buzz?•Leading innovation in MySQL and in the MySQL Ecosystem•Integrating YesSQL and NoSQL >>> with a Ne...
I Hope!Friday, 14 June 13
Thank You!Pictures from:Top Travel list - http://bit.ly/11ZiaPwPenton Media - http://bit.ly/12rehZSIGN - http://bit.ly/12r...
Upcoming SlideShare
Loading in...5
×

SkySQL & MariaDB What's all the buzz?

1,111

Published on

This is my presentation at the SF Meetup - June 13 2013

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

  • Be the first to like this

No Downloads
Views
Total Views
1,111
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "SkySQL & MariaDB What's all the buzz?"

  1. 1. Ivan ZorattiSkySQL & MariaDBWhat’s all the buzz?V1304.01V1306.01Friday, 14 June 13
  2. 2. Who is Ivan?Friday, 14 June 13
  3. 3. 30,000 ft viewFriday, 14 June 13
  4. 4. PAGEThe SkySQL View4Friday, 14 June 13
  5. 5. PAGEThe SkySQL View5MariaDBServer(s)Friday, 14 June 13
  6. 6. PAGEThe SkySQL View6MariaDBServer(s)MHA GaleraFriday, 14 June 13
  7. 7. PAGEThe SkySQL View7MariaDBServer(s)MHA GaleraGatewayFriday, 14 June 13
  8. 8. PAGEThe SkySQL View8SkySQL ClusterMariaDBServer(s)MHA GaleraGatewayFriday, 14 June 13
  9. 9. PAGE 9SkySQL ClusterMariaDBServer(s)MHA GaleraMonitorGatewayThe SkySQL ViewFriday, 14 June 13
  10. 10. PAGE 10SkySQL ClusterMariaDBServer(s)MHA GaleraAPIMonitorGatewayThe SkySQL ViewFriday, 14 June 13
  11. 11. PAGE 11SkySQL ClusterMariaDBServer(s)MHA GaleraGUIAPIMonitorGatewayThe SkySQL ViewFriday, 14 June 13
  12. 12. PAGE 12SkySQL ClusterMariaDBServer(s)MHA GaleraSkySQLManagerGUIAPIMonitorGatewayThe SkySQL ViewFriday, 14 June 13
  13. 13. PAGE 13SkySQL EnterpriseSkySQL ClusterMariaDBServer(s)MHA GaleraSkySQLManagerGUIAPIMonitorGatewayThe SkySQL ViewFriday, 14 June 13
  14. 14. PAGE 14Configuration& ProvisioningSkySQL EnterpriseSkySQL ClusterMariaDBServerMHA GaleraSkySQLManagerGUIAPIMonitorGatewayThe SkySQL ViewFriday, 14 June 13
  15. 15. PAGE 15SkySQL Data SuiteConfiguration& ProvisioningSkySQL EnterpriseSkySQL ClusterMariaDBServerMHA GaleraSkySQLManagerGUIAPIMonitorGatewayThe SkySQL ViewFriday, 14 June 13
  16. 16. MariaDBFriday, 14 June 13
  17. 17. PAGEOptimizer Enhancements175.5•Multi-Range Read (MRR)*•Index Merge / Sort intersection•Batch KeyAccess*•Block hash join•Cost-based choice of range vs.index_merge•ORDER BY ... LIMIT <limit>*•(MariaDB 10)•Subqueries•Semi-join*•Materialization*•subquery cache•LIMIT ... ROWS EXAMINED<limit>(*) - Available in MySQL 5.6https://kb.askmonty.org/en/optimizer-feature-comparison-matrix/Friday, 14 June 13
  18. 18. PAGEGroup Commit185.5COMMIT&Friday, 14 June 13
  19. 19. PAGEAtomic Writes with FusionIO195.5innodb_use_atomic_writesinnodb_doublewrite=0innodb_file_flush_method=O_DIRECT |ALL_O_DIRECT |O_DIRECT_NO_FSYNC•Used with DirectFS•Lower latency•Increased Flash life•Less write amplificationFriday, 14 June 13
  20. 20. PAGEVirtual & Dynamic Columns20VIRTUAL COLUMNS•For InnoDB, MyISAM andAria•PERSISTENT (stored) or VIRTUAL(generated)CREATE TABLE t1 (c1 INT NOT NULL,c2 VARCHAR(32),c3 INT AS( c1 MOD 10 ) VIRTUAL,c4 VARCHAR(5) AS( LEFT(B,5) ) PERSISTENT);DYNAMIC COLUMNS•Implement a schemaless,document store•COLUMN_ CREATE,ADD, GET, LIST,JSON, EXISTS, CHECK, DELETE•Nested colums are allowed•Main datatypes are allowed•Max 1GB documentsCREATE TABLE assets (item_name VARCHAR(32) PRIMARY KEY,dynamic_cols BLOB );INSERT INTO assets VALUES (MariaDB T-shirt,COLUMN_CREATE( color, blue,size, XL ) );INSERT INTO assets VALUES (Thinkpad Laptop,COLUMN_CREATE( color, black,price, 500 ) );5.5Friday, 14 June 13
  21. 21. PAGETokuDB•Fast inserts/increasedperformance•Increased Compression•Online administration•No Index rebuild215.5Friday, 14 June 13
  22. 22. PAGEMariaDB Replication•Global Transaction ID• Server id• Sequence no• Event group (gtid_log_event)• Replication stream•Multi-source Replication• up to 64 masters•Parallel Replication2210.0CHANGE MASTER n1 TO MASTER_HOST = node1’,MASTER_USER = user1,MASTER_PASSWORD = password1,MASTER_PORT = 3306;CHANGE MASTER n2 TO MASTER_HOST = node2’,MASTER_USER = user2,MASTER_PASSWORD = password2,MASTER_PORT = 3306;Friday, 14 June 13
  23. 23. PAGECassandra Storage Engine23•Column Family == Table•Rowkey, static and dynamiccolumns allowed•Batch key access supportSET cassandra_default_thrift_host =192.168.0.10CREATE TABLE cassandra_tbl (rowkey INT PRIMARY KEY,col1 VARCHAR(25),col2 BIGINT,dyn_cols BLOB DYNAMIC_COLUMN_STORAGE = yes )ENGINE = cassandraKEYSPACE = cassandra_key_spaceCOLUMN_FAMILY = column_family_name;10.0Friday, 14 June 13
  24. 24. PAGEConnect Storage Engine24•Any file format as MySQLTABLE:•ODBC•Text, XML, *ML•Excel,Access etc.•MariaDB CREATE TABLE options•Multi-file table•TableAutocreation•Condition push down•Read/Write and Multi Storage Engine Join•CREATE INDEXCREATE TABLE handoutENGINE = CONNECTTABLE_TYPE = XMLFILE_NAME = handout.htmHEADER = yes OPTION_LIST =name = TABLE,coltype = HTML,attribute =(border=1;cellpadding=5);10.0Friday, 14 June 13
  25. 25. ClusterAvailabilityFriday, 14 June 13
  26. 26. PAGEAutomatic Failover with Pacemaker26ReplicatorDatabaseDatabaseDatabase DatabaseDataStoreSkySQLManagerFriday, 14 June 13
  27. 27. PAGEAutomatic Failover with Pacemaker27ReplicatorDatabaseDatabaseDatabase DatabaseDataStoreSkySQLManager[root@node2 init.d]# crm status============Last updated: Sat Dec 1 12:42:03 2012Last change: Fri Nov 30 12:43:27 2012 via crm_attribute on node2Stack: openaisCurrent DC: node2 - partition with quorumVersion: 1.1.7-6.el6-148fccfd5985c5590cc601123c6c16e966b85d144 Nodes configured, 4 expected votes14 Resources configured.============Online: [ node2 node3 node1 node4 ]Master/Slave Set: ms_resMySQL [resMySQL]Masters: [ node2 ]Slaves: [ node1 node3 node4 ]AmazonEIP (lsb:amazon_master_eip): Started node2Clone Set: apache-php-myadmin [ApachePhpMyAdmin]Started: [ node1 node2 node3 node4 ]Resource Group: monyogmonyog-fs (ocf::custom:Filesystem): Started node2monyog-service (lsb:MONyogd): Started node2Resource Group: admin-consoleconsole-fs (ocf::custom:Filesystem): Started node2SkySQL-monitor (lsb:skysql_monitor): Started node2Tomcat7 (ocf::heartbeat:tomcat): Started node2Node2ElasticIPPublicIPsPublicIPsPublicIPsSkySQLManagerandMONyoggroupFriday, 14 June 13
  28. 28. SkySQL ManagerFriday, 14 June 13
  29. 29. PAGECharts and Monitors29Friday, 14 June 13
  30. 30. PAGETimeline30Friday, 14 June 13
  31. 31. PAGERESTfulAPI31Friday, 14 June 13
  32. 32. SkySQL GatewayFriday, 14 June 13
  33. 33. PAGESkySQL Gateway33Friday, 14 June 13
  34. 34. PAGESkySQL Gateway•For MariaDB 5.5 & 10, Oracleand Percona Server 5.5 & 5.6•MySQL Replication/MHA&Galera clusters•Local authentication•Automatic failover and onlineadministration•Multi-protocol architecture•Read load balancing•Read/Write splitting•Query partitioning•Table replication consistency•Connection multiplexing•Single-table and cross-tablequery sharding•Connections and query firewall•Query logging34Friday, 14 June 13
  35. 35. PAGETable Replication Consistency35DatabaseDatabaseDatabase Database DatabaseClient ApplicationCommunication ProtocolOutbound Protocol Outbound Protocol Outbound Protocol Outbound Protocol Outbound ProtocolTable M1 S1 S2 S3 S4T1 0 0 0 0 0T2 0 0 0 0 0T3 0 0 0 0 0T4 0 0 0 0 0INSERT INTO T1 VALUES ...1DatastoredintotableT1onM12ChangeonT1inthebinlog3ChangerecordedintotheGateway5Changepropagatedtotheslaves4Friday, 14 June 13
  36. 36. PAGETry SkySQL Manager now...36• Web:• www.skysql.com• www.mariadb.org• Downloads:• MariaDB: downloads.mariadb.org• SkySQL Manager for Galera:http://downloads.skysql.com/archives/SkySQL/skysql-enterprise/• Bugs: mariadb.atlassian.net/browse/MDEVbugs.skysql.comFriday, 14 June 13
  37. 37. PAGEWhat’s all the buzz?•Leading innovation in MySQL and in the MySQL Ecosystem•Integrating YesSQL and NoSQL >>> with a NewSQL approach•Being the leading open source database platform37Friday, 14 June 13
  38. 38. I Hope!Friday, 14 June 13
  39. 39. Thank You!Pictures from:Top Travel list - http://bit.ly/11ZiaPwPenton Media - http://bit.ly/12rehZSIGN - http://bit.ly/12reQTFNext Level Nutrition - http://bit.ly/12rg3KzThis presentation is posted here:www.skysql.comFriday, 14 June 13

×