Tri Tu wrote:
> Hi Howard,
> 
> Thanks for your replying.
> 
> If we set the pcacheOffline FALSE (default) then when the cache is expired, 
> query would failed with "Proxy operation retry failed" because the DSA is
> offline/unreachable.
> 
>        pcacheOffline { TRUE | FALSE }
>               Set the cache to offline mode. While offline, the consistency 
> checker will be stopped and no expirations will occur. This allows the cache
> contents to be  used  indefinitely
>               while the proxy is cut off from network access to the remote 
> DSA.  The default is FALSE, i.e. consistency checks and expirations will be 
> performed.
> 
> If we manually update configuration to pcacheOffline TRUE and restarted slapd,

Don't restart slapd. The pcacheOffline setting is meant to be used by changing 
it dynamically as your network status changes.

> the existing cached data is still existing on database (hdb/dbd) but it can't
> query proxycache (QUERY NOT ANSWERABLE) and tries to update the cache (QUERY 
> CACHEABLE) and would fail with "Proxy can't contact remote server" as below. 

> How do we continue to use the ldap proxy when the remote DSA is cut off from 
> network / server is unavailable.
> 
> Thanks,
> 
> On Tuesday, June 14, 2022, 08:07:25 AM PDT, Howard Chu <[email protected]> wrote:
> 
> 
> Read the slapo-pcache manpage more carefully. Setting pcacheOffline TRUE 
> disables cache expiration.
> 
> 


-- 
  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/

Reply via email to