Am Mon, 24 Oct 2016 22:36:00 +0800 (CST) schrieb "Jiang Wen Dong" j-wd@163.com:
Thanks a lot. "pcache" (deferred), but 4096 works fine.
But pcache answer nothing after cached. Can you help me with this?
one attribute has been cached, so there is some success.
slapd 2.4.40
Log: 580e14e4 query template of incoming query = (cn=) 580e14e4 Entering QC, querystr = (cn=admin) 580e14e4 Lock QC index = 0x7f2083eb70e0 580e14e4 Not answerable: Unlock QC index=0x7f2083eb70e0 580e14e4 QUERY NOT ANSWERABLE 580e14e4 QUERY CACHEABLE 580e14e4 Added query expires at 1477321460 (POSITIVE) 580e14e4 Lock AQ index = 0x7f2083eb70e0 580e14e4 TEMPLATE 0x7f2083eb70e0 QUERIES++ 1 580e14e4 Base of added query = dc=test,dc=com 580e14e4 Unlock AQ index = 0x7f2083eb70e0 580e14e4 UUID for query being added = 811a466c-2e3e-1036-9f24-75dcaeca1ae8 580e14e4 ENTRY ADDED/MERGED, CACHED ENTRIES=0 580e14e4 STORED QUERIES = 1
1 attribute has been cached
580e16d3 query template of incoming query = (cn=) 580e16d3 Entering QC, querystr = (cn=admin) 580e16d3 Lock QC index = 0x7f4a782850e0 580e16d3 QUERY ANSWERABLE (answered 4 times)
a search operation could be answered from cache.
{...]
Config: database ldap suffix "dc=test,dc=com" uri ldap://test.com #uri ldap://192.168.127.15/ #uri ldap://192.168.127.15/dc=test,dc=com rootdn "cn=root,dc=test,dc=com" rootpw {SSHA}Hpc7nbJEdos8iCUAzRNa/rs5ffb0/+mD #subordinate chase-referrals false #rebind-as-user norefs true
overlay pcache pcache bdb 100000 1 1000 100 pcacheAttrset 0 name mail sAMAccountName telephonenumber #pcacheAttrset 0 name mail telephonenumber pcacheTemplate (cn=) 0 3600 pcacheTemplate (&(sn=)(givenName=)) 0 3600 pcacheTemplate (&(departmentNumber=)(secretary=*)) 0 3600
[...] as there is some success, you may elaborate on pcache templates, please note that a search filter must match a template, in order to be cached.
-Dieter