Archived
This forum has been archived. Please start a new discussion on GitHub.
Discovery of adapter on new node
Assume, our application is deployed on three icegrid nodes and the client application gets a proxy using AdapterReplica and starts sending requess to the application.
Now, if we add a fourth node and update the application to this node, will this fourth node be immediately visible to the client through the proxy? If not when will this node be visible to the client?
Now, if we add a fourth node and update the application to this node, will this fourth node be immediately visible to the client through the proxy? If not when will this node be visible to the client?
0
Comments
-
Hi Jeevaraj,
This depends on the configuration of the proxy used by your client.
With the default configuration, the proxy will be bound (connected) to just one replica, and will keep using this replica forever - until the connection is closed, for example, because the replica is shut down.
In order to rebind this proxy to another replica, you should disable connection caching:
http://www.zeroc.com/doc/Ice-3.4.1/manual/Connections.37.3.html#76776
You also need to set the locator cache timeout of your client to ensure that the client runtime will ask IceGrid for the current endpoints of a replicated adapter at regular intervals. See Ice.Default.LocatorCacheTimeout at:
http://www.zeroc.com/doc/Ice-3.4.1/manual/PropRef.50.8.html
For more information on proxies and connections, I highly recommend reading the corresponding articles in http://www.zeroc.com/newsletter/issue23.pdf and http://www.zeroc.com/newsletter/issue24.pdf.
Best regards,
Bernard0