SlideShare a Scribd company logo
<Insert Picture Here>




MySQL Technology Update
Oracle’s Investment in Performance and Scalability
Investment in MySQL
Rapid Innovation
Make MySQL a Better MySQL
• #1 Open Source Database for Web Applications
• Most Complete LAMP Stack
• Telecom & Embedded

Develop, Promote and Support MySQL
• Improve engineering, consulting and support
• Leverage 24x7, World-Class Oracle Support

MySQL Community Edition
• Source and binary releases
• GPL license
Announced Today
                MySQL 5.5 is now GA!



Making MySQL Better Today and Everyday
MySQL 5.5 – What’s New
Better Performance, Scalability and Recovery                           GA
InnoDB Performance improvements
• Multiple Buffer Pool Instances
• Multiple Rollback Segments – now supports 128K concurrent trxs
• Extended Change Buffering (with delete buffering, purge buffering)
• Improved Purge Scheduling
• Improved Log Sys mutex, Separate Flush List mutex
• Improved Recovery Times
• More…

MySQL Performance Improvements
• Better Metadata Locking within Transactions
• Split LOCK_open mutex
• Eliminated LOCK_alarm mutex as bottleneck
• Eliminated LOCK_thread_count as bottleneck
• Improved Performance/Scale on Win32, 64
• More…
MySQL 5.5 – What’s New
InnoDB becomes default storage engine
                                              GA
•   ACID Transactions, FKs, Crash Recovery

Improved Availability
•   Semi-synchronous Replication
•   Replication Heartbeat
•   Replication Slave fsync options
•   Automatic Relay Log Recovery
Improved Usability
•   SIGNAL/RESIGNAL
•   More Partitioning Options
•   Replication Server Filtering
•   Replication Slave Side Type Conversions
•   Individual Log Flushing
Better Instrumentation/Diagnostics
• New PERFORMANCE_SCHEMA
MySQL 5.5 Early Adopters Speak!

“Thanks  to the MySQL and InnoDB teams for their continued
hard work and dedication to making MySQL faster as
hardware evolves. I, for one, cannot wait to see what this
stuff does for us. “
– Jeremy Zawodny, Craigslist

“I’m really blown away by MySQL 5.5’s improvements. “
- Don MacAskill, SmugMug

“My expectations for 5.5 were not high. I am pleasantly
surprised!”
- Mark Callaghan, Facebook, MySQL UC Keynote
MySQL 5.5 SysBench Benchmarks
Linux                                                 GA


                                           MySQL 5.5.6
                                           (New InnoDB)



                                           MySQL 5.1.50
                                           (InnoDB Plug-in)



                                           MySQL 5.1.50
                                           (InnoDB built-in)




   200% performance gain                     Intel Xeon X7460 x86_64
                                             4 CPU x 6 Cores/CPU
                                             2.66 GHz, 32GB RAM
     for MySQL 5.5 over 5.1.50; at scale     Fedora 10
MySQL 5.5 SysBench Benchmarks
Linux                                                GA


                                          MySQL 5.5.6
                                          (New InnoDB)



                                          MySQL 5.1.50
                                          (InnoDB Plug-in)



                                          MySQL 5.1.50
                                          (InnoDB built-in)




  370% performance gain                   Intel Xeon X7460 x86_64
                                          4 CPU x 6 Cores/CPU
                                          2.66 GHz, 32GB RAM
    for MySQL 5.5 over 5.1.50; at scale   Fedora 10
MySQL on Windows
The Right Choice

Significant Developer Adoption
   • Windows is the #1 development platform for MySQL
   • Making MySQL better on Windows


  Performance & Scalability          Lower TCO
  • Improved on Windows     • More Affordable
  • MySQL 5.5 Benchmarks    • Easier to Administer


         Ease of Use               Cross-platform
  • MySQL Workbench          • 20+ Platforms
  • New Connector/NET 6.3    • No Lock-in
MySQL 5.5 SysBench Benchmarks
Windows                                                  GA


                                           MySQL 5.5.6
                                           (New InnoDB)



                                           MySQL 5.1.50
                                           (InnoDB Plug-in)



                                           MySQL 5.1.50
                                           (InnoDB built-in)




  540% performance gain                   Intel x86_64
                                          4 CPU x 2 Cores/CPU
                                          3.166 GHz, 8GB RAM
    for MySQL 5.5 over 5.1.50; at scale   Windows Server 2008
MySQL 5.5 SysBench Benchmarks
Windows                                                  GA


                                           MySQL 5.5.6
                                           (New InnoDB)



                                           MySQL 5.1.50
                                           (InnoDB Plug-in)



                                           MySQL 5.1.50
                                           (InnoDB built-in)




 1560% performance gain                   Intel x86_64
                                          4 CPU x 2 Cores/CPU
                                          3.166 GHz, 8GB RAM
    for MySQL 5.5 over 5.1.50; at scale   Windows Server 2008
MySQL 5.5 Scales on multi core
                         SysBench Read Write                                          GA

                                                                            MySQL 5.5.4

                                                                            MySQL 5.5.3
Transactions/Second




                                                                            MySQL 5.1




                                               AMD Opteron 7160 (Magny-Cours) @2100 MHz
                                               64 GB memory
                                               2 x Intel X25E SSD drives
                                               OS is Oracle Enterprise Linux with the Enterprise Kernel
                                               4 sockets with a total of 48 cores.
Improved Recovery Performance
                                                                                    GA
                          Crash Recovery

             250

             200    5.1          5.1                      5.1
   Minutes




             150

             100

              50          5.5          5.5                         5.5

               0
     plugin 1.0.6
                     Total      Scanning            Log Applying
     InnoDB 1.1

> 10x recovery performance gain        50 warehouses
                                       Database=9800MB
                                                                              Intel Xeon X7460 x86_64
                                                                              4 CPU x 6 Cores/CPU
                                       Innodb_log_file_size=2x1950MB          2.66 GHz, 32GB RAM
for MySQL 5.5 over 5.1                 Buffer_pool-12GB                       Fedora 10
                                       Started tested, killed server@5 mins
MySQL 5.5 Replication Features

       1. Semisynchronous replication
             Improved resilience by having master wait for slave to receive
             events.
       2. Slave fsync tuning & Automatic relay log recovery
             Tune fsyncs so corruption is less likely on slave crashes.
             Let the slave recover from corrupted relay logs.
       3. Replication Heartbeat
             Have a more precise failure detection mechanism.
             Avoid spurious relay log rotation when the master is idle.
       4. Per server replication filtering
             Instruct slave to discard events from a master with a specific
             server id.



Copyright Oracle Corporation 2010                                             19
MySQL 5.5 Replication Features

       5. Precise Slave Type Conversions
          Use different types on master and slave and get
          automatic type promotion and demotion when using
          RBR
       6. Individual Log Flushing
          Selectively flush server logs when using 'FLUSH
          LOGS'
       7. Safe logging of mixed transactions
          Replicate transactions containing both InnoDB and
          MyISAM changes



Copyright Oracle Corporation 2010                             20
1. Semisynchronous Replication

       • MySQL replication is asynchronous
               – A recovered master may have non-binlogged changes.
               – This can cause master and slave to diverge.
               – A failed master may have binlogged but non-replicated
                 changes
               – If a slave is promoted to master some information can be lost.
       • Semisynchronous replication ensures redundancy
               – At least one slave acknowledges relay logging the transaction.
               – Master waits for slave acknowledgement before commit
                 returns.
               – (On time-out, master temporarily switches to async replication.)




Copyright Oracle Corporation 2010                                                   21
1. Semisynchronous Replication




Copyright Oracle Corporation 2010          22
1. Semisynchronous Replication

         Checking the state
           On master
              Rpl_semi_sync_master_status
              Rpl_semi_sync_master_clients
              Rpl_semi_sync_master_yes_tx
              Rpl_semi_sync_master_no_tx
           On Slave
              Rpl_semi_sync_slave_status




Copyright Oracle Corporation 2010            23
3. Replication Heartbeat
                                MySQL Server     Replication                   MySQL Server
                                      Master                    I/O                   Slave
                                                                thread
                                                 Heartbeat




   SE1                   SE2                                             SE1    SE2
                                                               Relay
                                        Binlog                                         Binlog
                                                               Binlog

     • Automatic checking of connection status
     • No more relay log rotates when the master is idle
     • Detection of master/slave disconnect, configurable in milliseconds

    CHANGE MASTER SET master_heartbeat_period= val;
    SHOW STATUS like 'slave_heartbeat period'
    SHOW STATUS like 'slave_received_heartbeats'

Copyright Oracle Corporation 2010                                                             24
MySQL: Still Free, Open to the Community
Available to download and use under the GPL:
• MySQL Database (Community Server)
   • All 5.5 features, all storage engines
• MySQL Cluster
   • Geo-replication
• MySQL Workbench Community Edition
• MySQL Connectors
• MySQL Proxy
• Documentation
• Forums
           http://mysql.com/downloads/

More Related Content

PPT
MySQL Strategy&Roadmap
PPTX
Easy MySQL Replication Setup and Troubleshooting
PDF
Percona XtraDB Cluster vs Galera Cluster vs MySQL Group Replication
PPSX
Cvc2009 Moscow Xen App5 Fp1 Fabian Kienle Final
PDF
MySQL Performance Tuning. Part 1: MySQL Configuration (includes MySQL 5.7)
PDF
What's New in MySQL 5.7
PDF
Best practices for MySQL High Availability
PPTX
Building Blocks of the Private Cloud - Compute
MySQL Strategy&Roadmap
Easy MySQL Replication Setup and Troubleshooting
Percona XtraDB Cluster vs Galera Cluster vs MySQL Group Replication
Cvc2009 Moscow Xen App5 Fp1 Fabian Kienle Final
MySQL Performance Tuning. Part 1: MySQL Configuration (includes MySQL 5.7)
What's New in MySQL 5.7
Best practices for MySQL High Availability
Building Blocks of the Private Cloud - Compute

What's hot (20)

PDF
[발표자료] 오픈소스 Pacemaker 활용한 zabbix 이중화 방안(w/ Zabbix Korea Community)
PDF
Oracle vm 3.0 Fresh Start - Tarmo Alasoo
PPTX
Ansible MySQL MHA
PDF
MySQL Sandbox 3
PPTX
VMware ESXi 6.0 Installation Process
PPTX
MySQL Tech Tour 2015 - 5.7 InnoDB
PDF
MySQL for Large Scale Social Games
PDF
Visão geral sobre Citrix XenServer 6 - Ferramentas e Licenciamento
PDF
Mysql 57-upcoming-changes
PDF
MySQL 5.6 Performance
PDF
Ansible for Configuration Management for Lohika DevOps training 2018 @ Lohika...
PDF
Optimizing MySQL for Cascade Server
PPTX
Virtualizacao de Servidores - Windows
PDF
8 christian ferber xen_server_6_news
PDF
MySQL Group Replication
PDF
MySQL Storage Engines - which do you use? TokuDB? MyRocks? InnoDB?
PPTX
VMWare Lab For Training, Testing or Proof of Concept
PPTX
55 New Features in JDK 9
PDF
MySQL Performance Metrics that Matter
[발표자료] 오픈소스 Pacemaker 활용한 zabbix 이중화 방안(w/ Zabbix Korea Community)
Oracle vm 3.0 Fresh Start - Tarmo Alasoo
Ansible MySQL MHA
MySQL Sandbox 3
VMware ESXi 6.0 Installation Process
MySQL Tech Tour 2015 - 5.7 InnoDB
MySQL for Large Scale Social Games
Visão geral sobre Citrix XenServer 6 - Ferramentas e Licenciamento
Mysql 57-upcoming-changes
MySQL 5.6 Performance
Ansible for Configuration Management for Lohika DevOps training 2018 @ Lohika...
Optimizing MySQL for Cascade Server
Virtualizacao de Servidores - Windows
8 christian ferber xen_server_6_news
MySQL Group Replication
MySQL Storage Engines - which do you use? TokuDB? MyRocks? InnoDB?
VMWare Lab For Training, Testing or Proof of Concept
55 New Features in JDK 9
MySQL Performance Metrics that Matter
Ad

