
tabris at tabris
Sep 28, 2009, 7:07 PM
Post #7 of 8
(1042 views)
Permalink
|
|
Re: MySQL fail-over with different server-ids
[In reply to]
|
|
Josh Marshall wrote: > On Mon, 2009-09-28 at 17:05 -0700, tabris wrote: > >> Additionally, we do (at my employer) have master<->master replication >> setup with both sides able to insert, and afaict everything works fine >> except for the occasional clash over the headername table. >> > It's been advised against doing this, do a search through the mailing > list archives. There is an issue with IMAP message id's (not > auto-increment fields) so some new messages wont be shown on the > logged-in imap clients. So far this has been minimal, albeit probably not nonexistent. > Might be ok for mostly POP3 installs or for low > usage. How many messages per day is this setup storing? What happens > when one server starts to lag with the updates? > Don't know how many messages per day (don't have a quick way to measure it at the moment) but it's just ~60users or so. And actually, the lag hasn't been too bad, esp given the note below. I expect we can find ways around that problem eventually [programmatically]. > The clashes in the headername table rings alarm bells for me. If your > setup starts to get under stress or has a lot of concurrent requests > these problems will escalate. If you're going to use master-master > replication setup, just use ucarp or heartbeat and only have one server > active. It will save you headaches down the track. > I'm sure that what I'm doing is undocumented. And no, we can't use heartbeat for this, it's being done across the Atlantic, so that any user can login to either server at either site and still retrieve their email. The only rule is they're not supposed to access both servers from IMAP at the same time.
|