[Freeipa-devel] [PATCH] assign unique replica ID to all instances

Rob Crittenden rcritten at redhat.com
Thu Oct 30 12:54:31 UTC 2008


Simo Sorce wrote:
> On Wed, 2008-10-29 at 13:40 -0400, Rob Crittenden wrote:
>> Ensure that every replica gets a unique replication ID. Otherwise
>> changes won't propogate between all replicas.
>>
>> I create a new entry, cn=replication, cn=etc, that will hold the next 
>> replication ID to assign. When a new replica is being created it 
>> requests this number, then increments it and writes it back.
>>
>> This does leave some amount of exposure to a collision but I think
>> the 
>> risk is quite low. Creating replicas is a very uncommon activity.
> 
> Does it need to be a progressive number ?
> If the integer is big enough we could also use a timestamp instead and
> avoid having to keep track in tree ?
> 
> Simo.
> 

It has to be an int between 0 and something like 65534.

rob




More information about the Freeipa-devel mailing list