Effective Mysql Replication Techniques in Depth
Total Page:16
File Type:pdf, Size:1020Kb
Oracle_Flash / Effective MySQL: Replication Techniques in Depth / Bradford / 186-8 ® Effective MySQL Replication Techniques in Depth 00-FM.indd 1 9/6/12 6:20 PM Oracle_Flash / Effective MySQL: Replication Techniques in Depth / Bradford / 186-8 About the Authors Ronald Bradford has worked in the relational database industry for over 20 years. His professional background began in 1989 with Ingres and Oracle RDBMS. His expertise includes a vast experience with database architec- ture, performance tuning, and management of large enterprise systems. Ronald has, for the past 13 years, worked primarily with MySQL, the world’s most popular open source database. His previous employment has includ- ed Oracle Corporation (1996–1999) as an Oracle Consultant and MySQL, Inc. (2006–2008) as a senior MySQL Consultant. His contributions to the MySQL community have included recognition as the all-time top individual MySQL blog contributor at Planet MySQL (2010), an Oracle ACE Director (2010), and MySQL Community Member of the Year (2009). Ronald combines his extensive consulting expertise with a passion to share the knowledge and benefits of using MySQL. He is the author of four books on MySQL, and his many public speaking engagements have in- cluded presentations at conferences in over 25 countries. The Effective MySQL series of books and presentations aim to provide practical educa- tion for DBAs, developers, and architects in MySQL performance, scalabil- ity, and business continuity. Chris Schneider is a long-time open source advocate and MySQL evange- list, administrator, and architect. Over the past decade Chris has devoted his professional career to open source technologies, with his primary focus being MySQL at scale. His previous employment has included GoDaddy, Facebook, and Ning.com, along with his own MySQL consulting company. He has designed, implemented, and maintained small to large MySQL installations while training and mentoring teams of DBAs. This includes building architecture from the ground up and improving on those that are currently in place while emphasizing scalability, performance, and ease of use. Chris has also shared his experiences and knowledge through the many speaking engagements he does, such as Oracle Open World, MySQL Con- nect, Percona Live, and the former O’Reilly MySQL Conference. Chris is also the technical editor of the second book in the Effective MySQL series, Effective MySQL: Backup and Recovery. 00-FM.indd 2 9/6/12 6:20 PM Oracle_Flash / Effective MySQL: Replication Techniques in Depth / Bradford / 186-8 About the Technical Editors Nelson Calero has been working with Oracle technology since 1996, and with MySQL since 2005, specializing in architecture, administration, and performance for very large databases (VLDBs) and highly available (HA) environments. His previous experience included being a teacher and re- searcher in the Computer Science Institute (InCo) of the Engineering Uni- versity (UdelaR) in Uruguay. Nelson now focuses on providing industry consulting to both the private and public sectors throughout Latin Ameri- ca, from Argentina to Mexico. In the past few years, Nelson has become a frequent speaker at user community events in the Americas, including Oracle Open World Latin America and Collaborate. Currently he is an independent consultant, an Oracle University instructor, and president of the Oracle User Group of Uruguay (UYOUG). Giuseppe Maxia works as QA Director with Continuent, Inc. He is an ac- tive member of the MySQL community and long-time open source enthu- siast. During the past decades he has worked in various IT related fields, with focus on databases, object oriented programming, and system admin- istration. He is fluent in Italian, English, Perl, Python, SQL, Lua, C, and Bash, and a good speaker of C, French, Spanish, and Java. He works in cy- berspace with a virtual team and a blog (http://datacharmer.blogspot .com). Giuseppe has twice been the recipient of the MySQL Community Award (2006 and 2011) and recognized as an Oracle ACE Director (2012). Sheeri K. Cabral has a master’s degree in computer science specializing in databases from Brandeis University and a background in systems adminis- tration. Unstoppable as a volunteer and activist since age 14, Cabral found- ed and organizes the Boston, Massachusetts, MySQL User Group and is the creator and co-host of OurSQLCast: The MySQL Database Community Podcast, available on iTunes. She was the first MySQL Oracle ACE Director, and is the founder (and current treasurer) of Technocation, Inc., a not-for- profit organization providing resources and educational grants for IT pro- fessionals. She wrote the MySQL Administrator’s Bible (Wiley and Sons, 2009) and has been a technical editor for high-profile O’Reilly books such as High Performance MySQL, 2nd Edition (2012) and C.J. Date’s SQL and Relational Theory (2009). 00-FM.indd 3 9/6/12 6:20 PM Oracle_Flash / Effective MySQL: Replication Techniques in Depth / Bradford / 186-8 Hans Forbrich has been working with computers since the early 1970s, in particular with entity-relationship and relational databases, starting in 1979 using an engine on IBM mainframes called GERM (General Entity Relationship Model). Since that time, Hans has been a DBA, an operations architect for a number of organizations, and an Oracle University instruc- tor but always heavily involved in high availability and recoverability. As a fellow ACE Director, Hans is pleased and honored to have been a technical reviewer for this book. This topic is an important area of MySQL, and Ronald’s expertise and experience in this area shine through. Darren Cassar is a senior MySQL Database Administrator at Lithium Tech- nologies. He holds a computer and communications engineering degree from the University of Malta and started his career doing systems admin- istration in Malta, later moving on to database administration in Malta, London, New York, and San Francisco. Darren is the author of Securich, an open source security plugin for MySQL, a subject that he has presented at several conferences in both the United States and Europe. 00-FM.indd 4 9/6/12 6:20 PM Oracle_Flash / Effective MySQL: Replication Techniques in Depth / Bradford / 186-8 Effective MySQL Replication Techniques in Depth Ronald Bradford Chris Schneider New York Chicago San Francisco Lisbon London Madrid Mexico City Milan New Delhi San Juan Seoul Singapore Sydney Toronto 00-FM.indd 5 9/6/12 6:20 PM Oracle_Flash / Effective MySQL: Replication Techniques in Depth / Bradford / 186-8 Copyright © 2013 by The McGraw-Hill Companies. All rights reserved. Except as permitted under the United States Copyright Act of 1976, no part of this publication may be reproduced or distributed in any form or by any means, or stored in a database or retrieval system, without the prior written permission of the publisher. ISBN: 978-0-07-179187-8 MHID: 0-07-179187-6 The material in this eBook also appears in the print version of this title: ISBN: 978-0-07-179186-1, MHID: 0-07-179186-8. McGraw-Hill eBooks are available at special quantity discounts to use as premiums and sales promotions, or for use in corporate training programs. To contact a representative please e-mail us at [email protected]. All trademarks are trademarks of their respective owners. Rather than put a trademark symbol after every occurrence of a trademarked name, we use names in an editorial fashion only, and to the benefit of the trademark owner, with no intention of infringement of the trademark. Where such designations appear in this book, they have been printed with initial caps. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. All other trademarks are the property of their respective owners, and McGraw-Hill makes no claim of ownership by the mention of products that contain these marks. Screen displays of copyrighted Oracle software programs have been reproduced herein with the permission of Oracle Corporation and/or its affiliates. Information has been obtained by McGraw-Hill from sources believed to be reliable. However, because of the possibility of human or mechanical error by our sources, McGraw-Hill, or others, McGraw-Hill does not guarantee the accuracy, adequacy, or completeness of any information and is not responsible for any errors or omissions or the results obtained from the use of such information. Oracle Corporation does not make any representations or warranties as to the accuracy, adequacy, or completeness of any information contained in this Work, and is not responsible for any errors or omissions. TERMS OF USE This is a copyrighted work and The McGraw-Hill Companies, Inc. (“McGrawHill”) and its licensors reserve all rights in and to the work. Use of this work is subject to these terms. Except as permitted under the Copyright Act of 1976 and the right to store and retrieve one copy of the work, you may not decompile, disassemble, reverse engineer, reproduce, modify, create derivative works based upon, transmit, distribute, disseminate, sell, publish or sublicense the work or any part of it without McGraw-Hill’s prior consent. You may use the work for your own noncommercial and personal use; any other use of the work is strictly prohibited. Your right to use the work may be terminated if you fail to comply with these terms. THE WORK IS PROVIDED “AS IS.” McGRAW-HILL AND ITS LICENSORS MAKE NO GUARANTEES OR WARRANTIES AS TO THE ACCURACY, ADEQUACY OR COMPLETENESS OF OR RESULTS TO BE OBTAINED FROM USING THE WORK, INCLUDING ANY INFORMATION THAT CAN BE ACCESSED THROUGH THE WORK VIA HYPERLINK OR OTHERWISE, AND EXPRESSLY DISCLAIM ANY WARRANTY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. McGraw-Hill and its licensors do not warrant or guarantee that the functions contained in the work will meet your requirements or that its operation will be uninterrupted or error free.