【问题标题】:How do I configure 2 endpoints in infinispan11如何在 infinispan11 中配置 2 个端点
【发布时间】:2021-01-29 23:29:09
【问题描述】:

client1> infinispan 11(192...)

client2> NAT IP> infinispan hotrod(192...)

client2 错误!!

之前的版本设置了两个endpoint,client2的endpoint设置了external-host=NAT IP,每个socket-bind单独使用。

在 infinispan 11 中,我想拆分 socket-bind 并设置 endpint。

谢谢。

【问题讨论】:

  • 您在 client2 中遇到什么错误?当您说external-host=NAT IP 时,您是指hotrod-connector 中的属性吗? <hotrod-connector name="hotrod" external-host="NAT IP" />
  • 谢谢。 1. (11222 端口) 2. (11322 端口) 套接字绑定属性不起作用。 xml解析错误

标签: endpoint infinispan


【解决方案1】:
      <socket-bindings default-interface="public" port-offset="${infinispan.socket.binding.port-offset:0}">
         <socket-binding name="default" port="${infinispan.bind.port:11222}"/>
         <socket-binding name="default-nat" port="${infinispan.bind.port:11322}"/>
...
...
      <endpoints socket-binding="default" security-realm="default">
         <hotrod-connector name="hotrod" external-host="192...IP">
..
..
      <endpoints socket-binding="default-nat" security-realm="default">
         <hotrod-connector name="hotrod" external-host="NAT IP">

解析错误

谢谢。

【讨论】:

    【解决方案2】:

    我想我现在明白了你的问题。 Infinispan 11 中不可能有多个端点。它将在 Infinispan 12 (See JIRA) 中可用。

    目前,两个客户端都必须使用 NAT 或 192.x.x.x IP。

    【讨论】:

      【解决方案3】:

      从 Infinispan 10.1 开始,我们支持绑定到所有接口:https://issues.redhat.com/browse/ISPN-10730 因此,您可以使用server.sh -b 0.0.0.0,客户端将根据传入接口获得正确的拓扑。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多