Re: Cyrus failover steps

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- "Matthew Seaman" <matthew.seaman@xxxxxxxxxxxxx> wrote:
> On FreeBSD, CARP would be the natural choice, seeing as it's standard
> with
> the system.  All you need is to build a kernel with 'device carp'
> added to
> the config file and to have read the carp(4) manual page.  Then just
> add
> something like:
> 
>   cloned_interfaces="carp0"
>   ifconfig_carp0="vhid 100 pass XXXXCENSOREDXXXX 192.168.23.45/24"
> 
> to /etc/rc.conf on both machines.  Reboot, et voila: the 192.168.23.45
> IP
> will float between the two servers.

  But magical floating could be a problem for Cyrus.  Think of a case where the master fails, the IP floats to the replia, some mail is delivered, the master comes back up, and the IP moves back.  Oops... the mail delivered to the replica is now invisible and effectively lost.

  CARP kinda of loses for application failover, as there is no way to fire a script before moving the IP, and before moving the IP back.  It will probably grow some scriptability at some point.  But for the time being, CARP is better for firewalls and routers than services.  Also, there can be split brain issues, where both nodes think they are the master.  Or issues where a node will hold onto an IP even though it is actually dead.

  But HeartBeat can do this.

Tom
----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux