⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 slapd-bdb.5

📁 ldap服务器源码
💻 5
字号:
.TH SLAPD-BDB 5 "RELEASEDATE" "OpenLDAP LDVERSION".\" Copyright 1998-2007 The OpenLDAP Foundation All Rights Reserved..\" Copying restrictions apply.  See COPYRIGHT/LICENSE..\" $OpenLDAP: pkg/ldap/doc/man/man5/slapd-bdb.5,v 1.20.2.10 2007/01/02 21:43:45 kurt Exp $.SH NAME\fBslapd-bdb\fP, \fBslapd-hdb\fP \- Berkeley DB backends to \fBslapd\fP.SH SYNOPSIS.B ETCDIR/slapd.conf.SH DESCRIPTIONThe \fBbdb\fP backend to.BR slapd (8)is the recommended primary backend for a normal .B slapd database.It uses the Sleepycat Berkeley DB (BDB) package to store data.It makes extensive use of indexing and caching to speed data access..LP\fBhdb\fP is a variant of the \fBbdb\fP backend that uses a hierarchical databaselayout which supports subtree renames. It is otherwise identical tothe \fBbdb\fP behavior, and all the same configuration options apply..LPIt is noted that these options are intended to complementBerkeley DB configuration options set in the environment's.B DB_CONFIGfile.  See Berkeley DB documentation for details on.B DB_CONFIGconfiguration options.Where there is overlap, settings in.B DB_CONFIGtake precedence..SH CONFIGURATIONThese.B slapd.confoptions apply to the \fBbdb\fP and \fBhdb\fP backend database.That is, they must follow a "database bdb" or "database hdb" line andcome before any subsequent "backend" or "database" lines.Other database options are described in the.BR slapd.conf (5)manual page..TP.BI cachesize \ <integer>Specify the size in entries of the in-memory entry cache maintained by the \fBbdb\fP or \fBhdb\fP backend database instance.The default is 1000 entries..TP.BI cachefree \ <integer>Specify the number of entries to free from the entry cache when thecache reaches the \fBcachesize\fP limit.The default is 1 entry..TP.BI checkpoint \ <kbyte>\ <min>Specify the frequency for checkpointing the database transaction log.A checkpoint operation flushes the database buffers to disk and writesa checkpoint record in the log.The checkpoint will occur if either \fI<kbyte>\fP data has been written or\fI<min>\fP minutes have passed since the last checkpoint.Both arguments default to zero, in which case they are ignored. Whenthe \fI<min>\fP argument is non-zero, an internal task will run every \fI<min>\fP minutes to perform the checkpoint.See the Berkeley DB reference guide for more details..TP.BI dbconfig \ <Berkeley\-DB\-setting>Specify a configuration directive to be placed in the.B DB_CONFIGfile of the database directory. The.B dbconfigdirective is just a convenienceto allow all necessary configuration to be set in the.B slapd.conffile.The options set using this directive will only be written to the .B DB_CONFIGfile if no such file existed at server startup time. This allows oneto set initial values without overwriting/destroying a .B DB_CONFIG file that was already customized through other means. This directive may be specified multiple times, as needed. For example:.RS.nf	dbconfig set_cachesize 0 1048576 0	dbconfig set_lg_bsize 2097152.fi.RE.TP.B dbnosyncSpecify that on-disk database contents should not be immediatelysynchronized with in memory changes.Enabling this option may improve performance at the expense of datasecurity.See the Berkeley DB reference guide for more details..TP.BI directory \ <directory>Specify the directory where the BDB files containing this database andassociated indexes live.A separate directory must be specified for each database.The default is.BR LOCALSTATEDIR/openldap-data ..TP.B dirtyreadAllow reads of modified but not yet committed data.Usually transactions are isolated to prevent other operations fromaccessing uncommitted data.This option may improve performance, but may also return inconsistentresults if the data comes from a transaction that is later aborted.In this case, the modified data is discarded and a subsequent searchwill return a different result..TP.BI idlcachesize \ <integer>Specify the size of the in-memory index cache, in index slots. Thedefault is zero. A larger value will speed up frequent searches ofindexed entries. An \fBhdb\fP database needs a large \fBidlcachesize\fPfor good search performance, typically three times the .B cachesize(entry cache size)or larger..TP\fBindex \fR{\fI<attrlist>\fR|\fBdefault\fR} [\fBpres\fR,\fBeq\fR,\fBapprox\fR,\fBsub\fR,\fI<special>\fR]Specify the indexes to maintain for the given attribute (orlist of attributes).Some attributes only support a subset of indexes.If only an \fI<attr>\fP is given, the indices specified for \fBdefault\fRare maintained.Note that setting a default does not imply that all attributes will beindexed. Also, for best performance, an.B eqindex should always be configured for the.B objectClassattribute.A number of special index parameters may be specified.The index type.B subcan be decomposed into.BR subinitial ,.BR subany ,\ and.B subfinalindices.The special type.B nolangmay be specified to disallow use of this index by language subtypes.The special type.B nosubtypesmay be specified to disallow use of this index by named subtypes.Note: changing \fBindex\fP settings in .BR slapd.conf (5)requires rebuilding indices, see.BR slapindex (8);changing \fBindex\fP settingsdynamically by LDAPModifying "cn=config" automatically causes rebuildingof the indices online in a background task..TP.B linearindexTell .B slapindex to index one attribute at a time. By default, all indexedattributes in an entry are processed at the same time. With this option,each indexed attribute is processed individually, using multiple passesthrough the entire database. This option improves .B slapindex performancewhen the database size exceeds the \fBdbcache\fP size. When the \fBdbcache\fP islarge enough, this option is not needed and will decrease performance.Also by default, .B slapadd performs full indexing and so a separate .B slapindexrun is not needed. With this option, .B slapadd does no indexing and .B slapindexmust be used..TP.BR lockdetect \ { oldest | youngest | fewest | random | default }Specify which transaction to abort when a deadlock is detected.The default is.BR random ..TP.BI mode \ <integer>Specify the file protection mode that newly created database index files should have.The default is 0600..TP.BI searchstack \ <depth>Specify the depth of the stack used for search filter evaluation.Search filters are evaluated on a stack to accommodate nested AND / ORclauses. An individual stack is assigned to each server thread.The depth of the stack determines how complex a filter can beevaluated without requiring any additional memory allocation. Filters thatare nested deeper than the search stack depth will cause a separatestack to be allocated for that particular search operation. Theseallocations can have a major negative impact on server performance,but specifying too much stack will also consume a great deal of memory.Each search stack uses 512K bytes per level. The default stack depthis 16, thus 8MB per thread is used..TP.BI shm_key \ <integer>Specify a key for a shared memory BDB environment. By default theBDB environment uses memory mapped files. If a non-zero value isspecified, it will be used as the key to identify a shared memoryregion that will house the environment..SH ACCESS CONTROLThe .B bdband.B hdbbackends honor access control semantics as indicated in.BR slapd.access (5)..SH FILES.TP.B ETCDIR/slapd.confdefault .B slapd configuration file.TP.B DB_CONFIGBerkeley DB configuration file.SH SEE ALSO.BR slapd.conf (5),.BR slapd (8),.BR slapadd (8),.BR slapcat (8),.BR slapindex (8),Berkeley DB documentation.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -