Database	
  Cluster	
  as	
  a	
  Service	
  in	
  
OpenStack
	
  
Integrated, Scalable, Highly Available and Secure
	
  

OpenStack in Action 4 ! - Paris - 5th December 2013

	


Serge Frezefond

Serge Frezefond
@sfrezefond
	


	

.
SkySQL
	
  
• Leading	
  provider	
  of	
  open	
  

source	
  databases,	
  services	
  
and	
  solu=ons	
  

• Home	
  for	
  the	
  founders	
  and	
  
the	
  original	
  developers	
  of	
  
the	
  core	
  of	
  MySQL	
  

• The	
  creators	
  of	
  MariaDB,	
  the	
  
drop-­‐in,	
  innova=ve	
  
replacement	
  of	
  MySQL	


OpenStack in Action 4 ! - Paris - 5th December 2013

	


Serge Frezefond
MySQL/MariaDB	
  in	
  the	
  Cloud
	
  
OpenStack in Action 4 ! - Paris - 5th December 2013

	


Serge Frezefond
MySQL/MariaDB	
  High	
  Availability
	
  
• MySQL	
  Replica=on	
  with	
  MHA	
  and	
  Pacemaker	
  
• MariaDB	
  Galera	
  Cluster	
  Synchronous	
  Replica=on	
  with	
  Codership	
  
Galera	
  

• Support	
  from	
  SkySQL	
  for:	
  
• DRBD	
  
• Shared	
  storage	
  

OpenStack in Action 4 ! - Paris - 5th December 2013

	


Serge Frezefond

	

4
MySQL	
  /MariaDB	
  Scalability
	
  
• In	
  MariaDB	
  5.5:	
  
• XtraDB	
  5.5	
  
• Group	
  commit	
  
• MySQL	
  Replica=on	
  for	
  read	
  scalability	
  
• TokuDB	
  and	
  ScaleDB	
  engine	
  
• Plus,	
  in	
  MariaDB	
  10:	
  
• XtraDB	
  5.6	
  with	
  Improved	
  InnoDB	
  scalability	
  
• Parallel	
  and	
  mul=-­‐source	
  replica=on	
  
• CONNECT,	
  Spider	
  and	
  Cassandra	
  engine	
  
• MariaDB	
  Galera	
  Cluster	
  for	
  synchronous	
  replica=on	
  
• MySQL	
  Cluster	
  for	
  high	
  volume/small	
  transac=ons	
  
OpenStack in Action 4 ! - Paris - 5th December 2013

	


Serge Frezefond
MySQL	
  /	
  MariaDB	
  Ease	
  of	
  Use
	
  
• MHA	
  
• Xtrabackup	
  
• MariaDB	
  Manager	
  
• Enterprise	
  Monitor	
  
• Query	
  Editor	
  
• MySQL	
  U=li=es	
  
• Percona	
  Toolkit	
  	
  
• MySQL	
  Workbench	
  

OpenStack in Action 4 ! - Paris - 5th December 2013

	


Serge Frezefond

	

6
MySQL	
  in	
  Rackspace	
  
• Rackspace	
  Cloud	
  Database	
  
• MySQL	
  Community	
  5.1	
  
• Up	
  to	
  16GB	
  RAM,	
  150GB	
  storage	
  
• Standard	
  Servers	
  
• Up	
  to	
  8	
  vCPUs,	
  30GB	
  RAM,	
  1.2TB	
  storage	
  
• BYODBMS	
  
OpenStack in Action 4 ! - Paris - 5th December 2013

	


Serge Frezefond

	

7
MySQL	
  in	
  HPCloud	
  
• Manage	
  a	
  single	
  DB	
  instance	
  through	
  the	
  REST	
  API	
  
• Standard	
  Servers	
  
• Up	
  to	
  8	
  vCPUs,	
  30GB	
  RAM,	
  960GB	
  storage	
  
• BYODBMS	
  
• Marketplace	
  
• GenieDB	
  
• MariaDB	
  ScaleDB	
  
OpenStack in Action 4 ! - Paris - 5th December 2013

	


Serge Frezefond

	

8
MySQL	
  in	
  AWS	
  
• Amazon	
  RDS	
  
• MySQL	
  Community	
  5.1,	
  5.5	
  &	
  5.6	
  
• Reserved	
  instances,	
  provisioned	
  IO	
  and	
  Flash	
  storage	
  
• 32	
  vCPUs,	
  244GB	
  Memory,	
  10GB	
  network	
  
• Automa=c	
  backups,	
  Storage	
  replica=on,	
  MySQL	
  Replica=on	
  
• Limited	
  tuning	
  
• Standard	
  Servers	
  and	
  Marketplace	
  
• Similar	
  instances	
  
• MariaDB	
  on	
  CentOS,	
  Debian	
  and	
  Ubuntu	
  
• GenieDB	
  
	

OpenStack in Action 4 ! - Paris - 5th December 2013

Serge Frezefond

	

9
MySQL	
  in	
  Google	
  Cloud	
  
• MySQL	
  in	
  Google	
  Cloud	
  SQL	
  	
  
• Google	
  compute	
  (GA)	
  
• Google App Engine

OpenStack in Action 4 ! - Paris - 5th December 2013

	


Serge Frezefond

	


10
MySQL	
  and	
  OpenStack
	
  
OpenStack in Action 4 ! - Paris - 5th December 2013

	


Serge Frezefond
MySQL	
  	
  in	
  OpenStack	
  
• Used	
  as	
  repository	
  -­‐	
  alterna=ve	
  to	
  SQLite	
  
• Increased	
  portability	
  and	
  availability	
  
• High	
  Availability	
  is	
  the	
  key	
  factor:	
  
• MySQL	
  Replica=on	
  
• DRBD	
  
• Galera	
  
OpenStack in Action 4 ! - Paris - 5th December 2013

	


Serge Frezefond

	


12
MySQL	
  Replica=on	
  
Control
	


Network Compute
	

	


Node	
  Manager
	

HA	
  Manager
	


OpenStack in Action 4 ! - Paris - 5th December 2013

	


Serge Frezefond

	


13
DRBD	
  
Control
	


Network Compute
	

	


OpenStack in Action 4 ! - Paris - 5th December 2013

	


Serge Frezefond

	


14
Galera	
  Cluster	
  
Control
	


Network Compute
	

	


OpenStack in Action 4 ! - Paris - 5th December 2013

	


Serge Frezefond

	


15
MySQL	
  as	
  a	
  Service
	
  
OpenStack in Action 4 ! - Paris - 5th December 2013

	


Serge Frezefond
Automa=c	
  Provisioning	
  
• REST-­‐based	
  for	
  interopera=on	
  
• GUI-­‐assisted	
  for	
  end-­‐users	
  
• From	
  server	
  to	
  cluster	
  

OpenStack in Action 4 ! - Paris - 5th December 2013

	


Serge Frezefond

	


17
The	
  false	
  promise	
  of	
  the	
  
elas=city	
  

• Distributed	
  MySQL	
  is	
  not	
  something	
  you	
  can	
  have	
  out	
  of	
  the	
  box	
  
• Or	
  not	
  for	
  all	
  your	
  applica=ons	
  

Read-Write

	

	


Read-Only

binlog

	


Read-Only

	

	


relaylog

	


	


	


relaylog
relaylog
OpenStack in Action 4 ! - Paris -relaylog
5th December 2013

	


Serge Frezefond

	


18
DBaaS	
  vs	
  PaaS	
  

vs.
	


OpenStack in Action 4 ! - Paris - 5th December 2013

	


Serge Frezefond

	


19
Storage	
  
• Backups	
  on	
  Swic	
  

• Full	
  or	
  incremental	
  

• Moving	
  tablespaces	
  in	
  
Cinder	
  

• For	
  high	
  availability	
  
• For	
  backups	
  and	
  archiving	
  
• For	
  maintenance	
  
OpenStack in Action 4 ! - Paris - 5th December 2013

	


in01

	


	


in02

in03

	


Serge Frezefond

	


in04

	


in05

	


20
Networking	
  
• Mul=ple	
  NICs	
  and	
  
floa=ng	
  IPs	
  

• Public	
  IPs	
  
• Local	
  proxies	
  vs	
  

enhanced	
  connectors	
  

OpenStack in Action 4 ! - Paris - 5th December 2013

	


Serge Frezefond

	


21
Security	
  
• LDAP	
  &	
  Keystone	
  
• Integra=on	
  with	
  MySQL	
  

• LDAP	
  /	
  OpenLDAP	
  
• MySQL	
  Security	
  Plugin	
  using	
  
OpenLDAP	
  

LDAP
	


Keystone
	


OpenStack in Action 4 ! - Paris - 5th December 2013

	


Serge Frezefond

	


22
MariaDB	
  Cluster	
  in	
  OpenStack
	
  
OpenStack in Action 4 ! - Paris - 5th December 2013

	


Serge Frezefond
What’s	
  new	
  with	
  MariaDB	
  
MariaDB Manager
	

Configuration
& Provisioning
	


GUI
	

API
	

Monitor
	


OpenStack in Action 4 ! - Paris - 5th December 2013

MariaDB Cluster
	

MaxScale
	

MHA
	


Galera
	


MariaDB
Server(s)
	


	


Serge Frezefond

	


24
Client

Client

Client

Client

Client

	

	

	

	

	


Client Applications
	


	


Frontend

SkySQL	
  
MaxScale	
  

	


	


	


	


Frontend

Frontend

Frontend

Frontend

	


	


	


	


Listener

MaxScale
Core
	


	


Server

Listener

Listener

	


Service

	


	


Server

Service

	


	


	


Server

	

Router
	

Router
	

Router

Service

	


Server

Listener

	

Auth
	

Auth
	

Auth

Server

	

Monitor
	

Monitor

	


Backend

OpenStack in Action 4 ! - Paris - 5th December 2013

	


Backend

	


Backend

Data Stores
	


	


Serge Frezefond

	


25
Introducin
g	
  
MariaDB	
  
Manager	
  
OpenStack in Action 4 ! - Paris - 5th December 2013

	


Serge Frezefond

	


26
MariaDB	
  Galera	
  Cluster	
  -­‐	
  State	
  

OpenStack in Action 4 ! - Paris - 5th December 2013

	


Serge Frezefond

	


27
Provision	
  a	
  new	
  node	
  
1
	

HTTP	
  POST	
  method	
  -­‐	
  Create	
  a	
  
node	
  
URI:	
  
• .../resfulapi/system/systemid/
node	
  

• Parameters:	
  

•  name	
  
•  hostname	
  
•  publicip,	
  privateip,	
  port	
  
•  instanceid	
  
•  dbusername,	
  dbpassword	
  
•  ...	


OpenStack in Action 4 ! - Paris - 5th December 2013

	


Serge Frezefond

	


28
Provision	
  a	
  new	
  node	
  
1
	

HTTP	
  POST	
  method	
  -­‐	
  Create	
  a	
  
2
	

node	
  
URI:	
  
HTTP	
  POST	
  method	
  -­‐	
  Run	
  the	
  
• .../resfulapi/system/systemid/
command	
  
node	
  
Connect	
  to	
  the	
  new	
  node	
  

• Parameters:	
  

URI:	
  
• .../resfulapi/command/connect	
  

•  name	
  
•  hostname	
  
•  publicip,	
  privateip,	
  p•  Parameters:	
  
ort	
  
•  instanceid	
  
•  systemid	
  
•  dbusername,	
  dbpassword	
  
•  nodeid	
  
•  ...	

•  rootpassword	


OpenStack in Action 4 ! - Paris - 5th December 2013

	


Serge Frezefond

	


29
Provision	
  a	
  new	
  node	
  
1
	

HTTP	
  POST	
  method	
  -­‐	
  Create	
  a	
  
2
	

node	
  
URI:	
  
HTTP	
  POST	
  method	
  -­‐	
  Run	
  the	
  
3
	

• .../resfulapi/system/systemid/
command	
  
node	
  
Connect	
  to	
  the	
  new	
  node	
   POST	
  method	
  -­‐	
  Run	
  the	
  
HTTP	
  
• Parameters:	
  
URI:	
  
command	
  
•  name	
  
• .../resfulapi/command/connect	
   state	
  of	
  the	
  node	
  
•  hostname	
  
Probe	
  the	
  
•  publicip,	
  privateip,	
  p•  Parameters:	
  
ort	
  
URI:	
  
•  instanceid	
  
•  systemid	
  
• .../resfulapi/command/probe	
  
•  dbusername,	
  dbpassword	
  
•  nodeid	
  
• Parameters:	
  
•  ...	

•  rootpassword	

•  systemid	
  
•  nodeid	

OpenStack in Action 4 ! - Paris - 5th December 2013

	


Serge Frezefond

	


30
Provision	
  a	
  new	
  node	
  
1
	

HTTP	
  POST	
  method	
  -­‐	
  Create	
  a	
  
2
	

node	
  
URI:	
  
HTTP	
  POST	
  method	
  -­‐	
  Run	
  the	
  
3
	

• .../resfulapi/system/systemid/
command	
  
node	
  
Connect	
  to	
  the	
  new	
  node	
   POST	
  method	
  -­‐	
  Run	
  the	
  
HTTP	
  
• Parameters:	
  
4
	

URI:	
  
command	
  
•  name	
  
• .../resfulapi/command/connect	
   state	
  of	
  the	
  node	
  OST	
  method	
  -­‐	
  Run	
  the	
  
•  hostname	
  
Probe	
  the	
  
HTTP	
  P
•  publicip,	
  privateip,	
  p•  Parameters:	
  
ort	
  
URI:	
  
command	
  
•  instanceid	
  
•  systemid	
  
• .../resfulapi/command/probe	
   the	
  node	
  
Provision	
  
•  dbusername,	
  dbpassword	
  
•  nodeid	
  
• Parameters:	
  
•  ...	

•  rootpassword	

URI:	
  
•  systemid	
  
• .../resfulapi/command/provision	
  
•  nodeid	


• Parameters:	
  

OpenStack in Action 4 ! - Paris - 5th December 2013

•  systemid	
  
•  nodeid	

Serge Frezefond
	


	


31
Start	
  a	
  node	
  
HTTP	
  POST	
  method	
  -­‐	
  Run	
  the	
  
command	
  
Start	
  the	
  node	
  
URI:	
  
• .../resfulapi/command/start	
  

• Parameters:	
  
•  systemid	
  
•  nodeid	


OpenStack in Action 4 ! - Paris - 5th December 2013

	


Serge Frezefond

	


32
Retrieve	
  the	
  status	
  of	
  a	
  
cluster	
  
	


• .../resfulapi/system/systemid

OpenStack in Action 4 ! - Paris - 5th December 2013

	


Serge Frezefond

	


33
Monitor	
  the	
  #	
  of	
  connec=ons	
  of	
  a	
  
node	
  

•  ../resfulapi/system/systemid/
node/nodeid/monitor/
{monitorid}/data	


OpenStack in Action 4 ! - Paris - 5th December 2013

	


Serge Frezefond

	


34
What’s	
  coming	
  
• MariaDB	
  Replica=on	
  and	
  MHA	
  
• MariaDB	
  10	
  
• MaxScale	
  integra=on	
  
• Juju	
  charms	
  for	
  MariaDB	
  Cluster	
  and	
  MariaDB	
  Manager	
  
• Puppet	
  &	
  Chef	
  manifests	
  and	
  recipes	
  
• MariaDB	
  and	
  Trove	
  
• Trove	
  for	
  MariaDB	
  Manager	
  
OpenStack in Action 4 ! - Paris - 5th December 2013

	


Serge Frezefond

	


35
For	
  More	
  Informa=on...	
  
•  MariaDB	
  Enterprise:	
  
www.mariadb.org	
  
www.mariadb.com	
  

•  MariaDB	
  Manager	
  and	
  MaxScale:	
  
hPp://downloads.skysql.com/
archives	
  

•  Bugs:	
  hPp://bugs.skysql.com	


OpenStack in Action 4 ! - Paris - 5th December 2013

	


Serge Frezefond

	


36
Pictures	
  courtesy	
  of:
	
  
• www.pluralsight.com

	


Thank	
  You!
	
  

www.skysql.co
m
	

OpenStack in Action 4 ! - Paris - 5th December 2013

serge.frezefond@skysql.co
m
	
  
hop://serge.frezefond.com
	
  
www.slideshare.net/
Serge Frezefond
	

sfrezefond
	
  

More Related Content

PDF
Chef for OpenStack: OpenStack Spring Summit 2013
PDF
Everything you wanted to know about Trove but didn't know whom to ask!
PDF
Chef for OpenStack: Grizzly Roadmap
PDF
APACHE TOREE: A JUPYTER KERNEL FOR SPARK by Marius van Niekerk
PPTX
OpenStack Trove in Production at HP - TroveDay 2014
PPTX
Project RedDwarf - Database Services in the Cloud.pptx
PPTX
It's in the cloud
PDF
ApacheCon 2021: Apache NiFi 101- introduction and best practices
Chef for OpenStack: OpenStack Spring Summit 2013
Everything you wanted to know about Trove but didn't know whom to ask!
Chef for OpenStack: Grizzly Roadmap
APACHE TOREE: A JUPYTER KERNEL FOR SPARK by Marius van Niekerk
OpenStack Trove in Production at HP - TroveDay 2014
Project RedDwarf - Database Services in the Cloud.pptx
It's in the cloud
ApacheCon 2021: Apache NiFi 101- introduction and best practices

What's hot (20)

