Salut,

j'ai une RHEL4 update 8, avec un service ldap tournant dessus.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
[root@machine ldap]# rpm -qa |grep openldap
openldap-clients-2.2.13-12.el4_8.3
openldap-2.2.13-12.el4_8.3
openldap-devel-2.2.13-12.el4_8.3
openldap-servers-2.2.13-12.el4_8.3
j'ai voulu faire un peu de tuning sur ce ldap, j'ai voulu éditer le fichier DB_CONFIG dans /var/lib/ldap, mais je n'ai pas trouvé le fichier, je l'ai créé mais j'ai remarqué que ldap ne prends pas en charge les paramètres du fichier DB_CONFIG.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#
# Set the database in memory cache size.
#
set_cachesize   0       5242880        0

#
# Set database flags.
# Automatically remove log files that are no longer needed.
set_flags DB_LOG_AUTOREMOVE

# Increase locks
set_lk_max_locks        3000
set_lk_max_objects      1500
set_lk_max_lockers      1500
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
[root@machine ldap]# slapd_db_stat -c -h /var/lib/ldap
121     Last allocated locker ID.
2147M   Current maximum unused locker ID.
9       Number of lock modes.
1000    Maximum number of locks possible.
1000    Maximum number of lockers possible.
1000    Maximum number of lock objects possible.
2       Number of current locks.
37      Maximum number of locks at any one time.
6       Number of current lockers.
53      Maximum number of lockers at any one time.
2       Number of current lock objects.
35      Maximum number of lock objects at any one time.
8886    Total number of locks requested.
8884    Total number of locks released.
0       Total number of lock requests failing because DB_LOCK_NOWAIT was set.
0       Total number of locks not immediately available due to conflicts.
0       Number of deadlocks.
0       Lock timeout value.
0       Number of locks that have timed out.
0       Transaction timeout value.
0       Number of transactions that have timed out.
440KB   The size of the lock region..
0       The number of region locks granted after waiting.
13010   The number of region locks granted without waiting.
merci d'avance