Archived
This forum has been archived. Please start a new discussion on GitHub.
About the load-balance's type ordered
Hi, I am using the load balance in IceGrid, And I want to implement the master-slave pattern in my business module.
I found the ordered type in replica-group, I want to know the detail behaviour in below scene:
Two adapter deployed with prior 1 and 2, defined here as adapter1 and adapter2.
First get the adapter1's endpoint when client request,
After that, server contain adapter1 down, then get the adapter2's endpoint when client request, Until now, everything is ok.
But if adapter1's server restart, client's request will get adapter1 or 2's endpoint?
I want to know that how to do a master-slave pattern busi module in Ice.
I found the ordered type in replica-group, I want to know the detail behaviour in below scene:
Two adapter deployed with prior 1 and 2, defined here as adapter1 and adapter2.
First get the adapter1's endpoint when client request,
After that, server contain adapter1 down, then get the adapter2's endpoint when client request, Until now, everything is ok.
But if adapter1's server restart, client's request will get adapter1 or 2's endpoint?
I want to know that how to do a master-slave pattern busi module in Ice.
0
Comments
-
Hi,
With the default configuration, your client will most likely continue to use adapter #2. There are two main reasons:- until the Ice connection to adapter #2 is opened, the client will continue using this connection
- the client caches the endpoints for the replica group, until this cache entry gets invalidated it won't notice adapter #1 is back
See the following chapters in the Ice manual for more information on this:- https://doc.zeroc.com/display/Ice36/Connection+Management
- https://doc.zeroc.com/display/Ice36/Locator+Semantics+for+Clients
Cheers,
Benoit.0 -
I got it, Thank you!0