Re: cyrus replication : master to replica and replica to master

2009-10-23 Thread Carson Gaspar
On 10/23/09 7:42 AM, David Carter wrote: > On Fri, 23 Oct 2009, Bron Gondwana wrote: > >> I've seen heartbeat get split brain before. We gave up on it. We do >> all our fencing via humans now! Check the KVM, kick the box, manually >> run the failover script. > > Some of my colleagues have had a

Re: cyrus replication : master to replica and replica to master

2009-10-23 Thread David Carter
On Fri, 23 Oct 2009, Bron Gondwana wrote: > I've seen heartbeat get split brain before. We gave up on it. We do > all our fencing via humans now! Check the KVM, kick the box, manually > run the failover script. Some of my colleagues have had a lot of grief with Heartbeat going split brain.

Re: cyrus replication : master to replica and replica to master

2009-10-22 Thread Rob Mueller
> Client A: upload message to Inbox, gets UID 100 > At the same time, Client B: upload message to Inbox, gets UID 100 > > You can't have two messages with the same UID. > > There's 3 solutions I can see: > > 1. Mysql solves this by having interleving id's on separate servers (eg. > auto-incremen

Re: cyrus replication : master to replica and replica to master

2009-10-22 Thread Bron Gondwana
On Thu, Oct 22, 2009 at 02:43:35PM -0700, David Lang wrote: > implementing this should not be that hard > > allow non-local bind in /etc/sysctl > > heartbeat (linux-ha.org) can handle moving the service IP and fencing (up to > and > including turning a box off if the cluster decides that it has

Re: cyrus replication : master to replica and replica to master

2009-10-22 Thread David Lang
On Thu, 22 Oct 2009, David Touzeau wrote: > On Thu, Oct 22, 2009 at 12:56:03AM -0700, Jon . wrote: >> On Wed, Oct 21, 2009 at 9:20 PM, Rob Mueller wrote: >> ... >> >>> The difference between "in theory this would work" and the practice > of >>> actually doing it are huge. Basically it works only

Re: cyrus replication : master to replica and replica to master

2009-10-22 Thread David Touzeau
On Thu, Oct 22, 2009 at 12:56:03AM -0700, Jon . wrote: > On Wed, Oct 21, 2009 at 9:20 PM, Rob Mueller wrote: > ... > > > The difference between "in theory this would work" and the practice of > > actually doing it are huge. Basically it works only if you are 100% sure > > that only one side is ev

Re: cyrus replication : master to replica and replica to master

2009-10-22 Thread Robert Mueller (web)
> What are the particular bits that could conflict and have undesirable > results? Metadata, messages, entire mailboxes? In this hypothetical > active/active configuration, what exactly what could an IMAP client > potentially do to create undesirable results? Simple. Client A: upload message to

Re: cyrus replication : master to replica and replica to master

2009-10-22 Thread Bron Gondwana
On Thu, Oct 22, 2009 at 12:56:03AM -0700, Jon . wrote: > On Wed, Oct 21, 2009 at 9:20 PM, Rob Mueller wrote: > ... > > > The difference between "in theory this would work" and the practice of > > actually doing it are huge. Basically it works only if you are 100% sure > > that only one side is ev

Re: cyrus replication : master to replica and replica to master

2009-10-22 Thread Jon .
On Wed, Oct 21, 2009 at 9:20 PM, Rob Mueller wrote: ... > The difference between "in theory this would work" and the practice of > actually doing it are huge. Basically it works only if you are 100% sure > that only one side is ever being accessed at a time. eg. IMAP/POP/LMTP/etc. ... > In othe

Re: cyrus replication : master to replica and replica to master

2009-10-22 Thread Rob Mueller
> i'm very surprised that there is not really official point from cyrus-imap > dev team against using cyrus in cluster active/active mode I can't comment, but I guess they're busy. > Since serverals years the messaging service become very important and the > clustering system is the right way

Re: cyrus replication : master to replica and replica to master

2009-10-21 Thread David Touzeau
Sujet: Re: cyrus replication : master to replica and replica to master Date: Thu, 22 Oct 2009 15:20:09 +1100me > Well - it's theoretically possible. But I don't know anyone who's done > it, and it has the potential to get ugly if you're delivering to the > same ma

Re: cyrus replication : master to replica and replica to master

2009-10-21 Thread Rob Mueller
> Well - it's theoretically possible. But I don't know anyone who's done > it, and it has the potential to get ugly if you're delivering to the > same mailboxes at each end. There's nothing I can see that would > actually stop it working. I think Bron failed to put sufficiently large warning si

Re: cyrus replication : master to replica and replica to master

2009-10-21 Thread Bron Gondwana
On Wed, Oct 21, 2009 at 08:45:11PM +0200, David Touzeau wrote: > Dear > > I have set cyrus-imap with master and replica. > This configuration is a kind of cluster Active/passive > > I would like to know if it is possible to SET the replica has the master > too > > in order to replicate new mail

Re: cyrus replication : master to replica and replica to master

2009-10-21 Thread David Touzeau
Dear I have set cyrus-imap with master and replica. This configuration is a kind of cluster Active/passive I would like to know if it is possible to SET the replica has the master too in order to replicate new mail saved on the replica to the master and vis versa In this case it should be turn

cyrus replication : master to replica and replica to master

2009-10-18 Thread David Touzeau
Dear I have set cyrus-imap with master and replica. This configuration is a kind of cluster Active/passive I would like to know if it is possible to SET the replica has the master too in order to replicate new mail saved on the replica to the master and vis versa In this case it should be turn