SlideShare una empresa de Scribd logo
1 de 41
Descargar para leer sin conexión
MariaDB 5.5 and what
      comes next
         Colin Charles, Monty Program Ab
  colin@montyprogram.com | colin@mariadb.org
http:/ /montyprogram.com/ | http:/ /mariadb.org/
http:/  /bytebot.net/blog/ | @bytebot on Twitter
         Percona Live NYC, New York, USA
                  2 October 2012
whoami


MariaDB guy at Monty Program Ab

Formerly MySQL AB/Sun Microsystems

Past lives included Fedora Project (FESCO),
OpenOffice.org
Aims


32 months, four major releases
(5.1,5.2,5.3,5.5) & more (Galera Cluster, 10.0)

Discuss the broader MySQL ecosystem

The future of MariaDB
MariaDB is... (currently)
 Community developed

 Feature enhanced

   branch of MySQL with more

 Backwards compatible

   not a fork

   feature complete
Ownership

MySQL (database) owned by MySQL AB
(company) -> Sun -> Oracle

Monty Program is just a (major) sponsor of
MariaDB

maria-captains: 50% MP, 50% community
including Sphinxsearch, Twitter, SkySQL,
Taobao, Facebook, Percona, Codership, & more
Compatibility with
        MySQL
NDB cluster included,      XtraDB enabled by
but not enabled by         default now. InnoDB
default                    included too & may
                           change to default
Client libraries, client
server protocol, SQL       MariaDB Galera Cluster
dialect, master-slave      is a separate download
replication all same
                           http://kb.askmonty.org/
Data files supported as     v/mariadb-versus-
long as same versions      mysql-compatibility
MariaDB 5.5

GA April 2012

https://kb.askmonty.org/en/what-is-
mariadb-55/

Current release: MariaDB 5.5.27

By far the most popular release of MariaDB
downloaded, in use, today
MariaDB 5.5: an
opensource threadpool
Modified from 5.1          No minimization of
(libevent based), great   concurrent transactions
for CPU bound loads       with dynamic pool size
and short running
queries

Windows (threadpool),
Linux (epoll), Solaris
(event ports), FreeBSD/
OSX (kevents)
MariaDB 5.5: Better for
        DBAs
 non-blocking client library   SELECT now has LIMIT
                               ROWS EXAMINED to
    start operation, do        consume less resources
    work in thread,
    operation processed,          SELECT * from t1,
    result travels back           t2 LIMIT 10 ROWS
                                  EXAMINED 1000;
    use cases: multiple
    queries against single
    server (utilize more
    CPUs); queries against
    multiple servers
    (SHOW STATUS on
    many machines)
That’s it?
From December 2010 to April 2012, 2 features
         for a 16 month delay?!?
MariaDB 5.3

Biggest change in the optimizer since it was
written

Replication improvements

Released February 2012

Based on the MySQL 5.1 codebase
Better replication

Original statements logged with row based
replication (RBR) events

Checksum for binlog events

RBR works for tables with no primary key

Consistent snapshot between storage engines
Group commit in the
    binary log
sync_binlog=1,                       http://kb.askmonty.org/en/group-
innodb_flush_log_at_trx_commit=1      commit-for-the-binary-log

https://www.facebook.com/note.php?
note_id=10150261692455933
MariaDB 5.3: GIS
       support!
MySQL has OpenGIS SFS (Simple feature
access, SQL access method)

Now, SQL with full geometry types

ST_ prefix

http://kb.askmonty.org/en/gis-features-
in-533
Optimizer enhancements
 Join additions

    block nested loop joins for outer-joins, block hash
    joins, Batched Key Access (BKA)

 Optimization for derived tables & views

    mergeable derived tables processed like VIEWs +
    optimizer creates indexes over materialized derived
    tables

 Disk access optimization

    ICP, MRR
Subquery optimizations
 Semi-join             Goodbye rewriting as
 optimization,         JOINs or separate
 materialization for   queries
 non-correlated IN
 queries, subquery
 cache




                          DBT-3, 60M rows, 29GB XtraDB
Welcome MySQL 5.6
Instant EXPLAIN

https://
kb.askmonty.org/
en/optimizer-
feature-
comparison-
matrix/

Optimizer trace
in 5.6?
Progress reporting
For ALTER TABLE or LOAD DATA INFILE

MariaDB [mail]> alter table mail engine = maria;

Stage: 1 of 2 'copy to tmp table' 17.55% of stage done
MariaDB [mail]> select id, user, db, command, state,
-> time_ms, progress from information_schema.processlist;
+---------+-------------------+-----------+----------+
| command | state                      | time_ms   | progress |
+---------+-------------------+-----------+----------+
| Query      | copy to tmp table | 23407.131 |         17.551 |
+---------+-------------------+-----------+----------+
1 row in set (0.47 sec)
NoSQL access methods

Comes with HandlerSocket

  direct access to XtraDB/InnoDB for CRUD
  operations

Dynamic columns

  create columns with dynamic content

  basically a blob with handling functions
MariaDB 5.2
Released November 2011

Pluggable authentication w/PAM plugin

User statistics: CLIENT_STATISTICS,
USER_STATISTICS, INDEX_STATISTICS,
TABLE_STATISTICS (userstats=1)

Virtual columns - PERSISTENT or VIRTUAL

SphinxSE storage engine started shipping
Still using MyISAM?
Mitigates thread contention for key cache
lock, with notable performance improvements

Key caches divided into different segments,
allowing for better key cache concurrency

1-64 segments
MariaDB 5.1

Arrived February 2010

Storage engines: XtraDB, FederatedX, PBXT*,
OQGRAPH*, Aria, etc.

microslow patch, processlist w/microsecond
precision

table elimination
How do we support all
          this?
                     Support    Latest
Version   Released                       MySQL
                       till    release
5.1.42    Feb 2010 Feb 2015    5.1.62    5.1.63

 5.2.3    Nov 2010 Nov 2015    5.2.12    5.1.63

 5.3.5    Feb 2012 Feb 2017     5.3.8    5.1.65

5.5.23    Apr 2012 Apr 2017    5.5.27    5.5.27
Oh, and we’re fast
 Oracle loves MySQL performance on
 Microsoft Windows. So do we




OLTP read-only         OLTP write-only
How open is MariaDB?
Mailing lists: Launchpad     http://
                             launchpad.net/
   maria-                    maria/
   developers@lists.lau
   nchpad.net              Bugs database/feature
                           worklog: Jira
   maria-
   discuss@lists.launchp     http://
   ad.net                    mariadb.atlassian.ne
                             t/
Code hosting:
Launchpad                  #maria on freenode
Knowledgebase
Deployments!
 happy users: pap.fr, wabtec, Paybox Services,
                                                       “We made the switch on
 OLX, Jelastic, Web of Trust, SaltOS, ERP5, etc.     Saturday -- and we’re seeing
“MariaDB had these same bugs that we ran into        benefits already -- our daily
with MySQL. However the big difference was          optimization time is down from
that when we reported these bugs, they were        24 minutes to just 4 minutes” --
quickly resolved within 48 hours!” -- Dreas van    Ali Watters, CEO, travelblog.org
Donselaar, Chief Technology Officer, SpamExperts
B.V. after migrating over 300 servers from
MySQL 5.0 to MariaDB 5.1.
                                “Migrating from MySQL 5.1 to MariaDB 5.2 was
                                as simple as removing MySQL RPMs and installing
                                the MariaDB packages, then running
                                mysql_upgrade.” - Panayot Belchev, proprietor,
                                Host Bulgaria on providing
                                MariaDB to over 7,000 of their web hosting
                                customers.
Getting MariaDB

http://mariadb.org/ has repositories
(APT,YUM) & regular downloads

OpenSUSE build service

Gentoo, FreeBSD, Homebrew, Mageia, many
distributions

http://kb.askmonty.org/v/distributions-which-
include-mariadb
We have a book
Other branches

MySQL Percona MariaDB MySQL Percona   MariaDB


5.5.20   7.7M   61M   5.5.20 222299   1587843


5.5.22   16M    60M   5.5.22 438567   1540932
What are we missing
from Percona Server?
percona_innodb_buffer_pool_shm - requires
big shmax not default on many systems

percona_log_slow_query_log-
log_slow_verbosity - InnoDB filtering
information not fully in MariaDB

Disabled test suite is awesome resource :)
percona_suppress_log_warning_1592                      percona_slow_extended-log_slow_verbosity-cl

percona_log_slow_slave_statements                      slow_query_log_use_global_control

percona_log_slow_slave_statements-and-                 percona_slow_extended-use_global_control
use_global_long_query_time
                                                       percona_slow_query_log-log_slow_verbosity
percona_slow_query_log-control_global_slow
                                                       percona_slow_extended-log_slow_verbosity
percona_slow_query_log-
microseconds_in_slow_query_log                         percona_slow_extended-microseconds_in_slow_extended

percona_query_cache_with_comments                      percona_slow_extended-use_global_long_query_time

percona_query_cache_with_comments_prepared_statement   percona_slow_extended-
s                                                      slow_query_log_timestamp_always-cl

percona_show_temp_tables                               percona_slow_extended-
                                                       slow_query_log_microseconds_timestamp-cl
percona_slow_query_log-use_global_long_query_time
                                                       percona_bug643149
percona_query_cache_with_comments_disable
                                                       percona_processlist_row_stats
percona_log_connection_error
                                                       percona_server_variables_debug
percona_query_response_time
                                                       percona_slow_extended-slave_statements
percona_query_response_time-stored
                                                       percona_show_slave_status_nolock
percona_sql_no_fcache
                                                       percona_slow_extended-slave_innodb_stats
percona_status_wait_query_cache_mutex
                                                       percona_slow_extended-slave_statements-and-
percona_slave_innodb_stats                             use_global_long_query_time

percona_query_response_time-replication                userstat_bug602047

percona_server_variables_debug                         percona_innodb_expand_fast_index_creation

percona_server_variables_release                       percona_innodb_kill_idle_trx

percona_log_warnings_suppress                          percona_innodb_kill_idle_trx_locks

percona_slow_extended-log_slow_sp_statements-cl
Faster even?
            read only? InnoDB/XtraDB is fine
InnoDB has higher throughput, but stalls & checkpoints w/
                     high write load
Track record
We found the latest MySQL security bug and MariaDB
was first to be patched (sql/password.c & memcmp())

We don’t like regressions

   http://www.skysql.com/blogs/hartmut/nasty-
   innodb-regression-mysql-5525

We care about backward compatibility & introduce
features carefully

   XtraDB innodb_adaptive_checkpoint=none|reflex|
   estimate|keep_average (no more reflex...)
User stats plugin
     Disabled by default, consider enabling it to
     show use! http://mariadb.org/feedback_plugin/




data from over 85
    countries!
We love the community

 Tokutek’s TokuDB ships with MariaDB too

 groonga is to be merged

 We’re looking at spider next

 Multiple software packages talk about us (as
 an alternative to MySQL): Drupal, MediaWiki,
 Plone, phpMyAdmin, WordPress, etc.
Future
MySQL 5.6 just RC, we have most features in 5.5

MariaDB 10.0

   new InnoDB inside MariaDB (done)

   Global transaction ID support

   Multi-source replication (done)

   Enhanced semisync replication

   Persistent InnoDB statistics (done)

   Cassandra Storage Engine (done), HBase Storage Engine
MariaDB Galera Cluster
http://kb.askmonty.org/en/galera/

                                    Now in
                                    ALPHA!
Support

mariadb.org/service-providers/

SkySQL, Percona, FromDual, PalominoDB,
OpenQuery

Monty Program does developer support &
NRE

  http://montyprogram.com/developer-
  support/
We’re incredibly social


facebook: fb.com/MariaDB.dbms

twitter: @mariadb

google plus: gplus.to/mariadb

we also have a LinkedIn group
Q&A
  colin@montyprogram.com | colin@mariadb.org
http:/ /montyprogram.com/ | http:/ /mariadb.org/
twitter: @bytebot | url: http://bytebot.net/blog/

Más contenido relacionado

La actualidad más candente

MariaDB 10 and what's new with the project
MariaDB 10 and what's new with the projectMariaDB 10 and what's new with the project
MariaDB 10 and what's new with the project
Colin Charles
 
MHA: Getting started & moving past quirks percona live santa clara 2013
MHA: Getting started & moving past quirks percona live santa clara 2013MHA: Getting started & moving past quirks percona live santa clara 2013
MHA: Getting started & moving past quirks percona live santa clara 2013
Colin Charles
 

La actualidad más candente (20)

MariaDB 10: A MySQL Replacement - HKOSC
MariaDB 10: A MySQL Replacement - HKOSC MariaDB 10: A MySQL Replacement - HKOSC
MariaDB 10: A MySQL Replacement - HKOSC
 
Tuning Linux for your database FLOSSUK 2016
Tuning Linux for your database FLOSSUK 2016Tuning Linux for your database FLOSSUK 2016
Tuning Linux for your database FLOSSUK 2016
 
MariaDB - a MySQL Replacement #SELF2014
MariaDB - a MySQL Replacement #SELF2014MariaDB - a MySQL Replacement #SELF2014
MariaDB - a MySQL Replacement #SELF2014
 
MariaDB 10.1 what's new and what's coming in 10.2 - Tokyo MariaDB Meetup
MariaDB 10.1   what's new and what's coming in 10.2 - Tokyo MariaDB MeetupMariaDB 10.1   what's new and what's coming in 10.2 - Tokyo MariaDB Meetup
MariaDB 10.1 what's new and what's coming in 10.2 - Tokyo MariaDB Meetup
 
Introduction to MariaDB
Introduction to MariaDBIntroduction to MariaDB
Introduction to MariaDB
 
MariaDB 10 Tutorial - 13.11.11 - Percona Live London
MariaDB 10 Tutorial - 13.11.11 - Percona Live LondonMariaDB 10 Tutorial - 13.11.11 - Percona Live London
MariaDB 10 Tutorial - 13.11.11 - Percona Live London
 
Meet MariaDB Server 10.1 London MySQL meetup December 2015
Meet MariaDB Server 10.1 London MySQL meetup December 2015Meet MariaDB Server 10.1 London MySQL meetup December 2015
Meet MariaDB Server 10.1 London MySQL meetup December 2015
 
