Tuning Database Performance
Changing the Location of the Database Transaction
Log
By default, the database transaction log file is stored in the
serverRoot/slapd-serverID/db
Because the purpose of the transaction log is to aid in the recovery of a directory
database that was shut down abnormally, it is a good idea to store the database
transaction log on a different disk from the one containing the directory database.
Storing the database transaction log on a separate physical disk may also improve
directory performance.
To change the location of the database transaction log file, use the following
procedure:
Stop the Directory Server.
1.
For instructions, refer to "Starting and Stopping the Server from the Console,"
on page 37.
Use the
2.
nsslapd-db-logdirectory
database,cn=plugins,cn=config
directory in the attribute.
For information on the
Red Hat Directory Server Configuration, Command, and File Reference. For
instructions on using
Using ldapmodify," on page 58.
Restart Directory Server.
3.
Changing the Database Checkpoint Interval
At regular intervals, the Directory Server writes operations logged in the
transaction log to the disk and logs a checkpoint entry in the database transaction
log. By indicating which changes have already been written to the directory,
checkpoint entries indicate where to begin recovery from the transaction log, thus
speeding up the recovery process.
By default, the Directory Server is set up to send a checkpoint entry to the
database transaction log every 60 seconds. Increasing the checkpoint interval may
increase the performance of directory write operations. However, increasing the
checkpoint interval may also increase the amount of time required to recover
484
Red Hat Directory Server Administrator's Guide • May 2005
directory along with the database files themselves.
command-line utility to add the
ldapmodify
attribute to the
nsslapd-db-logdirectory
ldapmodify
cn=config,cn=ldbm
entry. Provide the full path to the log
attribute syntax, see the
, refer to "Adding and Modifying Entries
Need help?
Do you have a question about the DIRECTORY SERVER 7.1 - ADMINISTRATOR and is the answer not in the manual?
Questions and answers