Kiran, can you have a look at the config ?
Michael, you will need a way to detect that a server is down. Most of the time, this is done by a health-check in a load-balancer. The server itself will not be able to detect when it dies... Le 20/12/16 à 23:20, Pittman, Michael a écrit : > Hi, > > I want to setup two ApacheDS LDAP servers that are both masters and replicate > with each other so that their data is always in sync. So far I've been able > to install and get both of the servers running, but my attempt to get them to > replicate has been unsuccessful. > > Here is what I've done so far: > > > 1. I have enabled the replication handler on both servers by import an > ldif file to each one with the following contents: > dn: > ads-serverId=ldapServer,ou=servers,ads-directoryServiceId=default,ou=config > changetype: modify > add: ads-replReqHandler > ads-replReqHandler: > org.apache.directory.server.ldap.replication.provider.SyncReplRequestHandler > > 2. I have configured both as a consumer of the other by importing an > ldif file with the following contents: > dn: > ads-replConsumerId=1,ou=replConsumers,ads-serverId=ldapServer,ou=servers,ads-directoryServiceId=default,ou=config > objectClass: ads-base > objectClass: ads-replConsumer > objectClass: top > ads-replAliasDerefMode: never > ads-replAttributes: * > ads-replConsumerId: 1 > ads-replProvHostName: 192.168.200.164 > ads-replProvPort: 10389 > ads-replRefreshInterval: 3000 > ads-replRefreshNPersist: true > ads-replSearchFilter: (objectClass=*) > ads-replSearchScope: sub > ads-replSearchSizeLimit: 0 > ads-replSearchTimeOut: 0 > ads-replUserDn: uid=admin,ou=system > ads-replUserPassword: secret > ads-searchBaseDN: dc=example,dc=com > > *Note: the ads-replProvHostName attribute for each server is > pointing to the other server. > > > 3. I have restarted both servers. > > I can't seem to get the two servers to sync with each other. What am I > missing here that still needs to be done? > > Also, once I get the replication setup, I would like to setup up a failover > so that when a client is querying the first server and it goes down, then the > client will automatically failover to the second server. Does ApacheDS > support this type of behavior? > > Thanks, > Michael Pittman > Software Engineer > CRITICAL NETWORKS / HARRIS CORPORATION > Mobile: (863) 517-1910 > > -- Emmanuel Lecharny Symas.com directory.apache.org
