-MOVE BELOW AROUND:
-
-
-If you want to setup the cache size, please read:
-
- (Xref) How do I configure the BDB backend?
- (Xref) What are the DB_CONFIG configuration directives?
- http://www.sleepycat.com/docs/utility/db_recover.html
-
-A default config can be found in the answer:
-
- (Xref) What are the DB_CONFIG configuration directives?
-
-just change the set_lg_dir to point to your .log directory or comment that line.
-
-Quick guide:
-- Create a DB_CONFIG file in your ldap home directory (/var/lib/ldap/DB_CONFIG) with the correct "set_cachesize" value
-- stop your ldap server and run db_recover -h /var/lib/ldap
-- start your ldap server and check the new cache size with:
-
- db_stat -h /var/lib/ldap -m | head -n 2
-
-- this procedure is only needed if you use OpenLDAP 2.2 with the BDB or HDB backends; In OpenLDAP 2.3 DB recovery is performed automatically whenever the DB_CONFIG file is changed or when an unclean shutdown is detected.
-
-
---On Tuesday, February 22, 2005 12:15 PM -0500 Dusty Doris <openldap@mail.doris.cc> wrote:
-
- Few questions, if you change the cachesize and idlecachesize entries, do
- you have to do anything special aside from restarting slapd, such as run
- slapindex or db_recover?
-
-
- Also, is there any way to tell how much memory these caches are taking up
- to make sure they are not set too large? What happens if you set your
- cachesize too large and you don't have enough available memory to store
- these? Will that cause an issue with openldap, or will it just not cache
- those entries that would make it exceed its available memory. Will it
- just use some sort of FIFO on those caches?
-
-
-It will consume the memory resources of your system, and likely cause issues.
-
- Finally, what do most people try to achieve with these values? Would the
- goal be to make these as big as the directory? So, if I have 400,000 dn's
- in my directory, would it be safe to set these at 400000 or would
- something like 20,000 be good enough to get a nice performance increase?
-