[omniORB] Re: How to use NamingService with load-balancing?
Jian Deng
jdeng@kcco.com
Wed, 06 Dec 2000 10:16:11 -0600
> On Fri, 1 Dec 2000 16:12:18 +0100 (MET), DMiller@ngco.com wrote:
> >Start the 3 servers with different id's, i.e. server1, server2, and server3
> >but all with the same kind, i.e. server. The client will bind to the server
> >using the kind, server, and leave the id blank.
>
> When the naming service daemon is launched when the "--lb round_robin"
> option, it selects in a round-robin fashion an object reference to return in
> response to a resolve() request. The object references considered in the
> process of selection are those registered with the naming context which the
> resolve() request is targeted at. For example, if a client tries to resolve
> a name with id "server1" and kind "server", then object references in the
> target naming context that have the kind "server" are considered in the
> process of selection. Each such object reference has to be associated with a
> different id but the same kind (that is, the server objects concerned have to
> be bound to names with different id's but same kind's). If the naming
> service daemon is launched without the "--lb round_robin" or "--lb random"
> option, the client will obviously get the reference that is associated with
> the name with id "server1" and kind "server" only, which is the behavior of a
> normal naming service.
>
> When the naming service daemon is run in the load-balanced mode, the id given
> by the client is ignored, and only the kind is used, by the naming service
> during a resolve() operation.
>
> >-----Original Message-----
> >From: Uwe Maurer [mailto:um@web.de]
> >Sent: 01 December, 2000 5:49 AM
> >To: Multiple recipients of list
> >Subject: How to use NamingService with load-balancing?
> >
> >
> >Can anyone give me some hints about using the load-balancing features of
> >MICO 2.3.3 nsd? I noticed the --lb parameter for nsd.
> >
> >Let's say if I want if I want to use three server processes and a
> >round_robin like scheduling. How should the three clients register in the
> >NamingService? I guess they can't just use the bind() method three times,
> >because I would get an AlreadyBound exception.
>
Hi -
The above is from MICO user group. Do we have the same provision (for load
balanceing) in OmniOrb?
Thanks,
- Jian Deng