Linux Today: Linux News On Internet Time.
Search Linux Today
search.internet.com
Linux News Sections:  Blog -  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Preferences
Contribute
Link to Us
Search
Linux Jobs

Become a Marketplace Partner

internet.commerce
Be a Commerce Partner














The Linux Channel at internet.com
Linux Today
Enterprise Linux Today
Apache Today
JustLinux.com
Linux Planet
PHPBuilder
All Linux Devices
Technology Jobs

JustTechJobs.com

LinuxToday Newsletters
Subscribe News
Subscribe PR
Subscribe Security

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

 






Current Newswire:

Creating An NFS-Like Standalone Storage Server With GlusterFS On CentOS 5.4

Open Source is Not a Democracy

Open Source Gets Political

Open source and the Morevna project

Android market going down the drain?

All Done With Ubuntu

Google Offers Migration Tool for Microsoft Exchange Data

OpenOffice.org Project of the Month: the Irish community

Ten Years of OpenOffice.org

Loading ... Loading ... Top Ten One-Liners from CommandLineFu Explained




Systems Engineer Sr – Automation – Opsware SAS / HP SA
Next Step Systems
US-TX-Houston

Justtechjobs.com Post A Job | Post A Resume
:DRBD and MySQL - Excellent Low-cost HA Solution
DRBD and MySQL - Excellent Low-cost HA Solution
Dec 10, 2009, 23 :32 UTC (0 Talkback[s]) (3139 reads)

(Other stories by Sean Hull)

"HA with MySQL Replication

"MySQL high availability is often implemented with its in-built replication technology. The standard master-slave configuration provides one database as the primary, receiving all write traffic that is all changes to data. Read traffic, i.e. SELECT queries, can be sent to the primary or to the replicated slaves. Transactions flow on the primary database into its binary log. The slave keeps a watchful eye on the primary, copying new transactions into its own relay log. Keep in mind until 5.1 this involved copying the *actual* SQL statements albeit in binary form. Once they make it to the slave database, another thread then applies those SQL statements in a serial fashion thus theoretically keeping that slave in the same state as the primary.

"The trouble comes when your replication stops, and the error log shows some funny error about duplicate keys or failed primary key constraint. How's that possible? If all the same transactions are being applied in serial, the two databases should never have a case like this. Strange indeed. It turns out that as we all know, a lot of things can happen when a query executes to interrupt it or cause otherwise anomalous behavior."

Complete Story

Related Stories:
Kernel Log - Devtmpfs in 2.6.32, more discussion about DRBD, new stable kernels(Sep 21, 2009)
Installation And Setup Guide For DRBD, OpenAIS, Pacemaker + Xen On OpenSUSE 11.1(Aug 24, 2009)
Kernel Log: X server 1.7 delayed; Compiz runs on newer Radeon GPUs; DRBD in kernel soon(Aug 06, 2009)
Use DRBD to Provide Rock-Solid MySQL Redundancy(Mar 16, 2009)
Three Node Replication Using DRBD 8.3(Feb 26, 2009)
Installing and Configuring Openfiler with DRBD and Heartbeat(Oct 27, 2008)
Setting up DRBD in an Open Source SAN: Open Source SANs, part 2(Sep 06, 2008)
Setting up DRBD in an Open Source SAN(Jul 24, 2008)



No talkbacks posted.
  Home | Search Talkbacks | Customize View    Top of Page  



Enter your comments below:

* Your Name:

* Your Email Address:

* Subject:

CC: [will also send this talkback to an E-Mail address]

* Comments:

Tags allowed:<I>,<B> and <U>. See our talkback-policy for more about talkback content.

Fields marked with * are required!






..............................




All times are recorded in UTC.
Linux is a trademark of Linus Torvalds.
Powered by Linux, Apache and PHP


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers