Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject:
PostPosted: Mon Jan 04, 2010 3:10 pm 
Offline
Junior Member

Joined: Wed Aug 11, 2004 4:24 pm
Posts: 31
Website: http://www.greenfabric.com/
Yahoo Messenger: umdenken
Location: Spokane, WA
Xan wrote:
For my setup I haven't had to deal with your problem #2, but for problem #1, master-master mysql replication has done the trick for years with zero issues.


Mysql replication definitely sounds like a way to go, but I didn't know about traffic and then how network speeds would affect it. I'm sure I'll just have to do some testing and see what the results are. E.g., replication running between Fremont and Newark.

And "master-master"? I hadn't heard of that configuration. I'll look into it.


Top
   
 Post subject:
PostPosted: Tue Jan 05, 2010 1:43 am 
Offline
Senior Member
User avatar

Joined: Sun Feb 08, 2004 7:18 pm
Posts: 562
Location: Austin
Unless you're doing a lot of truly massive queries, the databases will for practical purposes always be in sync. I don't think the latency between Newark and Fremont would be a factor at all.

I've designed my app to favor multiple, small queries (in general) rather than enormous all-in-one queries. The all-in-ones may be the best in isolation, but with smaller ones, other threads have a chance to run, including the replication.

Master-master is a technique whereby two (or possibly more) database instances are simultaneously masters. When one makes a write, the other duplicates it. Very handy for high availability across datacenters, and really very easy to set up since MySQL 5.0.


Top
   
 Post subject:
PostPosted: Fri Jan 15, 2010 7:37 pm 
Offline
Senior Member

Joined: Sun Aug 02, 2009 1:32 pm
Posts: 222
Website: https://www.barkerjr.net
Location: Connecticut, USA
The MySQL docs say to only run a cluster locally. It's not just writing that is duplicated, but also locks and such. You don't want a zillion row locks being sent across the wire synchronously for one write.


Top
   
 Post subject:
PostPosted: Fri Jan 15, 2010 7:44 pm 
Offline
Senior Member
User avatar

Joined: Sun Feb 08, 2004 7:18 pm
Posts: 562
Location: Austin
cluster != master-master replication


Top
   
 Post subject:
PostPosted: Tue Jan 19, 2010 12:45 pm 
Offline
Junior Member

Joined: Mon Jun 27, 2005 3:40 am
Posts: 48
Xan wrote:
For my setup I haven't had to deal with your problem #2, but for problem #1, master-master mysql replication has done the trick for years with zero issues.


I've yet to find a good solution that is open source and free for #2, but for any geo setups we have I use Zeus GLB.

Bit expensive though, which will probably deter most people. Amazing product but yeah, there aren't many options that I am aware of comparable to the Linode pricing.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group