[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Mirrormode Docs
- To: Howard Chu <hyc@symas.com>
- Subject: Re: Mirrormode Docs
- From: "Brett @Google" <brett.maxfield@gmail.com>
- Date: Wed, 3 Mar 2010 22:14:24 +1000
- Cc: openldap-software@openldap.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=LIgih/jDJY/tuQKhSdGxzU/IDEswW7CQIBzcJLkdq54=; b=Y4SWi8xpAi//IUPEdru9GKzr/i1H0kpqhrWtKrxytnWX7sGqHfzNCTHd/vpF/4hORt Dc9nCnDvKaqlbzbuIYx7/DDmYabqALuTCVzjh8+BPRzscUN8Q8PcF/DYPpTYi8ZhvXFb EmYs2XP1+cXz77cklXpP5ektW7SdxhsVrtyqI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=ZO7IHJpD85KN962ymcmJeviQJilBMaDHCS9KWoZHfu2QbnXOJEdNVdmQHvlrmCkVzl Y1E5FdYNzoCE86rqXuQeyKgPhThwmiC14rW4EQV22Ud80vbhfdD5/nD78deFiJ7PJ6r6 XH6RFT2zdLJrJ0lIATsiIBNUT5H3QCCaFkdgg=
- In-reply-to: <4B8DF5AD.6020700@symas.com>
- References: <871vg280kj.fsf@magenta.l4b.de> <4B8DF5AD.6020700@symas.com>
On Wed, Mar 3, 2010 at 3:37 PM, Howard Chu <hyc@symas.com> wrote:
>> to my understanding the admin guide on mirrormode is misleading.
>> http://www.openldap.org/doc/admin24/replication.html#MirrorMode
>> According to this documentation both nodes have to be put into
>> mirror mode, as far as I understand the concept of mirror mode, and is
>> described in slapd.conf(5), there is one node accepting write
>> operations, that is 'mirrormode on' statement, the other node acts as
>> synrepl consumer and a hot standby only, with 'mirrormode off'.
>> Could someone please correct me, if I'm wrong.
>
> The doc is correct. For seamless failover to work automatically, without any manual intervention, both nodes must be configured identically.
I wonder out of interest, is it legal to have something like the
following on both nodes (that is with two different rid=xxx syncrepl
statements) ?
This would in theory allow the same config on both servers, assuming
it was acceptable config-wise.
Cheers
Brett
--- cut ---
# Global section
serverID 1 ldap://ldap-sid1.example.com
serverID 2 ldap://ldap-sid2.example.com
# database section
# syncrepl directive
syncrepl rid=001
provider=ldap://ldap-sid2.example.com
bindmethod=simple
binddn="cn=mirrormode,dc=example,dc=com"
credentials=mirrormode
searchbase="dc=example,dc=com"
schemachecking=on
type=refreshAndPersist
retry="60 +"
syncrepl rid=002
provider=ldap://ldap-sid1.example.com
bindmethod=simple
binddn="cn=mirrormode,dc=example,dc=com"
credentials=mirrormode
searchbase="dc=example,dc=com"
schemachecking=on
type=refreshAndPersist
retry="60 +"
mirrormode on