weixin_39603217
2020-12-09 10:47 阅读 2

RMI-IIOP load balancing

We are looking for RMI/IIOP loadbalancing in glassfish v2.1 or 2.1.1

The tomcat in the web-tier makes a RMI/IIOP calls to glassfish in business tier.

In tomcat, we used the following JVM option,

-Dcom.sun.appserv.iiop.endpoints=node1:port,node2:port

But it looks like the request always goes to node 1 (unless it fails)

Can you please let us know if we can load balance the request among all the cluster members?

Environment

Operating System: All Platform: All

Affected Versions

[v2.1.1]

该提问来源于开源项目:eclipse-ee4j/glassfish

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

6条回答 默认 最新

  • weixin_39603217 weixin_39603217 2020-12-09 10:47
    • Issue Imported From: https://github.com/javaee/glassfish/issues/12145
    • Original Issue Raised By:
    • Original Issue Assigned To:
    • Original Issue Closed By:
    点赞 评论 复制链接分享
  • weixin_39603217 weixin_39603217 2020-12-09 10:47

    Commented kcavanaugh said: Are you making a single call to new InitialContext() in the client? If so, the feature is working as intended. Essentially each call to new InitialContext() creates what amounts to a session, and all RMI-IIOP calls to object references obtained (recursively) from the initial context go to the same endpoint, unless there is a failure, in which case all further requests failover to another endpoint. In the failure case, all requests will in fact go to the same endpoint.

    RMI-IIOP load balancing is intended to handle load balancing of many different clients at the server, not of many requests coming from a single client.

    If I have misunderstood your scenario, please supply more details and re-open this issue.

    点赞 评论 复制链接分享
  • weixin_39603217 weixin_39603217 2020-12-09 10:47

    Commented Was assigned to kcavanaugh

    点赞 评论 复制链接分享
  • weixin_39603217 weixin_39603217 2020-12-09 10:47

    Commented This issue was imported from java.net JIRA GLASSFISH-12145

    点赞 评论 复制链接分享
  • weixin_39603217 weixin_39603217 2020-12-09 10:47

    Commented Reported by ganeshams

    点赞 评论 复制链接分享
  • weixin_39603217 weixin_39603217 2020-12-09 10:47

    Commented Marked as incomplete on Tuesday, August 3rd 2010, 8:07:28 am

    点赞 评论 复制链接分享

相关推荐