MySQL El Chavo del 8 en Facebook

Post on 12-Jun-2015

551 Views

Category:

Technology

4 Downloads

Preview:

Click to see full reader

DESCRIPTION

MySQL Cluster CGE - La arquitectura que habilita a el juego de la Vecindad de el Chavo del 8, en Facebook - únete a la vencidad mas grande de Facebook https://apps.facebook.com/lavecindaddeelchavo/

Transcript

<Insert Picture Here>

MySQL Cluster CGE en:La Vecindad de El Chavo del 8 en Facebook

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

Philip.Antoniades@oracle.com ~ WW Director MySQL Consultant Pedro.Andrade@oracle.com ~ Strategic Accounts Manuel.Contreras@oracle.com ~ Senior MySQL Consultant

Oracle MySQL Latin American & The Caribbean

Copyright 2012 Oracle Corporation 2

MySQL en Español – Contacto

Kattia.Fallas@Oracle.comPedro.Andrade@Oracle.com Manuel.Contreras@Oracle.com

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

http://twitter.com/mysql_espanol

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

http://mysql-espanol.org/

Copyright 2012 Oracle Corporation 3

MySQL & las redes sociales

- Facebook, usa MySQL como base datos para el componente core de persistencia de información en su sitio.

“My expectations for 5.5 were not high. I am pleasantly

surprised!”” Mark Callaghan, Facebook Keynote - MySQL User Conference 2010

- Twitter, MySQL es la plataforma core usada por twitter.

“MySQL InnoDB is well tested and does not loseyour data.”

Jeremy Cole, Twitter DBA - MySQL Innovation Day 2012

Copyright 2012 Oracle Corporation 4

MySQL & La vecidad de El Chavo del 8 en Latinoamérica

- La Vecindad de El Chavo del 8, utiliza MySQL Cluster como plataforma core para almacenar información de usuarios, compras, items, y otros datos relativos a sesiones & log ( bitácoras ).

- El juego es todo un éxito, presencia en LAD de habla hispana & próximamente disponible en Portugués para el mercado en Brasil.

- Playfulplay, empresa Mexicana dedicada al desarrollo de video juegos en línea.

- 2011, alianza estratégica con Grupo Chespirito & Televisa México

- El juego de La vecindad de El Chavo del 8 en Facebook, soporta 2+ millones de usuarios ( suscriptores ), con picos de 15k usuarios concurrentes.

Copyright 2012 Oracle Corporation 5

Sakila & El Chavo – Amigos en la Vecindad

El juego: La vecindad de El chavo del 8 en Facebook opera con:

- MySQL Cluster CGE versión 7.2.6 – Alta disponibilidad y procesamiento activo – activo en 12 nodos

- 2+ millones de subscriptores

- 15,000 QPS

- Crecimiento de aprox. 30k nuevos usuarios cada día

Copyright 2012 Oracle Corporation 6

Como apoya MySQL a La vecidad de El Chavo del 8

MySQL apoya playfulplay México, para mantener el juego mas popular de Facebook, con:

- Soporte técnico 24x7, para el Cluster de 12 nodos.

- Revisión de configuración & puesta a punto de la plataforma productiva.

- Actualizaciones de software al binario MySQL Cluster CGE v. 7.2.X

Logros obtenidos al usar MySQL Cluster:

- Disminución de 30% de saturación & consumo de CPU.

- Detección de fallas & monitoring a través de MySQL Enterprise Monitor.

- Afinación del ambiente MySQL Cluster, para mejorar el desempeño del juego.

<Insert Picture Here>

Copyright 2012 Oracle Corporation 8

MySQL Enterprise Monitor

Copyright 2012 Oracle Corporation 9

MySQL: Sakila & El Chavo del 8 en Facebook

Arquitectura

- 12 Data Nodes ( ndbmtd process )

- 26 MySQL API Nodes (mysqld process )

- 2 MySQL Cluster Management ( ndb_mgmd process )

- MySQL Cluster v. 7.2.6

- Linux Debian 6.0 ( 64 bits )

12 Servidores bare metal

- 64 GB RAM

- 24 Cores CPU x86_64 bus

- 2 Particiones de disco ( 300 GB )

Copyright 2012 Oracle Corporation 10

TRIVIA: ¿Qué tanto conoces sobre los personajes de El Chavo del 8?

Menciona 2 hermanos de el actor Ramon Valdes ( Don Ramon )

?

