Archived

This forum has been archived. Please start a new discussion on GitHub.

Could Ice support load balance against with per request?

Incurrently ICE supports load balance against with per connection, which is good for statusfull request. But sometimes the request is designed with statusless, load balance against with per request is best for this circumstances.
I suggest ice to develop this function.

Comments

  • benoit
    benoit Rennes, France
    Hi,

    This is already supported. You need to disable connection caching to allow a proxy to use different connections. See Connection Caching in the Ice manual for more information.

    For an example, see the IceGrid replication demo from the demo/IceGrid directory of your Ice demo distribution.

    Cheers,
    Benoit.
  • benoit wrote: »
    Hi,

    This is already supported. You need to disable connection caching to allow a proxy to use different connections. See Connection Caching in the Ice manual for more information.

    For an example, see the IceGrid replication demo from the demo/IceGrid directory of your Ice demo distribution.

    Cheers,
    Benoit.

    I just noticed that the connection must be re-established before each request, which is expensive. How to avoid the re-establish the connection?
  • benoit
    benoit Rennes, France
    Hi,

    The connection is not re-established for each request. If you run your client with the property Ice.Trace.Network=1 set, you will see that the connections to the servers are established once and reused for each request.

    See the connection establishment section in the Ice manual for more information on how connection reuse works.

    Cheers,
    Benoit.