Friday, 21 September 2012

Openldap2.4 performance boosting

According to my experience, the single directive you should add to db section to improve performance is:

olcDbCacheSize

OpenLDAP tuning guide covers that in section: 21.4.2.

To enable a 200000 entries cachesize use this ldif:

dn: olcDatabase={1}hdb,cn=config
changetype: modify
add: olcDbCacheSize
olcDbCacheSize: 200000

The enumeration of the whole directory (150000 entries) took 15 seconds without cachesize and less than 6 seconds with it.

No comments: