MySQL Server Architecture and Technology
MySQL Marcelo Souza [email_address] MySQL Account Manager Henrique Leandro [email_address] MySQL Sales Consultant
  Agenda Introdução Opções de Alta Disponibilidade Conceito de Alta Disponibilidade Soluções para Alta Disponibilidade MySQL 5.5 Update  MySQL Enterprise Overview Q&A
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
High Availability & Disaster Recovery MySQL replication Built into MySQL database Fast & easy implementation Sync disk replication DRBD, AVS Replicate at disk level Shared disk cluster Shared storage device Cluster mgt. software MySQL Cluster Active/Active solution Five 9 ’ s Very high performance Not for all workloads Active Node Passive DRBD
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 %
MySQL Replication Virtual IP Replication Applications Master HA Slave Scale-out Slave Scale-out Slave Scale-out Slave Replication
Replication Topologies A Flexible Way to Scale Multiple Single Chain Circular © 2010 Oracle Corporation – Proprietary and Confidential  Master Slave
Shared Disk Clusters Active/Passive server or process configuration Links servers with 3rd party software and virtual IP Reliability Commonly used solution Fault Tolerance No single point of failure with appropriate hardware High Availability Data handled by a SAN or NAS and always available Automatic fail-over Simplified Management Cluster management utilities Sun Cluster Red Hat Enterprise Server Novell Suse Enterprise Server Veritas Cluster Server Linux HA with Heartbeat HP Serviceguard SCO Reliant-HA Microsoft Cluster Server MySQL Server Nodes Shared Storage Applications
DRBD Distributed Replicated Block Device Runs over standard IP networks Distributed storage Similar to network RAID Synchronous Characteristics No special networking components (except Heartbeat) Excellent performance (blocks vs. rows of data) Manages inconsistencies of data during a failure Hides the complexity of many recovery actions Linux heartbeat manages fail over and virtual IPs Applications Virtual IP Active Node Passive Node DRBD
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
MySQL Server 5.5
Making MySQL Better  Everyday Announced at MySQL Sunday:   MySQL 5.5 Release Candidate
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
A Virtual MySQL DBA Assistant! MySQL Enterprise Monitor
MySQL Enterprise Monitor 2.3 Confidential, Oracle Internal Only
MySQL Enterprise Monitor
© 2010 Oracle Corporation – Proprietary and Confidential  MySQL Marcelo Souza [email_address] MySQL Account Manager Henrique Leandro [email_address] MySQL Sales Consultant
 
 

MySQL Alta Disponibilidade com Replicação

  • 1.
  • 2.
    MySQL Marcelo Souza[email_address] MySQL Account Manager Henrique Leandro [email_address] MySQL Sales Consultant
  • 3.
    AgendaIntrodução Opções de Alta Disponibilidade Conceito de Alta Disponibilidade Soluções para Alta Disponibilidade MySQL 5.5 Update MySQL Enterprise Overview Q&A
  • 4.
    Pluggable Storage EnginesArchitecture 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.
    High Availability &Disaster Recovery MySQL replication Built into MySQL database Fast & easy implementation Sync disk replication DRBD, AVS Replicate at disk level Shared disk cluster Shared storage device Cluster mgt. software MySQL Cluster Active/Active solution Five 9 ’ s Very high performance Not for all workloads Active Node Passive DRBD
  • 6.
    High Availability softwareupgrades 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.
    MySQL Replication VirtualIP Replication Applications Master HA Slave Scale-out Slave Scale-out Slave Scale-out Slave Replication
  • 8.
    Replication Topologies AFlexible Way to Scale Multiple Single Chain Circular © 2010 Oracle Corporation – Proprietary and Confidential Master Slave
  • 9.
    Shared Disk ClustersActive/Passive server or process configuration Links servers with 3rd party software and virtual IP Reliability Commonly used solution Fault Tolerance No single point of failure with appropriate hardware High Availability Data handled by a SAN or NAS and always available Automatic fail-over Simplified Management Cluster management utilities Sun Cluster Red Hat Enterprise Server Novell Suse Enterprise Server Veritas Cluster Server Linux HA with Heartbeat HP Serviceguard SCO Reliant-HA Microsoft Cluster Server MySQL Server Nodes Shared Storage Applications
  • 10.
    DRBD Distributed ReplicatedBlock Device Runs over standard IP networks Distributed storage Similar to network RAID Synchronous Characteristics No special networking components (except Heartbeat) Excellent performance (blocks vs. rows of data) Manages inconsistencies of data during a failure Hides the complexity of many recovery actions Linux heartbeat manages fail over and virtual IPs Applications Virtual IP Active Node Passive Node DRBD
  • 11.
    MySQL Cluster ApplicationLayer Interface/SQL Layer Data Layer Data Nodes Management Server Client Applications MySQL Server Access through native API MySQL Server Management Client
  • 12.
  • 13.
    Making MySQL Better Everyday Announced at MySQL Sunday: MySQL 5.5 Release Candidate
  • 14.
    MySQL 5.5 SysBenchBenchmarks 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.
    A Virtual MySQLDBA Assistant! MySQL Enterprise Monitor
  • 16.
    MySQL Enterprise Monitor2.3 Confidential, Oracle Internal Only
  • 17.
  • 18.
    © 2010 OracleCorporation – Proprietary and Confidential MySQL Marcelo Souza [email_address] MySQL Account Manager Henrique Leandro [email_address] MySQL Sales Consultant
  • 19.
  • 20.

Editor's Notes

  • #15 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)
  • #16 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.
  • #17 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.
  • #18 Point to make: MySQL Monitoring & Advisor Service = “ Virtual MySQL DBA ” There are 3 main features, each with business rewarding features…