Thanks a lot. "pcache" (deferred), but 4096 works fine.
But pcache answer nothing after cached. Can you help me with this?
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
580e16d3 query template of incoming query = (cn=) 580e16d3 Entering QC, querystr = (cn=admin) 580e16d3 Lock QC index = 0x7f4a782850e0 580e16d3 QUERY ANSWERABLE (answered 4 times)
Query: [root@oatest-1 ~]# ldapsearch -h 192.168.127.30 -p 389 -x -b 'dc=test,dc=com' -D 'CN=Administrator,CN=Users,DC=test,DC=com' -W 'CN=admin' name Enter LDAP Password: # extended LDIF # # LDAPv3 # base <dc=test,dc=com> with scope subtree # filter: CN=admin # requesting: name # # search result search: 2 result: 0 Success # numResponses: 1
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
directory /var/lib/ldap/test
CacheSize 1000 DNcacheSize 2000 IDLcacheSize 3000 CacheFree 10 Checkpoint 1024 10
DbConfig set_cachesize 0 104857600 1 DbConfig set_data_dir db DbConfig set_lg_dir logs DbConfig set_lg_regionmax 1048576 DbConfig set_lg_max 20971520 DbConfig set_lg_bsize 2097152 DbConfig set_flags DB_LOG_AUTOREMOVE DbConfig set_flags DB_TXN_NOSYNC
index objectClass eq,pres index ou,cn,mail,surname,givenname eq,pres,sub index uidNumber,gidNumber,loginShell eq,pres index uid,memberUid eq,pres,sub index nisMapName,nisMapEntry eq,pres,sub index entryCSN,entryUUID eq,pres
At 2016-10-24 14:37:52, "Dieter Klünter" dieter@dkluenter.de wrote:
Am Mon, 24 Oct 2016 01:22:07 +0800 schrieb JWD j-wd@163.com:
How do I know proxy cache works or not? And what cache hit?what is not?
run slapd in debugging mode pcache.
-Dieter
-- Dieter Klünter | Systemberatung http://sys4.de GPG Key ID: E9ED159B 53°37'09,95"N 10°08'02,42"E