Intro To The SkySQL Cloud Data Suite

79
V1212.01 Ivan Zoratti SkySQL Data Suite A New Open Source Approach to MySQL Distributed Systems Wednesday, 5 December 12

description

These are the slides that I presented at Percona Live London, 4th Dec 2012. We have announced the new Administrator Console as part of the SkySQL Cloud Data Suite, now available for download on your laptops and linux desktops.

Transcript of Intro To The SkySQL Cloud Data Suite

Page 1: Intro To The SkySQL Cloud Data Suite

V1212.01

Ivan Zoratti

SkySQL Data SuiteA New Open Source Approach to MySQL Distributed Systems

Wednesday, 5 December 12

Page 2: Intro To The SkySQL Cloud Data Suite

Who is Ivan

?Wednesday, 5 December 12

Page 3: Intro To The SkySQL Cloud Data Suite

SkySQL•#1 provider of MySQL-based

solutions, for software and services

•Backed by Monty Program AB and 3rd parties active in the MySQL ecosystem

•Committed to provide the best solutions around MySQL for the Community and for the Enterprise

Wednesday, 5 December 12

Page 4: Intro To The SkySQL Cloud Data Suite

PAGE

Agenda

• SkySQL Cloud Data Suite Architecture

• SkySQL Cloud Data Suite on Amazon EC2

• Components for automated provisioning in AWS

• Components for high availability in EC2

• The Administration Console

• Automated Backup/Restore with S3

4Wednesday, 5 December 12

Page 5: Intro To The SkySQL Cloud Data Suite

PAGE

Agenda

• SkySQL Cloud Data Suite Architecture

• SkySQL Cloud Data Suite on Amazon EC2

• Components for automated provisioning in AWS

• Components for high availability in EC2

• The Administration Console

• Automated Backup/Restore with S3

4

WARNING!We have lots of slides

Wednesday, 5 December 12

Page 6: Intro To The SkySQL Cloud Data Suite

Intro to SkySQL Data SuiteWednesday, 5 December 12

Page 7: Intro To The SkySQL Cloud Data Suite

PAGE

SkySQL Data Suite

6

SkySQL Data Suite

High Availability

Full-Text

Replication& MHA

Galera

DRBD

Analytics

Carrier Grade

Online Apps.

SharedStorage

Wednesday, 5 December 12

Page 8: Intro To The SkySQL Cloud Data Suite

PAGE

SkySQL Cloud Data Suite

7

SkySQL Data Suite

High Availability

Full-Text

Replication

Galera

DRBD

Analytics

Carrier Grade

Online Apps.

SharedStorage

Wednesday, 5 December 12

Page 9: Intro To The SkySQL Cloud Data Suite

PAGE

Cloud Data Suitevs

Enterprise Data Suite

8

Cloud Data Suite

•Deployed in Amazon AWS•Automatic configuration and provisioning•MariaDB 5.5•MySQL Replication with Pacemaker/Corosync

•Administration Console with Backup/Restore•SkySQL Enterprise Monitoring aka MONyog - Trial•PhpMyAdmin•Community Support•Development Release•Fully OSS (with MONyog Trial)

Enteprise Data Suite

•Deployed in Clouds, virtualised env. and bare OS•Standard download packages•MariaDB, MySQL, Percona Servers•MySQL Replication with MHA, DRBD, Galera or shared storage and Pacemaker/Corosync

•ZManda Recovery Manager•SkySQL Enterprise Monitory aka MONyog•SQLyog•Enterprise Technical Support•Production Release•Mix of OSS and Commercial

Wednesday, 5 December 12

Page 10: Intro To The SkySQL Cloud Data Suite

PAGE

SkySQL Cloud Data Suite Sep 2012

1. Configure your DB system on config.skysql.com or cloud.skysql.com

2. Deploy the DB system:• Online• Configuration pull from AWS• Manually

3. Connect the DB system toyour application

1

2

3

9Wednesday, 5 December 12

Page 11: Intro To The SkySQL Cloud Data Suite

PAGE

SkySQL Data Suite Dec 2012

• Rel. 1.1 with bug fixing

• New Administration Console with: • rpm package and installation on Linux OS

• Administration and monitoring of replicated and standalone servers

• Customisable graphs

• Customisable commands

10Wednesday, 5 December 12

Page 12: Intro To The SkySQL Cloud Data Suite

SkySQL Data Suite ArchitectureWednesday, 5 December 12

Page 13: Intro To The SkySQL Cloud Data Suite

PAGE

SkySQL Data Suite Configurator

12

AMI

User Account

Wednesday, 5 December 12

Page 14: Intro To The SkySQL Cloud Data Suite

PAGE

SkySQL Data Suite Configurator

12

ConfigurationEngine

RulesRepository

AMI

User Account

Wednesday, 5 December 12

Page 15: Intro To The SkySQL Cloud Data Suite

PAGE

SkySQL Data Suite Configurator

12

ConfigurationEngine

RulesRepository

ProvisioningQueue

AMI

User Account

Wednesday, 5 December 12

Page 16: Intro To The SkySQL Cloud Data Suite

PAGE

SkySQL Data Suite Configurator

12

ConfigurationEngine

RulesRepository

ProvisioningEngine

SoftwareRepository

ProvisioningQueue

AMI

User Account

Wednesday, 5 December 12

Page 17: Intro To The SkySQL Cloud Data Suite

PAGE

SkySQL Data Suite Configurator

12

ConfigurationEngine

RulesRepository

ProvisioningEngine

SoftwareRepository

ProvisioningQueue

DeploymentQueue

AMI

User Account

Wednesday, 5 December 12

Page 18: Intro To The SkySQL Cloud Data Suite

PAGE

SkySQL Data Suite Configurator

12

ConfigurationEngine

RulesRepository

ProvisioningEngine

SoftwareRepository

DeploymentEngine

ProvisioningQueue

DeploymentQueue

AMI

User Account

Wednesday, 5 December 12

Page 19: Intro To The SkySQL Cloud Data Suite

PAGE

SkySQL Data Suite Configurator

12

ConfigurationEngine

RulesRepository

ProvisioningEngine

SoftwareRepository

DeploymentEngine

ProvisioningQueue

DeploymentQueue

AMI

DatabaseDatabase

Database Database Database

userdata.sh

User Account

Deployment triggered by the first boot of each instance

Wednesday, 5 December 12

Page 20: Intro To The SkySQL Cloud Data Suite

PAGE

SkySQL Data Suite Configurator

12

ConfigurationEngine

RulesRepository

ProvisioningEngine

SoftwareRepository

DeploymentEngine

ProvisioningQueue

DeploymentQueue

AMI

DatabaseDatabase

Database Database Database

userdata.sh

User Account

Deployment triggered by the first boot of each instance

Wednesday, 5 December 12

Page 21: Intro To The SkySQL Cloud Data Suite

PAGE

SkySQL Cloud Data Suite

13

DatabaseDatabase

Database Database Database

$ ssh -i SDS193500.pem [email protected][ec2-user@node1 ~]$ ps -efUID PID PPID C STIME TTY TIME CMDroot 1157 1 0 Nov29 ? 00:00:02 /usr/sbin/glusterd --pid-file=/var/run/glusterd.pidroot 1840 1 2 Nov29 ? 00:11:34 /usr/sbin/glusterfsd -s localhost --volfile-id glust...root 1889 1 0 Nov29 ? 00:00:50 /usr/sbin/glusterfsd -s localhost --volfile-id glust...root 1895 1 0 Nov29 ? 00:00:01 /usr/sbin/glusterfs -s localhost --volfile-id gluste...root 1901 1 0 Nov29 ? 00:00:01 /usr/sbin/glusterfs -s localhost --volfile-id gluste...root 4484 1 8 Nov29 ? 00:36:13 /usr/sbin/glusterfs --volfile-id=/gluster-monyog --......root 1311 1 0 Nov29 ? 00:00:34 corosync220 1317 1311 0 Nov29 ? 00:00:12 /usr/libexec/pacemaker/cibroot 1318 1311 0 Nov29 ? 00:00:05 /usr/libexec/pacemaker/stonithdroot 1319 1311 0 Nov29 ? 00:00:12 /usr/lib64/heartbeat/lrmd220 1320 1311 0 Nov29 ? 00:00:03 /usr/libexec/pacemaker/attrd220 1321 1311 0 Nov29 ? 00:00:01 /usr/libexec/pacemaker/pengine220 1322 1311 0 Nov29 ? 00:00:05 /usr/libexec/pacemaker/crmd...root 1534 1 0 Nov29 ? 00:00:00 sendmail: accepting connectionssmmsp 1542 1 0 Nov29 ? 00:00:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue...root 2293 1 0 Nov29 ? 00:00:00 /bin/sh /usr/bin/mysqld_safe --defaults-file=/etc/my.cnf --p...mysql 2791 2293 0 Nov29 ? 00:00:28 /usr/sbin/mysqld --defaults-file=/etc/my.cnf --basedir=/usr ......root 3467 1 0 Nov29 ? 00:00:01 /usr/sbin/httpd -DSTATUS -f /etc/httpd/conf/httpd.confapache 25416 3467 0 Nov29 ? 00:00:00 /usr/sbin/httpd -DSTATUS -f /etc/httpd/conf/httpd.conf...root 4578 1 1 Nov29 ? 00:07:56 /usr/local/MONyog/bin/MONyog-bin -s

Terminal

Admin Console

PhpMyAdmin

MONyog

Wednesday, 5 December 12

Page 22: Intro To The SkySQL Cloud Data Suite

PAGE

SkySQL Data Suite Building Block

14

Replicator

DatabaseDatabase

Database Database Database

Data StoreAdminConsole

Wednesday, 5 December 12

Page 23: Intro To The SkySQL Cloud Data Suite

PAGE 15

SkySQL Cloud Data Suite Sep 2012Technologies and Software

Replicator

DatabaseDatabase

Database Database Database

Data StoreAdminConsole

FRONT ENDApacheTomcat

BACK ENDSQLite

MariaDB

Linux 3.2 (Amazon Distro)

MONyogTrial

PHPMyAdmin

MySQL ReplicationGlusterFSPacemaker

Corosync Xtrabackup

Wednesday, 5 December 12

Page 24: Intro To The SkySQL Cloud Data Suite

PAGE 16

SkySQL Cloud Data Suite Sep 2012Data Store

DatabaseDatabase

Database Database Database

Data Store

PublicSkySQL AMI

MariaDB 5.5MyISAM, InnoDB, XtraDB, Enhanced

Optimizer, Virtual Columns

From standalone to1 Master + 3 Slaves

System and Datafile systems

Pacemaker controls the automatic failover

Wednesday, 5 December 12

Page 25: Intro To The SkySQL Cloud Data Suite

PAGE 17

SkySQL Cloud Data Suite Sep 2012Administration Console

DatabaseDatabase

Database Database Database

AdminConsole

GUI to monitor the status of the

Cluster

Extended Monitoring from MONyog as a trial

PhPMyAdmin as graphical user tool

Backup/Restore to/from S3 using

XtrabackupStart/Stop, Isolate,

Promote nodesmysql command

line interface

Automatic failover for the admin and

monitoring servers

Wednesday, 5 December 12

Page 26: Intro To The SkySQL Cloud Data Suite

PAGE 18

SkySQL Cloud Data Suite Sep 2012Replicator

Replicator

DatabaseDatabase

Database Database Database

Wednesday, 5 December 12

Page 27: Intro To The SkySQL Cloud Data Suite

PAGE 18

SkySQL Cloud Data Suite Sep 2012Replicator

Replicator

DatabaseDatabase

Database Database Database

Standard MySQL Replication in asynchronous and semi-

synchronous mode

Wednesday, 5 December 12

Page 28: Intro To The SkySQL Cloud Data Suite

PAGE 18

SkySQL Cloud Data Suite Sep 2012Replicator

Replicator

DatabaseDatabase

Database Database Database

Standard MySQL Replication in asynchronous and semi-

synchronous modeGlusterFS on ext4 to replicate the

data collection and monitoring

Wednesday, 5 December 12

Page 29: Intro To The SkySQL Cloud Data Suite

PAGE 18

SkySQL Cloud Data Suite Sep 2012Replicator

Replicator

DatabaseDatabase

Database Database Database

Standard MySQL Replication in asynchronous and semi-

synchronous modeGlusterFS on ext4 to replicate the

data collection and monitoring

Automatic failover of database servers and console components

Wednesday, 5 December 12

Page 30: Intro To The SkySQL Cloud Data Suite

PAGE

SkySQL Data Suite Provisioning

19

AMI

DatabaseDatabase

Database Database Database

userdata.sh

User Account

Wednesday, 5 December 12

Page 31: Intro To The SkySQL Cloud Data Suite

PAGE

SkySQL Data Suite Provisioning

19

AMI

DatabaseDatabase

Database Database Database

userdata.sh

User AccountVariable definition - they will

be used later when other scripts are called

Wednesday, 5 December 12

Page 32: Intro To The SkySQL Cloud Data Suite

PAGE

SkySQL Data Suite Provisioning

19

AMI

DatabaseDatabase

Database Database Database

userdata.sh

User AccountVariable definition - they will

be used later when other scripts are called

On-the-fly configuration files, such as my.cnf

Wednesday, 5 December 12

Page 33: Intro To The SkySQL Cloud Data Suite

PAGE

SkySQL Data Suite Provisioning

19

AMI

DatabaseDatabase

Database Database Database

userdata.sh

User AccountVariable definition - they will

be used later when other scripts are called

On-the-fly configuration files, such as my.cnf

Execute predefinedscripts already in the AMI

Wednesday, 5 December 12

Page 34: Intro To The SkySQL Cloud Data Suite

PAGE

SkySQL Data Suite Provisioning

19

AMI

DatabaseDatabase

Database Database Database

userdata.sh

User AccountVariable definition - they will

be used later when other scripts are called

On-the-fly configuration files, such as my.cnf

Execute predefinedscripts already in the AMI

Adaptive, distributed setup

Wednesday, 5 December 12

Page 35: Intro To The SkySQL Cloud Data Suite

PAGE

SkySQL Data Suite Provisioning

19

AMI

DatabaseDatabase

Database Database Database

userdata.sh

User AccountVariable definition - they will

be used later when other scripts are called

On-the-fly configuration files, such as my.cnf

Execute predefinedscripts already in the AMI

Adaptive, distributed setup

Elastic IP onthe Master Server

Wednesday, 5 December 12

Page 36: Intro To The SkySQL Cloud Data Suite

PAGE

SkySQL Data Suite Provisioning

19

AMI

DatabaseDatabase

Database Database Database

userdata.sh

User AccountVariable definition - they will

be used later when other scripts are called

On-the-fly configuration files, such as my.cnf

Execute predefinedscripts already in the AMI

Adaptive, distributed setup

Elastic IP onthe Master Server

Currently, the Administration Console is on the Master server

Wednesday, 5 December 12

Page 37: Intro To The SkySQL Cloud Data Suite

PAGE

SkySQL Data Suite Deployment

20Wednesday, 5 December 12

Page 38: Intro To The SkySQL Cloud Data Suite

PAGE

SkySQL Data Suite Deployment

20

Database

Wednesday, 5 December 12

Page 39: Intro To The SkySQL Cloud Data Suite

PAGE

SkySQL Data Suite Deployment

20

Database

Database

Database

Database

Database

Wednesday, 5 December 12

Page 40: Intro To The SkySQL Cloud Data Suite

PAGE

SkySQL Data Suite Deployment

20

Database

Database

Database

Database

Database

Database

Database

Database

Database

Wednesday, 5 December 12

Page 41: Intro To The SkySQL Cloud Data Suite

PAGE

SkySQL Data Suite Deployment

20

Database

Database

Database

Database

Database

Database

Database

Database

Database

Database

Database

Database

Database

Database

Wednesday, 5 December 12

Page 42: Intro To The SkySQL Cloud Data Suite

PAGE

SkySQL Data Suite Deployment

20

Database

Database

Database

Database

Database

Database

Database

Database

Database

Database

Database

Database

Database

Database

Wednesday, 5 December 12

Page 43: Intro To The SkySQL Cloud Data Suite

PAGE

SkySQL Data Suite Deployment

21Wednesday, 5 December 12

Page 44: Intro To The SkySQL Cloud Data Suite

PAGE

SkySQL Data Suite Deployment

21Wednesday, 5 December 12

Page 45: Intro To The SkySQL Cloud Data Suite

PAGE

SkySQL Data Suite Deployment

21Wednesday, 5 December 12

Page 46: Intro To The SkySQL Cloud Data Suite

Automated Provisioning in AWS

Wednesday, 5 December 12

Page 47: Intro To The SkySQL Cloud Data Suite

PAGE

Starting Here!

23

You can try it for FREE! Even without an

AWS account

Wednesday, 5 December 12

Page 48: Intro To The SkySQL Cloud Data Suite

PAGE

Simplified Interface

24

Immediate Help

Real Time Check

Wednesday, 5 December 12

Page 49: Intro To The SkySQL Cloud Data Suite

PAGE

Advanced Configuration

25Wednesday, 5 December 12

Page 50: Intro To The SkySQL Cloud Data Suite

PAGE

Cost Estimation

26Wednesday, 5 December 12

Page 51: Intro To The SkySQL Cloud Data Suite

PAGE

Delivery Mechanism

27Wednesday, 5 December 12

Page 52: Intro To The SkySQL Cloud Data Suite

PAGE

Online Deployment

28

The keys will be discarded immediatelyafter the provisioning

Wednesday, 5 December 12

Page 53: Intro To The SkySQL Cloud Data Suite

PAGE

Extra AWS & Contact Info

29Wednesday, 5 December 12

Page 54: Intro To The SkySQL Cloud Data Suite

PAGE

Welcome Email

30

mysql command line

Administration Console

ssh connection

How to remove SCDS

An inventory of the AWS components

IMPORTANT!Your pem key

Wednesday, 5 December 12

Page 55: Intro To The SkySQL Cloud Data Suite

PAGE

Job Done!

31Wednesday, 5 December 12

Page 56: Intro To The SkySQL Cloud Data Suite

SkySQL Cloud Data Suite in Amazon EC2

Wednesday, 5 December 12

Page 57: Intro To The SkySQL Cloud Data Suite

PAGE

SecurityIdentity Access Manager Roles

33

• EIP Address• Associate/Disassociate, Describe

• Instances• Start, Stop, Describe• Attributes, Status, Tags, Net IF

• Create, Describe

• S3 Buckets• List, Create, Delete• Objects

• Get, Put, List, Delete

Wednesday, 5 December 12

Page 58: Intro To The SkySQL Cloud Data Suite

PAGE 34

SecuritySecurity Groups

• ssh

• http

• MySQL

• MONyog

Wednesday, 5 December 12

Page 59: Intro To The SkySQL Cloud Data Suite

PAGE

Storage

35Wednesday, 5 December 12

Page 60: Intro To The SkySQL Cloud Data Suite

Components for High Availability in EC2

Wednesday, 5 December 12

Page 61: Intro To The SkySQL Cloud Data Suite

PAGE

Automatic Failover with PacemakerCRM Configuration

37

Replicator

DatabaseDatabase

Database Database

Data StoreAdminConsole

Wednesday, 5 December 12

Page 62: Intro To The SkySQL Cloud Data Suite

PAGE

Automatic Failover with PacemakerCRM Configuration

37

Replicator

DatabaseDatabase

Database Database

Data StoreAdminConsole

Wednesday, 5 December 12

Page 63: Intro To The SkySQL Cloud Data Suite

PAGE

Automatic Failover with PacemakerCRM Configuration

37

Replicator

DatabaseDatabase

Database Database

Data StoreAdminConsole

Wednesday, 5 December 12

Page 64: Intro To The SkySQL Cloud Data Suite

PAGE

Automatic Failover with PacemakerCRM Configuration

37

Replicator

DatabaseDatabase

Database Database

Data StoreAdminConsole

Wednesday, 5 December 12

Page 65: Intro To The SkySQL Cloud Data Suite

PAGE

Automatic Failover with PacemakerCRM Configuration

37

Replicator

DatabaseDatabase

Database Database

Data StoreAdminConsole

Wednesday, 5 December 12

Page 66: Intro To The SkySQL Cloud Data Suite

PAGE

Automatic Failover with PacemakerCRM Configuration

38

Replicator

DatabaseDatabase

Database Database

Data StoreAdminConsole

[root@node2 init.d]# crm status============Last updated: Sat Dec 1 12:42:03 2012Last change: Fri Nov 30 12:43:27 2012 via crm_attribute on node2Stack: openaisCurrent DC: node2 - partition with quorumVersion: 1.1.7-6.el6-148fccfd5985c5590cc601123c6c16e966b85d144 Nodes configured, 4 expected votes14 Resources configured.============

Online: [ node2 node3 node1 node4 ]

Master/Slave Set: ms_resMySQL [resMySQL] Masters: [ node2 ] Slaves: [ node1 node3 node4 ] AmazonEIP (lsb:amazon_master_eip): Started 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

Node 2

Elastic IP

Public IPsPublic IPsPublic IPs

admin-console and MONyog group

Wednesday, 5 December 12

Page 67: Intro To The SkySQL Cloud Data Suite

The Administration ConsoleWednesday, 5 December 12

Page 68: Intro To The SkySQL Cloud Data Suite

PAGE

Admin Console Dec 2012

40Wednesday, 5 December 12

Page 69: Intro To The SkySQL Cloud Data Suite

PAGE

Admin Console Dec 2012

41

Access to MONyog

MasterServer

ContextSensitiveContext

Sensitive

Customisable Graphs

Wednesday, 5 December 12

Page 70: Intro To The SkySQL Cloud Data Suite

PAGE

Admin Console Dec 2012

42

Access to PhpMyAdmin

Customisable Commands

Backup/Restore

Wednesday, 5 December 12

Page 71: Intro To The SkySQL Cloud Data Suite

PAGE 43

Administration Console Dec 2012Customizable Graphs

Name SQL Icon Delta Avg Chart

Monitors

Wednesday, 5 December 12

Page 72: Intro To The SkySQL Cloud Data Suite

PAGE 44

Administration Console Dec 2012Customizable Commands

Desc Icon Order

Commands

Desc Icon Script

Steps

CommandStep

Wednesday, 5 December 12

Page 73: Intro To The SkySQL Cloud Data Suite

Automated Backup/Restore with S3Wednesday, 5 December 12

Page 74: Intro To The SkySQL Cloud Data Suite

PAGE

Automated BackupUsing Xtrabackup from the Admin Console

46Wednesday, 5 December 12

Page 75: Intro To The SkySQL Cloud Data Suite

PAGE

Automated BackupUsing Xtrabackup from the Admin Console

47Wednesday, 5 December 12

Page 76: Intro To The SkySQL Cloud Data Suite

PAGE

Automated BackupUsing Xtrabackup from the Admin Console

48Wednesday, 5 December 12

Page 77: Intro To The SkySQL Cloud Data Suite

PAGE

Why is the SkySQL Cloud Data Suite important for you?

49

• You can test MariaDB/MySQL on AWS for FREE

• You can use and fully control a ready made highly available solution AWS

• You can compare MySQL on EC2 and RDS

• You can study/review security and availability aspects in AWS

• You can use some of the SCDS components in your environment

Wednesday, 5 December 12

Page 78: Intro To The SkySQL Cloud Data Suite

PAGE

For more information...

50

• Try the Configurator and How-To Video: http://cloud.skysql.com

• The Admin Console: http://www.skysql.com/downloads/community/skysql-console

• Forums: https://www.skysql.com/forums/skysql-cloud-data-suite

• Web: https://www.skysql.com/cloud

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

• Try it! http://config.skysql.com• Free SkySQL account available for testing• Test on your account

Wednesday, 5 December 12