Home Help Center

About the load-balance's type ordered

ggslayerggslayer Member MingYi ZhangOrganization: renren.comProject: renren data platform
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.



Comments

  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    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:
    Cheers,
    Benoit.
  • ggslayerggslayer Member MingYi ZhangOrganization: renren.comProject: renren data platform
    I got it, Thank you!
Sign In or Register to comment.