Copyright 2012 Oracle Corporation 11

MySQL Cluster CGE

¿Cómo funciona?

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

Copyright 2012 Oracle Corporation 12

Copyright 2012 Oracle Corporation 13

MySQL Cluster CGE

Auto

Fragmentación de Datos

El Reloj, Parque del Retiro - BsAshttp://www.flickr.com/photos/wallyg/7711379482/sizes/l/

Copyright 2012 Oracle Corporation 14

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

Copyright 2012 Oracle Corporation 15

Copyright 2012 Oracle Corporation 16

Copyright 2012 Oracle Corporation 17

Copyright 2012 Oracle Corporation 18

Copyright 2012 Oracle Corporation 19

Copyright 2012 Oracle Corporation 20

Copyright 2012 Oracle Corporation 21

Copyright 2012 Oracle Corporation 22

Copyright 2012 Oracle Corporation 23

Copyright 2012 Oracle Corporation 24

Copyright 2012 Oracle Corporation 25

Copyright 2012 Oracle Corporation 26

Copyright 2012 Oracle Corporation 27

Copyright 2012 Oracle Corporation 28

Copyright 2012 Oracle Corporation 29

TRIVIA: ¿Qué tanto conoces sobre los personajes de El Chavo del 8?

Menciona el nombre de uno delos sobrinos del actor Ramon Valdes ( Don Ramon )

?

Copyright 2012 Oracle Corporation 30

Copyright 2012 Oracle Corporation 31

Copyright 2012 Oracle Corporation 32

Copyright 2012 Oracle Corporation 33

Copyright 2012 Oracle Corporation 34

MySQL Cluster Manager

Simplificación en la administración

DEMO

Bariloche, Argentinahttp://www.flickr.com/photos/doug88888/5909666709/sizes/l/in/photostream/

Copyright 2012 Oracle Corporation 35

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 35

Copyright 2012 Oracle Corporation 36

TRIVIA: ¿Qué tanto conoces sobre los personajes de El Chavo del 8?

¿Cuál es la razón del 8 en el nombre del programa?

Copyright 2012 Oracle Corporation 37

MySQL Cluster – casos de uso

- Servicios en Real-time OLTP, at web-scale, donde un downtime es simplemente no una opción

- eCommerce / trading

- Session Management

- En aplicaciones Telcom HLR / HSS / SDP / AAAFreeRadius

- User authentication & profile

- OLTP & aplicaciones Custom

- Juegos On-line

Copyright 2012 Oracle Corporation 38

MySQL en Latinoamérica

Copyright 2012 Oracle Corporation 39

Evaluación del Software, PoC – Contáctanos:

Kattia.Fallas@Oracle.comPedro.Andrade@Oracle.com Manuel.Contreras@Oracle.com

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

http://twitter.com/mysql_espanol

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

http://mysql-espanol.org/

Copyright 2012 Oracle Corporation 40

Copyright 2012 Oracle Corporation 41

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

Copyright 2012 Oracle Corporation 42

Copyright 2012 Oracle Corporation 43

MySQL Cluster CGE Stack, en un solo host

1. Download MCM de edelivery.oracle.com:Incluye el sofware MySQL Cluster CGE

1. Unzip ( descomprimir

2. Crea, configura, define e inicializa MySQL Cluster CGE con un solo comando:

$> bin\mcmd –bootstrapMySQL 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/

Copyright 2012 Oracle Corporation 44

MySQL Enterprise Monitor

Copyright 2012 Oracle Corporation 45

MySQL Cluster 7.3 Labs Release – Foreign Keys

What’s the Plan for MySQL Cluster 7.3?

-Foreign Keys

As with MySQL Cluster 7.2, we plan to publish a series of preview releases for 7.3 that will incrementally add new candidate features for a final GA release (subject to usual safe harbor statement below*), including:

-New NoSQL APIs;

- Features to automate the configuration and provisioning of multi-node clusters, on premise or in the cloud;

- Performance and scalability enhancements;

- Taking advantage of features in the latest MySQL 5.x Server GA.

https://blogs.oracle.com/MySQL/entry/mysql_cluster_7_3_labs

Copyright 2012 Oracle Corporation 46

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)

Copyright 2012 Oracle Corporation 47

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

Copyright 2012 Oracle Corporation 48

Copyright 2012 Oracle Corporation 49

MySQL Cluster CGE 7.2 – Web CMSDesempeñ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

top related