PPTX
Openstack portal-bestpractices-campbell mcneill
PPTX
OpenStack Trove in Production at eBay - Trove Day 2014
PDF
The MySQL Server Ecosystem in 2016
PDF
Ironic
PPTX
Structor - Automated Building of Virtual Hadoop Clusters
PPTX
Webinar: Intro to Trove_Mirantis_26_feb2015
PDF
dodai_grizzly.pdf
PPTX
2014 Ceph NYLUG Talk
PDF
[HKOSCON][20180616][Containerized High Availability Virtual Hosting Deploymen...
PPTX
Ceph, Open Source, and the Path to Ubiquity in Storage - AACS Meetup 2014
PDF
[OpenStack Day in Korea 2015] Track 1 - Triple O를 이용한 빠르고 쉬운 OpenStack 설치
PDF
Chef for OpenStack December 2012
PPTX
Hadoop Meetup Jan 2019 - Router-Based Federation and Storage Tiering
PDF
CloudStack IPv6 in production
PPTX
Hadoop Meetup Jan 2019 - Hadoop Encryption
PPTX
Сергей Сверчков "Want to build a secure private cloud for IoT with high avail...
PDF
Boston/NYC Chef for OpenStack Hack Days
PPTX
CloudStack EU user group - Trillian
PDF
Best practices for MySQL/MariaDB Server/Percona Server High Availability
PDF
How DreamHost builds a Public Cloud with OpenStack
Openstack portal-bestpractices-campbell mcneill
OpenStack Trove in Production at eBay - Trove Day 2014
The MySQL Server Ecosystem in 2016
Ironic
Structor - Automated Building of Virtual Hadoop Clusters
Webinar: Intro to Trove_Mirantis_26_feb2015
dodai_grizzly.pdf
2014 Ceph NYLUG Talk
[HKOSCON][20180616][Containerized High Availability Virtual Hosting Deploymen...
Ceph, Open Source, and the Path to Ubiquity in Storage - AACS Meetup 2014
[OpenStack Day in Korea 2015] Track 1 - Triple O를 이용한 빠르고 쉬운 OpenStack 설치
Chef for OpenStack December 2012
Hadoop Meetup Jan 2019 - Router-Based Federation and Storage Tiering
CloudStack IPv6 in production
Hadoop Meetup Jan 2019 - Hadoop Encryption
Сергей Сверчков "Want to build a secure private cloud for IoT with high avail...
Boston/NYC Chef for OpenStack Hack Days
CloudStack EU user group - Trillian
Best practices for MySQL/MariaDB Server/Percona Server High Availability
How DreamHost builds a Public Cloud with OpenStack
Ad

Similar to OpenStack in Action 4! Serge Frezefond - Database Clusters as a Service in OpenStack: Integrated, Scalable, Highly Available and Secure (20)

PDF
High Performance Drupal with MariaDB
PDF
OpenStack in Action 4! Vincent Untz - Running multiple hypervisors in your Op...
PPTX
Real time Analytics with Apache Kafka and Apache Spark
PPTX
Sydney Drupal News May 2012
PPTX
Container Monitoring with Sysdig
PDF
The MySQL Server ecosystem in 2016
PDF
Webinar - DreamObjects/Ceph Case Study
PDF
Johnny Miller – Cassandra + Spark = Awesome- NoSQL matters Barcelona 2014
PDF
Apache Cassandra For Java Developers - Why, What and How. LJC @ UCL October 2014
PPTX
Why favour Icinga over Nagios - Rootconf 2015
PPTX
Yow Conference Dec 2013 Netflix Workshop Slides with Notes
PDF
Icinga 2009 at OSMC
PDF
DrupalCampLA 2014 - Drupal backend performance and scalability
PPTX
Lessons Learned Running Hadoop and Spark in Docker Containers
PPTX
Building reliable apps with cdk
PPTX
ASP.NET 5 auf Raspberry PI & docker
PPTX
Rootconf 2017 - State of the Open Source monitoring landscape
PDF
Experiences from Running Masterless Puppet - PuppetConf 2014
PDF
Docker and serverless Randstad Jan 2019: OpenFaaS Serverless: when functions ...
PPTX
Lessons learned from running Spark on Docker
High Performance Drupal with MariaDB
OpenStack in Action 4! Vincent Untz - Running multiple hypervisors in your Op...
Real time Analytics with Apache Kafka and Apache Spark
Sydney Drupal News May 2012
Container Monitoring with Sysdig
The MySQL Server ecosystem in 2016
Webinar - DreamObjects/Ceph Case Study
Johnny Miller – Cassandra + Spark = Awesome- NoSQL matters Barcelona 2014
Apache Cassandra For Java Developers - Why, What and How. LJC @ UCL October 2014
Why favour Icinga over Nagios - Rootconf 2015
Yow Conference Dec 2013 Netflix Workshop Slides with Notes
Icinga 2009 at OSMC
DrupalCampLA 2014 - Drupal backend performance and scalability
Lessons Learned Running Hadoop and Spark in Docker Containers
Building reliable apps with cdk
ASP.NET 5 auf Raspberry PI & docker
Rootconf 2017 - State of the Open Source monitoring landscape
Experiences from Running Masterless Puppet - PuppetConf 2014
Docker and serverless Randstad Jan 2019: OpenFaaS Serverless: when functions ...
Lessons learned from running Spark on Docker
Ad

More from eNovance (20)

PDF
OpenStack in Action! 5 - OpenStack Fundation - Behind the scenes: How we prod...
PDF
OpenStack in Action! 5 - Red Hat - Accelerate Your Business in the Open Hybri...
PDF
OpenStack in Action! 5 - Dell - OpenStack powered solutions - Patrick Hamon
PPT
Ceph de facto storage backend for OpenStack
PDF
OpenStack in Action 4! Doug hellman - Intersection of OpenStack and python co...
PDF
OpenStack in Action 4! Sebastien Han - Ceph: de facto storage backend for Ope...
PDF
OpenStack in Action 4! Ryan Lane - Keep your service oriented reflexes with O...
PDF
OpenStack in action 4! Paul Cormier - Evolve to an Open Hybrid Cloud. Unleash...
PDF
OpenStack in Action 4! Franz Meyer - What Use Case does Red Hat Enterprise ...
PDF
OpenStack in action 4! Alessandro Pilotti - OpenStack, Hyper-V and Windows
PDF
OpenStack in Action 4! Emilien Macchi & Sylvain Afchain - What's new in neutr...
PDF
OpenStack in Action 4! Rachid Boularas - Pragmatic Storage Solutions for Hava...
PDF
OpenStack in Action 4! Mark McCLain - From Segments to Services a Dive into O...
PDF
OpenStack in Action 4! Julien Niedergang - SUSE Cloud: Openstack Ready for En...
PDF
OpenStack in Action 4! Jean-Louis Lezaun - Re-architecturing the datacenter :...
PDF
OpenStack in Action 4! Heidi Bretz - State of OpenStack, what's new, the tech...
PDF
OpenStack in Action 4! Thierry Carrez - From Havana to Icehouse
PDF
OpenStack in Action 4! Nick Barcet & Julien Danjou - From ceilometer to telem...
PDF
OpenStack in Action 4! Raphaël Ferreira & Laurent Letourmy - Build your Cloud...
PDF
OpenStack in Action 4! Patrick Hamon - Architectures of reference for OpenSta...
OpenStack in Action! 5 - OpenStack Fundation - Behind the scenes: How we prod...
OpenStack in Action! 5 - Red Hat - Accelerate Your Business in the Open Hybri...
OpenStack in Action! 5 - Dell - OpenStack powered solutions - Patrick Hamon
Ceph de facto storage backend for OpenStack
OpenStack in Action 4! Doug hellman - Intersection of OpenStack and python co...
OpenStack in Action 4! Sebastien Han - Ceph: de facto storage backend for Ope...
OpenStack in Action 4! Ryan Lane - Keep your service oriented reflexes with O...
OpenStack in action 4! Paul Cormier - Evolve to an Open Hybrid Cloud. Unleash...
OpenStack in Action 4! Franz Meyer - What Use Case does Red Hat Enterprise ...
OpenStack in action 4! Alessandro Pilotti - OpenStack, Hyper-V and Windows
OpenStack in Action 4! Emilien Macchi & Sylvain Afchain - What's new in neutr...
OpenStack in Action 4! Rachid Boularas - Pragmatic Storage Solutions for Hava...
OpenStack in Action 4! Mark McCLain - From Segments to Services a Dive into O...
OpenStack in Action 4! Julien Niedergang - SUSE Cloud: Openstack Ready for En...
OpenStack in Action 4! Jean-Louis Lezaun - Re-architecturing the datacenter :...
OpenStack in Action 4! Heidi Bretz - State of OpenStack, what's new, the tech...
OpenStack in Action 4! Thierry Carrez - From Havana to Icehouse
OpenStack in Action 4! Nick Barcet & Julien Danjou - From ceilometer to telem...
OpenStack in Action 4! Raphaël Ferreira & Laurent Letourmy - Build your Cloud...
OpenStack in Action 4! Patrick Hamon - Architectures of reference for OpenSta...

Recently uploaded (20)

PDF
Improvisation in detection of pomegranate leaf disease using transfer learni...
PDF
Enhancing plagiarism detection using data pre-processing and machine learning...
PDF
4 layer Arch & Reference Arch of IoT.pdf
PDF
Produktkatalog für HOBO Datenlogger, Wetterstationen, Sensoren, Software und ...
PDF
Statistics on Ai - sourced from AIPRM.pdf
PDF
sbt 2.0: go big (Scala Days 2025 edition)
PPT
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
PPTX
GROUP4NURSINGINFORMATICSREPORT-2 PRESENTATION
PPTX
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
PDF
The influence of sentiment analysis in enhancing early warning system model f...
PDF
The-2025-Engineering-Revolution-AI-Quality-and-DevOps-Convergence.pdf
PPTX
MuleSoft-Compete-Deck for midddleware integrations
PPTX
Module 1 Introduction to Web Programming .pptx
PDF
Lung cancer patients survival prediction using outlier detection and optimize...
PDF
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
PDF
Transform-Quality-Engineering-with-AI-A-60-Day-Blueprint-for-Digital-Success.pdf
PPTX
future_of_ai_comprehensive_20250822032121.pptx
PDF
Comparative analysis of machine learning models for fake news detection in so...
PPTX
Configure Apache Mutual Authentication
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
Improvisation in detection of pomegranate leaf disease using transfer learni...
Enhancing plagiarism detection using data pre-processing and machine learning...
4 layer Arch & Reference Arch of IoT.pdf
Produktkatalog für HOBO Datenlogger, Wetterstationen, Sensoren, Software und ...
Statistics on Ai - sourced from AIPRM.pdf
sbt 2.0: go big (Scala Days 2025 edition)
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
GROUP4NURSINGINFORMATICSREPORT-2 PRESENTATION
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
The influence of sentiment analysis in enhancing early warning system model f...
The-2025-Engineering-Revolution-AI-Quality-and-DevOps-Convergence.pdf
MuleSoft-Compete-Deck for midddleware integrations
Module 1 Introduction to Web Programming .pptx
Lung cancer patients survival prediction using outlier detection and optimize...
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
Transform-Quality-Engineering-with-AI-A-60-Day-Blueprint-for-Digital-Success.pdf
future_of_ai_comprehensive_20250822032121.pptx
Comparative analysis of machine learning models for fake news detection in so...
Configure Apache Mutual Authentication
Taming the Chaos: How to Turn Unstructured Data into Decisions

OpenStack in Action 4! Serge Frezefond - Database Clusters as a Service in OpenStack: Integrated, Scalable, Highly Available and Secure

  • 1. Database  Cluster  as  a  Service  in   OpenStack   Integrated, Scalable, Highly Available and Secure   OpenStack in Action 4 ! - Paris - 5th December 2013 Serge Frezefond Serge Frezefond @sfrezefond .
  • 2. SkySQL   • Leading  provider  of  open   source  databases,  services   and  solu=ons   • Home  for  the  founders  and   the  original  developers  of   the  core  of  MySQL   • The  creators  of  MariaDB,  the   drop-­‐in,  innova=ve   replacement  of  MySQL OpenStack in Action 4 ! - Paris - 5th December 2013 Serge Frezefond
  • 3. MySQL/MariaDB  in  the  Cloud   OpenStack in Action 4 ! - Paris - 5th December 2013 Serge Frezefond
  • 4. MySQL/MariaDB  High  Availability   • MySQL  Replica=on  with  MHA  and  Pacemaker   • MariaDB  Galera  Cluster  Synchronous  Replica=on  with  Codership   Galera   • Support  from  SkySQL  for:   • DRBD   • Shared  storage   OpenStack in Action 4 ! - Paris - 5th December 2013 Serge Frezefond 4
  • 5. MySQL  /MariaDB  Scalability   • In  MariaDB  5.5:   • XtraDB  5.5   • Group  commit   • MySQL  Replica=on  for  read  scalability   • TokuDB  and  ScaleDB  engine   • Plus,  in  MariaDB  10:   • XtraDB  5.6  with  Improved  InnoDB  scalability   • Parallel  and  mul=-­‐source  replica=on   • CONNECT,  Spider  and  Cassandra  engine   • MariaDB  Galera  Cluster  for  synchronous  replica=on   • MySQL  Cluster  for  high  volume/small  transac=ons   OpenStack in Action 4 ! - Paris - 5th December 2013 Serge Frezefond
  • 6. MySQL  /  MariaDB  Ease  of  Use   • MHA   • Xtrabackup   • MariaDB  Manager   • Enterprise  Monitor   • Query  Editor   • MySQL  U=li=es   • Percona  Toolkit     • MySQL  Workbench   OpenStack in Action 4 ! - Paris - 5th December 2013 Serge Frezefond 6
  • 7. MySQL  in  Rackspace   • Rackspace  Cloud  Database   • MySQL  Community  5.1   • Up  to  16GB  RAM,  150GB  storage   • Standard  Servers   • Up  to  8  vCPUs,  30GB  RAM,  1.2TB  storage   • BYODBMS   OpenStack in Action 4 ! - Paris - 5th December 2013 Serge Frezefond 7
  • 8. MySQL  in  HPCloud   • Manage  a  single  DB  instance  through  the  REST  API   • Standard  Servers   • Up  to  8  vCPUs,  30GB  RAM,  960GB  storage   • BYODBMS   • Marketplace   • GenieDB   • MariaDB  ScaleDB   OpenStack in Action 4 ! - Paris - 5th December 2013 Serge Frezefond 8
  • 9. MySQL  in  AWS   • Amazon  RDS   • MySQL  Community  5.1,  5.5  &  5.6   • Reserved  instances,  provisioned  IO  and  Flash  storage   • 32  vCPUs,  244GB  Memory,  10GB  network   • Automa=c  backups,  Storage  replica=on,  MySQL  Replica=on   • Limited  tuning   • Standard  Servers  and  Marketplace   • Similar  instances   • MariaDB  on  CentOS,  Debian  and  Ubuntu   • GenieDB   OpenStack in Action 4 ! - Paris - 5th December 2013 Serge Frezefond 9
  • 10. MySQL  in  Google  Cloud   • MySQL  in  Google  Cloud  SQL     • Google  compute  (GA)   • Google App Engine OpenStack in Action 4 ! - Paris - 5th December 2013 Serge Frezefond 10
  • 11. MySQL  and  OpenStack   OpenStack in Action 4 ! - Paris - 5th December 2013 Serge Frezefond
  • 12. MySQL    in  OpenStack   • Used  as  repository  -­‐  alterna=ve  to  SQLite   • Increased  portability  and  availability   • High  Availability  is  the  key  factor:   • MySQL  Replica=on   • DRBD   • Galera   OpenStack in Action 4 ! - Paris - 5th December 2013 Serge Frezefond 12
  • 13. MySQL  Replica=on   Control Network Compute Node  Manager HA  Manager OpenStack in Action 4 ! - Paris - 5th December 2013 Serge Frezefond 13
  • 14. DRBD   Control Network Compute OpenStack in Action 4 ! - Paris - 5th December 2013 Serge Frezefond 14
  • 15. Galera  Cluster   Control Network Compute OpenStack in Action 4 ! - Paris - 5th December 2013 Serge Frezefond 15
  • 16. MySQL  as  a  Service   OpenStack in Action 4 ! - Paris - 5th December 2013 Serge Frezefond
  • 17. Automa=c  Provisioning   • REST-­‐based  for  interopera=on   • GUI-­‐assisted  for  end-­‐users   • From  server  to  cluster   OpenStack in Action 4 ! - Paris - 5th December 2013 Serge Frezefond 17
  • 18. The  false  promise  of  the   elas=city   • Distributed  MySQL  is  not  something  you  can  have  out  of  the  box   • Or  not  for  all  your  applica=ons   Read-Write Read-Only binlog Read-Only relaylog relaylog relaylog OpenStack in Action 4 ! - Paris -relaylog 5th December 2013 Serge Frezefond 18
  • 19. DBaaS  vs  PaaS   vs. OpenStack in Action 4 ! - Paris - 5th December 2013 Serge Frezefond 19
  • 20. Storage   • Backups  on  Swic   • Full  or  incremental   • Moving  tablespaces  in   Cinder   • For  high  availability   • For  backups  and  archiving   • For  maintenance   OpenStack in Action 4 ! - Paris - 5th December 2013 in01 in02 in03 Serge Frezefond in04 in05 20
  • 21. Networking   • Mul=ple  NICs  and   floa=ng  IPs   • Public  IPs   • Local  proxies  vs   enhanced  connectors   OpenStack in Action 4 ! - Paris - 5th December 2013 Serge Frezefond 21
  • 22. Security   • LDAP  &  Keystone   • Integra=on  with  MySQL   • LDAP  /  OpenLDAP   • MySQL  Security  Plugin  using   OpenLDAP   LDAP Keystone OpenStack in Action 4 ! - Paris - 5th December 2013 Serge Frezefond 22
  • 23. MariaDB  Cluster  in  OpenStack   OpenStack in Action 4 ! - Paris - 5th December 2013 Serge Frezefond
  • 24. What’s  new  with  MariaDB   MariaDB Manager Configuration & Provisioning GUI API Monitor OpenStack in Action 4 ! - Paris - 5th December 2013 MariaDB Cluster MaxScale MHA Galera MariaDB Server(s) Serge Frezefond 24
  • 25. Client Client Client Client Client Client Applications Frontend SkySQL   MaxScale   Frontend Frontend Frontend Frontend Listener MaxScale Core Server Listener Listener Service Server Service Server Router Router Router Service Server Listener Auth Auth Auth Server Monitor Monitor Backend OpenStack in Action 4 ! - Paris - 5th December 2013 Backend Backend Data Stores Serge Frezefond 25
  • 26. Introducin g   MariaDB   Manager   OpenStack in Action 4 ! - Paris - 5th December 2013 Serge Frezefond 26
  • 27. MariaDB  Galera  Cluster  -­‐  State   OpenStack in Action 4 ! - Paris - 5th December 2013 Serge Frezefond 27
  • 28. Provision  a  new  node   1 HTTP  POST  method  -­‐  Create  a   node   URI:   • .../resfulapi/system/systemid/ node   • Parameters:   •  name   •  hostname   •  publicip,  privateip,  port   •  instanceid   •  dbusername,  dbpassword   •  ... OpenStack in Action 4 ! - Paris - 5th December 2013 Serge Frezefond 28
  • 29. Provision  a  new  node   1 HTTP  POST  method  -­‐  Create  a   2 node   URI:   HTTP  POST  method  -­‐  Run  the   • .../resfulapi/system/systemid/ command   node   Connect  to  the  new  node   • Parameters:   URI:   • .../resfulapi/command/connect   •  name   •  hostname   •  publicip,  privateip,  p•  Parameters:   ort   •  instanceid   •  systemid   •  dbusername,  dbpassword   •  nodeid   •  ... •  rootpassword OpenStack in Action 4 ! - Paris - 5th December 2013 Serge Frezefond 29
  • 30. Provision  a  new  node   1 HTTP  POST  method  -­‐  Create  a   2 node   URI:   HTTP  POST  method  -­‐  Run  the   3 • .../resfulapi/system/systemid/ command   node   Connect  to  the  new  node   POST  method  -­‐  Run  the   HTTP   • Parameters:   URI:   command   •  name   • .../resfulapi/command/connect   state  of  the  node   •  hostname   Probe  the   •  publicip,  privateip,  p•  Parameters:   ort   URI:   •  instanceid   •  systemid   • .../resfulapi/command/probe   •  dbusername,  dbpassword   •  nodeid   • Parameters:   •  ... •  rootpassword •  systemid   •  nodeid OpenStack in Action 4 ! - Paris - 5th December 2013 Serge Frezefond 30
  • 31. Provision  a  new  node   1 HTTP  POST  method  -­‐  Create  a   2 node   URI:   HTTP  POST  method  -­‐  Run  the   3 • .../resfulapi/system/systemid/ command   node   Connect  to  the  new  node   POST  method  -­‐  Run  the   HTTP   • Parameters:   4 URI:   command   •  name   • .../resfulapi/command/connect   state  of  the  node  OST  method  -­‐  Run  the   •  hostname   Probe  the   HTTP  P •  publicip,  privateip,  p•  Parameters:   ort   URI:   command   •  instanceid   •  systemid   • .../resfulapi/command/probe   the  node   Provision   •  dbusername,  dbpassword   •  nodeid   • Parameters:   •  ... •  rootpassword URI:   •  systemid   • .../resfulapi/command/provision   •  nodeid • Parameters:   OpenStack in Action 4 ! - Paris - 5th December 2013 •  systemid   •  nodeid Serge Frezefond 31
  • 32. Start  a  node   HTTP  POST  method  -­‐  Run  the   command   Start  the  node   URI:   • .../resfulapi/command/start   • Parameters:   •  systemid   •  nodeid OpenStack in Action 4 ! - Paris - 5th December 2013 Serge Frezefond 32
  • 33. Retrieve  the  status  of  a   cluster   • .../resfulapi/system/systemid OpenStack in Action 4 ! - Paris - 5th December 2013 Serge Frezefond 33
  • 34. Monitor  the  #  of  connec=ons  of  a   node   •  ../resfulapi/system/systemid/ node/nodeid/monitor/ {monitorid}/data OpenStack in Action 4 ! - Paris - 5th December 2013 Serge Frezefond 34
  • 35. What’s  coming   • MariaDB  Replica=on  and  MHA   • MariaDB  10   • MaxScale  integra=on   • Juju  charms  for  MariaDB  Cluster  and  MariaDB  Manager   • Puppet  &  Chef  manifests  and  recipes   • MariaDB  and  Trove   • Trove  for  MariaDB  Manager   OpenStack in Action 4 ! - Paris - 5th December 2013 Serge Frezefond 35
  • 36. For  More  Informa=on...   •  MariaDB  Enterprise:   www.mariadb.org   www.mariadb.com   •  MariaDB  Manager  and  MaxScale:   hPp://downloads.skysql.com/ archives   •  Bugs:  hPp://bugs.skysql.com OpenStack in Action 4 ! - Paris - 5th December 2013 Serge Frezefond 36
  • 37. Pictures  courtesy  of:   • www.pluralsight.com Thank  You!   www.skysql.co m OpenStack in Action 4 ! - Paris - 5th December 2013 [email protected] m   hop://serge.frezefond.com   www.slideshare.net/ Serge Frezefond sfrezefond