Go Back   ZeroC Forums > Comments

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 12-01-2005
ganzuoni ganzuoni is offline
Registered User
 
Name: Guido Anzuoni
Organization: Individual
Project: No specific project
 
Join Date: Jun 2003
Location: Italy
Posts: 46
About load balancing

I have read with a lot of interest the docs about new IceGrid features,
that, as usual, are really great !!
But checking (Java, easier for me ) source code to see what happens
on the client side, it seems that endpoints retrieved by locator are
always cached at Communicator level.
This means that on a middle tier, acting as multiple concurrent clients,
all the invocations should go to the same server.
In a usage patter like the following, for each request processed on the
middle tier (e.g. a servlet):
......
// select target server identity
ObjectPrx prx = communicator.stringToProxy(id);
//invoke operation on proxy
....

The endpoints attached to the Reference used by proxy prx will
never change because of the cache.
Am I wrong ?
Maybe there should be a way to trigger locator.findObjectById()
each time a proxy construction is requested, so that load balancing
strategies can take place.


Guido
__________________
Guido Anzuoni
Company: Individual
(http://www.objectmagic.org)
No specific project
Reply With Quote
  #2 (permalink)  
Old 12-01-2005
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
Please see this post regarding our support policy here in these forums:

Important note: Change in support policy
Reply With Quote
  #3 (permalink)  
Old 12-07-2005
ganzuoni ganzuoni is offline
Registered User
 
Name: Guido Anzuoni
Organization: Individual
Project: No specific project
 
Join Date: Jun 2003
Location: Italy
Posts: 46
Quote:
Originally Posted by marc
Please see this post regarding our support policy here in these forums:

Important note: Change in support policy
OK, done.
I have read latest Connections' article on IceGrid (and the editorial, great as
usual !!!), but I stll wonder if load balancing is in effect if,
in the same client, multiple threads invoke operations on a balanced server.

Guido.
__________________
Guido Anzuoni
Company: Individual
(http://www.objectmagic.org)
No specific project
Reply With Quote
  #4 (permalink)  
Old 12-07-2005
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,535
You're right. Once the endpoints for an indirect proxy are cached, the Ice runtime will always use these endpoints for invocations on the proxy and it won't contact again the location service unless the endpoints become invalid (the connection can't be established anymore). Improving this is on our TODO list (we plan to add some configuration to allow to configure the lifetime of the locator cache entries). If you have a commercial need for this feature, we could move this at the top of our TODO list, please contact us at info@zeroc.com if that's the case!

Benoit.
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
Load Balancing with IceStorm zhi Help Center 8 01-09-2007 12:18 PM
question about load-balancing canyoudink Help Center 5 10-20-2006 06:43 AM
load balancing and routing suroot Help Center 1 05-12-2005 06:18 AM
about IcePack & load balancing Binary Help Center 10 09-20-2004 11:15 PM
Load Balancing ganzuoni Help Center 8 06-20-2003 07:07 PM


All times are GMT -4. The time now is 08:36 PM.


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.