mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

lutoff
05.20.2008 fd2db991663266d16e41a649d793c3ace495ca8d
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
home=`cd \`dirname $0\`;pwd`
port=389
rootdn="cn=directory manager"
global_vars="-p ${port} -w password -n"
opends_home="${home}/install/product"
dsconfig="${opends_home}/bin/dsconfig"
 
#echo
#echo "OpenDS set up ..."
#${opends_home}/setup -i -a -b o=telco.com ${global_vars} -D "${rootdn}"
 
#echo
#echo
#echo "Removing irrelevant indexes ..."
#bad_index_list="cn ds-sync-hist givenName mail member sn telephoneNumber uniqueMember"
#for index in ${bad_index_list}; do
#  set -x
#  ${dsconfig} delete-local-db-index -D "${rootdn}" ${global_vars} --backend-name userRoot --index-name ${index} 
#  set +x
#done
#echo
#echo
#echo "Creating relevant indexes ..."
#equality_index_list="msid esn"
#for index in ${equality_index_list}; do
#  ${dsconfig} create-local-db-index -D "${rootdn}" ${global_vars} --backend-name userRoot --index-name ${index} --set index-type:equality
#done
#exit
echo
echo
#echo "Removing virtual attributes ..."
#set -x
#for virtual_attribute in entryDN isMemberOf subschemaSubentry "VirtualStatic member" "Virtual Static member" "Virtual Static uniqueMember"; do
##  ${dsconfig} delete-virtual-attribute -D "${rootdn}" ${global_vars} --attribute-name "${virtual_attribute}"
#done
#set +x
#exit
 
#echo
#echo
#echo "Removing unnecessary plug-ins ..."
#for plugin in "7-bit clean" lastmod "LDAP Attribute Description List" "Password Policy Import" Profiler "referential integrity" "uid unique attribute"; do
#  ${dsconfig} delete-plugin -D "${rootdn}" ${global_vars} --plugin-name "${plugin}"
#done
#exit
 
set -x
echo
echo
echo "Tweaking Database ..."
${dsconfig} set-backend-prop -D "${rootdn}" ${global_vars} --backend-name userRoot --set db-cache-percent:20
${dsconfig} set-backend-prop -D "${rootdn}" ${global_vars} --backend-name userRoot --set db-evictor-lru-only:false
exit
echo
echo
echo "Various Tunings ..."
${dsconfig} set-connection-handler-prop -D "${rootdn}" ${global_vars} --handler-name "LDAP Connection Handler" --set num-request-handlers:4
${dsconfig} set-work-queue-prop ${global_vars} --set num-worker-threads:16