MariaDB 10.0 - SkySQL Paris Meetup
MariaDB 10.0 - SkySQL Paris MeetupMariaDB 10.0 - SkySQL Paris Meetup
MariaDB 10.0 - SkySQL Paris Meetup
 
MariaDB 10 and what's new with the project
MariaDB 10 and what's new with the projectMariaDB 10 and what's new with the project
MariaDB 10 and what's new with the project
 
The MySQL Server ecosystem in 2016
The MySQL Server ecosystem in 2016The MySQL Server ecosystem in 2016
The MySQL Server ecosystem in 2016
 
MHA: Getting started & moving past quirks percona live santa clara 2013
MHA: Getting started & moving past quirks percona live santa clara 2013MHA: Getting started & moving past quirks percona live santa clara 2013
MHA: Getting started & moving past quirks percona live santa clara 2013
 
MariaDB - the "new" MySQL is 5 years old and everywhere (LinuxCon Europe 2015)
MariaDB - the "new" MySQL is 5 years old and everywhere (LinuxCon Europe 2015)MariaDB - the "new" MySQL is 5 years old and everywhere (LinuxCon Europe 2015)
MariaDB - the "new" MySQL is 5 years old and everywhere (LinuxCon Europe 2015)
 
Lessons from database failures
Lessons from database failuresLessons from database failures
Lessons from database failures
 
Why MariaDB?
Why MariaDB?Why MariaDB?
Why MariaDB?
 
Distributions from the view a package
Distributions from the view a packageDistributions from the view a package
Distributions from the view a package
 
MariaDB Server & MySQL Security Essentials 2016
MariaDB Server & MySQL Security Essentials 2016MariaDB Server & MySQL Security Essentials 2016
MariaDB Server & MySQL Security Essentials 2016
 
Cool MariaDB Plugins
Cool MariaDB Plugins Cool MariaDB Plugins
Cool MariaDB Plugins
 
MariaDB: in-depth (hands on training in Seoul)
MariaDB: in-depth (hands on training in Seoul)MariaDB: in-depth (hands on training in Seoul)
MariaDB: in-depth (hands on training in Seoul)
 
Best practices for MySQL/MariaDB Server/Percona Server High Availability
Best practices for MySQL/MariaDB Server/Percona Server High AvailabilityBest practices for MySQL/MariaDB Server/Percona Server High Availability
Best practices for MySQL/MariaDB Server/Percona Server High Availability
 
MariaDB 10: The Complete Tutorial
MariaDB 10: The Complete TutorialMariaDB 10: The Complete Tutorial
MariaDB 10: The Complete Tutorial
 

Destacado

Destacado (7)

Bootstrapping Using Free Software
Bootstrapping Using Free SoftwareBootstrapping Using Free Software
Bootstrapping Using Free Software
 
Google Sites Lightning Talk
Google  Sites  Lightning  TalkGoogle  Sites  Lightning  Talk
Google Sites Lightning Talk
 
起業家江副浩正
起業家江副浩正起業家江副浩正
起業家江副浩正
 
[db tech showcase Tokyo 2016] B24: そのデータベース 5年後大丈夫ですか ~ 本気で標準化とサービスレベルの確保を手に入...
[db tech showcase Tokyo 2016] B24: そのデータベース 5年後大丈夫ですか ~ 本気で標準化とサービスレベルの確保を手に入...[db tech showcase Tokyo 2016] B24: そのデータベース 5年後大丈夫ですか ~ 本気で標準化とサービスレベルの確保を手に入...
[db tech showcase Tokyo 2016] B24: そのデータベース 5年後大丈夫ですか ~ 本気で標準化とサービスレベルの確保を手に入...
 
[오픈소스컨설팅]Day #1 MySQL 엔진소개, 튜닝, 백업 및 복구, 업그레이드방법
[오픈소스컨설팅]Day #1 MySQL 엔진소개, 튜닝, 백업 및 복구, 업그레이드방법[오픈소스컨설팅]Day #1 MySQL 엔진소개, 튜닝, 백업 및 복구, 업그레이드방법
[오픈소스컨설팅]Day #1 MySQL 엔진소개, 튜닝, 백업 및 복구, 업그레이드방법
 
Partitions Performance with MySQL 5.1 and 5.5
Partitions Performance with MySQL 5.1 and 5.5Partitions Performance with MySQL 5.1 and 5.5
Partitions Performance with MySQL 5.1 and 5.5
 
Forking Successfully - or is a branch better?
Forking Successfully - or is a branch better?Forking Successfully - or is a branch better?
Forking Successfully - or is a branch better?
 

Similar a MariaDB 5.5 and what comes next - Percona Live NYC 2012

Maria db the new mysql (Colin Charles)
Maria db the new mysql (Colin Charles)Maria db the new mysql (Colin Charles)
Maria db the new mysql (Colin Charles)
Ontico
 
Mysql User Camp : 20th June - Mysql New Features
Mysql User Camp : 20th June - Mysql New FeaturesMysql User Camp : 20th June - Mysql New Features
Mysql User Camp : 20th June - Mysql New Features
Tarique Saleem
 
