Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* Multiple DCE Servers with the same Interface
@ 1993-06-07 17:50 Barry P Sheward
  1993-06-08 15:48 ` Greg Brail
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Barry P Sheward @ 1993-06-07 17:50 UTC (permalink / raw)


Hi,

	I want to be able to run several RPC servers using DCE which all have the same
	interface definition and consist of the same code, but which will provide
	different return data. Each server will be called with an argument, which 
	decides which data that server returns.

	I think I can do this using manager object UUIDs in my rpc_ep_register function
	but I'm not sure exactly. I have looked at rpc_object_set_type but it seems
	that you need to have the manager uuid to create one.

	I'm using the explicit binding method (it seems the only way to do it!)

	The manuals I've used to find this much out are the DEC DCE Starter Kit
	Application Development Reference, Guide to Writing DCE Applications and
	Application Development Guide.

	Thanks,

		Barry Sheward


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Multiple DCE Servers with the same Interface
  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-10  0:00 ` Multiple DCE Servers with the same Interface Per Igel
  1993-06-11 19:54 ` Examples of IDL unions Naved Khan
  2 siblings, 1 reply; 15+ messages in thread
From: Greg Brail @ 1993-06-08 15:48 UTC (permalink / raw)


In article <C89Ivs.E0o@brunel.ac.uk> cs89bps@brunel.ac.uk (Barry P Sheward) writes:
>	I want to be able to run several RPC servers using DCE which all have the same
>	interface definition and consist of the same code, but which will provide
>	different return data. Each server will be called with an argument, which 
>	decides which data that server returns.
>
>	I think I can do this using manager object UUIDs in my rpc_ep_register function
>	but I'm not sure exactly. I have looked at rpc_object_set_type but it seems
>	that you need to have the manager uuid to create one.

At the offense of sounding obnoxious, it sounds like you want to use a
switch statement.

The rpc_object_set_type function is part of a mechanism to "switch
off" the code that implements each RPC function on the server side
based on UUID. It's possible to have a single server export the same
interface several times using different names in the DCE namespace,
and have the RPC runtime "decide" which function to call to execute
each RPC based on which name service entry the client used to find its
binding. It's also possible to have one big server which you run
multiple times, but which behaves differently despite exporting the
same RPC interface. 

But this is designed so you can implement the same RPC functions (as
defined in IDL) with different code, much like a virtual function call
in C++. This isn't what you say you want, although it might be a nice
solution to your problem.


				greg


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


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Multiple DCE Servers with the same Interface
  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  0:00 ` Per Igel
  1993-06-11 19:54 ` Examples of IDL unions Naved Khan
  2 siblings, 0 replies; 15+ messages in thread
From: Per Igel @ 1993-06-10  0:00 UTC (permalink / raw)



In article <C89Ivs.E0o@brunel.ac.uk>, cs89bps@brunel.ac.uk (Barry P
Sheward) writes:


> 	I want to be able to run several RPC servers using DCE which all have
the same
> 	interface definition and consist of the same code, but which will provide
> 	different return data. Each server will be called with an argument, which 
> 	decides which data that server returns.
> 

Interesting question. I want to be able to do about the same, it would be
nice to dynamicly start up/close down multiple copies of the exact same
server (code)
on the same machine and/or different machines - this would be a way of
doing load
balancing. Is this possible and if it is how do you prevent clients to
pick the 
same server each time?

--
Per Igel                        | Email: Per.Igel@SanDiegoCA.NCR.COM
NCR, LCPD San Diego             |
16550 West Bernado Drive        | Phone: 619 485 2196
San Diego, CA 92127             | Fax  : 619 485 2598



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Multiple DCE Servers with the same Interface
  1993-06-08 15:48 ` Greg Brail
@ 1993-06-10 13:47   ` Barry P Sheward
  1993-06-15  9:56     ` Neil Winton
  0 siblings, 1 reply; 15+ messages in thread
From: Barry P Sheward @ 1993-06-10 13:47 UTC (permalink / raw)


Greg,

	you wrote :

It's possible to have a single server export the same
interface several times using different names in the DCE namespace,
and have the RPC runtime "decide" which function to call to execute
each RPC based on which name service entry the client used to find its
binding.

	Could you give an example of how you would do this, or point me to
	an example somewhere please ?

	The reason I decided I would need a UUID, because I plan to have some
	facilities for replicating data, so a server could potentially
	provide the exact same results to as function call, but on a different
	machine.

	Would this work using the DCE namespace to do lookups ?

	Thanks,

	Barry.



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Examples of IDL unions
  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  0:00 ` Multiple DCE Servers with the same Interface Per Igel
@ 1993-06-11 19:54 ` Naved Khan
  2 siblings, 0 replies; 15+ messages in thread
From: Naved Khan @ 1993-06-11 19:54 UTC (permalink / raw)


Hello,
	Does anyone have any test programs which use the IDL unions?
Also, IDL unions cannot contain conformant or varying arrays. So, can one have
a ptr in the union which points to a conformant or a varying arrays? Is there 
a better way to get around this?

    Thanks
    Naved Khan


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Multiple DCE Servers with the same Interface
  1993-06-10 13:47   ` Barry P Sheward
@ 1993-06-15  9:56     ` Neil Winton
  1993-06-15 12:11       ` Rich Salz
  0 siblings, 1 reply; 15+ messages in thread
From: Neil Winton @ 1993-06-15  9:56 UTC (permalink / raw)


In article <C8ErMs.8E2@brunel.ac.uk>, cs89bps@brunel.ac.uk (Barry P Sheward) writes:
|> It's possible to have a single server export the same
|> interface several times using different names in the DCE namespace,
|> and have the RPC runtime "decide" which function to call to execute
|> each RPC based on which name service entry the client used to find its
|> binding.
|> 
|> 	Could you give an example of how you would do this, or point me to
|> 	an example somewhere please ?

The behaviour of DCE with multiple instances of the same interface on the same
machine confused me when I first came across it.  If you look at the comments
in /usr/include/dce/rpc.idl (a very useful source first port of call
for information before delving into the full documentation!) you will see the
following comment:

/*
 * R P C _ E P _ R E G I S T E R
 *
 * Register entries with the local Endpoint Map.  Endpoint map entries
 * logically consist of <if_spec, address, object, annotation> tuples.
 * The object_uuid_vec and annotation are optional; NULL may be
 * specified.
 *
 * Registrations tuples that differ only in the endpoint portion of the
 * address are defined to be duplicate registrations and the new
 * registration replaces the old registration.  The old registration
 * is assumed to be stale (i.e. from a previous instance of the server
 * that exited without unregistering).
 */

So, in order to have multiple instances of a server you will have to supply
an Object UUID or else subsequent registrations of the endpoint will overwrite
each other.

Basically the code goes something like this (with error checking and other stuff
omitted):

    unsigned32 status;
    struct
    {
        unsigned32 count;
        uuid_t *uuid[1];
    }
    uuid_vec;
    uuid_t *uuidp = NULL;

    /* Create UUID for interface */

    uuidp = (uuid_t *) malloc(sizeof(uuid_t));
    uuid_create(info->uuidp, &status);

    uuid_vec.count = 1;
    uuid_vec.uuid[0] = uuidp;

    /* Register server interface */

    rpc_server_register_if(interface_spec,
                           NULL,
                           NULL,
                           &status);
    if (*status != rpc_s_ok) goto cleanup;

    /* ... stuff to get binding vector (bvec) omitted ... */

    /* Register end-points */

    rpc_ep_register(interface_spec,
                    bvec,
                    &uuid_vec,
                    NULL,
                    &status);

    /* Export to name service */

    rpc_ns_binding_export(rpc_c_ns_syntax_dce,
                          name,
                          interface_spec,
                          bvec,
                          &uuid_vec,
                          status);

Note that you don't have to associate a Type UUID with the Object UUID.  If you
export the interface with different names, the lookup will find the correct
server associated with the name-service entry.  The server code can be identical
but for the name exported.

(BTW, I'd be really grateful if someone could explain the rationale for having to
associate Type UUIDs with Object UUIDs when you wish to select from multiple
services within a single server.  There seems to be a an unnecessary level of
indirection, or am I missing something?)

|> 	The reason I decided I would need a UUID, because I plan to have some
|> 	facilities for replicating data, so a server could potentially
|> 	provide the exact same results to as function call, but on a different
|> 	machine.
|> 
|> 	Would this work using the DCE namespace to do lookups ?

Having given you all the information above, it is unnecessary if the servers are
running on different machines.  In this case the name-space lookup is sufficient.
It will resolve to an interface/host-address tuple which will be sufficient to
locate an instance of a server on a machine.

|> 	Thanks,
|> 
|> 	Barry.

	I'm glad to be able to help.

	Neil

*   Neil Winton			G306a, SSTF Building		This sentence
*   N.Winton@axion.bt.co.uk	BT Laboratories			has two missing,
*   Tel +44 473 646079		Martlesham Heath		but you can still
*   Fax +44 473 643019		IPSWICH IP5 7RE, UK		sense of it.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Multiple DCE Servers with the same Interface
  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
  0 siblings, 1 reply; 15+ messages in thread
From: Rich Salz @ 1993-06-15 12:11 UTC (permalink / raw)


In <1vk6bj$ooi@zaphod.axion.bt.co.uk> nwinton@axion.bt.co.uk (Neil Winton) writes:
>(BTW, I'd be really grateful if someone could explain the rationale for having to
>associate Type UUIDs with Object UUIDs when you wish to select from multiple
>services within a single server.  There seems to be a an unnecessary level of
>indirection, or am I missing something?)

I'm not sure what you mean by this.  You only need a Type UUID if you have
multiple instances of the same interface.  Suppose we have a printer
interface that provides a "print_text" operation.  For a PostScript
printer we have to translate the text, while for a daisy wheel we just
send it out.  This means we have two different implementations of the same
operation.  If a server manages several printers, they will group each
printer into the appropriate type.  When a print_text operation is
received, the RPC runtime will automatically invoke the PostScript or the
Daisy version.  If, later on, you upgrade your printer, then the server
just has to change the type for the new printer, and existing clients
will now get nice Daisy :-) output without any changes at all.

Make sense?
	/r$


^ permalink raw reply	[flat|nested] 15+ messages in thread

* DCE Type vs Object UUIDs (Was: Re: Multiple DCE Servers with the same Interface)
  1993-06-15 12:11       ` Rich Salz
@ 1993-06-16 14:05         ` Neil Winton
  1993-06-16 18:29           ` Rich Salz
  0 siblings, 1 reply; 15+ messages in thread
From: Neil Winton @ 1993-06-16 14:05 UTC (permalink / raw)


In article <1vkea7$oub@paperboy.osf.org>, rsalz@osf.org (Rich Salz) writes:
|> In <1vk6bj$ooi@zaphod.axion.bt.co.uk> nwinton@axion.bt.co.uk (Neil Winton) writes:
|> >(BTW, I'd be really grateful if someone could explain the rationale for having to
|> >associate Type UUIDs with Object UUIDs when you wish to select from multiple
|> >services within a single server.  There seems to be a an unnecessary level of
|> >indirection, or am I missing something?)
|> 
|> I'm not sure what you mean by this.  You only need a Type UUID if you have
|> multiple instances of the same interface.  Suppose we have a printer
|> interface that provides a "print_text" operation.  For a PostScript
|> printer we have to translate the text, while for a daisy wheel we just
|> send it out.  This means we have two different implementations of the same
|> operation.  If a server manages several printers, they will group each
|> printer into the appropriate type.  When a print_text operation is
|> received, the RPC runtime will automatically invoke the PostScript or the
|> Daisy version.  If, later on, you upgrade your printer, then the server
|> just has to change the type for the new printer, and existing clients
|> will now get nice Daisy :-) output without any changes at all.

I'm sorry, I should have explained better.  IMHO, this area is one of the
least-well documented and explained and matters are not helped by the (infamous)
timop example program.

I have no problem with creating an Object UUID to identify a particular object
instance (which is what the original question is about).

I have no problem that there should be the concept of server of a particular type
(although it is arguable whether the `type' isn't really just the interface
presented).

It is sensible that a server should be able to present multiple interfaces.

What confuses the heck out of me is why DCE provides the facility to generate and
make known (via the name service or otherwise) an Object UUID but then have the
facility to generate a Type UUID, which is registered with the RPC runtime, and
then an association created between Type and Object UUIDs so that there is
effectively a level of indirection created to no good effect.  It is not clear
to me that there is any occasion where the associate between Type and Object
UUID buys you any more flexibility that you might otherwise have.

I guess what I *really* want is a good, clear, concrete example of where it
is *necessary* to use both Type and Object UUIDs.  I can't really see where Type
UUIDs are necessary in the example you quote above.  If a server provides the
"print_text" interface you can change whatever you like behind that interface
provided you keep the semantics the same.  Clients don't have to change.

|> Make sense?
|> 	/r$

I'm sorry if I didn't (and don't) make sense.  All enlightenment greatfully
received!

	Neil

*   Neil Winton			G306a, SSTF Building	This sentence       *
*   N.Winton@axion.bt.co.uk	BT Laboratories		has two missing,    *
*   Tel +44 473 646079		Martlesham Heath	but you can still   *
*   Fax +44 473 643019		IPSWICH IP5 7RE, UK	sense of it.        *


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: DCE Type vs Object UUIDs (Was: Re: Multiple DCE Servers with the same Interface)
  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
  0 siblings, 1 reply; 15+ messages in thread
From: Rich Salz @ 1993-06-16 18:29 UTC (permalink / raw)


In <1vn9bo$ce7@zaphod.axion.bt.co.uk> nwinton@axion.bt.co.uk (Neil Winton) writes:
>(although it is arguable whether the `type' isn't really just the interface
>presented).

No, a type is not the interface but the implementation of that interface.

Let me try again with my printer example.  Suppose I have each printer as
a UUID.  Suppose I have a print_text operation.  That does this:
	print_text(uuid_t printer, char *text)
	{
	    if (is_a_postscript_printer(printer))
		convert_to_postscript_and_print(text);
	    else if (is_a_daisy_wheel_printer(printer))
		send_text_to_printer(text);
	}

This can get kind of messy when you have more than two types -- every
function that is printer-specific must have a cascading set of if/elseif
statements to handle all the cases -- and hard to administer when you have
many objects.

Instead, your server says at the beginning "uuida is a postscript printer"
and "uuidb is a daisywheel printer" and so on.  Then, when a print_text
operation comes in, the RPC runtime automatically invokes print_text_ps
and print_text_daisy.  (You have to write those routines, and associate
them with the postscript and daisywheel manager dispatch table (MEPV).)

