MySQL Cluster CGE 7.2

45
<Insert Picture Here> MySQL Cluster CGE 7.2 Manuel Contreras – Senior Software Consultant Pedro Andrade – Strategic Accounts Latin America & Caribbean, MySQL GBU 28 Febrero 2012 Ángel de la Independencia México D.F. http://www.flickr.com/photos/hanneorla/71913206/in/photostream/

description

Presentación MySQL Cluster 7.2 en EspañolTwitter: @mysql_espanolYoutube:

Transcript of MySQL Cluster CGE 7.2

Page 1: MySQL Cluster CGE 7.2

<Insert Picture Here>

MySQL Cluster CGE 7.2 Manuel Contreras – Senior Software Consultant Pedro Andrade – Strategic Accounts Latin America & Caribbean, MySQL GBU 28 Febrero 2012

Ángel de la Independencia México D.F. http://www.flickr.com/photos/hanneorla/71913206/in/photostream/

Page 2: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 2

MySQL en Español – Contacto

[email protected] [email protected] [email protected]

http://www.youtube.com/user/mysqlespanol

http://twitter.com/mysql_espanol

https://www.facebook.com/mysql.latinoamerica

http://mysql-espanol.org/

Page 3: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 3

MySQL – Opciones para diferentes tipos de necesidades MySQL Community Server -  Motor de base de datos con licenciamiento GPL. -  No incluye soporte técnico. -  No incluye herramientas para: monitoring, high availability, online backups.

-  Si incluye InnoDB, con las optimizaciones para un mejor performance.

MySQL Enterprise Server - Incluye soporte técnico 24x7, servicios para afinación de bases de datos,

revisión de configuración de replicación, optimización de código SQL, etc… -  Incluye herramientas para Monitoring de BD, Query Analyzer, On-line

Backup, MySQL Workbench. -  Incluye extensiones comerciales MySQL Enterprise, las cuales ofrecen un

esquema de mejor desempeño y seguridad que MySQL Community Server.

-  Si incluye InnoDB, con las optimizaciones para un mejor performance.

MySQL Cluster CGE

Fuente: http://www.mysql.com/products/cluster/faq.html#7

Page 4: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 4

MySQL – Opciones para diferentes tipos de necesidades MySQL Cluster Carrier Grade Edition -  Procesamiento Activo – Activo, para mejorar los tiempos de respuesta con

un gran número de peticiones de escritura y/o lectura. -  Distribuye la BD en memoria, para implementar replicación de datos

síncrona entre los nodos que conforman al cluster.

-  Permite un esquema de fragmentación ( Sharding ) de datos automático y transparente para la aplicación.

-  Puede integrarse con MySQL Server ( InnoDB y/o MyISAM ) , para proveer arquitecturas híbridas que convienen lo mejor de ambas soluciones.

Fuente: http://www.mysql.com/products/cluster/faq.html#7

Page 5: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 5

MySQL Cluster CGE Introducción

Botero en Medellin Colombia http://www.flickr.com/photos/dfinnecy/2092541057/

Page 6: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 6

MySQL Cluster CGE – Consideraciones

MySQL Cluster CGE, es recomendado cuando: - Las fallas en su sistema de base de datos, ocasionan una improductividad ocasionando

perdidas para el negocio y/o interrupciones en los servicios a clientes?

- Su sistema actual de HA / Fail-Over, NO satisface los tiempos esperados en la recuperación del servicio y/o no es apto de mantener los SLAs.

- En el sistema actual de base de datos, ocurren cuellos de botella debido a un número

excesivo de operaciones de escrituras / lecturas, la cuales desea ejecutar de forma

paralela a través de múltiples servidores en Activo-Activo. - Su aplicativo, requiere de flexibilidad para gestionar al acceso a datos a través de SQL &

NoSQL (Not Only SQL ) APIs.

- Su aplicación se componen fundamentalmente de búsquedas basadas en PK claves

primarias y JOINs de tablas que devuelven conjuntos de resultados pequeños?

Fuente: http://www.mysql.com/products/cluster/faq.html#7

Page 7: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 7

MySQL Cluster CGE – Características generales

- ACID, datos distribuidos en memoria – BDs distribuida en memoria, auto-partitioning (sharding).

Write-Scalable & Real-Time – Procesamiento en nodos Activo – Activo, con replicación síncrona de datos.

Alta Disponibilidad, 99.999% – SQL & Not Only SQL (NoSQL), interfaces.

– Arquitectura Shared-nothing, con soporte a replicación local & geográfica. • 

Mejora el TCO Open-source, herramientas para administración, monitoring, & escalabilidad horizontal en commodity hardware.

Page 8: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 8

Page 9: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 9

MySQL Cluster CGE Auto

Fragmentación de Datos

Machu Picchu Perú http://www.flickr.com/photos/94875862@N00/95345836/in/photostream/

Page 10: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 10

MySQL Cluster CGE Auto-Sharding – Introducción

•  Partitioning - Sharding ocurre automáticamente y de forma transparente para la aplicación •  Conocimientos básicos de como funciona, puede incrementar el desempeño

de la aplicación •  Escalable de forma horizontal, con soporte para agregar mas nodos en linea •  No es necesario, agregar lógica en la aplicación para tomar ventaja del Sharding

http://www.mysql.com/why-mysql/white-papers/mysql_wp_cluster_perfomance.php

Page 11: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 11

Page 12: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 12

Page 13: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 13

Page 14: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 14

Page 15: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 15

Page 16: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 16

Page 17: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 17

Page 18: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 18

Page 19: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 19

Page 20: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 20

Page 21: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 21

Page 22: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 22

Page 23: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 23

Page 24: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 24

Page 25: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 25

MySQL Cluster CGE Scaling-Out

Escalabilidad Horizontal

9 de Julio BsAs Argentina http://www.flickr.com/photos/fvyague/2538963317/

Page 26: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 26

Page 27: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 27

Page 28: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 28

Page 29: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 29

Page 30: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 30

Modificaciones en el Schema de Datos en línea – NDB Storage Engine

•  Permite Agregar (add ) & eliminar ( remove ) indices, así como agregar nuevas columnas online.

•  No es necesario crear una

tabla temporal para ejecutar cambios al schema de datos (On-line Schema Mods )

•  Habilita un modo mas rápido y

efectivo de manipular cambios en el Schema Data, online.

CREATE ONLINE INDEX b ON t1(b);

Query OK, 0 rows affected (0.58 sec)

DROP ONLINE INDEX b ON t1;

Query OK, 0 rows affected (0.46 sec)

ALTER ONLINE TABLE t1 ADD COLUMN d INT;

Query OK, 0 rows affected (0.36 sec)

Page 31: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 31

MySQL Cluster CGE 7.2 GA

Cordillera de Los Andes, Chile http://www.flickr.com/photos/armandolobos/3972425563/

Page 32: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 32

Febrero 15, 2012 – Oracle libera MySQL Cluster CGE 7.2 como General Availability

Page 33: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 33

Page 34: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 34

MySQL Cluster CGE 7.2 – Web CMS Desempeño con AQL

Es necesario ejecutar un Analyze tables para mejorar los resultados mysql> ANALYZE TABLE <tab-name>;

87.23 segundos

1.26 segundos

70x Mejor

Performance

Page 35: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 35

Page 36: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 36

Page 37: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 37

MySQL Cluster Manager

Simplificación en la administración

Antigua, Guatemala http://www.flickr.com/photos/abroaderview-volunteers/4253996717/in/photostream/

Page 38: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 38

Monitoring & Recovery

High Availability Operation

Automated Management

Reduce el TCO creando una plataforma de base de datos más ágil & automatizada

MySQL Cluster Manager

Copyright 2011 Oracle Corporation 38

Page 39: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 39

MySQL Cluster Manager

Ejemplo: para gestionar upgrade de MySQL Cluster 7.0 a 7.2

• 1 x preliminary check of cluster state • 8 x ssh commands per server • 8 x per-process stop commands • 4 x scp of configuration files (2 x mgmd & 2 x

mysqld) • 8 x per-process start commands • 8 x checks for started and re-joined processes • 8 x process completion verifications • 1 x verify completion of the whole cluster. • Excludes manual editing of each configuration

file.

Total: 46 comandos - 2.5 horas de operación atendida

por un administrador

Sin usar MySQL Cluster Manager Usando MySQL Cluster Manager upgrade cluster --package=7.1 mycluster;

Total: 1 Comando -

Unattended Operation •  Results

•  Reduces the overhead and complexity of managing database clusters

•  Reduces the risk of downtime resulting from administrator error

•  Automates best practices in database cluster management

Page 40: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 40

MySQL Cluster CGE Stack, en un solo host 1.  Download MCM de edelivery.oracle.com:

Incluye el sofware MySQL Cluster CGE

2.  Unzip ( descomprimir 3.  Crea, configura, define e inicializa MySQL Cluster CGE con un solo

comando:

$> bin\mcmd –bootstrap MySQL Cluster Manager 1.1.2 started Connect to MySQL Cluster Manager by running "D:\Andrew\Documents\MySQL\mcm\bin\mcm" -a NOVA:1862

Configuring default cluster 'mycluster'... Starting default cluster 'mycluster'...

Cluster 'mycluster' started successfully ndb_mgmd NOVA:1186

ndbd NOVA ndbd NOVA

mysqld NOVA:3306 mysqld NOVA:3307

ndbapi * Connect to the database by running "D:\Andrew\Documents\MySQL\mcm\cluster\bin\mysql" -h NOVA -P 3306

-u root

•  Conectarse a la BD y comenzar a ejecutar transacciones SQL

http://www.clusterdb.com/mysql-cluster/mysql-cluster-manager-1-1-2-creating-a-cluster-is-now-trivial/

Page 41: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 41

Evaluación de MySQL Cluster Manager Trial por 30 días

•  Ingresa a: http://edelivery.oracle.com/ “MySQL Database” as the Product Pack)

•  Select MySQL Cluster

Manager

Page 42: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 42

MySQL Enterprise Monitor

Page 43: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 43

Page 44: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 44

MySQL en Español – GRACIAS

[email protected] [email protected] [email protected]

http://www.youtube.com/user/mysqlespanol

http://twitter.com/mysql_espanol

https://www.facebook.com/mysql.latinoamerica

http://mysql-espanol.org/

Page 45: MySQL Cluster CGE 7.2

Copyright 2012 Oracle Corporation 45