Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 03-07-2008
aozarov aozarov is offline
Registered User
 
Name: Arie Ozarov
Organization: hi5 Networks
Project: SOA
 
Join Date: Mar 2008
Posts: 39
Preference for local/Collocated services.

When using IceGrid (with period registry lookup refresh and random connection selection strategy) will collocated services still get preference?
Is there a way that regardless the connection caching/pickup strategy collecated services will always get a preference?
Reply With Quote
  #2 (permalink)  
Old 03-10-2008
aozarov aozarov is offline
Registered User
 
Name: Arie Ozarov
Organization: hi5 Networks
Project: SOA
 
Join Date: Mar 2008
Posts: 39
Please let me know if my question was not clear.
Also, I wonder if it is possible (and are there any examples) of setting a combined Connection selection strategy such as weighted random based on load (or at least Random but don't consider heavy loaded machines unless this is the only ones available).
Thx.
Reply With Quote
  #3 (permalink)  
Old 03-10-2008
benoit's Avatar
benoit benoit is online now
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,541
Hi,

Yes, if possible and not disabled, collocation optimization will always be used in preference.

We don't provide such a random weighted load balancing policy. See here in the Ice manual for more information on the load balancing policies supported by IceGrid.

Cheers,
Benoit.
Reply With Quote
  #4 (permalink)  
Old 03-10-2008
benoit's Avatar
benoit benoit is online now
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,541
Btw, I assume that by "collocated service" you meant a service which is running within the same process and using the same Ice communicator as the client (otherwise collocation optimization can't be used, see here for more information on collocation optimization).

If by collocated service, you meant a service which is running on the same host but in a different process or within the same process but using a different Ice communicator, then the answer is no, IceGrid won't return in preference the endpoints of this local service.

Cheers,
Benoit.
Reply With Quote
  #5 (permalink)  
Old 03-10-2008
aozarov aozarov is offline
Registered User
 
Name: Arie Ozarov
Organization: hi5 Networks
Project: SOA
 
Join Date: Mar 2008
Posts: 39
Yes, this is what I meant by Collocated Services (though it would be nice to consider and have a preference for services on the same process or machine).
Ok, it is good to know that what ever Connection caching and selection strategy on the client (like no Cache and Random selection) a preference will be given to services using the same Communicator (I assume that is true as long as the Registry considers and provides its end points?).
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Glacier2 with other local servers bigtim Help Center 6 10-05-2007 01:17 PM
Local interface mwilson Help Center 3 01-10-2007 12:22 PM
local exception / C++ daniell Bug Reports 7 11-08-2005 01:56 PM
A question about collocated invocations. OrNot Help Center 4 06-17-2005 12:08 PM
Sincronithing services xdm Help Center 4 01-16-2004 02:59 PM


All times are GMT -4. The time now is 09:04 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.