dataset/seed/openldap/templates/DB_CONFIG

85 lines
3.2 KiB
Text
Raw Normal View History

2023-01-17 21:43:32 +01:00
#RISOTTO: do not compare
2022-03-08 19:42:28 +01:00
# $OpenLDAP$
# Example DB_CONFIG file for use with slapd(8) BDB/HDB databases.
#
# See the Oracle Berkeley DB documentation
# <http://www.oracle.com/technology/documentation/berkeley-db/db/ref/env/db_config.html>
# for detail description of DB_CONFIG syntax and semantics.
#
# Hints can also be found in the OpenLDAP Software FAQ
# <http://www.openldap.org/faq/index.cgi?file=2>
# in particular:
# <http://www.openldap.org/faq/index.cgi?file=1075>
# Note: most DB_CONFIG settings will take effect only upon rebuilding
# the DB environment.
# Set the database in memory cache size.
#
# set_cachesize <gbytes> <bytes> <ncache>
# Sets the database in memory cache size.
# Database entries and indexes will be stored in this cache to
# avoid disk access during database read and write operations.
# Tuning this value can greatly effect your database performance.
# The parameters are:
# <gbytes>: The number of gigabytes of memory to allocate to the cache.
# <bytes>: The number of bytes of memory to allocate to the cache.
# <ncache>: The number of cache segments to use. If this value is set to
# 0 or 1 then Berkeley DB will try to allocate one contiguous section
# of memory for the cache. If this value is greater than 1, the cache
# will be split into that number of segments.
2023-06-23 08:12:05 +02:00
set_cachesize {{ db_cache_size_g }} {{ db_cache_size_o }} {{ db_cache_chunks }}
2022-03-08 19:42:28 +01:00
# Sets the database startup flags.
#
# set_flags <flag>
# There are various flag options that may be set. The DB_TXN_NOSYNC flag
# tells the database not to immediately flush transaction buffers to disk.
# Setting this flag can help speed up database access during periods of
# database write activity BUT at expense of data safety. Enable it only
# to load data with slapadd, while slapd is not running.
# Data Directory
#set_data_dir db
# Set the maximum in memory cache in <bytes> for database file name caching.
#
# set_lg_regionmax <bytes>
# This value should be increased as the number of database files increases
# (tables and indexes).
2023-06-23 08:12:05 +02:00
set_lg_regionmax {{ db_log_region_max }}
2022-03-08 19:42:28 +01:00
#
# Set the maximum size of log files in <bytes>.
#
# set_lg_max <bytes>
# Logs will be rotated when <bytes> amount of data have been written to
# one log file. This value should be at least four times the size of
# set_lg_bsize.
#set_lg_max 10485760
2023-06-23 08:12:05 +02:00
set_lg_max {{ db_log_max }}
2022-03-08 19:42:28 +01:00
# Set the in memory cache for log information.
#
# set_lg_bsize <bytes>
# When <bytes> amount of logging information have been written to this
# cache it will be flushed to disk.
2023-06-23 08:12:05 +02:00
set_lg_bsize {{ db_log_bsize }}
2022-03-08 19:42:28 +01:00
# Set the log file directory to <directory>.
#
# set_lg_dir /usr/local/var/openldap-logs
# Log files should preferably be on a different disk than the
# database files. This both improves reliability (for disastrous
# recovery) and speed of the database.
2023-06-23 08:12:05 +02:00
set_lg_dir {{ db_log_directory }}
2022-03-08 19:42:28 +01:00
# Number of objects that can be locked at the same time.
2023-06-23 08:12:05 +02:00
set_lk_max_objects {{ db_lk_max_objects }}
2022-03-08 19:42:28 +01:00
# Number of locks (both requested and granted)
2023-06-23 08:12:05 +02:00
set_lk_max_locks {{ db_lk_max }}
2022-03-08 19:42:28 +01:00
# Number of lockers
2023-06-23 08:12:05 +02:00
set_lk_max_lockers {{ db_lk_max_lockers }}
2022-03-08 19:42:28 +01:00
# Purge automatique des logs
set_flags DB_LOG_AUTOREMOVE