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

Simo Sorce ssorce at redhat.com
Thu Oct 30 12:51:27 UTC 2008


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.

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




More information about the Freeipa-devel mailing list