[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3master/var/cache/se3_install/conf/ -> DB_CONFIG (source)

   1  # WARNING: Before tuning the following parameters, _PLEASE READ_
   2  #   /usr/share/doc/slapd/README.DB_CONFIG.gz
   3  
   4  # Set the database in memory cache size.
   5  #
   6  # set_cachesize <gbytes> <bytes> <ncache>
   7  #   Sets the database in memory cache size. 
   8  #   Database entries and indexes will be stored in this cache to 
   9  #   avoid disk access during database read and write operations. 
  10  #   Tuning this value can greatly effect your database performance. 
  11  #   The parameters are:
  12  #      <gbytes>: The number of gigabytes of memory to allocate to the cache.
  13  #      <bytes>: The number of bytes of memory to allocate to the cache.
  14  #      <ncache>: The number of cache segments to use. If this value is set to 
  15  #          0 or 1 then Berkeley DB will try to allocate one contiguous section 
  16  #          of memory for the cache. If this value is greater than 1, the cache 
  17  #          will be split into that number of segments.
  18  #set_cachesize   0       52428800        0
  19  
  20  # For the Debian package we use 2MB as default but be sure to update this
  21  # value if you have plenty of RAM
  22  set_cachesize     0    41943040    0
  23  
  24  # Sets the database startup flags.
  25  #
  26  # set_flags <flag>
  27  #   There are various flag options that may be set. The DB_TXN_NOSYNC flag 
  28  #   tells the database not to immediately flush transaction buffers to disk. 
  29  #   Setting this flag can help speed up database access during periods of 
  30  #   database write activity BUT at expense of data safety. Enable it only
  31  #   to load data with slapadd, while slapd is not running.
  32  #set_flags       DB_TXN_NOSYNC
  33  
  34  
  35  # Set the maximum in memory cache in <bytes> for database file name caching.
  36  #
  37  # set_lg_regionmax <bytes>
  38  #   This value should be increased as the number of database files increases 
  39  #   (tables and indexes).
  40  #set_lg_regionmax        1048576
  41  
  42  # Set the maximum size of log files in <bytes>.
  43  #
  44  # set_lg_max <bytes>
  45  #   Logs will be rotated when <bytes> amount of data have been written to 
  46  #   one log file. This value should be at least four times the size of 
  47  #   set_lg_bsize.
  48  #set_lg_max              10485760
  49  
  50  # Set the in memory cache for log information.
  51  #
  52  # set_lg_bsize <bytes>
  53  #   When <bytes> amount of logging information have been written to this 
  54  #   cache it will be flushed to disk.
  55  #set_lg_bsize            2097152
  56  # For the Debian package we use 512kByte which should suffice for typical
  57  # directory usage (read often, write seldom)
  58  set_lg_bsize    524288
  59  
  60  # Set the log file directory to <directory>. 
  61  #
  62  # set_lg_dir              /usr/local/var/openldap-logs
  63  #   Log files should preferably be on a different disk than the 
  64  #   database files. This both improves reliability (for disastrous
  65  #   recovery) and speed of the database.
  66  #set_lg_dir <directory>
  67  
  68  
  69  # Sven Hartge reported that he had to set this value incredibly high
  70  # to get slapd running at all. See http://bugs.debian.org/303057
  71  # for more information.
  72  
  73  # Number of objects that can be locked at the same time.
  74  set_lk_max_objects      10000
  75  # Number of locks (both requested and granted)
  76  set_lk_max_locks        10000
  77  # Number of lockers
  78  set_lk_max_lockers      10000
  79  
  80  # no logs ldap
  81  set_flags DB_LOG_AUTOREMOVE
  82  


Generated: Tue Mar 17 22:47:18 2015 Cross-referenced by PHPXref 0.7.1