* A Question on CDS client caches
@ 1993-11-17 15:18 David Crone
1993-11-17 16:42 ` Greg Brail
1993-11-22 14:24 ` John Corne
0 siblings, 2 replies; 4+ messages in thread
From: David Crone @ 1993-11-17 15:18 UTC (permalink / raw)
Hello,
I was wondering if anyone can answer a question I have about the
CDS client side caches.
On the client side if I have a client that requests server bindings
for a service then my cdsclerk checks the client side cache to see if
the data is already available and then calls over to cdsd and the actual
namespace if the information isn't cached. This then causes the local
cache to be updated to contain the new information my client just
requested. So subsequent clients for this service will get the data
from the cache (Correct so far?).
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?).
--
Regards,
David Crone
("Questions are a burden to others; answers a prison for oneself")
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: A Question on CDS client caches
1993-11-17 15:18 A Question on CDS client caches David Crone
@ 1993-11-17 16:42 ` Greg Brail
1993-11-22 14:24 ` John Corne
1 sibling, 0 replies; 4+ messages in thread
From: Greg Brail @ 1993-11-17 16:42 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: A Question on CDS client caches
1993-11-17 15:18 A Question on CDS client caches David Crone
1993-11-17 16:42 ` Greg Brail
@ 1993-11-22 14:24 ` John Corne
1993-11-29 17:27 ` Mark Hickey
1 sibling, 1 reply; 4+ messages in thread
From: John Corne @ 1993-11-22 14:24 UTC (permalink / raw)
In article <2cdfbr$398@starlight.datlog.co.uk>, dcrone@datlog.co.uk (David Crone) writes:
|>Hello,
|>
|>I was wondering if anyone can answer a question I have about the
|>CDS client side caches.
|>
|>On the client side if I have a client that requests server bindings
|>for a service then my cdsclerk checks the client side cache to see if
|>the data is already available and then calls over to cdsd and the actual
|>namespace if the information isn't cached. This then causes the local
|>cache to be updated to contain the new information my client just
|>requested. So subsequent clients for this service will get the data
|>from the cache (Correct so far?).
|>
|>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?).
|>
|>--
|>Regards,
|> David Crone
|> ("Questions are a burden to others; answers a prison for oneself")
|>
The first part sounds about right. However, if a server simply exits, there
is nothing in DCE to remove its name from the namespace.
Changes made with cdscp will propogate out to all the nodes in the cell (either
in real time or later via the skulk).
Jc
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: A Question on CDS client caches
1993-11-22 14:24 ` John Corne
@ 1993-11-29 17:27 ` Mark Hickey
0 siblings, 0 replies; 4+ messages in thread
From: Mark Hickey @ 1993-11-29 17:27 UTC (permalink / raw)
In article <1993Nov22.142401.6993@decuk.uvo.dec.com> (John Corne) writes:
>
>|>Hello,
>|>
>|>I was wondering if anyone can answer a question I have about the
>|>CDS client side caches.
... stuff deleted...
>|>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?).
>|>
From the client side, as noted in previous articles, you can set a limit on the
period of time that cached information is considered valid via the two calls:
rpc_ns_mgmt_handle_set_exp_age - sets the time limit for retaining cached
info for the passed name service handle
(ie: an inquiry context). The time limit
is used only in calls to rpc_ns*next
functions; eg: binding_import_next.
rpc_ns_mgmt_set_exp_age - sets the time limit for retaining cached info for
the application.
If the expiration age parameter specified to either call is 0, then effectively
no information is cached; the clerk goes to the clearinghouse every time
information is requested. These calls have associated *_inq* calls that
return the current expiration age.
You can find out if the server is up on the binding you have via
the resolve_binding and is_server_listening calls.
Mark Hickey
OSF DCE System Test
mhickey@osf.org
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1993-11-29 17:27 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-11-17 15:18 A Question on CDS client caches David Crone
1993-11-17 16:42 ` Greg Brail
1993-11-22 14:24 ` John Corne
1993-11-29 17:27 ` Mark Hickey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox