]> git.sur5r.net Git - openldap/blob - doc/man/man5/slapd-bdb.5
clarify referral usage
[openldap] / doc / man / man5 / slapd-bdb.5
1 .TH SLAPD-BDB 5 "RELEASEDATE" "OpenLDAP LDVERSION"
2 .\" Copyright 1998-2005 The OpenLDAP Foundation All Rights Reserved.
3 .\" Copying restrictions apply.  See COPYRIGHT/LICENSE.
4 .\" $OpenLDAP$
5 .SH NAME
6 slapd-bdb \- BDB backend to slapd
7 .SH SYNOPSIS
8 ETCDIR/slapd.conf
9 .SH DESCRIPTION
10 The BDB backend to
11 .BR slapd (8)
12 is the recommended backend for a normal slapd database.
13 However, it takes more care than with the LDBM backend to configure
14 it properly.
15 It uses the Sleepycat Berkeley DB (BDB) package to store data.
16 It makes extensive use of indexing and caching to speed data access.
17 .LP
18 It is noted that these options are intended to complement
19 Berkeley DB configuration options set in the environment's
20 .B DB_CONFIG
21 file.  See Berkeley DB documentation for details on
22 .B DB_CONFIG
23 configuration options.
24 Where there is overlap, settings in
25 .B DB_CONFIG
26 take precedence.
27 .SH CONFIGURATION
28 These
29 .B slapd.conf
30 options apply to the BDB backend database.
31 That is, they must follow a "database bdb" line and come before any
32 subsequent "backend" or "database" lines.
33 Other database options are described in the
34 .BR slapd.conf (5)
35 manual page.
36 .TP
37 .B cachesize <integer>
38 Specify the size in entries of the in-memory cache maintained 
39 by the BDB backend database instance.
40 The default is 1000 entries.
41 .TP
42 .B checkpoint <kbyte> <min>
43 Specify the frequency for checkpointing the database transaction log.
44 A checkpoint operation flushes the database buffers to disk and writes
45 a checkpoint record in the log.
46 The checkpoint will occur if either <kbyte> data has been written or
47 <min> minutes have passed since the last checkpoint.
48 Both arguments default to zero, in which case they are ignored. When
49 the <min> argument is non-zero, an internal task will run every <min>
50 minutes to perform the checkpoint.
51 See the Berkeley DB reference guide for more details.
52 .TP
53 .B dbnosync
54 Specify that on-disk database contents should not be immediately
55 synchronized with in memory changes.
56 Enabling this option may improve performance at the expense of data
57 security.
58 See the Berkeley DB reference guide for more details.
59 .TP
60 .B directory <directory>
61 Specify the directory where the BDB files containing this database and
62 associated indexes live.
63 A separate directory must be specified for each database.
64 The default is
65 .BR LOCALSTATEDIR/openldap-data .
66 .TP
67 .B dirtyread
68 Allow reads of modified but not yet committed data.
69 Usually transactions are isolated to prevent other operations from
70 accessing uncommitted data.
71 This option may improve performance, but may also return inconsistent
72 results if the data comes from a transaction that is later aborted.
73 In this case, the modified data is discarded and a subsequent search
74 will return a different result.
75 .TP
76 .B fasttool
77 Disables transaction logging when using the slapadd/slapindex tools,
78 using the DB_TXN_NOT_DURABLE flag. Does not affect normal slapd operation,
79 but will improve the performance of slapadd/slapindex.
80 See the Berkeley DB reference guide for more details.
81 .TP
82 .B idlcachesize <integer>
83 Specify the size of the in-memory index cache, in index slots. The
84 default is zero. A larger value will speed up frequent searches of
85 indexed entries.
86 .TP
87 .B
88 index {<attrlist>|default} [pres,eq,approx,sub,<special>]
89 Specify the indexes to maintain for the given attribute (or
90 list of attributes).
91 Some attributes only support a subset of indexes.
92 If only an <attr> is given, the indices specified for \fBdefault\fR
93 are maintained.
94 Note that setting a default does not imply that all attributes will be
95 indexed.
96
97 A number of special index parameters may be specified.
98 The index type
99 .B sub
100 can be decomposed into
101 .BR subinitial ,
102 .BR subany ,\ and
103 .B subfinal
104 indices.
105 The special type
106 .B nolang
107 may be specified to disallow use of this index by language subtypes.
108 The special type
109 .B nosubtypes
110 may be specified to disallow use of this index by named subtypes.
111 Note: changing index settings requires rebuilding indices, see
112 .BR slapindex (8).
113 .TP
114 .B linearindex
115 Tell slapindex to index one attribute at a time. By default, all indexed
116 attributes in an entry are processed at the same time. With this option,
117 each indexed attribute is processed individually, using multiple passes
118 through the entire database. This option improves slapindex performance
119 when the database size exceeds the dbcache size. When the dbcache is
120 large enough, this option is not needed and will decrease performance.
121 Also by default, slapadd performs full indexing and so a separate slapindex
122 run is not needed. With this option, slapadd does no indexing and slapindex
123 must be used.
124 .TP
125 .B lockdetect {oldest|youngest|fewest|random|default}
126 Specify which transaction to abort when a deadlock is detected.
127 The default is the same as
128 .BR random .
129 .TP
130 .B mode <integer>
131 Specify the file protection mode that newly created database 
132 index files should have.
133 The default is 0600.
134 .TP
135 .B searchstack <depth>
136 Specify the depth of the stack used for search filter evaluation.
137 Search filters are evaluated on a stack to accommodate nested AND / OR
138 clauses. An individual stack is assigned to each server thread.
139 The depth of the stack determines how complex a filter can be
140 evaluated without requiring any additional memory allocation. Filters that
141 are nested deeper than the search stack depth will cause a separate
142 stack to be allocated for that particular search operation. These
143 allocations can have a major negative impact on server performance,
144 but specifying too much stack will also consume a great deal of memory.
145 Each search stack uses 512K bytes per level. The default stack depth
146 is 16, thus 8MB per thread is used.
147 .TP
148 .B shm_key <integer>
149 Specify a key for a shared memory BDB environment. By default the
150 BDB environment uses memory mapped files. If a non-zero value is
151 specified, it will be used as the key to identify a shared memory
152 region that will house the environment.
153 .B
154 .SH FILES
155 .TP
156 ETCDIR/slapd.conf
157 default slapd configuration file
158 .TP
159 DB_CONFIG
160 Berkeley DB configuration file
161 .SH SEE ALSO
162 .BR slapd.conf (5),
163 .BR slapd (8),
164 .BR slapadd (8),
165 .BR slapcat (8),
166 .BR slapindex (8),
167 Berkeley DB documentation.