mariadb enterprise & mariadb enterprise cluster - mariadb webinar july 2014

36
© MariaDB. Company Confiden3al. MariaDB Enterprise & MariaDB Enterprise Cluster Webinar, Ivan Zora@ V1407.01

Upload: mariadb

Post on 06-Jul-2015

328 views

Category:

Software


4 download

DESCRIPTION

MariaDB Enterprise & MariaDB Enterprise Cluster, webinar by Ivan Zoratti. Presented on 1.7.2014 as a MariaDB webinar.

TRANSCRIPT

Page 1: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

©  MariaDB.  Company  Confiden3al.  

MariaDB  Enterprise  &  MariaDB  Enterprise  Cluster  

       Webinar,  Ivan  Zora@  

V1407.01    

Page 2: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

Agenda  

●  Welcome!  

●  Intro  to  MariaDB  

●  MariaDB  Enterprise  

●  MariaDB  Enterprise  Cluster  

●  Services  and  other  op3ons  

●  More  info  

Page 3: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

Who  is  Ivan    

?  

Page 4: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

MariaDB  Today  

●  A  free  fork  of  MySQL  with  extra  features  

●  Backward  compa3ble  ●  Community  developed,  

Enterprise  ready  

Page 5: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

About  MariaDB  &  MariaDB  Founda3on  

mariadb.org  ●  MariaDB  Founda3on  is  

the  non-­‐profit  organisa3on  that  works  to  promote  MariaDB  Server  and  its  Community  

●  It  is  sustained  by  corporate  and  individual  sponsorship,  membership  and  dona3ons  

Page 6: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

About  MariaDB.com  

mariadb.com  ●  mariadb.com  is  the  home  

for  the  commercial  offering  of  MariaDB  

●  MariaDB  Enterprise  includes  support,  tools  and  services  for  MariaDB  

●  The  domain  and  the  website  is  owned  and  governed  by  SkySQL  Ab  

Page 7: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

About  SkySQL  

skysql.com  ●  SkySQL  Ab  is  the  leading  

provider  for  open  source  databases,  services  and  solu3ons.  

●  It  is  the  home  for  the  founders  and  the  original  developers  of  the  core  of  MySQL  

●  It  provides  support  and  services  for  MySQL  and  derived  databases  

Page 8: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

Where  is  MariaDB?  

Distribu3ons:  ●  RedHat  Enterprise  Linux,  Debian,  Ubuntu,  Fedora,  Mageia,  

openSUSE,  Gentoo,  Slackware,  Arch,  ALTLinux,  TurboLinux,  Chakra  Project,  Kdu,  …and  many  others.  

●  FreeBSD,  OpenBSD  ●  Mac  OS  X  with  MacPorts  or  Homebrew  

From  MariaDB.org  ●  sources,  binaries  in  .tar.gz  or  .zip  (Windows)  ●  Windows  MSI  installer  ●  MariaDB  apt  and  yum  repositories  

In  the  cloud  ●  On  Amazon,  OpenStack  public  and  private  clouds  

Page 9: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

MariaDB  Timeline  

●  MariaDB  5.1,  GA  February  2010  

Table elimination, new storage engines, code cleanup, better tests, pool of threads

Page 10: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

MariaDB  Timeline  

●  MariaDB  5.1,  GA  February  2010  

●  MariaDB  5.2,  GA  November  2010  

Table elimination, new storage engines, code cleanup, better tests, pool of threads

Virtual columns, extended user statistics, segmented MyISAM keycache

Page 11: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

MariaDB  Timeline  

●  MariaDB  5.1,  GA  February  2010  

●  MariaDB  5.2,  GA  November  2010  

●  MariaDB  5.3,  GA  February  2012  

Table elimination, new storage engines, code cleanup, better tests, pool of threads

Virtual columns, extended user statistics, segmented MyISAM keycache

Biggest changes to optimizer (faster subqueries, joins, etc.), microsecond precision, faster HANDLER, dynamic columns, better replication (group commit, etc.), HandlerSocket

Page 12: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

MariaDB  Timeline  

●  MariaDB  5.1,  GA  February  2010  

●  MariaDB  5.2,  GA  November  2010  

●  MariaDB  5.3,  GA  February  2012  

●  MariaDB  5.5,  GA  April  2012  

Table elimination, new storage engines, code cleanup, better tests, pool of threads

Virtual columns, extended user statistics, segmented MyISAM keycache

Biggest changes to optimizer (faster subqueries, joins, etc.), microsecond precision, faster HANDLER, dynamic columns, better replication (group commit, etc.), HandlerSocket

More efficient threadpool, non-blocking client library, new LIMIT ROWS EXAMINED option, extended keys for XtraDB/InnoDB, new SphinxSE, dynamic replication settings, lots of security fixes, new status variables, etc.

Page 13: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

MariaDB  Timeline  

●  MariaDB  5.1,  GA  February  2010  

●  MariaDB  5.2,  GA  November  2010  

●  MariaDB  5.3,  GA  February  2012  

●  MariaDB  5.5,  GA  April  2012  

●  MariaDB  Galera  Cluster,  GA  March  2013  

Table elimination, new storage engines, code cleanup, better tests, pool of threads

Virtual columns, extended user statistics, segmented MyISAM keycache

Biggest changes to optimizer (faster subqueries, joins, etc.), microsecond precision, faster HANDLER, dynamic columns, better replication (group commit, etc.), HandlerSocket

More efficient threadpool, non-blocking client library, new LIMIT ROWS EXAMINED option, extended keys for XtraDB/InnoDB, new SphinxSE, dynamic replication settings, lots of security fixes, new status variables, etc.

Galera Synchronous Replication

Page 14: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

MariaDB  Timeline  

●  MariaDB  5.1,  GA  February  2010  

●  MariaDB  5.2,  GA  November  2010  

●  MariaDB  5.3,  GA  February  2012  

●  MariaDB  5.5,  GA  April  2012  

●  MariaDB  Galera  Cluster,  GA  March  2013  

●  MariaDB  10.0.10  (March  2014)  

Table elimination, ew storage engines, code cleanup, better tests, pool of threads

Virtual columns, extended user statistics, segmented MyISAM keycache

Biggest changes to optimizer (faster subqueries, joins, etc.), microsecond precision, faster HANDLER, dynamic columns, better replication (group commit, etc.), HandlerSocket

More efficient threadpool, non-blocking client library, new LIMIT ROWS EXAMINED option, extended keys for XtraDB/InnoDB, new SphinxSE, dynamic replication settings, lots of security fixes, new status variables, etc.

Galera Synchronous Replication

Page 15: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

MariaDB  10  in  a  nutshell  

●  MariaDB  5.5  features  +  ●  MySQL  5.6  backported  features  -­‐  InnoDB/XtraDB,  

PERFORMANCE_SCHEMA,  online  ALTER  TABLE  etc.  ●  Mul3-­‐source  replica3on  ●  Global  Transac3on  ID  ●  Parallel  Slave  Thread  ●  TokuDB,  Spider,  Connect,  Cassandra  storage  engines  ●  SSD  and  Flash  storage  enhancements  ●  User  roles  ●  More  administra3on  and  instrumenta3on  commands...  

Page 16: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

Op3mizer  Improvements  

●  Of 29 distinct enhancements noted, 28 are in MariaDB 10. Just 1 only in MySQL 5.6.

●  Enhancements include: ●  Disk access optimizations. ●  JOIN optimizations. ●  Subquery optimizations. ●  Optimized derived tables and views. ●  Execution control. ●  Optimizer control. ●  EXPLAIN improvements.

 

Page 17: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

Fusion-­‐IO  page  compression  

●  Atomic  writes  gives  a  performance  increase  of  about  30%.  By  enabling  fast  checksum  for  XtraDB  it’s  50%  

●  By  using  page  compression  the  compression  ra3o  is  leading  to  beoer  performance  and  there  are  less  writes  to  disk.  

●  Mul3-­‐threaded  flush  provides  beoer  throughput  and  decreases  opera3on  latencies  delivering  a  performance  boost  

h2ps://blog.mariadb.org/significant-­‐performance-­‐boost-­‐with-­‐new-­‐mariadb-­‐page-­‐compression-­‐on-­‐fusionio    

Page 18: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

Group  Commit  

●  binlog_commits  ●  Total  number  of  

transac3ons  commioed  to  the  binary  log  

●  binlog_group_commits  Total  number  of  groups  of  transac3ons  commioed  to  the  binary  log  

When  sync_binlog=1  it  is  the  number  of  fsync()’s  

Page 19: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

Global  Transac3on  ID  

Page 20: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

Parallel  Slave  Thread  Replica3on  ●  Sponsored  by  Google  ●  Transac3ons  are  applied  in  parallel  if  they  have  been  executed  in  parallel  on  the  

master.  ●  It  works  beyond  the  boundaries  of  MySQL  5.6  parallel  slave  

●  Parallel  threads  apply  to:  ●  Queries  that  are  run  on  the  master  in  one  group  commit.  ●  Queries  that  are  from  different  domains.  ●  Queries  from  different  masters  

(when  using  mul3-­‐source  replica3on).  

●  slave_parallel_threads  ●  Number  of  parallel  threads  on  

the  slave  node  ●  slave_parallel_max_queued  

●  Number  of  parallel  threads  on  the  slave  node  

Page 21: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

Mul3-­‐source  Replica3on  

●  Data  par33oned  over  many  masters  can  be  pulled  together  onto  one  slave  for  analy3cal  queries  

●  Many  masters  can  replicate  to  the  same  slave  and  a  complete  backup  can  be  done  on  the  slave  

●  Newer  hardware  usually  provides  more  performance.  Usually  all  hardware  isn’t  upgraded  at  once  and  mul3-­‐source  can  be  used  for  replica3ng  many  masters  to  a  powerful  new  slave.  

●  Up  to  64  masters  

 

Page 22: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

MariaDB  in  the  MySQL  World  

Page 23: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

MariaDB  Galera  Cluster  

●  Read  &  Write  access  to  any  node  

●  Client  can  connect  to  any  node  

●  There  can  be  several  nodes  ●  Automa3c  node  

provisioning  ●  Replica3on  is  synchronous    

Galera Replication

MariaDB   MariaDB   MariaDB  

Page 24: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

TokuDB  

●  Drop-­‐in  replacement  for  InnoDB/XtraDB  developed  by  Tokutek.  

●  Advanced  indexing  and  compression  algorithms.  

●  Up  to  20x  performance  gain  for  inserts/updates.  

●  Up  to  90%  less  disk  storage.  ●  Online  schema  changes  and  online  backup  

features.  ●  Simplified  administra3on  

Page 25: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

Spider  

●  Spider  is  a  storage  engine  based  on  the  MySQL  par33oning  features,  with  built-­‐in  sharding  capabili3es  

●  Tables  of  different  MariaDB  instances  are  handled  as  if  they  are  on  the  same  instance  

●  It  supports  XA  transac3ons  and  mul3ple  storage  engines  (InnoDB,  MyISAM  etc.)  

●  Developed  by  Kentoku  Shiba,  available  on  Launchpad,  first  introduced  in  2008  and  now  available  in  MariaDB  10  

Page 26: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

Connect  

●  Connect  enables  MariaDB  to  use  external  data  as  they  were  standard  tables  in  the  server  

●  Data  is  not  loaded  into  MariaDB  ●  Integrates/access  data  directly  in  many  non-­‐

MariaDB  formats  ●  Simplifies  the  ETL  procedures  in  

Business  Intelligence  and  Business  Analy3cs  

●  Simplifies  the  export/import  of  data  from/to  MariaDB,  to/from  other  data  sources  

Page 27: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

Even  more  innova3ve  features  

●  Role-­‐based  access  control  ●  SHOW  EXPLAIN  FOR  thread  ●  Explain  on  slow  query  log  ●  Cassandra  storage  engine  ●  Virtual  and  dynamic  columns  ●  HandlerSocket  plugin  ●  Audit  and  PAM  plugins  

Page 28: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

MariaDB  10.1  

●  Single  distribu3on  for  clustered  and  non-­‐clustered  MariaDB  ●  5.6,  5.7  and  WebscaleSQL  features  ●  Portable  tablespaces  ●  Improved  thread  management  ●  Kerberos  authen3ca3on  support  ●  GIS  improvements  ●  Windowing  func3ons  ●  inner  and  outer  database  security  and  encryp3on  ●  More  NoSQL  enhancements  

h2ps://mariadb.atlassian.net/secure/ReleaseNote.jspa?projectId=10000&version=12200  

Page 29: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

©  MariaDB.  Company  Confiden3al.  

MariaDB  Enterprise  

●  Global  Support  ●  Cer3fied  Binaries  ●  Performance  Tuned  ●  Enterprise  Tools  ●  MySQL®  Friendly  

Page 30: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

©  MariaDB.  Company  Confiden3al.  

MariaDB  Enterprise  Cluster  

●  All  the  advantages  of  MariaDB  Enterprise  

●  Highly  available,  fault  tolerant  

●  Provisioning  &  Administra3on  

Page 31: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

MariaDB  Edi3ons  Comparison  -­‐  1  

Page 32: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

MariaDB  Edi3ons  Comparison  -­‐  2  

Page 33: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

MariaDB  Edi3ons  Comparison  -­‐  2  InnoDB,  XtraDB,  MyISAM,  TokuDB  

Post-­‐installa3on  

MONyog  Ul3mate  MONyog  Ul3mate  

SQLyog  

xtrabackup  

Zmanda  ZRM  

Page 34: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

More  Services  from  SkySQL  

Consul3ng    Training    Remote  DBA  

Page 35: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

For  More  Info...  

●  mariadb.org  ●  mariadb.com/kb  ●  mariadb.com/products  ●  mariadb.com/resources/downloads  ●  code.launchpad.net/maria/10.0  ●  github.com/mariadb  

Page 36: MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014

Thank  You!  

“The  future  is  already  here  —  it's  just  not  very  evenly  distributed.”  

William  F.  Gibson