Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: gjb@fig.citib.com (Greg Brail)
Subject: Re: A Question on CDS client caches
Date: 17 Nov 1993 16:42:58 GMT	[thread overview]
Message-ID: <2cdkai$aih@ibism.fig.citib.com> (raw)
In-Reply-To: 2cdfbr$398@starlight.datlog.co.uk

In article <2cdfbr$398@starlight.datlog.co.uk>,
David Crone <dcrone@datlog.co.uk> 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


  reply	other threads:[~1993-11-17 16:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-11-17 15:18 A Question on CDS client caches David Crone
1993-11-17 16:42 ` Greg Brail [this message]
1993-11-22 14:24 ` John Corne
1993-11-29 17:27   ` Mark Hickey
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox