• Save
SkySQL & MariaDB What's all the buzz?
Upcoming SlideShare
Loading in...5
×
 

SkySQL & MariaDB What's all the buzz?

on

  • 1,218 views

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

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

Statistics

Views

Total Views
1,218
Views on SlideShare
1,218
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

SkySQL & MariaDB What's all the buzz? SkySQL & MariaDB What's all the buzz? Presentation Transcript

  • 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 View slide
  • PAGEThe SkySQL View4Friday, 14 June 13 View slide
  • 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 June 13
  • PAGE 14Configuration& ProvisioningSkySQL EnterpriseSkySQL ClusterMariaDBServerMHA GaleraSkySQLManagerGUIAPIMonitorGatewayThe SkySQL ViewFriday, 14 June 13
  • PAGE 15SkySQL Data SuiteConfiguration& ProvisioningSkySQL EnterpriseSkySQL ClusterMariaDBServerMHA GaleraSkySQLManagerGUIAPIMonitorGatewayThe SkySQL ViewFriday, 14 June 13
  • MariaDBFriday, 14 June 13
  • 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
  • PAGEGroup Commit185.5COMMIT&Friday, 14 June 13
  • 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
  • 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
  • PAGETokuDB•Fast inserts/increasedperformance•Increased Compression•Online administration•No Index rebuild215.5Friday, 14 June 13
  • 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
  • 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
  • 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
  • ClusterAvailabilityFriday, 14 June 13
  • PAGEAutomatic Failover with Pacemaker26ReplicatorDatabaseDatabaseDatabase DatabaseDataStoreSkySQLManagerFriday, 14 June 13
  • 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
  • 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 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
  • 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
  • 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
  • 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
  • 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/12reQTFNext Level Nutrition - http://bit.ly/12rg3KzThis presentation is posted here:www.skysql.comFriday, 14 June 13