Megha_Osi my sql productroadmap
Megha_Osi my sql productroadmapMegha_Osi my sql productroadmap
Megha_Osi my sql productroadmap
OpenSourceIndia
 

Similar a MariaDB 5.5 and what comes next - Percona Live NYC 2012 (20)

Maria db the new mysql (Colin Charles)
Maria db the new mysql (Colin Charles)Maria db the new mysql (Colin Charles)
Maria db the new mysql (Colin Charles)
 
NoSQL on MySQL - MySQL Document Store by Vadim Tkachenko
NoSQL on MySQL - MySQL Document Store by Vadim TkachenkoNoSQL on MySQL - MySQL Document Store by Vadim Tkachenko
NoSQL on MySQL - MySQL Document Store by Vadim Tkachenko
 
My sql 56_roadmap_april2012
My sql 56_roadmap_april2012My sql 56_roadmap_april2012
My sql 56_roadmap_april2012
 
Differences between MariaDB 10.3 & MySQL 8.0
Differences between MariaDB 10.3 & MySQL 8.0Differences between MariaDB 10.3 & MySQL 8.0
Differences between MariaDB 10.3 & MySQL 8.0
 
Fudcon talk.ppt
Fudcon talk.pptFudcon talk.ppt
Fudcon talk.ppt
 
MySQL Replication Evolution -- Confoo Montreal 2017
MySQL Replication Evolution -- Confoo Montreal 2017MySQL Replication Evolution -- Confoo Montreal 2017
MySQL Replication Evolution -- Confoo Montreal 2017
 
Customer Experience: InnoDB Cluster Implementation by PR Karthik
Customer Experience: InnoDB Cluster Implementation by PR KarthikCustomer Experience: InnoDB Cluster Implementation by PR Karthik
Customer Experience: InnoDB Cluster Implementation by PR Karthik
 
InnoDB Cluster Experience (MySQL User Camp)
InnoDB Cluster Experience (MySQL User Camp)InnoDB Cluster Experience (MySQL User Camp)
InnoDB Cluster Experience (MySQL User Camp)
 
MySQL Scalability and Reliability for Replicated Environment
MySQL Scalability and Reliability for Replicated EnvironmentMySQL Scalability and Reliability for Replicated Environment
MySQL Scalability and Reliability for Replicated Environment
 
Exploring mysql cluster 7.4
Exploring mysql cluster 7.4Exploring mysql cluster 7.4
Exploring mysql cluster 7.4
 
MySQL Performance Tuning. Part 1: MySQL Configuration (includes MySQL 5.7)
MySQL Performance Tuning. Part 1: MySQL Configuration (includes MySQL 5.7)MySQL Performance Tuning. Part 1: MySQL Configuration (includes MySQL 5.7)
MySQL Performance Tuning. Part 1: MySQL Configuration (includes MySQL 5.7)
 
Mysql User Camp : 20th June - Mysql New Features
Mysql User Camp : 20th June - Mysql New FeaturesMysql User Camp : 20th June - Mysql New Features
Mysql User Camp : 20th June - Mysql New Features
 
Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support
 Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support
Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support
 
[db tech showcase Tokyo 2014] B15: Scalability with MariaDB and MaxScale by ...
[db tech showcase Tokyo 2014] B15: Scalability with MariaDB and MaxScale  by ...[db tech showcase Tokyo 2014] B15: Scalability with MariaDB and MaxScale  by ...
[db tech showcase Tokyo 2014] B15: Scalability with MariaDB and MaxScale by ...
 
MySQL 5.7: What's New, Nov. 2015
MySQL 5.7: What's New, Nov. 2015MySQL 5.7: What's New, Nov. 2015
MySQL 5.7: What's New, Nov. 2015
 
Megha_Osi my sql productroadmap
Megha_Osi my sql productroadmapMegha_Osi my sql productroadmap
Megha_Osi my sql productroadmap
 
ConFoo MySQL Replication Evolution : From Simple to Group Replication
ConFoo  MySQL Replication Evolution : From Simple to Group ReplicationConFoo  MySQL Replication Evolution : From Simple to Group Replication
ConFoo MySQL Replication Evolution : From Simple to Group Replication
 
MariaDB 10 and Beyond
MariaDB 10 and BeyondMariaDB 10 and Beyond
MariaDB 10 and Beyond
 
MySQL Scalability and Reliability for Replicated Environment
MySQL Scalability and Reliability for Replicated EnvironmentMySQL Scalability and Reliability for Replicated Environment
MySQL Scalability and Reliability for Replicated Environment
 
MariaDB - Fast, Easy & Strong - Get Started Tutorial
MariaDB - Fast, Easy & Strong - Get Started TutorialMariaDB - Fast, Easy & Strong - Get Started Tutorial
MariaDB - Fast, Easy & Strong - Get Started Tutorial
 

Más de Colin Charles

Más de Colin Charles (17)

What is MariaDB Server 10.3?
What is MariaDB Server 10.3?What is MariaDB Server 10.3?
What is MariaDB Server 10.3?
 
Databases in the hosted cloud
Databases in the hosted cloud Databases in the hosted cloud
Databases in the hosted cloud
 
MySQL features missing in MariaDB Server
MySQL features missing in MariaDB ServerMySQL features missing in MariaDB Server
MySQL features missing in MariaDB Server
 
The MySQL ecosystem - understanding it, not running away from it!
The MySQL ecosystem - understanding it, not running away from it! The MySQL ecosystem - understanding it, not running away from it!
The MySQL ecosystem - understanding it, not running away from it!
 
Databases in the Hosted Cloud
Databases in the Hosted CloudDatabases in the Hosted Cloud
Databases in the Hosted Cloud
 
Best practices for MySQL High Availability Tutorial
Best practices for MySQL High Availability TutorialBest practices for MySQL High Availability Tutorial
Best practices for MySQL High Availability Tutorial
 
Percona ServerをMySQL 5.6と5.7用に作るエンジニアリング(そしてMongoDBのヒント)
Percona ServerをMySQL 5.6と5.7用に作るエンジニアリング(そしてMongoDBのヒント)Percona ServerをMySQL 5.6と5.7用に作るエンジニアリング(そしてMongoDBのヒント)
Percona ServerをMySQL 5.6と5.7用に作るエンジニアリング(そしてMongoDBのヒント)
 
Capacity planning for your data stores
Capacity planning for your data storesCapacity planning for your data stores
Capacity planning for your data stores
 
The Proxy Wars - MySQL Router, ProxySQL, MariaDB MaxScale
The Proxy Wars - MySQL Router, ProxySQL, MariaDB MaxScaleThe Proxy Wars - MySQL Router, ProxySQL, MariaDB MaxScale
The Proxy Wars - MySQL Router, ProxySQL, MariaDB MaxScale
 
Lessons from {distributed,remote,virtual} communities and companies
Lessons from {distributed,remote,virtual} communities and companiesLessons from {distributed,remote,virtual} communities and companies
Lessons from {distributed,remote,virtual} communities and companies
 
MariaDB Server Compatibility with MySQL
MariaDB Server Compatibility with MySQLMariaDB Server Compatibility with MySQL
MariaDB Server Compatibility with MySQL
 
Securing your MySQL / MariaDB Server data
Securing your MySQL / MariaDB Server dataSecuring your MySQL / MariaDB Server data
Securing your MySQL / MariaDB Server data
 
The MySQL Server Ecosystem in 2016
The MySQL Server Ecosystem in 2016The MySQL Server Ecosystem in 2016
The MySQL Server Ecosystem in 2016
 
The Complete MariaDB Server tutorial
The Complete MariaDB Server tutorialThe Complete MariaDB Server tutorial
The Complete MariaDB Server tutorial
 
Lessons from database failures
Lessons from database failures Lessons from database failures
Lessons from database failures
 
Lessons from database failures
Lessons from database failuresLessons from database failures
Lessons from database failures
 
My first moments with MongoDB
My first moments with MongoDBMy first moments with MongoDB
My first moments with MongoDB
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 

