From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,897502692464f25e X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1993-06-22 17:32:29 PST Newsgroups: comp.unix.osf.misc Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!darwin.sura.net!udel!news.intercon.com!psinntp!ibism!gjb From: gjb@fig.citib.com (Greg Brail) Subject: Re: DCE Type vs Object UUIDs (Was: Re: Multiple DCE Servers with the same Interface) Message-ID: Sender: news@fig.citib.com Organization: Citibank IBISM References: <1vnoq1$82t@paperboy.osf.org> <1vq6u7$nsu@zaphod.axion.bt.co.uk> <204a53$mus@paperboy.osf.org> Date: Tue, 22 Jun 1993 21:45:05 GMT 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