From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,b83419799dc13652 X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1993-11-17 10:28:21 PST Path: gmd.de!xlink.net!howland.reston.ans.net!usenet.ins.cwru.edu!agate!library.ucla.edu!europa.eng.gtefsd.com!uunet!charon.citicorp.com!ibism!gjb From: gjb@fig.citib.com (Greg Brail) Newsgroups: comp.unix.osf.misc Subject: Re: A Question on CDS client caches Date: 17 Nov 1993 16:42:58 GMT Organization: Citibank GCMS/FTN Development Message-ID: <2cdkai$aih@ibism.fig.citib.com> References: <2cdfbr$398@starlight.datlog.co.uk> NNTP-Posting-Host: calf.fig.citib.com In article <2cdfbr$398@starlight.datlog.co.uk>, David Crone wrote: >So, how do client side caches keep in step with changes to the master >namespace operated by cdsd, as the cdsd cannot propogate updates to the >client side caches? (eg. the server I'm looking for moves machine, the >client side cache has old information and I restart my client. How is >this resolved?). You can disable the caching (or make the cache lifetime shorter) by calling rpc_ns_mgmt_set_exp_age. If you call this and set the expiration age to 0, then every lookup your client does to the CDS (via rpc_ns_binding_import_next, for instance), will bypass the CDS cache and go directly to the server. You can also call rpc_ns_mgmt_handle_set_exp_age to just set it for one name service lookup handle, whereas the first function changes it for all lookups in that process. This the only way I know around the CDS cache. Since bypassing the cache increases the load on the CDS server, it's a good idea to try the binding (including resolving the endpoint and pinging the server using rpc_mgmt_is_server_listening). If the server isn't there, try the whole thing again with the expiration age set to 0. greg -- Greg Brail ------------------ Citibank -------------------- gjb@fig.citib.com