Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* [DCE] unexporting/unregistering servers
@ 1993-09-17 19:58 Scott Cooper
  1993-09-17 23:12 ` Thuan Q. Pham
  0 siblings, 1 reply; 25+ messages in thread
From: Scott Cooper @ 1993-09-17 19:58 UTC (permalink / raw)


	I have some simple RPC clients and servers which do not behave
properly if the server is killed.  What is the proper procedure to go
through to unregister a server interface, unexport its bindings, and 
unregister its endpoints?  I have been unable to decipher the
DCE documentation on this point.

	We are talking about the simplest possible client/server 
relationship here: no UUIDs, only one interface exported per server, etc.
I would eventually like to provide for the following things: 1) The
server should unregister itself if it is killed.  2) Authorized
clients should be able to indicate that the server should shut down
3) Some kind of manager program should be able to shut down the server.

	Clues on any or all of the above are greatly appreciated -
I really need to get past this snag to get on with a stub compiler
that I am building.

Thanks.
---
Scott Cooper				scooper@cse.ucsc.edu


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

* Re: [DCE] unexporting/unregistering servers
  1993-09-17 19:58 [DCE] unexporting/unregistering servers Scott Cooper
@ 1993-09-17 23:12 ` Thuan Q. Pham
  1993-09-18  0:59   ` Nathaniel Mishkin
  1993-09-20 16:00   ` Greg Brail
  0 siblings, 2 replies; 25+ messages in thread
From: Thuan Q. Pham @ 1993-09-17 23:12 UTC (permalink / raw)



In article <27d4tuINNdcq@darkstar.UCSC.EDU> scooper@cse.ucsc.edu (Scott Cooper) writes:

>	   I have some simple RPC clients and servers which do not behave
>   properly if the server is killed.  What is the proper procedure to go
>   through to unregister a server interface, unexport its bindings, and 
>   unregister its endpoints?  I have been unable to decipher the
>   DCE documentation on this point.

If you want to do clean up (which we should), call the unexport routines.
These are very similar to the export routines you call when you set the
server up:

quitServer()
{
  rpc_ep_unregister()  /* clean up the local endpoint mapper */
  rpc_ns_binding_unexport()  /* unregister the interface from name space */
  rpc_binding_vector_free()  /* if you still have binding vectors around */
}

etc.. etc..  There are other functions to call (such as group unexport,
the nsa_***(), etc.. ).  But he rule of thumb is that you should undo what
you did.  Look at what call you make to register stuff and simply call the
ones to unregister them.

>	   We are talking about the simplest possible client/server 
>   relationship here: no UUIDs, only one interface exported per server, etc.
>   I would eventually like to provide for the following things: 

> 1) The server should unregister itself if it is killed.  

If you mean kill itself gracefully when you hit ^C, then you have to handle
the UNIX signals.  To handle this (like control-C), we must start a thread
to handle the signal.  Couldn't be done otherwise. The thread create a
signal mask, and actually block with a   call to sigwait().  When a signal
is present, it unblocks, stops the server from accepting new calls, and
cause it to exit when the last existing rpc call is handled. (really
graceful exit).  Then, it breaks the server-listen loop and start the clean
up routine.  (Just register a signal handling routine by calling signal()
isn't good enough).

>2) Authorized clients should be able to indicate that the server should
>shut down

Server should support a function that enable a client to call it and tell
it to kill itself.

>3) Some kind of manager program should be able to shut down the server.

Same as 2), I don't see much difference here.

>	   Clues on any or all of the above are greatly appreciated -
>   I really need to get past this snag to get on with a stub compiler
>   that I am building.

Hope it works for you.  Works for me so far....

/Thuan

-------------------------------------------------------------------
Thuan Q. Pham
Hewlett-Packard Laboratories              (415) 857-6818
1501 Page Mill Road                       pham@hpl.hp.com
Palo Alto, Ca 94303



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

* Re: [DCE] unexporting/unregistering servers
  1993-09-17 23:12 ` Thuan Q. Pham
@ 1993-09-18  0:59   ` Nathaniel Mishkin
  1993-09-19 15:30     ` Lee Sailer
  1993-09-20 16:25     ` Rich Salz
  1993-09-20 16:00   ` Greg Brail
  1 sibling, 2 replies; 25+ messages in thread
From: Nathaniel Mishkin @ 1993-09-18  0:59 UTC (permalink / raw)


Thuan Q. Pham (thuan@hpltp.hpl.hp.com) wrote:
: If you want to do clean up (which we should), call the unexport routines.
: These are very similar to the export routines you call when you set the
: server up:

: quitServer()
: {
:   rpc_ep_unregister()  /* clean up the local endpoint mapper */
:   rpc_ns_binding_unexport()  /* unregister the interface from name space */
:   rpc_binding_vector_free()  /* if you still have binding vectors around */
: }

There is a school of thought that says that unexporting a server from
the CDS namespace is not necessarily such a good idea because in the
case of replicated directories the unexport operation (actually all
modifying operations) is moderately expensive (induces propagation
load).  And (so goes the school), why bother anyway?  In case the
server's whole machine crashed, the "cleanup" won't happen, thus all
clients must be prepared to deal with "bad" entries anyway.  How about
unexporting as a "favor" to clients (to minimize the latency
associated with discovering the bad entries) then?  Now we're into
more subjective territory.  Arguably if clients did a reasonable job
of long-term caching server "goodness" information (i.e., remembered
not to try to access servers observed to be bad within some interval
of time), then server's unexporting wouldn't be such a favor (and
would have that nasty replication overhead).

Of course one could wish that replication were cheaper.
--
                -- Nat Mishkin
                   Atria Software, Inc.
                   mishkin@atria.com


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

* Re: [DCE] unexporting/unregistering servers
  1993-09-18  0:59   ` Nathaniel Mishkin
@ 1993-09-19 15:30     ` Lee Sailer
  1993-09-20 16:25     ` Rich Salz
  1 sibling, 0 replies; 25+ messages in thread
From: Lee Sailer @ 1993-09-19 15:30 UTC (permalink / raw)


> load).  And (so goes the school), why bother anyway?  In case the
> server's whole machine crashed, the "cleanup" won't happen, thus all
> clients must be prepared to deal with "bad" entries anyway.  How about

   One way of doing this is for the client to retrieve all the appropriate
servers, and keep them in a list of some sort.  Use them according to some
scheme, say round-robin, marking bad ones as they show up.  Every once in
awhile, throw the list away and get a new one.

> unexporting as a "favor" to clients (to minimize the latency
> associated with discovering the bad entries) then?  Now we're into
> more subjective territory.  Arguably if clients did a reasonable job
> of long-term caching server "goodness" information (i.e., remembered
> not to try to access servers observed to be bad within some interval
> of time), then server's unexporting wouldn't be such a favor (and
> would have that nasty replication overhead).

  Exactly


--
lee



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

* Re: [DCE] unexporting/unregistering servers
  1993-09-17 23:12 ` Thuan Q. Pham
  1993-09-18  0:59   ` Nathaniel Mishkin
@ 1993-09-20 16:00   ` Greg Brail
  1993-09-21  6:18     ` Bjorn Hell Larsen
  1 sibling, 1 reply; 25+ messages in thread
From: Greg Brail @ 1993-09-20 16:00 UTC (permalink / raw)


In article <THUAN.93Sep17151204@hpltp.hpl.hp.com>,
Thuan Q. Pham <thuan@hpltp.hpl.hp.com> wrote:
>
>In article <27d4tuINNdcq@darkstar.UCSC.EDU> scooper@cse.ucsc.edu (Scott Cooper) writes:

>If you mean kill itself gracefully when you hit ^C, then you have to handle
>the UNIX signals.  To handle this (like control-C), we must start a thread
>to handle the signal.  Couldn't be done otherwise. The thread create a
>signal mask, and actually block with a   call to sigwait().  When a signal
>is present, it unblocks, stops the server from accepting new calls, and
>cause it to exit when the last existing rpc call is handled. (really
>graceful exit).  Then, it breaks the server-listen loop and start the clean
>up routine.  (Just register a signal handling routine by calling signal()
>isn't good enough).

Good explanation, but to clarify:

Call that "quitServer" routine that Thuan described after your call to
rpc_server_listen. In your signal handler, call
rpc_mgmt_stop_server_listening with a binding handle parameter of
NULL. This will make the server stop accepting RPCs and make
rpc_server_listen return.

>>2) Authorized clients should be able to indicate that the server should
>>shut down
>
>Server should support a function that enable a client to call it and tell
>it to kill itself.

No need to bother if you don't feel like it. If you use
rpc_mgmt_stop_server_listening in your signal handler like I described
above, then any client can call it too once it has a binding to your
server. However, your server must call rpc_mgmt_set_authorization_fn
to register a callback that DCE will call whenever the client calls a
management routine. By default, stop_server_listening calls from
remote clients are rejected. Your callback must decide if the client
is authorized, then return "TRUE" if it wants the shutdown request to
be accepted.

				greg


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


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

* Re: [DCE] unexporting/unregistering servers
  1993-09-18  0:59   ` Nathaniel Mishkin
  1993-09-19 15:30     ` Lee Sailer
@ 1993-09-20 16:25     ` Rich Salz
  1993-09-21  6:27       ` Bjorn Hell Larsen
  1993-09-21 12:25       ` Nathaniel Mishkin
  1 sibling, 2 replies; 25+ messages in thread
From: Rich Salz @ 1993-09-20 16:25 UTC (permalink / raw)


In <CDIyrJ.EH3@atria.com> mishkin@atria.com (Nathaniel Mishkin) writes:
>There is a school of thought that says that unexporting a server from
>the CDS namespace is not necessarily such a good idea

There is another school that says that the namespace should accurately
reflect what is going on.  Inefficiencies should be fixed -- and over
time will be, if only by getting better hardware :-).

Yes a client must be able to handle outdated binding data that sends it
off to a non-existent server, but this should not be the common case.
Strive to optimize the common case.

I don't like disagreeing with Nat, but I guess I do here.  I also do not
think that most clients will be long-lived or that they will be talking to
many servers, and that client-side caches are therefore not very useful.
"It is agreed the ice is then here."
	/r$


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

* Re: [DCE] unexporting/unregistering servers
  1993-09-20 16:00   ` Greg Brail
@ 1993-09-21  6:18     ` Bjorn Hell Larsen
  1993-09-21 15:28       ` Greg Brail
  0 siblings, 1 reply; 25+ messages in thread
From: Bjorn Hell Larsen @ 1993-09-21  6:18 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1879 bytes --]

In article <CDntsL.Lvn@fig.citib.com> gjb@fig.citib.com (Greg Brail) writes:
> 
> Call that "quitServer" routine that Thuan described after your call to
> rpc_server_listen. In your signal handler, call
> rpc_mgmt_stop_server_listening with a binding handle parameter of
> NULL. This will make the server stop accepting RPCs and make
> rpc_server_listen return.
> 

A question: Will rpc_server_listen return immidiately after the call to
rpc_mgmt_stop_server_listening, or will it block for executing RPCs to
finish first?

Or, more generally: are there any functions available to query the
state of active RPC executor threads? Or would I have to build in that
kind of checking by using global counters and the like?

> 
> No need to bother if you don't feel like it. If you use
> rpc_mgmt_stop_server_listening in your signal handler like I described
> above, then any client can call it too once it has a binding to your
> server. However, your server must call rpc_mgmt_set_authorization_fn
> to register a callback that DCE will call whenever the client calls a
> management routine. By default, stop_server_listening calls from
> remote clients are rejected. Your callback must decide if the client
> is authorized, then return "TRUE" if it wants the shutdown request to
> be accepted.
> 

But if you are using insecure RPC, all you get to check for
authorization is the client binding handle. Which severely limits the
servers possibilities to ascertain *who* out there made the request to
stop the server.

This is of course true even if you choose to implement the 'stop
server' function as part of your interface, rather than using the RPC
management routines. Of course you could make the client pass a
password, magic cookie, or somesuch -- but then you start implementing
yourself exactly the functions that the authentication services are there
to perform.


Bj�

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

* Re: [DCE] unexporting/unregistering servers
  1993-09-20 16:25     ` Rich Salz
@ 1993-09-21  6:27       ` Bjorn Hell Larsen
  1993-09-21 15:54         ` Rich Salz
  1993-09-21 21:50         ` Thuan Q. Pham
  1993-09-21 12:25       ` Nathaniel Mishkin
  1 sibling, 2 replies; 25+ messages in thread
From: Bjorn Hell Larsen @ 1993-09-21  6:27 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1011 bytes --]

In article <27klig$t4g@paperboy.osf.org> rsalz@osf.org (Rich Salz) writes:
> 
> In <CDIyrJ.EH3@atria.com> mishkin@atria.com (Nathaniel Mishkin) writes:
>>There is a school of thought that says that unexporting a server from
>>the CDS namespace is not necessarily such a good idea
> 
> There is another school that says that the namespace should accurately
> reflect what is going on.  Inefficiencies should be fixed -- and over
> time will be, if only by getting better hardware :-).
> 

I tend to think of registering in the CDS as analogous to putting your
name on the door of your appartment. By doing so, you claim that this
is where you usually hang out; *not* that you can be expected to be in
at all times.

If you decide to spend the night away from home you *don't* remove
your nameplate. You assume that folk that come calling will be smart
enough to realize that when you don't answer the doorbell this means
that you are out, and that they should call again later, or go visit
someone else.


Bj�

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

* Re: [DCE] unexporting/unregistering servers
  1993-09-20 16:25     ` Rich Salz
  1993-09-21  6:27       ` Bjorn Hell Larsen
@ 1993-09-21 12:25       ` Nathaniel Mishkin
  1 sibling, 0 replies; 25+ messages in thread
From: Nathaniel Mishkin @ 1993-09-21 12:25 UTC (permalink / raw)


Rich Salz (rsalz@osf.org) wrote:
: I don't like disagreeing with Nat, but I guess I do here.  I also do not
: think that most clients will be long-lived or that they will be talking to
: many servers, and that client-side caches are therefore not very useful.

My feelings are not _that_ strongly in one direction or the other in
this area (BTW, the argument I made is really one made by the CDS
architects at DEC and when I first heard it I said "Ugh", but
replication _is_ a hard problem) but as far as client-side caches go,
some day when people have built up libraries, interfaces, and tools
above the subatomic level than is represented by the current DCE, I
expect to find "molecules" that maintain useful caches across the
lifetime of a single client process.  Particle physics is a required,
useful, and entertaining endeavor, but it takes a long time to build a
desk from muons.
--
                -- Nat Mishkin
                   Atria Software, Inc.
                   mishkin@atria.com


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

* Re: [DCE] unexporting/unregistering servers
  1993-09-21  6:18     ` Bjorn Hell Larsen
@ 1993-09-21 15:28       ` Greg Brail
  0 siblings, 0 replies; 25+ messages in thread
From: Greg Brail @ 1993-09-21 15:28 UTC (permalink / raw)


In article <M05751.93Sep21081807@foxtrot.data.st.statoil.no>,
Bjorn Hell Larsen <bjla@statoil.no> wrote:

>A question: Will rpc_server_listen return immidiately after the call to
>rpc_mgmt_stop_server_listening, or will it block for executing RPCs to
>finish first?

It'll wait for the RPCs to finish, or at least that's what the manual says.

>Or, more generally: are there any functions available to query the
>state of active RPC executor threads? Or would I have to build in that
>kind of checking by using global counters and the like?

I don't know of any such functions. Unless you missed something, you'd
have to do it yourself.

>But if you are using insecure RPC, all you get to check for
>authorization is the client binding handle. Which severely limits the
>servers possibilities to ascertain *who* out there made the request to
>stop the server.

This is pretty much the choice you have to make. If you use
authenticated RPCs, you can tell who made the RPC. If you don't, you
can't. No one's forcing your server to accept RPCs from
unauthenticated clients. Unless you want anyone to be able to shut
down your server, don't accept them. It seems to be you're better off
using DCE authentication than rolling your own.

Then again, you could also do RPC authorization by parsing the network
address of the client and comparing it to some list of known networks,
thus only accepting RPC requests from hosts on your local network(s).
This is a kluge, but it's also how quite a few Internet daemons do
their authentication, and might not be a bad idea in some situations.

				greg


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


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

* Re: [DCE] unexporting/unregistering servers
  1993-09-21  6:27       ` Bjorn Hell Larsen
@ 1993-09-21 15:54         ` Rich Salz
  1993-09-21 21:50         ` Thuan Q. Pham
  1 sibling, 0 replies; 25+ messages in thread
From: Rich Salz @ 1993-09-21 15:54 UTC (permalink / raw)


Okay, fine, you disagree and want the namespace to be advisory only.

By *working to* make it definitive you get benefits.
	/r$


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

* Re: [DCE] unexporting/unregistering servers
  1993-09-21  6:27       ` Bjorn Hell Larsen
  1993-09-21 15:54         ` Rich Salz
@ 1993-09-21 21:50         ` Thuan Q. Pham
  1993-09-22  6:49           ` Bjorn Hell Larsen
                             ` (2 more replies)
  1 sibling, 3 replies; 25+ messages in thread
From: Thuan Q. Pham @ 1993-09-21 21:50 UTC (permalink / raw)



>   I tend to think of registering in the CDS as analogous to putting your
>   name on the door of your appartment. By doing so, you claim that this
>   is where you usually hang out; *not* that you can be expected to be in
>   at all times.
>
>   If you decide to spend the night away from home you *don't* remove
>   your nameplate. You assume that folk that come calling will be smart
>   enough to realize that when you don't answer the doorbell this means
>   that you are out, and that they should call again later, or go visit
>   someone else.


Very nice analogy.  On that note, it would be nice to for DCE to have a
very light polling function so that we can know whether a binding is bogus
or not.  It's like we can make a phone call to find out you're not home,
instead of driving/walking over and find out first hand.

Right now, the penalty to pay is waiting a few seconds for the time out to
find out that we can't connect to a server, and that's too much.  The client
application seems very lethargic in its behavior.

The point about replication overhead and server stability is well taken; and
even though it's not the popular doctrine, I like Rich's school of thought that:

   > ... namespace should accurately
   > reflect what is going on.  Inefficiencies should be fixed -- and over
   > time will be, if only by getting better hardware :-).
   > 

Until there is a cheap way to find out bad bindings, it'll be hard for some
client application to pay the penalty for bad bindings, especially when the
server can help out by doing clean exit.  If a server crashes, yeah, we can't do
much about that, but shouldn't it help out by cleaning up if possible?

/Thuan

-------------------------------------------------------------------
Thuan Q. Pham
Hewlett-Packard Laboratories              (415) 857-6818
1501 Page Mill Road                       pham@hpl.hp.com
Palo Alto, Ca 94303



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

* Re: [DCE] unexporting/unregistering servers
  1993-09-21 21:50         ` Thuan Q. Pham
@ 1993-09-22  6:49           ` Bjorn Hell Larsen
  1993-09-23 13:17             ` Nathaniel Mishkin
  1993-09-22 13:53           ` Rich Salz
  1993-09-25 14:35           ` Lee Sailer
  2 siblings, 1 reply; 25+ messages in thread
From: Bjorn Hell Larsen @ 1993-09-22  6:49 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 463 bytes --]

In article <THUAN.93Sep21135042@hpltp.hpl.hp.com> thuan@hpltp.hpl.hp.com (Thuan Q. Pham) writes:
> 
> Right now, the penalty to pay is waiting a few seconds for the time out to
> find out that we can't connect to a server, and that's too much.  The client
> application seems very lethargic in its behavior.
> 

True, if you use datagram (UDP) based RPCs. If you use connection-oriented
(TCP) RPCs, you won't have to wait for the RPC runtime to time out.


Bj�

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

* Re: [DCE] unexporting/unregistering servers
  1993-09-21 21:50         ` Thuan Q. Pham
  1993-09-22  6:49           ` Bjorn Hell Larsen
@ 1993-09-22 13:53           ` Rich Salz
  1993-09-23  6:41             ` Bjorn Hell Larsen
  1993-09-23 13:20             ` Nathaniel Mishkin
  1993-09-25 14:35           ` Lee Sailer
  2 siblings, 2 replies; 25+ messages in thread
From: Rich Salz @ 1993-09-22 13:53 UTC (permalink / raw)


In <THUAN.93Sep21135042@hpltp.hpl.hp.com> thuan@hpltp.hpl.hp.com (Thuan Q. Pham) writes:
> it would be nice to for DCE to have a
>very light polling function so that we can know whether a binding is bogus
>or not.

This is why the analogy fails.  Either you try to make the directory
definitive, or you have to go to the server itself.

Actually, there is a third option.  If rpcd could start and stop services
and keep track of them, then it could know right away, in many cases, if
a server is not available.  We are planning on doing this for DCE 1.1.
	/r$


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

* Re: [DCE] unexporting/unregistering servers
  1993-09-22 13:53           ` Rich Salz
@ 1993-09-23  6:41             ` Bjorn Hell Larsen
  1993-09-23 14:03               ` Rich Salz
  1993-09-23 13:20             ` Nathaniel Mishkin
  1 sibling, 1 reply; 25+ messages in thread
From: Bjorn Hell Larsen @ 1993-09-23  6:41 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 475 bytes --]

In article <27plc3$i8t@paperboy.osf.org> rsalz@osf.org (Rich Salz) writes:
> 
> Actually, there is a third option.  If rpcd could start and stop services
> and keep track of them, then it could know right away, in many cases, if
> a server is not available.  We are planning on doing this for DCE 1.1.
> 	/r$

If I understand you correctly, this would be something like a
inetd for RPC-based services. Right?

If so, great! I've been wishing for something like this.


Bj�

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

* Re: [DCE] unexporting/unregistering servers
  1993-09-22  6:49           ` Bjorn Hell Larsen
@ 1993-09-23 13:17             ` Nathaniel Mishkin
  1993-09-23 18:49               ` Thuan Q. Pham
  0 siblings, 1 reply; 25+ messages in thread
From: Nathaniel Mishkin @ 1993-09-23 13:17 UTC (permalink / raw)


Bjorn Hell Larsen (m05751@foxtrot.data.st.statoil.no) wrote:
: In article <THUAN.93Sep21135042@hpltp.hpl.hp.com> thuan@hpltp.hpl.hp.com (Thuan Q. Pham) writes:
: > Right now, the penalty to pay is waiting a few seconds for the time out to
: > find out that we can't connect to a server, and that's too much.  The client
: > application seems very lethargic in its behavior.
: True, if you use datagram (UDP) based RPCs. If you use connection-oriented
: (TCP) RPCs, you won't have to wait for the RPC runtime to time out.

True except in case the problem is a network outage or the server host
being down and not just that the particular server process on the
server host is not running.  Arguably the latter case (server process
down) is less common in a well-administered environment running
non-buggy servers.  In the former two cases (network outage or server
host down), you'll have to pay a non-trivial timeout to be fairly
confident that you can't get to the server.  (In particular, there's
no reason why this timeout period wouldn't be the same for RPC/TCP and
RPC/UDP since they're both trying to effect the same policy.)
--
                -- Nat Mishkin
                   Atria Software, Inc.
                   mishkin@atria.com


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

* Re: [DCE] unexporting/unregistering servers
  1993-09-22 13:53           ` Rich Salz
  1993-09-23  6:41             ` Bjorn Hell Larsen
@ 1993-09-23 13:20             ` Nathaniel Mishkin
  1993-09-23 18:38               ` Rich Salz
  1 sibling, 1 reply; 25+ messages in thread
From: Nathaniel Mishkin @ 1993-09-23 13:20 UTC (permalink / raw)


Rich Salz (rsalz@osf.org) wrote:
: Actually, there is a third option.  If rpcd could start and stop services
: and keep track of them, then it could know right away, in many cases, if
: a server is not available.  We are planning on doing this for DCE 1.1.

This pre-supposes that the problem most often encountered is that the
server's host is up and reachable but the server process is down.
It's not clear to me that this supposition is correct.  Clearly,
having the rpcd do some server management would be a good thing, but I
suspect it's far from being a panacea.  (Not to mention that once one
looks at the details of how one would make the rpcd start and stop
server process, one realizes how complicated it is to get a reasonable
set of "rules" that will make even a significant fraction of servers
happy.)
--
                -- Nat Mishkin
                   Atria Software, Inc.
                   mishkin@atria.com




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

* Re: [DCE] unexporting/unregistering servers
  1993-09-23  6:41             ` Bjorn Hell Larsen
@ 1993-09-23 14:03               ` Rich Salz
  0 siblings, 0 replies; 25+ messages in thread
From: Rich Salz @ 1993-09-23 14:03 UTC (permalink / raw)


In <M05751.93Sep23084129@foxtrot.data.st.statoil.no> bjla@statoil.no writes:
>If I understand you correctly, this would be something like a
>inetd for RPC-based services. Right?

Yes.  With DCE security.  It will also do things like handle remote
modification of server keytabs, DCE config files, etc.
	/r$


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

* Re: [DCE] unexporting/unregistering servers
  1993-09-23 13:20             ` Nathaniel Mishkin
@ 1993-09-23 18:38               ` Rich Salz
  1993-09-24 14:06                 ` Nathaniel Mishkin
  0 siblings, 1 reply; 25+ messages in thread
From: Rich Salz @ 1993-09-23 18:38 UTC (permalink / raw)


>This pre-supposes that the problem most often encountered is that the
>server's host is up and reachable but the server process is down.
>It's not clear to me that this supposition is correct.

Not 100% correct but certainly in a development environment it is
more correct than not. :-)  Yes you still have the problem of general
host reachability.

To answer someone else's question:  dced will support "auto-start when
you get an operation that would go to this server if it were running."
(The sentence is worded a little funny, but it's accurate with how we've
currently got the thing designed.)

> one realizes how complicated it is to get a reasonable
>set of "rules" that will make even a significant fraction of servers
>happy.

You can probalby solve most of the people with the following capabilities:
    start server at boot time
    start server when directed to do so
    start server when it exits (non-zero)
    start server when you have an operation request it should get

Yes this isn't perfect, but it's more then just a baby-step.
	/r$


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

* Re: [DCE] unexporting/unregistering servers
  1993-09-23 13:17             ` Nathaniel Mishkin
@ 1993-09-23 18:49               ` Thuan Q. Pham
  1993-09-24 14:15                 ` Nathaniel Mishkin
  0 siblings, 1 reply; 25+ messages in thread
From: Thuan Q. Pham @ 1993-09-23 18:49 UTC (permalink / raw)



>   Arguably the latter case (server process
>   down) is less common in a well-administered environment running
>   non-buggy servers.

If all servers in the DCE environment suppose to be stable, does this mean
we shouldn't, and not allowed to have instances of servers that can be
started to support a session of transaction, and then come down when it is
done?  

I'm thinking of this type of scenario because I have a database with
several database client processes (that need to be DCE servers) for groups
of programs (each database-client/DCE-server is started to support a set of
programs that work together on that database context).  They all get
started with the user starts a database session, and all come down when the
user "log out" of the database.  


	USER X			USER Y			USER Z

	DCE clients		DCE clients		DCE clients

	---   ---   ---		---   ---   ---		---   ---   ---
	|A|   |B|   |C|		|A|   |B|   |C|		|A|   |B|   |C|
	---   ---   ---		---   ---   ---		---   ---   ---
	 \     |    /		 \     |    /		 \     |    /
	  \    |   /		  \    |   /		  \    |   /
	 ------------		------------		------------
	 |DCE server|		|DCE server|		|DCE server|
	 | DB Client|		| DB Client|		| DB Client|
	 | session  |		| session  |		| session  |
	 ------------		------------		------------
		\		     |			     /
		 \______________     |     _________________/
				\    |    /
				------------
				| Physical |
				| Database |
				------------



Will DCE be able to address this needs (i.e., servers that don't live
forever, and multiple instances of serves to support multiple sets of
programs) ?  In my case, I need both of the above.

Thanks in advance for any thought on this issue.

/Thuan


-------------------------------------------------------------------
Thuan Q. Pham
Hewlett-Packard Laboratories              (415) 857-6818
1501 Page Mill Road                       pham@hpl.hp.com
Palo Alto, Ca 94303



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

* Re: [DCE] unexporting/unregistering servers
  1993-09-23 18:38               ` Rich Salz
@ 1993-09-24 14:06                 ` Nathaniel Mishkin
  0 siblings, 0 replies; 25+ messages in thread
From: Nathaniel Mishkin @ 1993-09-24 14:06 UTC (permalink / raw)


Rich Salz (rsalz@osf.org) wrote:
: Not 100% correct but certainly in a development environment it is
: more correct than not. :-)  Yes you still have the problem of general
: host reachability.

Right.  I'll just offer a caution against designing a system based on
artifacts of the development environment and not the presumably more
important characteristics of the deployment environment.

: You can probalby solve most of the people with the following capabilities:
:     start server at boot time
:     start server when directed to do so
:     start server when it exits (non-zero)
:     start server when you have an operation request it should get

: Yes this isn't perfect, but it's more then just a baby-step.

I guess where I see things getting sticky is when you want to run more
than one instance of server of a particular sort on a single host.
E.g., one server per distinct client user identity or one server per
distinct "object" (or set of objects) being operated on.  
--
                -- Nat Mishkin
                   Atria Software, Inc.
                   mishkin@atria.com


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

* Re: [DCE] unexporting/unregistering servers
  1993-09-23 18:49               ` Thuan Q. Pham
@ 1993-09-24 14:15                 ` Nathaniel Mishkin
  1993-09-24 15:38                   ` Jon Mauney
  0 siblings, 1 reply; 25+ messages in thread
From: Nathaniel Mishkin @ 1993-09-24 14:15 UTC (permalink / raw)


Thuan Q. Pham (thuan@hpltp.hpl.hp.com) wrote:
: If all servers in the DCE environment suppose to be stable, does this mean
: we shouldn't, and not allowed to have instances of servers that can be
: started to support a session of transaction, and then come down when it is
: done?  

Certainly servers of this sort will be around.  (Note that they also
happen to be ones that fall into the category of servers that are hard
to start automatically via a "dced" tool--how is the tool supposed to
know whether an already-running server instance is supporting the
transaction that the client wants.  Clearly there are ways to make
this work.  My only point is that a simple auto-start facility might
not be as useful as one would wish.)

In any case, I guess I wonder whether it's appropriate to export these
transient servers into the namespace.  I think I can equally well
(perhaps better) imagine a scheme where a "transaction starter" server
is cataloged in the name space and you contact it and it tells you
where the real server you want is.  Or something.  Not everything
needs to be in the namespace.  Application-specific rendezvous schemes
are bound to exist.

--
                -- Nat Mishkin
                   Atria Software, Inc.
                   mishkin@atria.com


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

* Re: [DCE] unexporting/unregistering servers
  1993-09-24 14:15                 ` Nathaniel Mishkin
@ 1993-09-24 15:38                   ` Jon Mauney
  1993-09-26 18:48                     ` Nathaniel Mishkin
  0 siblings, 1 reply; 25+ messages in thread
From: Jon Mauney @ 1993-09-24 15:38 UTC (permalink / raw)


mishkin@atria.com (Nathaniel Mishkin) writes:

>Thuan Q. Pham (thuan@hpltp.hpl.hp.com) wrote:
>: If all servers in the DCE environment suppose to be stable, does this mean
>: we shouldn't, and not allowed to have instances of servers that can be
>: started to support a session of transaction, and then come down when it is
>: done?  

>..., I guess I wonder whether it's appropriate to export these
>transient servers into the namespace.  I think I can equally well
>(perhaps better) imagine a scheme where a "transaction starter" server
>is cataloged in the name space and you contact it and it tells you
>where the real server you want is.  Or something.  Not everything
>needs to be in the namespace.  Application-specific rendezvous schemes
>are bound to exist.

Conversely, I wonder why I should go to the trouble of writing an
application-specific name service when DCE provides CDS already.
Suppose I have a workgroup coordination application in which I
want each user to launch a server whenever they log in, and kill it
whenever they log out.  That creates a fair amount of coming and going
of servers.  If I implement my own rendezvous service I can bypass the
overhead of CDS information propagation, but every connection will
be delayed while the client makes 2 nameserver queries, one to CDS to
find the application-specific server, and then one to that server.
The proper approach in the long run would seem to be to
make CDS reasonably efficient.
-- 
Jon Mauney                   mauney@csc.ncsu.edu
Mauney Computer Consulting   (919)828-8053
	!Forward in all directions!


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

* Re: [DCE] unexporting/unregistering servers
  1993-09-21 21:50         ` Thuan Q. Pham
  1993-09-22  6:49           ` Bjorn Hell Larsen
  1993-09-22 13:53           ` Rich Salz
@ 1993-09-25 14:35           ` Lee Sailer
  2 siblings, 0 replies; 25+ messages in thread
From: Lee Sailer @ 1993-09-25 14:35 UTC (permalink / raw)


Thuan Q. Pham (thuan@hpltp.hpl.hp.com) wrote:
>    > 

> Until there is a cheap way to find out bad bindings, it'll be hard for some
> client application to pay the penalty for bad bindings, especially when the
> server can help out by doing clean exit.  If a server crashes, yeah, we can't do
> much about that, but shouldn't it help out by cleaning up if possible?


   One notion is that "bad binding detection" can be the responsibility of
yet another middle tier process.  Why not a process that has a list of
servers that should be running.  All it does is "ping" them occasionally,
and take some appropriate action for ones that are down.  The appropriate
action could be email to a human, restarting the server, notifying the
clients, writing to some datafile, or whatever.

The ODE toolkit calls this the NetMinder, and while not perfect I think it
looks like such a good idea I wish something similar were standard DCE.
Anybody know why something like it doesn't come standard?



--
lee



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

* Re: [DCE] unexporting/unregistering servers
  1993-09-24 15:38                   ` Jon Mauney
@ 1993-09-26 18:48                     ` Nathaniel Mishkin
  0 siblings, 0 replies; 25+ messages in thread
From: Nathaniel Mishkin @ 1993-09-26 18:48 UTC (permalink / raw)


Jon Mauney (mauney@csljon.csl.ncsu.edu) wrote:
: Conversely, I wonder why I should go to the trouble of writing an
: application-specific name service when DCE provides CDS already.

To the extent that the characteristics of your server(s) differ from
those that the CDS is designed to support, you'll want to (or need to)
go to the trouble.  I suspect the CDS will never be able to be all
things to all servers.  While that doesn't mean that it won't become
more things to more servers, some rendezvous techniques will have to
be implemented in application specific ways.
--
                -- Nat Mishkin
                   Atria Software, Inc.
                   mishkin@atria.com


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

end of thread, other threads:[~1993-09-26 18:48 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-09-17 19:58 [DCE] unexporting/unregistering servers Scott Cooper
1993-09-17 23:12 ` Thuan Q. Pham
1993-09-18  0:59   ` Nathaniel Mishkin
1993-09-19 15:30     ` Lee Sailer
1993-09-20 16:25     ` Rich Salz
1993-09-21  6:27       ` Bjorn Hell Larsen
1993-09-21 15:54         ` Rich Salz
1993-09-21 21:50         ` Thuan Q. Pham
1993-09-22  6:49           ` Bjorn Hell Larsen
1993-09-23 13:17             ` Nathaniel Mishkin
1993-09-23 18:49               ` Thuan Q. Pham
1993-09-24 14:15                 ` Nathaniel Mishkin
1993-09-24 15:38                   ` Jon Mauney
1993-09-26 18:48                     ` Nathaniel Mishkin
1993-09-22 13:53           ` Rich Salz
1993-09-23  6:41             ` Bjorn Hell Larsen
1993-09-23 14:03               ` Rich Salz
1993-09-23 13:20             ` Nathaniel Mishkin
1993-09-23 18:38               ` Rich Salz
1993-09-24 14:06                 ` Nathaniel Mishkin
1993-09-25 14:35           ` Lee Sailer
1993-09-21 12:25       ` Nathaniel Mishkin
1993-09-20 16:00   ` Greg Brail
1993-09-21  6:18     ` Bjorn Hell Larsen
1993-09-21 15:28       ` Greg Brail

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