Contenu connexe Similaire à SkySQL & MariaDB What's all the buzz? (20) Plus de Ivan Zoratti (17) SkySQL & MariaDB What's all the buzz?15. PAGE 15
SkySQL Data Suite
Configuration
& Provisioning
SkySQL Enterprise
SkySQL Cluster
MariaDB
Server
MHA Galera
SkySQL
Manager
GUI
API
Monitor
Gateway
The SkySQL View
Friday, 14 June 13
17. PAGE
Optimizer Enhancements
17
5.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.6
https://kb.askmonty.org/en/optimizer-feature-comparison-matrix/
Friday, 14 June 13
19. PAGE
Atomic Writes with FusionIO
19
5.5
innodb_use_atomic_writes
innodb_doublewrite=0
innodb_file_flush_method=
O_DIRECT |
ALL_O_DIRECT |
O_DIRECT_NO_FSYNC
•Used with DirectFS
•Lower latency
•Increased Flash life
•Less write amplification
Friday, 14 June 13
20. PAGE
Virtual & Dynamic Columns
20
VIRTUAL 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 documents
CREATE 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.5
Friday, 14 June 13
22. PAGE
MariaDB Replication
•Global Transaction ID
• Server id
• Sequence no
• Event group (gtid_log_event)
• Replication stream
•Multi-source Replication
• up to 64 masters
•Parallel Replication
22
10.0
CHANGE 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. PAGE
Cassandra Storage Engine
23
•Column Family == Table
•Rowkey, static and dynamic
columns allowed
•Batch key access support
SET cassandra_default_thrift_host =
'192.168.0.10'
CREATE TABLE cassandra_tbl (
rowkey INT PRIMARY KEY,
col1 VARCHAR(25),
col2 BIGINT,
dyn_cols BLOB DYNAMIC_COLUMN_STORAGE = yes )
ENGINE = cassandra
KEYSPACE = 'cassandra_key_space'
COLUMN_FAMILY = 'column_family_name';
10.0
Friday, 14 June 13
24. PAGE
Connect Storage Engine
24
•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 INDEX
CREATE TABLE handout
ENGINE = CONNECT
TABLE_TYPE = XML
FILE_NAME = 'handout.htm'
HEADER = yes OPTION_LIST =
'name = TABLE,
coltype = HTML,
attribute =
(border=1;cellpadding=5)';
10.0
Friday, 14 June 13
27. PAGE
Automatic Failover with Pacemaker
27
Replicator
Database
Database
Database Database
DataStoreSkySQL
Manager
[root@node2 init.d]# crm status
============
Last updated: Sat Dec 1 12:42:03 2012
Last change: Fri Nov 30 12:43:27 2012 via crm_attribute on node2
Stack: openais
Current DC: node2 - partition with quorum
Version: 1.1.7-6.el6-148fccfd5985c5590cc601123c6c16e966b85d14
4 Nodes configured, 4 expected votes
14 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 node2
Clone Set: apache-php-myadmin [ApachePhpMyAdmin]
Started: [ node1 node2 node3 node4 ]
Resource Group: monyog
monyog-fs (ocf::custom:Filesystem): Started node2
monyog-service (lsb:MONyogd): Started node2
Resource Group: admin-console
console-fs (ocf::custom:Filesystem): Started node2
SkySQL-monitor (lsb:skysql_monitor): Started node2
Tomcat7 (ocf::heartbeat:tomcat): Started node2
Node2
ElasticIP
PublicIPsPublicIPsPublicIPs
SkySQLManagerand
MONyoggroup
Friday, 14 June 13
34. PAGE
SkySQL Gateway
•For MariaDB 5.5 & 10, Oracle
and Percona Server 5.5 & 5.6
•MySQL Replication/MHA&
Galera clusters
•Local authentication
•Automatic failover and online
administration
•Multi-protocol architecture
•Read load balancing
•Read/Write splitting
•Query partitioning
•Table replication consistency
•Connection multiplexing
•Single-table and cross-table
query sharding
•Connections and query firewall
•Query logging
34
Friday, 14 June 13
35. PAGE
Table Replication Consistency
35
Database
Database
Database Database Database
Client Application
Communication Protocol
Outbound Protocol Outbound Protocol Outbound Protocol Outbound Protocol Outbound Protocol
Table M1 S1 S2 S3 S4
T1 0 0 0 0 0
T2 0 0 0 0 0
T3 0 0 0 0 0
T4 0 0 0 0 0
INSERT INTO T1 VALUES ...
1
DatastoredintotableT1onM1
2
ChangeonT1inthebinlog
3
Changerecorded
intotheGateway
5
Changepropagated
totheslaves
4
Friday, 14 June 13
36. PAGE
Try 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/MDEV
bugs.skysql.com
Friday, 14 June 13
37. PAGE
What’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 platform
37
Friday, 14 June 13
39. Thank You!
Pictures from:
Top Travel list - http://bit.ly/11ZiaPw
Penton Media - http://bit.ly/12rehZS
IGN - http://bit.ly/12reQTF
Next Level Nutrition - http://bit.ly/12rg3Kz
This presentation is posted here:www.skysql.com
Friday, 14 June 13