Changeset 1473 for trunk


Ignore:
Timestamp:
Feb 19, 2010, 3:44:47 AM (14 years ago)
Author:
mitchb
Message:
LDAP, now with 200% more indexed queries!

Previously, only about 1/3 of our LDAP queries were actually being
answered using indices.  ns-slapd was routinely observed to be eating
a huge portion of our CPU.  Coincidence?  You be the judge.

We're going to stop being morons now and use <1% CPU for LDAP.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/doc/HOWTO-SETUP-LDAP

    r1296 r1473  
    4545nsIndexType: pres
    4646
    47 - Build the indexes with:
    48     - /usr/lib64/dirsrv/slapd-scripts/db2index.pl -D "cn=Directory Manager" -j /etc/signup-ldap-pw -n userRoot -t apacheServerName
    49     - Watch the progress with: ldapsearch -x -y /etc/signup-ldap-pw -D 'cn=Directory Manager' -b cn=tasks,cn=config
    50     - Wait for it to finish before:
    51     - /usr/lib64/dirsrv/slapd-scripts/db2index.pl -D "cn=Directory Manager" -j /etc/signup-ldap-pw -n userRoot -t apacheServerAlias
     47add cn=scriptsVhostName, cn=index, cn=userRoot, cn=ldbm database, cn=plugins, cn=config
     48objectClass: top
     49objectClass: nsIndex
     50cn: scriptsVhostName
     51nsSystemIndex: false
     52nsIndexType: eq
     53nsIndexType: pres
     54
     55add cn=scriptsVhostAlias, cn=index, cn=userRoot, cn=ldbm database, cn=plugins, cn=config
     56objectClass: top
     57objectClass: nsIndex
     58cn: scriptsVhostAlias
     59nsSystemIndex: false
     60nsIndexType: eq
     61nsIndexType: pres
     62
     63add cn=memberuid, cn=index, cn=userRoot, cn=ldbm database, cn=plugins, cn=config
     64objectClass: top
     65objectClass: nsIndex
     66cn: memberuid
     67nsSystemIndex: false
     68nsIndexType: eq
     69nsIndexType: pres
     70
     71add cn=uidnumber, cn=index, cn=userRoot, cn=ldbm database, cn=plugins, cn=config
     72objectClass: top
     73objectClass: nsIndex
     74cn: uidnumber
     75nsSystemIndex: false
     76nsIndexType: eq
     77nsIndexType: pres
     78
     79add cn=gidnumber, cn=index, cn=userRoot, cn=ldbm database, cn=plugins, cn=config
     80objectClass: top
     81objectClass: nsIndex
     82cn: gidnumber
     83nsSystemIndex: false
     84nsIndexType: eq
     85nsIndexType: pres
     86
     87- Build the indexes for all the fields:
     88
     89    /usr/lib64/dirsrv/slapd-scripts/db2index.pl -D "cn=Directory Manager" -j /etc/signup-ldap-pw -n userRoot
     90
     91-  Watch for the indexing operations to finish with this command:
     92
     93    ldapsearch -x -y /etc/signup-ldap-pw -D 'cn=Directory Manager' -b cn=tasks,cn=config
    5294
    5395- Set up replication:
Note: See TracChangeset for help on using the changeset viewer.