Download presentation
Presentation is loading. Please wait.
Published byJeffery Hamer Modified over 9 years ago
1
Indications in green = Live content Indications in white = Edit in master Indications in blue = Locked elements Indications in black = Optional elements Template release: Oct 02 For the latest, go to http://w3.ibm.com/ibm/presentations | July 18, 2003 | © 2003 IBM Corporation OpenLDAP Proxy Cache Development Apurva Kumar IBM India Research Lab
2
Template release: Oct 02 For the latest, go to http://w3.ibm.com/ibm/presentations OpenLDAP proxy cache development Indications in green = Live content Indications in white = Edit in master Indications in blue = Locked elements Indications in black = Optional elements Agenda LDAP query caching. LDAP proxy cache. Proxy cache architecture. Implementation issues. LDAPsync and proxy caching. Future development plans.
3
Template release: Oct 02 For the latest, go to http://w3.ibm.com/ibm/presentations OpenLDAP proxy cache development Indications in green = Live content Indications in white = Edit in master Indications in blue = Locked elements Indications in black = Optional elements LDAP query caching Problems with large enterprise directories Scalability Large delays for remote sites. Alternatives Partial replication. Partitioning. Advantages of query caching Caches queries rather than naming contexts. Answers repeat and contained queries. Utilizes locality of reference.
4
Template release: Oct 02 For the latest, go to http://w3.ibm.com/ibm/presentations OpenLDAP proxy cache development Indications in green = Live content Indications in white = Edit in master Indications in blue = Locked elements Indications in black = Optional elements Caches entries and metadata corresponding to search requests. Query containment: Determines if an incoming query is semantically contained in cached queries. Answers contained queries locally. Contacts backend for queries not contained. LDAP query cache operation
5
Template release: Oct 02 For the latest, go to http://w3.ibm.com/ibm/presentations OpenLDAP proxy cache development Indications in green = Live content Indications in white = Edit in master Indications in blue = Locked elements Indications in black = Optional elements Template based query containment General query containment: A query filter F1 is contained in another filter F2 iff (F1 & !F2) is inconsistent. Template: Prototype for generating query filters, e.g. (sn=), (&(sn=)(givenName=)). Typical applications use only a few templates. Template based containment: Cache queries belonging to specified templates. Simplifies containment problem Use only those templates which can possibly answer the query. Same template: Comparisons of corresponding simple filters. Cross template: Predetermined conditions.
6
Template release: Oct 02 For the latest, go to http://w3.ibm.com/ibm/presentations OpenLDAP proxy cache development Indications in green = Live content Indications in white = Edit in master Indications in blue = Locked elements Indications in black = Optional elements LDAP proxy cache An LDAP proxy extended for query caching. Why implement query caching inside directory servers ? Query containment requires syntaxes and matching rules. Applications need not change. Common functionality (search,add etc.) with directory servers. Can be integrated with synchronization mechanisms like LDAPsync.
7
Template release: Oct 02 For the latest, go to http://w3.ibm.com/ibm/presentations OpenLDAP proxy cache development Indications in green = Live content Indications in white = Edit in master Indications in blue = Locked elements Indications in black = Optional elements Proxy cache architecture Front end Meta backend+QC+CM Cache backend - search - others Merge/add remove | | Database backend LDAP client backend server Proxy cache LDAP APICache backend Add Modify Delete QC: Query Containment engine CM: cache manager
8
Template release: Oct 02 For the latest, go to http://w3.ibm.com/ibm/presentations OpenLDAP proxy cache development Indications in green = Live content Indications in white = Edit in master Indications in blue = Locked elements Indications in black = Optional elements OpenLDAP proxy cache: Algorithms Cacheability: what to cache ? Incoming queries Queries belonging to specifed templates. Queries satisfying a size limit. Cache replacement: Removes LRU query. Prefetching: Currently not implemented. Consistency: TTL based weak consistency.
9
Template release: Oct 02 For the latest, go to http://w3.ibm.com/ibm/presentations OpenLDAP proxy cache development Indications in green = Live content Indications in white = Edit in master Indications in blue = Locked elements Indications in black = Optional elements Implementation issues Ideally any backend should be able to act as a cache store. Issues: Sparse subtree problem. Adding entries without parent. Removing entries without children. Searching without search base in the cache. Disabling schema check. Disabling access control for cache operations. Current solution is to disable checks when a caching operation is being performed. Alternatives: glue entries, rootDN, backend flags.
10
Template release: Oct 02 For the latest, go to http://w3.ibm.com/ibm/presentations OpenLDAP proxy cache development Indications in green = Live content Indications in white = Edit in master Indications in blue = Locked elements Indications in black = Optional elements LDAPsync and proxy cache LDAPsync can be used to support Polling based updates. Strong consistency. Replication + caching Replicated filters capture static referential locality. Cached filters capture dynamic referential locality. High hit ratio. Interaction between proxy cache and LDAPsync LDAPsync provides consistency for cached filters. Proxy cache allows answering of queries from replicated filters.
11
Template release: Oct 02 For the latest, go to http://w3.ibm.com/ibm/presentations OpenLDAP proxy cache development Indications in green = Live content Indications in white = Edit in master Indications in blue = Locked elements Indications in black = Optional elements Design changes LDAP client backend server Proxy cache Frontend+QC+CM Cache backend Proxy/meta backend Database backend
12
Template release: Oct 02 For the latest, go to http://w3.ibm.com/ibm/presentations OpenLDAP proxy cache development Indications in green = Live content Indications in white = Edit in master Indications in blue = Locked elements Indications in black = Optional elements Future Work Combining LDAPsync and proxy cache. Using cache specific schema for representing queries and implementing containment. (draft-apurva-ldap-query-containment-01.txt) Implementation of prefetching algorithms.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.