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

Simo Sorce ssorce at redhat.com
Thu Oct 30 13:54:35 UTC 2008


On Thu, 2008-10-30 at 08:54 -0400, Rob Crittenden wrote:
> 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.

oh, ok, then the current approach is the best one.

thanks!
Simo.


-- 
Simo Sorce * Red Hat, Inc * New York




More information about the Freeipa-devel mailing list