The Artima Developer Community
Sponsored Link

Python Buzz Forum
Semi-synchronous replication for MySQL (courtesy Google)

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Phillip Pearson

Posts: 1083
Nickname: myelin
Registered: Aug, 2003

Phillip Pearson is a Python hacker from New Zealand
Semi-synchronous replication for MySQL (courtesy Google) Posted: Jun 4, 2007 9:03 PM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Phillip Pearson.
Original Post: Semi-synchronous replication for MySQL (courtesy Google)
Feed Title: Second p0st
Feed URL: http://www.myelin.co.nz/post/rss.xml
Feed Description: Tech notes and web hackery from the guy that brought you bzero, Python Community Server, the Blogging Ecosystem and the Internet Topic Exchange
Latest Python Buzz Posts
Latest Python Buzz Posts by Phillip Pearson
Latest Posts From Second p0st

Advertisement

Very nice - Google has implemented semi-synchronous replication for MySQL, so you can get high availability solely through replication.

The detail: MySQL replication is good for scalability, but being asynchronous, it lacks one important feature that would make it more or less a complete high availability solution. If a transaction succeeds on the master, then the master dies and takes its disk with it, the transaction may not have been fully replicated to any slaves.

One way around this is to use DRBD, which blocks fsync() until the data has been replicated. However DRBD has the opposite problem - it's good for HA but doesn't help you scale!

Semi-synchronous replication gives you the transaction replication guarantee by blocking transaction commits until the transaction has been replicated to at least one slave, i.e. gives you high availability *and* scaling.

Code here. Here's the patch for MySQL 5.0.37.

Comment

Read: Semi-synchronous replication for MySQL (courtesy Google)

Topic: Updated Jython Bibliography for 2007 Previous Topic   Next Topic Topic: An Agile Paradox: People over Process (part 1)

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use