It is analogous to the standard problem of writing generic code in C:
you have to put switches all over the place, or use C++ where the
compiler does it for you automatically.
	/r$


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: DCE Type vs Object UUIDs (Was: Re: Multiple DCE Servers with the same Interface)
  1993-06-16 18:29           ` Rich Salz
@ 1993-06-17 16:42             ` Neil Winton
  1993-06-18 21:02               ` Greg Brail
  0 siblings, 1 reply; 15+ messages in thread
From: Neil Winton @ 1993-06-17 16:42 UTC (permalink / raw)


In article <1vnoq1$82t@paperboy.osf.org>, rsalz@osf.org (Rich Salz) writes:
|> Let me try again with my printer example.  Suppose I have each printer as
|> a UUID.  Suppose I have a print_text operation.  That does this:
|> 	print_text(uuid_t printer, char *text)
|> 	{
|> 	    if (is_a_postscript_printer(printer))
|> 		convert_to_postscript_and_print(text);
|> 	    else if (is_a_daisy_wheel_printer(printer))
|> 		send_text_to_printer(text);
|> 	}
|> 
|> This can get kind of messy when you have more than two types -- every
|> function that is printer-specific must have a cascading set of if/elseif
|> statements to handle all the cases -- and hard to administer when you have
|> many objects.
|> 
|> Instead, your server says at the beginning "uuida is a postscript printer"
|> and "uuidb is a daisywheel printer" and so on.  Then, when a print_text
|> operation comes in, the RPC runtime automatically invokes print_text_ps
|> and print_text_daisy.  (You have to write those routines, and associate
|> them with the postscript and daisywheel manager dispatch table (MEPV).)

Yes, this is great and useful.  But ... there still seems to be no need to have
both Type and Object UUIDs.  An EPV is associated with a Type UUID.  The same EPV
can be associated with multiple Type UUIDs.  A Type UUID is associated with
(potentially) multiple Object UUIDs.  An RPC endpoint is associated with a list
of Object UUIDs.

When an RPC is received, the EPV is selected by looking at the Object UUID (if
any) in the RPC, seeing which Type UUID is associated with that Object UUID and
then selecting the EPV associated with the Type UUID.  Now, why couldn't the
selection of EPV just be done on the basis of Object UUID?  I don't want to
labour this (thanks for your patience in answering already) but I'm curious as to
what led to the design decision to go for this indirection.

It may be `conceptually cleaner' to say `these objects are of this type, and this
type has this EPV' but it is no simpler in code terms than saying `use this EPV
for each of these objects'.

|> It is analogous to the standard problem of writing generic code in C:
|> you have to put switches all over the place, or use C++ where the
|> compiler does it for you automatically.

I appreciate the aim, it is just that the solution chosen in DCE seems
unnecessarily complex.  Occam's Razor and all that ...  Anyway, I promise to stop
rambling on after this and maybe find something more useful to ramble on about!
:-) :-) :-)

	Neil


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: DCE Type vs Object UUIDs (Was: Re: Multiple DCE Servers with the same Interface)
  1993-06-17 16:42             ` Neil Winton
@ 1993-06-18 21:02               ` Greg Brail
  1993-06-21 12:38                 ` Rich Salz
  0 siblings, 1 reply; 15+ messages in thread
From: Greg Brail @ 1993-06-18 21:02 UTC (permalink / raw)


In article <1vq6u7$nsu@zaphod.axion.bt.co.uk> nwinton@axion.bt.co.uk (Neil Winton) writes:
>Yes, this is great and useful.  But ... there still seems to be no need to have
>both Type and Object UUIDs.  An EPV is associated with a Type UUID.  The same EPV
>can be associated with multiple Type UUIDs.  A Type UUID is associated with
>(potentially) multiple Object UUIDs.  An RPC endpoint is associated with a list
>of Object UUIDs.

I'll admit that it confused me as well. However, I think it makes
sense.

An object UUID refers to one and only one object -- namely, an RPC
server. When you export an RPC interface from a server, it's a good
idea to use an object UUID. Otherwise if you export the same interface
from several different server programs on the same machine, the rpc
endpoint mapper (rpcd) can't tell them apart. Thus, every server
should register with a unique object UUID, which means it should
generate a new one by using uuid_create each time it runs.

The type UUID helps the server distinguish which EPV to use when
dispatching each RPC call. Generally, each server program will only
have a few "types." Even if the program creates and destroys types on
the fly, each type ought to have a unique type UUID. It would make
sense to generate the uuids using "uuidgen -s" and hardcode them in
the code for each type. That way all the instances of the program that
implements each type will use the same type UUID.

Or at least that's how I'd do it. And if type UUIDs are hardcoded and
object UUIDs are generated at runtime, then type UUIDs and object
UUIDs can't be the same thing. And besides, I think the distinction
makes sense. An interface UUID identifies an interface. A type UUID
identifies an implementation of that interrface. A null type UUID
identifies the default implementation. An object UUID identifies one
and only one instance of an implementation of an interface.

				greg





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


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: DCE Type vs Object UUIDs (Was: Re: Multiple DCE Servers with the same Interface)
  1993-06-18 21:02               ` Greg Brail
