Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: gjb@fig.citib.com (Greg Brail)
Subject: Re: DCE Type vs Object UUIDs (Was: Re: Multiple DCE Servers with the same Interface)
Date: Tue, 22 Jun 1993 21:45:05 GMT	[thread overview]
Message-ID: <C91Lr6.784@fig.citib.com> (raw)
In-Reply-To: 204a53$mus@paperboy.osf.org

In article <204a53$mus@paperboy.osf.org> rsalz@osf.org (Rich Salz) writes:
>It is probably better to create a UUID when the server is installed and
>use that.  Creating a UUID every time you start up makes it hard for
>people to find you. Yes, you could put the "dynamic" UUID in your CDS
>entry, but that's as bad as putting your fully-resolved endpoint there.

Consider the endpoint mapper (rpcd). If a server registers with a nil
object UUID and a client performs a lookup with a nil object UUID,
rpcd directs the client to that server. But if two servers register
with a nil object UUID on the same host and a client tries to make an
RPC, the rpcd picks one of the servers arbitrarily. The client can't
specify which server to use without jumping through hoops and manually
getting the list of compatible servers from the rpcd. 

So if a server registers with the CDS name /.:/servers/one and a nil
objecg UUID and another registers with /.:/servers/two, a client with
a binding to /.:/servers/one might end up calling /.:/servers/two if
both servers are running on the same host.  Sometimes this isn't a
problem. Usually it is.

However, if /.:/servers/one and /.:/servers/two both register unique
object UUIDs with rpcd and with CDS, then a client looking up a
binding to /.:/servers/one will automatically get an object UUID from
CDS and use it when contacting rpcd. Thus, it will always get the
right server. The client doesn't need to know the object UUID of the
server to look up the server via CDS.

(Of course, CDS does lots of caching, so if /.:/servers/one crashes
and is restarted with a new object UUID, the client will have trouble
re-binding. Then again, the client will still have trouble re-binding
in some cases even if all the servers use nil object UUIDs.)

So IMHO, not only is it a good idea for each instance of a server to
have a unique object UUID, it's a good idea to register that UUID with
CDS and rpcd.

				greg
-- 
Greg Brail ------------------ Citibank -------------------- gjb@fig.citib.com


  reply	other threads:[~1993-06-22 21:45 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-06-07 17:50 Multiple DCE Servers with the same Interface Barry P Sheward
1993-06-08 15:48 ` Greg Brail
1993-06-10 13:47   ` Barry P Sheward
1993-06-15  9:56     ` Neil Winton
1993-06-15 12:11       ` Rich Salz
1993-06-16 14:05         ` DCE Type vs Object UUIDs (Was: Re: Multiple DCE Servers with the same Interface) Neil Winton
1993-06-16 18:29           ` Rich Salz
1993-06-17 16:42             ` Neil Winton
1993-06-18 21:02               ` Greg Brail
1993-06-21 12:38                 ` Rich Salz
1993-06-22 21:45                   ` Greg Brail [this message]
1993-06-23 18:59                     ` Rich Salz
1993-06-24 15:14                       ` Greg Brail
1993-06-10  0:00 ` Multiple DCE Servers with the same Interface Per Igel
1993-06-11 19:54 ` Examples of IDL unions Naved Khan
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