Viewers also liked (14)

PDF
Seminar : &quot;The Future of MySQL - Roadmap to Success&quot; session MySQL ...
PPT
MySQL Cluster Basics
PDF
Mysql cluster introduction
PPTX
MySQL High Availability Solutions - Feb 2015 webinar
PDF
NoSQL and SQL - blending the best of both worlds
PDF
MySQL Developer Day conference: MySQL Replication and Scalability
PDF
Successful MySQL Scalability
PDF
Seminar : &quot;The Future of MySQL - Roadmap to Success&quot; session MySQL ...
PPT
Building a Scalable Architecture for web apps
PPTX
MySQL Cluster - Latest Developments (up to and including MySQL Cluster 7.4)
PDF
FOSDEM 2015 - NoSQL and SQL the best of both worlds
PPT
7 Stages of Scaling Web Applications
PPTX
Facebook architecture presentation: scalability challenge
PDF
Architecture of a Modern Web App
Seminar : &quot;The Future of MySQL - Roadmap to Success&quot; session MySQL ...
MySQL Cluster Basics
Mysql cluster introduction
MySQL High Availability Solutions - Feb 2015 webinar
NoSQL and SQL - blending the best of both worlds
MySQL Developer Day conference: MySQL Replication and Scalability
Successful MySQL Scalability
Seminar : &quot;The Future of MySQL - Roadmap to Success&quot; session MySQL ...
Building a Scalable Architecture for web apps
MySQL Cluster - Latest Developments (up to and including MySQL Cluster 7.4)
FOSDEM 2015 - NoSQL and SQL the best of both worlds
7 Stages of Scaling Web Applications
Facebook architecture presentation: scalability challenge
Architecture of a Modern Web App
Ad

Similar to Seminar : &quot;The Future of MYSQL - Roadmap to Success&quot; session MySQL Technology Update (20)

PDF
MySQL update SCaLE 2012
PDF
What's new in MySQL 5.5?
PDF
The Dolphins Leap Again
PDF
20111121 osi keynote
PPT
My sqlstrategyroadmap
PDF
My sql 56_roadmap_april2012_zht2
PDF
What's new in my sql smug
PDF
MySQL 5.7 what's new
PDF
MySQL Manchester TT - 5.7 Whats new
PDF
My sql crashcourse_intro_kdl
PDF
TWJUG August, What's new in MySQL 5.7 RC
PDF
Netherlands Tech Tour - 07 MySQL Whats upcoming in 5.7
PPT
My sql vivo_5.5_product_update_pt
PDF
MySQL 5.7: What's New, Nov. 2015
PDF
OSDC 2018 | Scaling & High Availability MySQL learnings from the past decade+...
PPTX
MySQL Tech Tour 2015 - 5.7 Whats new
PDF
My Sql Performance On Ec2
PDF
My Sql Performance In A Cloud
PDF
Running MySQL on Linux
PDF
What's new in MySQL 5.5? FOSDEM 2011
MySQL update SCaLE 2012
What's new in MySQL 5.5?
The Dolphins Leap Again
20111121 osi keynote
My sqlstrategyroadmap
My sql 56_roadmap_april2012_zht2
What's new in my sql smug
MySQL 5.7 what's new
MySQL Manchester TT - 5.7 Whats new
My sql crashcourse_intro_kdl
TWJUG August, What's new in MySQL 5.7 RC
Netherlands Tech Tour - 07 MySQL Whats upcoming in 5.7
My sql vivo_5.5_product_update_pt
MySQL 5.7: What's New, Nov. 2015
OSDC 2018 | Scaling & High Availability MySQL learnings from the past decade+...
MySQL Tech Tour 2015 - 5.7 Whats new
My Sql Performance On Ec2
My Sql Performance In A Cloud
Running MySQL on Linux
What's new in MySQL 5.5? FOSDEM 2011

More from Software Park Thailand (20)

PDF
Smart industry Vol.33/2561
PDF
Softwarepark news Vol.7/2561
PDF
Software Park Thailand Newsletter (Thai) Vol2/2556
PDF
Software Park Newsletter Thai Vol 3/25561
PDF
Smart Industry Vol.23
PDF
Solfware park Newsletter Vol 3/2013 Eng Version
PDF
Software Park Thailand Newsletter Vol 3/2556
PDF
Software Park Thailand Newsletter (Eng) Vol3/2012
PDF
Software Park Thailand Newsletter (Eng) Vol5/2013
PDF
Software Park Thailand Newsletter (Thai) Vol4/2555
PDF
Thai ICT Trad Mission CommunicAsia 2013 (18-21 June 2013)
PDF
Smart Industry Vo.22/2556"E-transaction กระตุ้นธุรกิจอีคอมเมิร์สโต"
PDF
Software newsletter
PDF
Smart industry Vol. 21/2556
PDF
Software Park Newsletter 2/2554 "แท็บเล็ต สมาร์ทโพน โมบายแอพพลิเคชั่น ดาวเด่น...
PDF
Software Park Newsletter Vol. 4/2012 English Version
PDF
Thai IT Delegation to Japan 2012
PDF
Thai IT Business Develop,emt Delegation to Tokyo, Japan, 2012
PDF
Thai IT Trade Delegation to Tokyo, Japan 11-16 November 2012
PDF
Thai IT Business Development Delegation to Tokyo, Japan: November 2012
Smart industry Vol.33/2561
Softwarepark news Vol.7/2561
Software Park Thailand Newsletter (Thai) Vol2/2556
Software Park Newsletter Thai Vol 3/25561
Smart Industry Vol.23
Solfware park Newsletter Vol 3/2013 Eng Version
Software Park Thailand Newsletter Vol 3/2556
Software Park Thailand Newsletter (Eng) Vol3/2012
Software Park Thailand Newsletter (Eng) Vol5/2013
Software Park Thailand Newsletter (Thai) Vol4/2555
Thai ICT Trad Mission CommunicAsia 2013 (18-21 June 2013)
Smart Industry Vo.22/2556"E-transaction กระตุ้นธุรกิจอีคอมเมิร์สโต"
Software newsletter
Smart industry Vol. 21/2556
Software Park Newsletter 2/2554 "แท็บเล็ต สมาร์ทโพน โมบายแอพพลิเคชั่น ดาวเด่น...
Software Park Newsletter Vol. 4/2012 English Version
Thai IT Delegation to Japan 2012
Thai IT Business Develop,emt Delegation to Tokyo, Japan, 2012
Thai IT Trade Delegation to Tokyo, Japan 11-16 November 2012
Thai IT Business Development Delegation to Tokyo, Japan: November 2012

Recently uploaded (20)

PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
Programs and apps: productivity, graphics, security and other tools
PPT
Teaching material agriculture food technology
PDF
Encapsulation theory and applications.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
Spectroscopy.pptx food analysis technology
PDF
Electronic commerce courselecture one. Pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Big Data Technologies - Introduction.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
NewMind AI Weekly Chronicles - August'25 Week I
“AI and Expert System Decision Support & Business Intelligence Systems”
Unlocking AI with Model Context Protocol (MCP)
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Programs and apps: productivity, graphics, security and other tools
Teaching material agriculture food technology
Encapsulation theory and applications.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
MIND Revenue Release Quarter 2 2025 Press Release
Per capita expenditure prediction using model stacking based on satellite ima...
Encapsulation_ Review paper, used for researhc scholars
sap open course for s4hana steps from ECC to s4
Spectroscopy.pptx food analysis technology
Electronic commerce courselecture one. Pdf
Spectral efficient network and resource selection model in 5G networks
Network Security Unit 5.pdf for BCA BBA.
Empathic Computing: Creating Shared Understanding
Big Data Technologies - Introduction.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025

Seminar : &quot;The Future of MYSQL - Roadmap to Success&quot; session MySQL Technology Update

  • 1. <Insert Picture Here> MySQL Technology Update Oracle’s Investment in Performance and Scalability
  • 2. Investment in MySQL Rapid Innovation Make MySQL a Better MySQL • #1 Open Source Database for Web Applications • Most Complete LAMP Stack • Telecom & Embedded Develop, Promote and Support MySQL • Improve engineering, consulting and support • Leverage 24x7, World-Class Oracle Support MySQL Community Edition • Source and binary releases • GPL license
  • 3. Announced Today MySQL 5.5 is now GA! Making MySQL Better Today and Everyday
  • 4. MySQL 5.5 – What’s New Better Performance, Scalability and Recovery GA InnoDB Performance improvements • Multiple Buffer Pool Instances • Multiple Rollback Segments – now supports 128K concurrent trxs • Extended Change Buffering (with delete buffering, purge buffering) • Improved Purge Scheduling • Improved Log Sys mutex, Separate Flush List mutex • Improved Recovery Times • More… MySQL Performance Improvements • Better Metadata Locking within Transactions • Split LOCK_open mutex • Eliminated LOCK_alarm mutex as bottleneck • Eliminated LOCK_thread_count as bottleneck • Improved Performance/Scale on Win32, 64 • More…
  • 5. MySQL 5.5 – What’s New InnoDB becomes default storage engine GA • ACID Transactions, FKs, Crash Recovery Improved Availability • Semi-synchronous Replication • Replication Heartbeat • Replication Slave fsync options • Automatic Relay Log Recovery Improved Usability • SIGNAL/RESIGNAL • More Partitioning Options • Replication Server Filtering • Replication Slave Side Type Conversions • Individual Log Flushing Better Instrumentation/Diagnostics • New PERFORMANCE_SCHEMA
  • 6. MySQL 5.5 Early Adopters Speak! “Thanks to the MySQL and InnoDB teams for their continued hard work and dedication to making MySQL faster as hardware evolves. I, for one, cannot wait to see what this stuff does for us. “ – Jeremy Zawodny, Craigslist “I’m really blown away by MySQL 5.5’s improvements. “ - Don MacAskill, SmugMug “My expectations for 5.5 were not high. I am pleasantly surprised!” - Mark Callaghan, Facebook, MySQL UC Keynote
  • 7. MySQL 5.5 SysBench Benchmarks Linux GA MySQL 5.5.6 (New InnoDB) MySQL 5.1.50 (InnoDB Plug-in) MySQL 5.1.50 (InnoDB built-in) 200% performance gain Intel Xeon X7460 x86_64 4 CPU x 6 Cores/CPU 2.66 GHz, 32GB RAM for MySQL 5.5 over 5.1.50; at scale Fedora 10
  • 8. MySQL 5.5 SysBench Benchmarks Linux GA MySQL 5.5.6 (New InnoDB) MySQL 5.1.50 (InnoDB Plug-in) MySQL 5.1.50 (InnoDB built-in) 370% performance gain Intel Xeon X7460 x86_64 4 CPU x 6 Cores/CPU 2.66 GHz, 32GB RAM for MySQL 5.5 over 5.1.50; at scale Fedora 10
  • 9. MySQL on Windows The Right Choice Significant Developer Adoption • Windows is the #1 development platform for MySQL • Making MySQL better on Windows Performance & Scalability Lower TCO • Improved on Windows • More Affordable • MySQL 5.5 Benchmarks • Easier to Administer Ease of Use Cross-platform • MySQL Workbench • 20+ Platforms • New Connector/NET 6.3 • No Lock-in
  • 10. MySQL 5.5 SysBench Benchmarks Windows GA MySQL 5.5.6 (New InnoDB) MySQL 5.1.50 (InnoDB Plug-in) MySQL 5.1.50 (InnoDB built-in) 540% performance gain Intel x86_64 4 CPU x 2 Cores/CPU 3.166 GHz, 8GB RAM for MySQL 5.5 over 5.1.50; at scale Windows Server 2008
  • 11. MySQL 5.5 SysBench Benchmarks Windows GA MySQL 5.5.6 (New InnoDB) MySQL 5.1.50 (InnoDB Plug-in) MySQL 5.1.50 (InnoDB built-in) 1560% performance gain Intel x86_64 4 CPU x 2 Cores/CPU 3.166 GHz, 8GB RAM for MySQL 5.5 over 5.1.50; at scale Windows Server 2008
  • 12. MySQL 5.5 Scales on multi core SysBench Read Write GA MySQL 5.5.4 MySQL 5.5.3 Transactions/Second MySQL 5.1 AMD Opteron 7160 (Magny-Cours) @2100 MHz 64 GB memory 2 x Intel X25E SSD drives OS is Oracle Enterprise Linux with the Enterprise Kernel 4 sockets with a total of 48 cores.
  • 13. Improved Recovery Performance GA Crash Recovery 250 200 5.1 5.1 5.1 Minutes 150 100 50 5.5 5.5 5.5 0 plugin 1.0.6 Total Scanning Log Applying InnoDB 1.1 > 10x recovery performance gain 50 warehouses Database=9800MB Intel Xeon X7460 x86_64 4 CPU x 6 Cores/CPU Innodb_log_file_size=2x1950MB 2.66 GHz, 32GB RAM for MySQL 5.5 over 5.1 Buffer_pool-12GB Fedora 10 Started tested, killed server@5 mins
  • 14. MySQL 5.5 Replication Features 1. Semisynchronous replication Improved resilience by having master wait for slave to receive events. 2. Slave fsync tuning & Automatic relay log recovery Tune fsyncs so corruption is less likely on slave crashes. Let the slave recover from corrupted relay logs. 3. Replication Heartbeat Have a more precise failure detection mechanism. Avoid spurious relay log rotation when the master is idle. 4. Per server replication filtering Instruct slave to discard events from a master with a specific server id. Copyright Oracle Corporation 2010 19
  • 15. MySQL 5.5 Replication Features 5. Precise Slave Type Conversions Use different types on master and slave and get automatic type promotion and demotion when using RBR 6. Individual Log Flushing Selectively flush server logs when using 'FLUSH LOGS' 7. Safe logging of mixed transactions Replicate transactions containing both InnoDB and MyISAM changes Copyright Oracle Corporation 2010 20
  • 16. 1. Semisynchronous Replication • MySQL replication is asynchronous – A recovered master may have non-binlogged changes. – This can cause master and slave to diverge. – A failed master may have binlogged but non-replicated changes – If a slave is promoted to master some information can be lost. • Semisynchronous replication ensures redundancy – At least one slave acknowledges relay logging the transaction. – Master waits for slave acknowledgement before commit returns. – (On time-out, master temporarily switches to async replication.) Copyright Oracle Corporation 2010 21
  • 17. 1. Semisynchronous Replication Copyright Oracle Corporation 2010 22
  • 18. 1. Semisynchronous Replication Checking the state On master Rpl_semi_sync_master_status Rpl_semi_sync_master_clients Rpl_semi_sync_master_yes_tx Rpl_semi_sync_master_no_tx On Slave Rpl_semi_sync_slave_status Copyright Oracle Corporation 2010 23
  • 19. 3. Replication Heartbeat MySQL Server Replication MySQL Server Master I/O Slave thread Heartbeat SE1 SE2 SE1 SE2 Relay Binlog Binlog Binlog • Automatic checking of connection status • No more relay log rotates when the master is idle • Detection of master/slave disconnect, configurable in milliseconds CHANGE MASTER SET master_heartbeat_period= val; SHOW STATUS like 'slave_heartbeat period' SHOW STATUS like 'slave_received_heartbeats' Copyright Oracle Corporation 2010 24
  • 20. MySQL: Still Free, Open to the Community Available to download and use under the GPL: • MySQL Database (Community Server) • All 5.5 features, all storage engines • MySQL Cluster • Geo-replication • MySQL Workbench Community Edition • MySQL Connectors • MySQL Proxy • Documentation • Forums http://mysql.com/downloads/