MySQL Alta Disponibilidade com Replicação

2.916 visualizações

Publicada em

MySQL Alta Disponibilidade com Replicação no Fórum da Comunidade MySQL

0 comentários
0 gostaram
  • Seja o primeiro a comentar

  • Seja a primeira pessoa a gostar disto

Sem downloads
Visualizações totais
No SlideShare
A partir de incorporações
Número de incorporações
Incorporações 0
Nenhuma incorporação

Nenhuma nota no slide
  • At 256 Connections: 199% performance gain for MySQL 5.5 over 5.1.50 (InnoDB 1.0) - 1561% performance gain for MySQL 5.5 over 5.1.50 (InnoDB built in)
  • Customers of MySQL Enterprise greatly benefit from having instant MySQL database server expertise at their fingertips through the MySQL Monitoring and Advisory Service. Part of the MySQL Enterprise set of enterprise-ready services, the Monitoring and Advisory Service is designed with the enterprise database professional in mind. MySQL ’ s Monitoring and Advisory Service takes the guesswork out of MySQL performance management, and supplies powerful automated mechanisms for keeping an enterprise-wide deployment of MySQL servers up and running well at all times. The MySQL Monitoring and Advisory Service was designed to tackle the tough job of managing the performance of hundreds of MySQL database servers, regardless of their physical or geographical location. Although the Monitoring and Advisory Service can certainly track just a handful of MySQL databases, the service is especially designed to greatly curtail the time it takes to get a handle on the availability and performance levels of many database servers at once. The Monitoring and Advisory Service differs from traditional database monitors in that it supplies, out of the box, a series of expert best-practice enforcement advisors that are designed to automatically examine a MySQL server ’ s configuration, security, and performance levels, and identify any deviations from best-practice rules that are built by the database experts at MySQL.
  • Something very new is the integration of Cluster with MEM – allows users to monitor MySQL Cluster from MEM this enables us to ensure any issues that could affect application performance or availability are detected quickly, before they become a problem Here we are specifically monitoring data node memory use, and MySQL Server CPU utilization and connections Alarms generate SNMP traps.
  • Point to make: MySQL Monitoring & Advisor Service = “ Virtual MySQL DBA ” There are 3 main features, each with business rewarding features…
  • MySQL Alta Disponibilidade com Replicação

    1. 1. MySQL Server Architecture and Technology
    2. 2. MySQL Marcelo Souza [email_address] MySQL Account Manager Henrique Leandro [email_address] MySQL Sales Consultant
    3. 3. Agenda <ul><li>Introdução </li></ul><ul><li>Opções de Alta Disponibilidade </li></ul><ul><li>Conceito de Alta Disponibilidade </li></ul><ul><li>Soluções para Alta Disponibilidade </li></ul><ul><li>MySQL 5.5 Update </li></ul><ul><li>MySQL Enterprise Overview </li></ul><ul><li>Q&A </li></ul>
    4. 4. Pluggable Storage Engines Architecture InnoDB MyISAM Cluster Etc… Partners Community More.. MySQL Server Clients and Apps © 2010 Oracle Corporation – Proprietary and Confidential Filesystems, Files and Logs Redo, Undo, Data, Index, Binary, Error, Query and Slow Connectors Native C API, JDBC, ODBC, .Net, PHP, Ruby, Python, VB, Perl Connection Pool Authentication – Thread Reuse – Connection Limits – Check Memory – Caches Enterprise Management Services and Utilities Backup & Recovery Security Replication Cluster Partitioning Instance Manager Information_Schema MySQL Workbench SQL Interface DDL, DML, Stored Procedures, Views, Triggers, Etc.. Parser Query Translation, Object Privileges Optimizer Access Paths, Statistics Caches Global and Engine Specific Caches and Buffers Pluggable Storage Engines Memory, Index and Storage Management
    5. 5. High Availability & Disaster Recovery <ul><li>MySQL replication </li></ul><ul><li>Built into MySQL database </li></ul><ul><li>Fast & easy implementation </li></ul><ul><li>Sync disk replication </li></ul><ul><li>DRBD, AVS </li></ul><ul><li>Replicate at disk level </li></ul><ul><li>Shared disk cluster </li></ul><ul><li>Shared storage device </li></ul><ul><li>Cluster mgt. software </li></ul><ul><li>MySQL Cluster </li></ul><ul><li>Active/Active solution </li></ul><ul><li>Five 9 ’ s </li></ul><ul><li>Very high performance </li></ul><ul><li>Not for all workloads </li></ul>Active Node Passive DRBD
    6. 6. High Availability software upgrades hardware upgrades maintenance operations software failures network failures power failures disasters hardware failures Clustering and geographical redundancy Clustering Technologies Replication Technologies Well-Managed Unmanaged Small Business ISP & Mainstream Business Data Centers Banking Medical Telco Military Defense . 35 days 4 days 50 mins 5 mins 8 hours 9 9 9 9 9 %
    7. 7. MySQL Replication Virtual IP Replication Applications Master HA Slave Scale-out Slave Scale-out Slave Scale-out Slave Replication
    8. 8. Replication Topologies A Flexible Way to Scale Multiple Single Chain Circular © 2010 Oracle Corporation – Proprietary and Confidential Master Slave
    9. 9. Shared Disk Clusters <ul><ul><li>Active/Passive server or process configuration </li></ul></ul><ul><ul><ul><li>Links servers with 3rd party software and virtual IP </li></ul></ul></ul><ul><ul><li>Reliability </li></ul></ul><ul><ul><ul><li>Commonly used solution </li></ul></ul></ul><ul><ul><li>Fault Tolerance </li></ul></ul><ul><ul><ul><li>No single point of failure with appropriate hardware </li></ul></ul></ul><ul><ul><li>High Availability </li></ul></ul><ul><ul><ul><li>Data handled by a SAN or NAS and always available </li></ul></ul></ul><ul><ul><ul><li>Automatic fail-over </li></ul></ul></ul><ul><ul><li>Simplified Management </li></ul></ul><ul><ul><ul><li>Cluster management utilities </li></ul></ul></ul><ul><li>Sun Cluster </li></ul><ul><li>Red Hat Enterprise Server </li></ul><ul><li>Novell Suse Enterprise Server </li></ul><ul><li>Veritas Cluster Server </li></ul><ul><li>Linux HA with Heartbeat </li></ul><ul><li>HP Serviceguard </li></ul><ul><li>SCO Reliant-HA </li></ul><ul><li>Microsoft Cluster Server </li></ul>MySQL Server Nodes Shared Storage Applications
    10. 10. DRBD <ul><li>Distributed Replicated Block Device </li></ul><ul><li>Runs over standard IP networks </li></ul><ul><li>Distributed storage </li></ul><ul><li>Similar to network RAID </li></ul><ul><li>Synchronous </li></ul><ul><li>Characteristics </li></ul><ul><li>No special networking components (except Heartbeat) </li></ul><ul><li>Excellent performance (blocks vs. rows of data) </li></ul><ul><li>Manages inconsistencies of data during a failure </li></ul><ul><li>Hides the complexity of many recovery actions </li></ul><ul><li>Linux heartbeat manages fail over and virtual IPs </li></ul>Applications Virtual IP Active Node Passive Node DRBD
    11. 11. MySQL Cluster Application Layer Interface/SQL Layer Data Layer Data Nodes Management Server Client Applications MySQL Server Access through native API MySQL Server Management Client
    12. 12. MySQL Server 5.5
    13. 13. Making MySQL Better Everyday Announced at MySQL Sunday: MySQL 5.5 Release Candidate
    14. 14. MySQL 5.5 SysBench Benchmarks Windows MySQL 5.1.50 (InnoDB built-in) MySQL 5.1.50 (InnoDB Plug-in) MySQL 5.5.6 (New InnoDB) Intel x86_64 4 CPU x 2 Cores/CPU 3.166 GHz, 8GB RAM Windows Server 2008 1561% performance gain for MySQL 5.5 over 5.1.50; at scale © 2010 Oracle Corporation – Proprietary and Confidential RC
    15. 15. A Virtual MySQL DBA Assistant! MySQL Enterprise Monitor
    16. 16. MySQL Enterprise Monitor 2.3 Confidential, Oracle Internal Only
    17. 17. MySQL Enterprise Monitor
    18. 18. © 2010 Oracle Corporation – Proprietary and Confidential MySQL Marcelo Souza [email_address] MySQL Account Manager Henrique Leandro [email_address] MySQL Sales Consultant