@ 1993-06-21 12:38                 ` Rich Salz
  1993-06-22 21:45                   ` Greg Brail
  0 siblings, 1 reply; 15+ messages in thread
From: Rich Salz @ 1993-06-21 12:38 UTC (permalink / raw)


In <C8u54K.Ioq@fig.citib.com> gjb@fig.citib.com (Greg Brail) writes:
> Thus, every server
>should register with a unique object UUID, which means it should
>generate a new one by using uuid_create each time it runs.

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.

> An interface UUID identifies an interface. A type UUID
>identifies an implementation of that interrface. A null type UUID
>identifies the default implementation. An object UUID identifies one
>and only one instance of an implementation of an interface.

That is a good way to think about it.
	/r$


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: DCE Type vs Object UUIDs (Was: Re: Multiple DCE Servers with the same Interface)
  1993-06-21 12:38                 ` Rich Salz
@ 1993-06-22 21:45                   ` Greg Brail
  1993-06-23 18:59                     ` Rich Salz
  0 siblings, 1 reply; 15+ messages in thread
From: Greg Brail @ 1993-06-22 21:45 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: DCE Type vs Object UUIDs (Was: Re: Multiple DCE Servers with the same Interface)
  1993-06-22 21:45                   ` Greg Brail
@ 1993-06-23 18:59                     ` Rich Salz
  1993-06-24 15:14                       ` Greg Brail
  0 siblings, 1 reply; 15+ messages in thread
From: Rich Salz @ 1993-06-23 18:59 UTC (permalink / raw)


In <C91Lr6.784@fig.citib.com> gjb@fig.citib.com (Greg Brail) explains what
could happen if you had two servers on a host with the same interface
UUID, and neither one having an object UUID:  you'd look up one name and
rpcd could end up binding you to the other server.

>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.

I totally agree with this.  I think this paragraph of mine in article
<204a53$mus@paperboy.osf.org> confused you:
>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.

When I said "installed" I meant a separate phrase from "start running."
E.g., before you can start the server on a host you must first do some
procedure (e.g., create a config file) that sets things up for the
server.  The drawback to this method is that each server must have some
external state (e.g., its object UUID) stored on disk.  In practice, this
is not likely to be a problem since you've probably got some external
state already.

Does this make more sense?
	/r$


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: DCE Type vs Object UUIDs (Was: Re: Multiple DCE Servers with the same Interface)
  1993-06-23 18:59                     ` Rich Salz
@ 1993-06-24 15:14                       ` Greg Brail
  0 siblings, 0 replies; 15+ messages in thread
From: Greg Brail @ 1993-06-24 15:14 UTC (permalink / raw)


In article <20a96p$h2q@paperboy.osf.org> rsalz@osf.org (Rich Salz) writes:
>When I said "installed" I meant a separate phrase from "start running."
>E.g., before you can start the server on a host you must first do some
>procedure (e.g., create a config file) that sets things up for the
>server.  The drawback to this method is that each server must have some
>external state (e.g., its object UUID) stored on disk.  In practice, this
>is not likely to be a problem since you've probably got some external
>state already.

Yeah. This sounds like a good idea. If you already have some sort of
configuration file, putting an object UUID in there makes sense.

				greg


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


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~1993-06-24 15:14 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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