Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 06-28-2007
bambuk bambuk is offline
Registered User
 
Name: Alex Stovboun
Organization: UBS AG
Project: Financial applications
 
Join Date: Jun 2007
Posts: 6
Grid and connections

Two question on grid environment:

1. Say an ice object is provided by an adapter member of a replica group. In my client I have a proxy to this object. The server that the proxy was connected to goes down. Will the proxy automatically obtain another connection to another adapter in the replica group?

2. ACM closed proxy's connection due to period of inactivity. When activity resumes, will the proxy be reconnected to the same adapter in the replica group?

Last edited by bambuk : 06-28-2007 at 12:15 PM.
Reply With Quote
  #2 (permalink)  
Old 06-28-2007
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,543
Quote:
Originally Posted by bambuk View Post
Two question on grid environment:

1. Say an ice object is provided by an adapter member of a replica group. In my client I have a proxy to this object. The server that the proxy was connected to goes down. Will the proxy automatically obtain another connection to another adapter in the replica group?
Yes. Note however that if the server crashes while the client is invoking on the proxy to your replicated object, the invocation might not be automatically retried if the method is not idempotent (to not break at-most-once semantics).

Quote:
2. ACM closed proxy's connection due to period of inactivity. When activity resumes, will the proxy be reconnected to the same adapter in the replica group?
It depends on the endpoints for the proxy which are cached by the Ice runtime once retrieved from the locator. If only one endpoint is retrieved by the Ice runtime from the locator then the Ice runtime will re-connect to this endpoint and therefore to the same adapter in the replica group.

However, if multiple endpoints were returned for the replica group, the Ice runtime might connect to another adapter from the replica group. You can configure how many endpoints are returned for a replica group with the "n-replicas" attribute of the replica group load balancing descriptor, see here for more information.

Note also that the cached endpoints might expire if you use a proxy configured with ice_locatorCacheTimeout. In this case, new endpoints might be retrieved from the locator and your client might therefore connect to another replica if it needs to establish a new connection.

Let me know if you need more information!

Cheers,
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
Slow grid start - node seems to be unreachable Wilko Help Center 21 03-07-2008 06:11 PM
About Usage of freeze in ICE Grid Application AravindBabu Help Center 4 12-05-2006 08:54 AM
Using ice grid for cold standby Vivien Delage Help Center 4 11-20-2006 08:50 AM
IceStorm with Ice Grid bigtim Help Center 5 02-20-2006 05:20 AM
Ice and Grid computing nsns Comments 3 04-19-2005 08:24 AM


All times are GMT -4. The time now is 11:46 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.