Results 1 to 2 of 2

Thread: Find object on least loaded node with threshold

  1. #1
    apwd is offline Registered User
    Name: Cory Thomas
    Organization: Altep, Inc.
    Project: Distributed job processing
    Join Date
    Oct 2008
    Posts
    9

    Find object on least loaded node with threshold

    Is it currently possible to find an object by type on the least loaded node, but only if the load is under a certain threshold? The only way I can see to accomplish this is to write my own locator implementation, unless there is a way to determine the name of the node that an object proxy is running on.

    Any info is appreciated.

    BTW, Ice is a really great system. I have been enjoying it immensely.

  2. #2
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi,

    No, there's no way to specify a threshold, you can only retrieve an object by type on the least loaded node.

    You could figure out the node which host the object's server using the adapter ID from the proxy returned by one of the findObject method of the IceGrid::Query interface. However, this requires to create an administrative session to retrieve the deployment information of your application (to then lookup for the adapter ID).

    Another possibility would be to embed the node name in the adapter ID by explicitly specifying the adapter IDs in your deployment descriptors (using the "id" attribute of the <adapter> element) but doing this might not be a good idea if you want to relocate a given server on another node at some point.

    Cheers,
    Benoit.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. why can't I find my registed object?
    By cnhome in forum Help Center
    Replies: 1
    Last Post: 02-11-2011, 10:47 PM
  2. Find object in object adapter by its proxy
    By dnnbg in forum Help Center
    Replies: 2
    Last Post: 02-25-2009, 04:09 AM
  3. How to find an adapter and add object to it?
    By Jiangyubao in forum Help Center
    Replies: 0
    Last Post: 05-20-2008, 11:14 PM
  4. How to add an object to node by using AdminPrx?
    By Jiangyubao in forum Help Center
    Replies: 0
    Last Post: 05-09-2008, 05:33 AM
  5. Replies: 3
    Last Post: 05-02-2007, 09:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •