-
Notifications
You must be signed in to change notification settings - Fork 991
Open
Description
Are there ways to set the cache sizes for the bdb files? I'd like to tell open ldap to use more memory if possible to cache entries for optimal performance. There are times that normal operations seem to take longer than they should, and I'd like to optimize then troubleshoot.
Thanks!
bersace
Activity
snipking commentedon Nov 18, 2016
@JohnOmernik
You can try to add index and add cache.
In my case, I use a data container name
openldap-data
and app containeropenldap
.Add Index
Make sure your openldap container running.
Create
add_index.ldif
on docker host like thisCopy
add_index.ldif
to your running openldap containerAdd index use
ldapmodify
Stop running openldap container
Mount data container to a temp container and do
slapindex
Start openldap container
Add Cache
Make sure your openldap container running.
Create
add_cache.ldif
on docker host like thisCopy
add_cache.ldif
to your running openldap containerModify openldap config with ldapmodify
Restart openldap container
JohnOmernik commentedon Dec 8, 2016
"The openldap team know this bug and seems will not fix this but push users switch to mdb."
Is it possible to select MDB for the docker openldap on start up? Based on reading, just that change can have a great affect on performance... thoughts?
snipking commentedon Dec 30, 2016
@JohnOmernik
You can select MDB when run the container. In my way, I got a workaround by setting BDB config value in
/var/lib/ldap/DB_CONFIG
which will override the config indn: olcDatabase={1}hdb,cn=config
.