Enabling OUD Entry Cache for large static groups

Posted by Sylvain Duloutre on Oracle Blogs See other posts from Oracle Blogs or by Sylvain Duloutre
Published on Thu, 29 Nov 2012 10:57:16 +0000 Indexed on 2012/11/29 17:12 UTC
Read the original article Hit count: 807

Oracle Unified Directory can take advantage of several caches to improve performances. especially the so-called database cache and the file system cache. In addition to that, it is possible to use an entry cache to cache LDAP entries. By default, the entry cache is not used. In specific deployements involving large static groups, it may worth loading the group entries to the entry cache to speed up group membership and group-based aci evaluation.

To do so, run the following commands:

First, specify which entries should reside in the entry cache. In the commad below, only entries matching the LDAP filter " (|(objctclass=groupOfNames)(objectclass=groupOfUniqueNames)) " will be stored in the entry cache.

dsconfig set-entry-cache-prop \
         --cache-name FIFO \
         -
-add include-filter:\(\|\(objctclass=groupOfNames\)\(objectclass=groupOfUniqueNames\)\)
         --port <ADMIN_PORT> \
         --bindDN cn=Directory\ Manager \
         --bindPassword ****** \
         --no-prompt

Then enable the entry cache:

dsconfig set-entry-cache-prop \
         --cache-name FIFO \
         --set enabled:true \
         --port <ADMIN_PORT> \
         --bindDN cn=Directory\ Manager \
         --bindPassword ****** \
         --no-prompt

In addition to that, you can control how much memory the entry cache can use:

oud@s96sec1d0-v3:/application/oud : dsconfig -X -n -p <ADMIN PORT> -D "cn=Directory Manager" -w <password> get-entry-cache-prop --cache-name FIFO
Property           : Value(s)
-------------------:-----------------------------------------------------------
cache-level        : 1
enabled            : true
exclude-filter     : -
include-filter     : (|(objctclass=groupOfNames)(objectclass=groupOfUniqueNames))
max-entries        : 2147483647
max-memory-percent : 90

You can change the max-entries amd max-memory-percent properties to control the entry cache size using the dsconfig set-entry-cache-prop command.


© Oracle Blogs or respective owner

Related posts about /Oracle Unified Directory Services (OUD)