[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mico-devel
Subject:    MICO: Naming service that does load balancing
From:       "Hann Wei Toh" <hannwei () computer ! org>
Date:       2000-04-23 10:17:59
[Download RAW message or body]


Hi,

I did some modifications to the MICO naming service to add some load
balancing capability.  The modified source code is attached to this mail.

Basically, the existing CORBA naming service interfaces are not changed.  The
modified naming service enables server objects to be grouped together based
on the kind field of the last name component.  For example, if two server
objects are named "LaserA.printer" and "LaserB.printer" respectively, and
they are registered in the same naming context, then they are considered to
be in the same group.  A client that tries to resolve a name component with
the kind field containing "printer" within that naming context will get the
IOR of one of the server objects in the group.  The id field in the name
component is ignored, so the client can use any value for that field.  Only
the id field of the last name component within a name is ignored.  This means
only the last name component within a name passed to resolve () is used for
load balancing purposes.

The modified naming service currently uses a round-robin approach to choose
the IOR to return during resolve ().

The modifications does not change the naming service database format.  So,
the modified and the original nsd's should be interchangeable.

unbind() may not work correctly at the moment, as I have not learnt
sufficient STL stuff to do a more efficient implementation.


Best wishes.

Hann Wei


["naming.loadbalance.tar.gz" (application/octet-stream)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic