https://bugs.openldap.org/show_bug.cgi?id=9533

--- Comment #6 from Howard Chu <[email protected]> ---
(In reply to Howard Chu from comment #5)
> (In reply to Andrey from comment #4)
> > (In reply to Ondřej Kuzník from comment #3)
> > > On Tue, Apr 27, 2021 at 07:32:01AM +0000, [email protected] wrote:
> > > > I added creating different dit in different directory, unfortunately it 
> > > > didn't
> > > > help me.
> > > > LDAP still freezes.
> > > > 
> > > > dn: olcDatabase={#DITID#}mdb,cn=config
> > > > [...]
> > > > olcSyncRepl:
> > > >   rid=001
> > > 
> > > I would note that rids have to be unique within the same server.
> > 
> > Thank, I made RID unique for all DIT, but it didn't help me.
> 
> Suffix must also be unique.

Unable to reproduce any hang.

```

PROVIDER1=ldaps://ldap.ldap01.xxx.ru:637
PROVIDER2=ldaps://ldap.ldap02.xxx.ru:637
PROVIDER3=ldaps://ldap.ldap03.xxx.ru:637
RID=3
for I in $(seq 1 40); do
RID=`expr $RID + 1`
RIDID1=$RID
RID=`expr $RID + 1`
RIDID2=$RID
RID=`expr $RID + 1`
RIDID3=$RID
DBDIR=testrun/db.$I
mkdir $DBDIR
SUFFIX="dc=devmail$I,dc=srv,dc=local"
ldapmodify -a -H ldapi://%2Fvar%2Frun%2Fopenldap%2Fldapi -Y EXTERNAL <<EOF
dn: olcDatabase={$I}mdb,cn=config
objectClass: olcDatabaseConfig
objectClass: olcMdbConfig
olcDatabase: {$I}mdb
olcSuffix: $SUFFIX
olcDbMaxSize: 1073741824
olcRootDN: cn=admin,$SUFFIX
olcRootPW: 123
olcDbDirectory: $DBDIR
olcDbIndex: objectClass eq
olcSyncRepl:
  rid=$RIDID1
  provider=$PROVIDER1
  binddn=cn=admin,$SUFFIX
  bindmethod=simple
  credentials=123
  searchbase=$SUFFIX
  type=refreshAndPersist
  retry="5 5 300 5"
  timeout=1
olcSyncRepl:
  rid=$RIDID2
  provider=$PROVIDER2
  binddn=cn=admin,$SUFFIX
  bindmethod=simple
  credentials=123
  searchbase=$SUFFIX
  type=refreshAndPersist
  retry="5 5 300 5"
  timeout=1
olcSyncRepl:
  rid=$RIDID3
  provider=$PROVIDER3
  binddn=cn=admin,$SUFFIX
  bindmethod=simple
  credentials=123
  searchbase=$SUFFIX
  type=refreshAndPersist
  retry="5 5 300 5"
  timeout=1
olcMirrorMode: TRUE

dn: olcOverlay=syncprov,olcDatabase={$I}mdb,cn=config
objectClass: olcOverlayConfig
objectClass: olcSyncProvConfig
olcOverlay: syncprov
EOF
done
```

Probably your $PROVIDER servers are just being slow to respond. Increase the
number of slapd threads so that some workers are available while the consumers
are busy trying to contact the providers.

This ticket remains INVALID. Software usage questions should have been directed
to the openldap-technical mailing list.

-- 
You are receiving this mail because:
You are on the CC list for the issue.

Reply via email to