Quantcast
Channel: Oracle Bloggers
Viewing all articles
Browse latest Browse all 19780

Enabling OUD Entry Cache for large static groups

$
0
0

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.



Viewing all articles
Browse latest Browse all 19780

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>