SlideShare a Scribd company logo
MySQL 5.5 Replication Enhancements – An Overview (FOSDEM 2011)
<Insert Picture Here>




MySQL 5.5 Replication Enhancements – An Overview
Lenz Grimmer
MySQL Community Relations Specialist
Semi-synchronous Replication

• Improves replication resilience and failover
  reliability
• Designed as a plugin
• COMMITs on the master node are
  acknowledged only when at least one slave
  has logged the event in the relay log
• Data is not lost in case of failover
Replication Heartbeat

• Message sent at regular intervals from master
  node to slave nodes
• Avoids spurious relay log rotation when
  master node is idle
• Heartbeats are sent only if there are no more
  unsent events in the binlog file
• If message is not received, slave knows that
  master node has failed
Replication Slave fsync() Options

• Fine tune relay logs and {master|relay-
  log}.info fsync operations
• Reduces potential file corruption when slave
  crashes
• Three new parameters to configure how often
  IO and SQL threads will issue file sync
Automatic Relay Log Recovery

• Ensures master/slave consistency on restart
• Slave automatically discard its own
  unprocessed relay logs
• Recovers pending transactions from the
  originating master
Per-master Event Filtering

• MySQL slave can discard events coming from
  a specific master
• 'CHANGE MASTER' now supports
  'IGNORE_SERVER_IDS = ...' to configure
  which events should be discarded
• Useful in circular replication topologies
Replication Slave Side Type Conversions

• Row-based replication between columns with
  different types was limited
• Type promotion and demotion is now
  supported
• Examples:
  – Replicate seamlessly from TINYINT column on master
    to INT column on the slave
  – Or CHAR(10) column to a VARCHAR(20) column
  – Or even from TEXT column to VARCHAR(20) column
Individual Log Flushing

• Users can now selectively flush server logs
  with 'FLUSH LOGS'
• Before, every time users wanted to flush such
  logs, other server logs would flush as well
• Now users can specify which individual log to
  flush by providing the log type as an argument
  to the 'FLUSH LOGS' command
SHOW RELAYLOG EVENTS

• You can now show relay log contents, as you
  would do for the binlogs
• Useful for comparing events on the master
  binlog against the slave relay log
• Easier to inspect the binary and relay logs on
  servers that act both as master and slave in
  chained replication topologies
• May also be used to diagnose relay log
  corruption
Give it a spin!

• Download MySQL 5.5 from the usual place:
  http://dev.mysql.com/downloads/mysql/
• Send us feedback and bug reports:
  http://bugs.mysql.com/
• Questions? Use the Forums or Mailing Lists:
  http://forums.mysql.com|http://lists.mysql.com
• Blog about your experiences:
  http://planet.mysql.com
Discussion / Q & A
Thank you!
Lenz Grimmer <lenz.grimmer@oracle.com>
          http://www.lenzg.net/
                 @lenzgr
MySQL 5.5 Replication Enhancements – An Overview (FOSDEM 2011)

More Related Content

What's hot (20)

PDF
Function Mesh for Apache Pulsar, the Way for Simple Streaming Solutions
StreamNative
 
PDF
Double Sync Replication
Lixun Peng
 
PDF
Brad wood - Integrating MVC Into Legacy [Into The Box 2020]
Ortus Solutions, Corp
 
PDF
Brad wood - 5 CommandBox Modules You Should Be Using [Into The Box 2020]
Ortus Solutions, Corp
 
PPTX
Mule quartz hari_gatadi
Hari Gatadi
 
PDF
Capistrano
Kenneth Kalmer
 
PDF
Effectively-once semantics in Apache Pulsar
Matteo Merli
 
PDF
Kafka Summit SF 2017 - One Data Center is Not Enough: Scaling Apache Kafka Ac...
confluent
 
PDF
Can Kafka Handle a Lyft Ride? (Andrey Falko & Can Cecen, Lyft) Kafka Summit 2020
HostedbyConfluent
 
PDF
Apache Kafka - Martin Podval
Martin Podval
 
PPTX
Mule esb usecase
charan teja R
 
PPT
Spark Streaming Info
Doug Chang
 
PDF
Let the alpakka pull your stream
Enno Runne
 
PDF
Until Successful Scope With Mule ESB
Jitendra Bafna
 
PPTX
Introducing Exactly Once Semantics To Apache Kafka
Apurva Mehta
 
PPTX
Shipping your logs to elk from mule app/cloudhub part 3
Alex Fernandez
 
PPTX
Phoenix: Sent 200 OK in 3 μs
Manos Emmanouilidis
 
PDF
Event Driven Architectures with Camel
gnanagurus
 
PDF
1. Core Features of Apache RocketMQ
振东 刘
 
PPTX
FlumeBase Study
Hanborq Inc.
 
Function Mesh for Apache Pulsar, the Way for Simple Streaming Solutions
StreamNative
 
Double Sync Replication
Lixun Peng
 
Brad wood - Integrating MVC Into Legacy [Into The Box 2020]
Ortus Solutions, Corp
 
Brad wood - 5 CommandBox Modules You Should Be Using [Into The Box 2020]
Ortus Solutions, Corp
 
Mule quartz hari_gatadi
Hari Gatadi
 
Capistrano
Kenneth Kalmer
 
Effectively-once semantics in Apache Pulsar
Matteo Merli
 
Kafka Summit SF 2017 - One Data Center is Not Enough: Scaling Apache Kafka Ac...
confluent
 
Can Kafka Handle a Lyft Ride? (Andrey Falko & Can Cecen, Lyft) Kafka Summit 2020
HostedbyConfluent
 
Apache Kafka - Martin Podval
Martin Podval
 
Mule esb usecase
charan teja R
 
Spark Streaming Info
Doug Chang
 
Let the alpakka pull your stream
Enno Runne
 
Until Successful Scope With Mule ESB
Jitendra Bafna
 
Introducing Exactly Once Semantics To Apache Kafka
Apurva Mehta
 
Shipping your logs to elk from mule app/cloudhub part 3
Alex Fernandez
 
Phoenix: Sent 200 OK in 3 μs
Manos Emmanouilidis
 
Event Driven Architectures with Camel
gnanagurus
 
1. Core Features of Apache RocketMQ
振东 刘
 
FlumeBase Study
Hanborq Inc.
 

Viewers also liked (10)

PDF
Linux Migration from Legacy Mainframe Application - Whitepaper
NIIT Technologies
 
PDF
Enabling Continuous Availability and Reducing Downtime with IBM Multi-Site Wo...
zOSCommserver
 
PDF
Macrosoft Corporate Brochure
Macrosoft Inc
 
PDF
Synchronous Log Shipping Replication
elliando dias
 
PPTX
Doag data replication with oracle golden gate: Looking behind the scenes
Trivadis
 
PPT
Afcom Relocation Pres V4
kestephensjr
 
PDF
IBM InfoSphere Data Replication for Big Data
IBM Analytics
 
PPTX
Disaster Recovery for SAP HANA with SUSE Linux
Dirk Oppenkowski
 
PDF
Disaster Recovery using AWS -Architecture blueprints
Harish Ganesan
 
PPT
Disaster Recovery Plan for IT
hhuihhui
 
Linux Migration from Legacy Mainframe Application - Whitepaper
NIIT Technologies
 
Enabling Continuous Availability and Reducing Downtime with IBM Multi-Site Wo...
zOSCommserver
 
Macrosoft Corporate Brochure
Macrosoft Inc
 
Synchronous Log Shipping Replication
elliando dias
 
Doag data replication with oracle golden gate: Looking behind the scenes
Trivadis
 
Afcom Relocation Pres V4
kestephensjr
 
IBM InfoSphere Data Replication for Big Data
IBM Analytics
 
Disaster Recovery for SAP HANA with SUSE Linux
Dirk Oppenkowski
 
Disaster Recovery using AWS -Architecture blueprints
Harish Ganesan
 
Disaster Recovery Plan for IT
hhuihhui
 
Ad

Similar to MySQL 5.5 Replication Enhancements – An Overview (FOSDEM 2011) (20)

PDF
2012 replication
sqlhjalp
 
PDF
MySQL 5.6 Replication Webinar
Mark Swarbrick
 
PDF
MySQL Replication Update -- Zendcon 2016
Dave Stokes
 
PDF
2012 scale replication
sqlhjalp
 
PDF
MySQL Replication Basics -Ohio Linux Fest 2016
Dave Stokes
 
PPTX
MySQL Replication Overview -- PHPTek 2016
Dave Stokes
 
PDF
Replication features, technologies and 3rd party Extinction
Ben Mildren
 
PDF
Best practices for MySQL High Availability
Colin Charles
 
PDF
2012 ohiolinuxfest replication
sqlhjalp
 
PDF
MySQL Replication
Mark Swarbrick
 
PDF
MySQL Cluster Asynchronous replication (2014)
Frazer Clement
 
PDF
New awesome features in MySQL 5.7
Zhaoyang Wang
 
PDF
MySQL Replication Troubleshooting for Oracle DBAs
Sveta Smirnova
 
PDF
Evolution of MySQL Parallel Replication
Mydbops
 
PDF
MySQL replication best practices 105-232-931
Baruch Osoveskiy
 
PPTX
ConFoo MySQL Replication Evolution : From Simple to Group Replication
Dave Stokes
 
PDF
MySQL highav Availability
Baruch Osoveskiy
 
PPTX
MySQL Replication Evolution -- Confoo Montreal 2017
Dave Stokes
 
ODP
MySQL 101 PHPTek 2017
Dave Stokes
 
PDF
MySQL Webinar 2/4 Performance tuning, hardware, optimisation
Mark Swarbrick
 
2012 replication
sqlhjalp
 
MySQL 5.6 Replication Webinar
Mark Swarbrick
 
MySQL Replication Update -- Zendcon 2016
Dave Stokes
 
2012 scale replication
sqlhjalp
 
MySQL Replication Basics -Ohio Linux Fest 2016
Dave Stokes
 
MySQL Replication Overview -- PHPTek 2016
Dave Stokes
 
Replication features, technologies and 3rd party Extinction
Ben Mildren
 
Best practices for MySQL High Availability
Colin Charles
 
2012 ohiolinuxfest replication
sqlhjalp
 
MySQL Replication
Mark Swarbrick
 
MySQL Cluster Asynchronous replication (2014)
Frazer Clement
 
New awesome features in MySQL 5.7
Zhaoyang Wang
 
MySQL Replication Troubleshooting for Oracle DBAs
Sveta Smirnova
 
Evolution of MySQL Parallel Replication
Mydbops
 
MySQL replication best practices 105-232-931
Baruch Osoveskiy
 
ConFoo MySQL Replication Evolution : From Simple to Group Replication
Dave Stokes
 
MySQL highav Availability
Baruch Osoveskiy
 
MySQL Replication Evolution -- Confoo Montreal 2017
Dave Stokes
 
MySQL 101 PHPTek 2017
Dave Stokes
 
MySQL Webinar 2/4 Performance tuning, hardware, optimisation
Mark Swarbrick
 
Ad

More from Lenz Grimmer (20)

PDF
Ceph Management and Monitoring - DevConf.CZ - 2019-01-26
Lenz Grimmer
 
PDF
Managing and Monitoring Ceph - Ceph Day Berlin - 2018-11-12
Lenz Grimmer
 
PDF
Ceph Management and Monitoring with Dashboard V2 - Cephalocon 2018-03-23
Lenz Grimmer
 
PDF
Ceph and Storage Management with openATTIC - FOSDEM 2017-02-05
Lenz Grimmer
 
PDF
Ceph and Storage Management with openATTIC - Ceph Day Munich - 2016-09-23
Lenz Grimmer
 
PDF
Ceph and Storage Management in openATTIC - solutions.hamburg - 2016-09-09
Lenz Grimmer
 
PDF
Storage Monitoring in openATTIC - Monitoring Workshop - 2016-09-07
Lenz Grimmer
 
PDF
Ceph and Storage Management with openATTIC - FrOSCon 2016-08-21
Lenz Grimmer
 
PDF
Ceph and Storage Management with openATTIC - SUSE MOST - 2016-06-07
Lenz Grimmer
 
PDF
Ceph and Storage Management with openATTIC, Ceph Tech Talks 2016-06-23
Lenz Grimmer
 
PDF
Ceph and Storage Management with openATTIC, openSUSE Conference 2016-06-23
Lenz Grimmer
 
PDF
Storage Management mit openAttic - LinuxDay - 2015-11-21
Lenz Grimmer
 
PDF
Flexibles Storage Management unter Linux mit OpenATTIC - Kielux 2015-09-18
Lenz Grimmer
 
PDF
The Evolution of Storage on Linux - FrOSCon - 2015-08-22
Lenz Grimmer
 
PDF
MySQL High Availability Solutions
Lenz Grimmer
 
PDF
How to build your own Quadrocopter
Lenz Grimmer
 
PDF
What's new in MySQL 5.5?
Lenz Grimmer
 
PDF
ZFS unter Linux
Lenz Grimmer
 
PDF
Making MySQL Administration a Breeze - A look into a MySQL DBA's toolchest
Lenz Grimmer
 
PDF
Arbeiten in einer virtuellen Firma - MySQL
Lenz Grimmer
 
Ceph Management and Monitoring - DevConf.CZ - 2019-01-26
Lenz Grimmer
 
Managing and Monitoring Ceph - Ceph Day Berlin - 2018-11-12
Lenz Grimmer
 
Ceph Management and Monitoring with Dashboard V2 - Cephalocon 2018-03-23
Lenz Grimmer
 
Ceph and Storage Management with openATTIC - FOSDEM 2017-02-05
Lenz Grimmer
 
Ceph and Storage Management with openATTIC - Ceph Day Munich - 2016-09-23
Lenz Grimmer
 
Ceph and Storage Management in openATTIC - solutions.hamburg - 2016-09-09
Lenz Grimmer
 
Storage Monitoring in openATTIC - Monitoring Workshop - 2016-09-07
Lenz Grimmer
 
Ceph and Storage Management with openATTIC - FrOSCon 2016-08-21
Lenz Grimmer
 
Ceph and Storage Management with openATTIC - SUSE MOST - 2016-06-07
Lenz Grimmer
 
Ceph and Storage Management with openATTIC, Ceph Tech Talks 2016-06-23
Lenz Grimmer
 
Ceph and Storage Management with openATTIC, openSUSE Conference 2016-06-23
Lenz Grimmer
 
Storage Management mit openAttic - LinuxDay - 2015-11-21
Lenz Grimmer
 
Flexibles Storage Management unter Linux mit OpenATTIC - Kielux 2015-09-18
Lenz Grimmer
 
The Evolution of Storage on Linux - FrOSCon - 2015-08-22
Lenz Grimmer
 
MySQL High Availability Solutions
Lenz Grimmer
 
How to build your own Quadrocopter
Lenz Grimmer
 
What's new in MySQL 5.5?
Lenz Grimmer
 
ZFS unter Linux
Lenz Grimmer
 
Making MySQL Administration a Breeze - A look into a MySQL DBA's toolchest
Lenz Grimmer
 
Arbeiten in einer virtuellen Firma - MySQL
Lenz Grimmer
 

Recently uploaded (20)

PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 

MySQL 5.5 Replication Enhancements – An Overview (FOSDEM 2011)

  • 2. <Insert Picture Here> MySQL 5.5 Replication Enhancements – An Overview Lenz Grimmer MySQL Community Relations Specialist
  • 3. Semi-synchronous Replication • Improves replication resilience and failover reliability • Designed as a plugin • COMMITs on the master node are acknowledged only when at least one slave has logged the event in the relay log • Data is not lost in case of failover
  • 4. Replication Heartbeat • Message sent at regular intervals from master node to slave nodes • Avoids spurious relay log rotation when master node is idle • Heartbeats are sent only if there are no more unsent events in the binlog file • If message is not received, slave knows that master node has failed
  • 5. Replication Slave fsync() Options • Fine tune relay logs and {master|relay- log}.info fsync operations • Reduces potential file corruption when slave crashes • Three new parameters to configure how often IO and SQL threads will issue file sync
  • 6. Automatic Relay Log Recovery • Ensures master/slave consistency on restart • Slave automatically discard its own unprocessed relay logs • Recovers pending transactions from the originating master
  • 7. Per-master Event Filtering • MySQL slave can discard events coming from a specific master • 'CHANGE MASTER' now supports 'IGNORE_SERVER_IDS = ...' to configure which events should be discarded • Useful in circular replication topologies
  • 8. Replication Slave Side Type Conversions • Row-based replication between columns with different types was limited • Type promotion and demotion is now supported • Examples: – Replicate seamlessly from TINYINT column on master to INT column on the slave – Or CHAR(10) column to a VARCHAR(20) column – Or even from TEXT column to VARCHAR(20) column
  • 9. Individual Log Flushing • Users can now selectively flush server logs with 'FLUSH LOGS' • Before, every time users wanted to flush such logs, other server logs would flush as well • Now users can specify which individual log to flush by providing the log type as an argument to the 'FLUSH LOGS' command
  • 10. SHOW RELAYLOG EVENTS • You can now show relay log contents, as you would do for the binlogs • Useful for comparing events on the master binlog against the slave relay log • Easier to inspect the binary and relay logs on servers that act both as master and slave in chained replication topologies • May also be used to diagnose relay log corruption
  • 11. Give it a spin! • Download MySQL 5.5 from the usual place: http://dev.mysql.com/downloads/mysql/ • Send us feedback and bug reports: http://bugs.mysql.com/ • Questions? Use the Forums or Mailing Lists: http://forums.mysql.com|http://lists.mysql.com • Blog about your experiences: http://planet.mysql.com
  • 13. Thank you! Lenz Grimmer <[email protected]> http://www.lenzg.net/ @lenzgr