The document discusses MySQL, the most popular open-source database in the world. It covers how MySQL can provide high availability through replication and monitoring. It also describes MySQL Enterprise Monitor which provides a consolidated view of MySQL servers and reduces risk through query analysis. Key architectures like replication topologies, application partitioning, and sharding are explained to improve performance and scalability. An example of Wikipedia's large-scale use of MySQL is provided.
1. MySQL
Software Livre de Banco de Dados Mais Popular do Mundo
Henrique Leandro Brasil
Craig Sylvester - USA
Consultores MySQL/Database
2. Agenda
Introducao ao MySQL
Alta Disponibilidade com Replicacao
Monitoracao de MySQL
Copyright 2008 Sun Microsystems MySQL - The Online Database of the 3rd Millennium
3. MySQL Architecture
MySQL Server
Copyright 2008 Sun Microsystems MySQL - The Online Database of the 3rd Millennium
4. MySQL Enterprise Monitor
• Consolidated view
• Auto discovery
• Customizable
• Reduce risk
• Query Analysis
• More effective DBAs
“Virtual MySQL DBA”
Assistant
Copyright 2008 Sun Microsystems MySQL - The Online Database of the 3rd Millennium
5. Enterprise Monitor Architecture
Customer Datacenter
Enterprise Dashboard
-Web-based, JSPs
Service Manager
-Java servlets exposed as web
services
-Linux, Solaris, Mac OSX and
MS Windows
MySQL Servers w/Agent
Repository
-MySQL DB
-historical performance data
for analysis
Service Agent
-lightweight C application
-for all Enterprise platforms
Copyright 2008 Sun Microsystems MySQL - The Online Database of the 3rd Millennium
6. Copyright 2008 Sun Microsystems MySQL - The Online Database of the 3rd Millennium
7. Copyright 2008 Sun Microsystems MySQL - The Online Database of the 3rd Millennium
9. MySQL Replication
Applications
Virtual IP
Master HA Slave Scale-out Slave Scale-out Slave Scale-out Slave
Replication
Replication
Copyright 2008 Sun Microsystems MySQL - The Online Database of the 3rd Millennium
10. Replication Topologies
Single Chain Circular
Multiple Multi - Master Multi - Circular
Copyright 2008 Sun Microsystems MySQL - The Online Database of the 3rd Millennium
11. MySQL Replication
Write
Read
Applications
Master
Slave/Master Slave/Master Slave/Master
Scale-out Slave Scale-out Slave Scale-out Slave Scale-out Slave Scale-out Slave Scale-out Slave Scale-out Slave
Copyright 2008 Sun Microsystems MySQL - The Online Database of the 3rd Millennium
12. Application Partitioning
• Significantly improves performance and scalability, but the
application must be designed to implement it
• Vertical Partitioning - 1:1 tables to reduce the size of rows,
tables and indexes
• Horizontal Partitioning - 1 table split on multiple tables with
different rows
• Tables can be split on multiple servers
Vertical Partitioning Horizontal Partitioning
Col1 Col2 Col3 Col4 Col5 Col1 Col2 Col1 Col3 Col4 Col5 Col1 Col2 Col3 Col4 Col5 Col1 Col2 Col3 Col4 Col5
Col1 Col2 Col3 Col4 Col5
Copyright 2008 Sun Microsystems MySQL - The Online Database of the 3rd Millennium
13. Sharding
Web/Application Servers
Write
Read
Copyright 2008 Sun Microsystems MySQL - The Online Database of the 3rd Millennium
14. Wikipedia Application
Online Encyclopedia - Constantly in the top
10 of the most visited websites worldwide
• 5M+ articles in 100 languages
• Tens of millions of visitors each day with
500K edits
• Based on LAMP
• 20+ replicated DB servers + lightweight
MySQL instances as distributed archive
solutions
Language based server splitting (application
partitioning)
Performance
• 3,000 pageviews / second
• 8,000+ http requests / second
• 25,000+ SQL requests / second
MySQL Key Points
• 90% of DB Server Memory is InnoDB
buffer pool
• General availability and scalability using
replication
Copyright 2008 Sun Microsystems MySQL - The Online Database of the 3rd Millennium
This is a summary presentation of MySQL from Sun.\n\nThis presentation is aimed at both MySQL and Sun customers and prospects with whom we are seeking alignment to new business initiatives. This overview resides on <URL>. \n\nYou will need to adapt this material for each customer situation. \nPrepare for your presentation by understanding the following things from the customer or sales rep on the account:\nCurrent status of the account\nWhat the customer wants to achieve from the presentation\nWhat the sales rep wants you to achieve from the presentation\nWhat is your role, what can you help to do &#x2014; for customer or rep?\nSpeak with energy and authority, and ensure that you connect with the customer. Make your presentation highly interactive. Check in with your audience before you start, and keep checking in that they are getting what they need from you and from Sun.\n
\n
Many choose MySQL Enterprise because it offers a new and different paradigm of database management. One key technical differentiator between MySQL and other database platforms &#x2014; whether they are proprietary or open source &#x2014; is the pluggable storage engine architecture of MySQL.\nThe MySQL pluggable storage engine architecture enables a database professional to select a specialized storage engine for a particular application need while being completely shielded from the need to manage any specific application coding requirements. The pluggable storage engine architecture provides a standard set of management and support services that are common among all underlying storage engines. The storage engines themselves are the components of the database server that actually perform actions on the underlying data that is maintained at the physical-server level.\nThis efficient and modular architecture provides large performance and manageability benefits for those wishing to specifically target a particular application need &#x2014; such as data warehousing, transaction processing, high-availability/cluster situations, etc. &#x2014; while enjoying the advantage of utilizing a set of interfaces and services that are independent of any one storage engine.\nThe technical advantage of MySQL Enterprise is clearly evident in this respect, as unnecessary overhead is avoided when only certain engines are chosen for application use.\n
Point to make:\n\nMySQL Monitoring & Advisor Service = &#x201C;Virtual MySQL DBA&#x201D;\n\nThere are 3 main features, each with business rewarding features&#x2026;\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
Check if there is an European customer\n
Thank you very much for your time today!\n
This is a summary presentation of MySQL from Sun.\n\nThis presentation is aimed at both MySQL and Sun customers and prospects with whom we are seeking alignment to new business initiatives. This overview resides on <URL>. \n\nYou will need to adapt this material for each customer situation. \nPrepare for your presentation by understanding the following things from the customer or sales rep on the account:\nCurrent status of the account\nWhat the customer wants to achieve from the presentation\nWhat the sales rep wants you to achieve from the presentation\nWhat is your role, what can you help to do &#x2014; for customer or rep?\nSpeak with energy and authority, and ensure that you connect with the customer. Make your presentation highly interactive. Check in with your audience before you start, and keep checking in that they are getting what they need from you and from Sun.\n