MariaDB 5.5 and what comes next - Percona Live NYC 2012

  • 1. MariaDB 5.5 and what comes next Colin Charles, Monty Program Ab colin@montyprogram.com | colin@mariadb.org http:/ /montyprogram.com/ | http:/ /mariadb.org/ http:/ /bytebot.net/blog/ | @bytebot on Twitter Percona Live NYC, New York, USA 2 October 2012
  • 2. whoami MariaDB guy at Monty Program Ab Formerly MySQL AB/Sun Microsystems Past lives included Fedora Project (FESCO), OpenOffice.org
  • 3. Aims 32 months, four major releases (5.1,5.2,5.3,5.5) & more (Galera Cluster, 10.0) Discuss the broader MySQL ecosystem The future of MariaDB
  • 4. MariaDB is... (currently) Community developed Feature enhanced branch of MySQL with more Backwards compatible not a fork feature complete
  • 5. Ownership MySQL (database) owned by MySQL AB (company) -> Sun -> Oracle Monty Program is just a (major) sponsor of MariaDB maria-captains: 50% MP, 50% community including Sphinxsearch, Twitter, SkySQL, Taobao, Facebook, Percona, Codership, & more
  • 6. Compatibility with MySQL NDB cluster included, XtraDB enabled by but not enabled by default now. InnoDB default included too & may change to default Client libraries, client server protocol, SQL MariaDB Galera Cluster dialect, master-slave is a separate download replication all same http://kb.askmonty.org/ Data files supported as v/mariadb-versus- long as same versions mysql-compatibility
  • 7. MariaDB 5.5 GA April 2012 https://kb.askmonty.org/en/what-is- mariadb-55/ Current release: MariaDB 5.5.27 By far the most popular release of MariaDB downloaded, in use, today
  • 8. MariaDB 5.5: an opensource threadpool Modified from 5.1 No minimization of (libevent based), great concurrent transactions for CPU bound loads with dynamic pool size and short running queries Windows (threadpool), Linux (epoll), Solaris (event ports), FreeBSD/ OSX (kevents)
  • 9. MariaDB 5.5: Better for DBAs non-blocking client library SELECT now has LIMIT ROWS EXAMINED to start operation, do consume less resources work in thread, operation processed, SELECT * from t1, result travels back t2 LIMIT 10 ROWS EXAMINED 1000; use cases: multiple queries against single server (utilize more CPUs); queries against multiple servers (SHOW STATUS on many machines)
  • 10. That’s it? From December 2010 to April 2012, 2 features for a 16 month delay?!?
  • 11. MariaDB 5.3 Biggest change in the optimizer since it was written Replication improvements Released February 2012 Based on the MySQL 5.1 codebase
  • 12. Better replication Original statements logged with row based replication (RBR) events Checksum for binlog events RBR works for tables with no primary key Consistent snapshot between storage engines
  • 13. Group commit in the binary log sync_binlog=1, http://kb.askmonty.org/en/group- innodb_flush_log_at_trx_commit=1 commit-for-the-binary-log https://www.facebook.com/note.php? note_id=10150261692455933
  • 14. MariaDB 5.3: GIS support! MySQL has OpenGIS SFS (Simple feature access, SQL access method) Now, SQL with full geometry types ST_ prefix http://kb.askmonty.org/en/gis-features- in-533
  • 15. Optimizer enhancements Join additions block nested loop joins for outer-joins, block hash joins, Batched Key Access (BKA) Optimization for derived tables & views mergeable derived tables processed like VIEWs + optimizer creates indexes over materialized derived tables Disk access optimization ICP, MRR
  • 16. Subquery optimizations Semi-join Goodbye rewriting as optimization, JOINs or separate materialization for queries non-correlated IN queries, subquery cache DBT-3, 60M rows, 29GB XtraDB
  • 17. Welcome MySQL 5.6 Instant EXPLAIN https:// kb.askmonty.org/ en/optimizer- feature- comparison- matrix/ Optimizer trace in 5.6?
  • 18. Progress reporting For ALTER TABLE or LOAD DATA INFILE MariaDB [mail]> alter table mail engine = maria; Stage: 1 of 2 'copy to tmp table' 17.55% of stage done MariaDB [mail]> select id, user, db, command, state, -> time_ms, progress from information_schema.processlist; +---------+-------------------+-----------+----------+ | command | state | time_ms | progress | +---------+-------------------+-----------+----------+ | Query | copy to tmp table | 23407.131 | 17.551 | +---------+-------------------+-----------+----------+ 1 row in set (0.47 sec)
  • 19. NoSQL access methods Comes with HandlerSocket direct access to XtraDB/InnoDB for CRUD operations Dynamic columns create columns with dynamic content basically a blob with handling functions
  • 20. MariaDB 5.2 Released November 2011 Pluggable authentication w/PAM plugin User statistics: CLIENT_STATISTICS, USER_STATISTICS, INDEX_STATISTICS, TABLE_STATISTICS (userstats=1) Virtual columns - PERSISTENT or VIRTUAL SphinxSE storage engine started shipping
  • 21. Still using MyISAM? Mitigates thread contention for key cache lock, with notable performance improvements Key caches divided into different segments, allowing for better key cache concurrency 1-64 segments
  • 22. MariaDB 5.1 Arrived February 2010 Storage engines: XtraDB, FederatedX, PBXT*, OQGRAPH*, Aria, etc. microslow patch, processlist w/microsecond precision table elimination
  • 23. How do we support all this? Support Latest Version Released MySQL till release 5.1.42 Feb 2010 Feb 2015 5.1.62 5.1.63 5.2.3 Nov 2010 Nov 2015 5.2.12 5.1.63 5.3.5 Feb 2012 Feb 2017 5.3.8 5.1.65 5.5.23 Apr 2012 Apr 2017 5.5.27 5.5.27
  • 24. Oh, and we’re fast Oracle loves MySQL performance on Microsoft Windows. So do we OLTP read-only OLTP write-only
  • 25. How open is MariaDB? Mailing lists: Launchpad http:// launchpad.net/ maria- maria/ developers@lists.lau nchpad.net Bugs database/feature worklog: Jira maria- discuss@lists.launchp http:// ad.net mariadb.atlassian.ne t/ Code hosting: Launchpad #maria on freenode
  • 27. Deployments! happy users: pap.fr, wabtec, Paybox Services, “We made the switch on OLX, Jelastic, Web of Trust, SaltOS, ERP5, etc. Saturday -- and we’re seeing “MariaDB had these same bugs that we ran into benefits already -- our daily with MySQL. However the big difference was optimization time is down from that when we reported these bugs, they were 24 minutes to just 4 minutes” -- quickly resolved within 48 hours!” -- Dreas van Ali Watters, CEO, travelblog.org Donselaar, Chief Technology Officer, SpamExperts B.V. after migrating over 300 servers from MySQL 5.0 to MariaDB 5.1. “Migrating from MySQL 5.1 to MariaDB 5.2 was as simple as removing MySQL RPMs and installing the MariaDB packages, then running mysql_upgrade.” - Panayot Belchev, proprietor, Host Bulgaria on providing MariaDB to over 7,000 of their web hosting customers.
  • 28. Getting MariaDB http://mariadb.org/ has repositories (APT,YUM) & regular downloads OpenSUSE build service Gentoo, FreeBSD, Homebrew, Mageia, many distributions http://kb.askmonty.org/v/distributions-which- include-mariadb
  • 29. We have a book
  • 30. Other branches MySQL Percona MariaDB MySQL Percona MariaDB 5.5.20 7.7M 61M 5.5.20 222299 1587843 5.5.22 16M 60M 5.5.22 438567 1540932
  • 31. What are we missing from Percona Server? percona_innodb_buffer_pool_shm - requires big shmax not default on many systems percona_log_slow_query_log- log_slow_verbosity - InnoDB filtering information not fully in MariaDB Disabled test suite is awesome resource :)
  • 32. percona_suppress_log_warning_1592 percona_slow_extended-log_slow_verbosity-cl percona_log_slow_slave_statements slow_query_log_use_global_control percona_log_slow_slave_statements-and- percona_slow_extended-use_global_control use_global_long_query_time percona_slow_query_log-log_slow_verbosity percona_slow_query_log-control_global_slow percona_slow_extended-log_slow_verbosity percona_slow_query_log- microseconds_in_slow_query_log percona_slow_extended-microseconds_in_slow_extended percona_query_cache_with_comments percona_slow_extended-use_global_long_query_time percona_query_cache_with_comments_prepared_statement percona_slow_extended- s slow_query_log_timestamp_always-cl percona_show_temp_tables percona_slow_extended- slow_query_log_microseconds_timestamp-cl percona_slow_query_log-use_global_long_query_time percona_bug643149 percona_query_cache_with_comments_disable percona_processlist_row_stats percona_log_connection_error percona_server_variables_debug percona_query_response_time percona_slow_extended-slave_statements percona_query_response_time-stored percona_show_slave_status_nolock percona_sql_no_fcache percona_slow_extended-slave_innodb_stats percona_status_wait_query_cache_mutex percona_slow_extended-slave_statements-and- percona_slave_innodb_stats use_global_long_query_time percona_query_response_time-replication userstat_bug602047 percona_server_variables_debug percona_innodb_expand_fast_index_creation percona_server_variables_release percona_innodb_kill_idle_trx percona_log_warnings_suppress percona_innodb_kill_idle_trx_locks percona_slow_extended-log_slow_sp_statements-cl
  • 33. Faster even? read only? InnoDB/XtraDB is fine InnoDB has higher throughput, but stalls & checkpoints w/ high write load
  • 34. Track record We found the latest MySQL security bug and MariaDB was first to be patched (sql/password.c & memcmp()) We don’t like regressions http://www.skysql.com/blogs/hartmut/nasty- innodb-regression-mysql-5525 We care about backward compatibility & introduce features carefully XtraDB innodb_adaptive_checkpoint=none|reflex| estimate|keep_average (no more reflex...)
  • 35. User stats plugin Disabled by default, consider enabling it to show use! http://mariadb.org/feedback_plugin/ data from over 85 countries!
  • 36. We love the community Tokutek’s TokuDB ships with MariaDB too groonga is to be merged We’re looking at spider next Multiple software packages talk about us (as an alternative to MySQL): Drupal, MediaWiki, Plone, phpMyAdmin, WordPress, etc.
  • 37. Future MySQL 5.6 just RC, we have most features in 5.5 MariaDB 10.0 new InnoDB inside MariaDB (done) Global transaction ID support Multi-source replication (done) Enhanced semisync replication Persistent InnoDB statistics (done) Cassandra Storage Engine (done), HBase Storage Engine
  • 39. Support mariadb.org/service-providers/ SkySQL, Percona, FromDual, PalominoDB, OpenQuery Monty Program does developer support & NRE http://montyprogram.com/developer- support/
  • 40. We’re incredibly social facebook: fb.com/MariaDB.dbms twitter: @mariadb google plus: gplus.to/mariadb we also have a LinkedIn group
  • 41. Q&A colin@montyprogram.com | colin@mariadb.org http:/ /montyprogram.com/ | http:/ /mariadb.org/ twitter: @bytebot | url: http://bytebot.net/blog/