【发布时间】:2019-12-12 14:48:27
【问题描述】:
我有一个在 oracle weblogic 服务器上运行的 J2EE webapp,并使用 oracle coherence 缓存。有一些 springboot 微服务并行运行并利用一致性。通过VPN连接网络时,springboot应用加入coherence集群失败。不使用 VPN 时也能正常工作。
我尝试了以下问题中提供的解决方案,但到目前为止没有成功。
Not able to connect coherence cluster from web application
操作覆盖xml:
<cluster-config>
<member-identity>
<cluster-name system-property="tangosol.coherence.cluster">XXXXXX</cluster-name>
</member-identity>
<unicast-listener>
<socket-provider system-property="tangosol.coherence.socketprovider"/>
<reliable-transport system-property="tangosol.coherence.transport.reliable"/>
<well-known-addresses>
<socket-address id="1">
<address system-property="tangosol.coherence.wka">localhost</address>
<port system-property="tangosol.coherence.wka.port">10000</port>
</socket-address>
</well-known-addresses>
<address system-property="tangosol.coherence.localhost">localhost</address>
<port system-property="tangosol.coherence.localport">10000</port>
<port-auto-adjust system-property="tangosol.coherence.localport.adjust">true</port-auto-adjust>
<priority>10</priority>
</unicast-listener>
<multicast-listener>
<time-to-live system-property="tangosol.coherence.ttl">4</time-to-live>
<join-timeout-milliseconds>3000</join-timeout-milliseconds>
</multicast-listener>
</cluster-config>
<configurable-cache-factory-config>
.......
</configurable-cache-factory-config>>
在控制台中打印以下消息。
2019-08-05 10:15:15.616/24.238 Oracle Coherence GE 12.1.3.0.0(线程=localhost-startStop-1,成员=n/a):使用 SystemDatagramSocketProvider 绑定到 /192.168.1.101:10002 的 TCMP 2019-08-05 10:15:46.542/55.164 Oracle Coherence GE 12.1.3.0.0 (thread=Cluster, member=n/a): This Member(Id=0, Timestamp=2019-08-05 10:15: 15.65, Address=XXX.XXX.X.XXX:10002, MachineId=34270, Location=site:,machine:XXXXXXX,process:34700, Role=XXXXXX) 一直在尝试使用WKA列表加入集群[/XXX.XXX .X.XXX:10000] 30 秒没有成功;这可能表示 WKA 配置错误,或者可能只是集群繁忙或活动故障转移的结果。 2019-08-05 10:15:46.542/55.164 Oracle Coherence GE 12.1.3.0.0 (thread=Cluster, member=n/a):延迟新集群的形成;等待知名节点响应
在寻找解决方案时突然出现的事实是 localhost 在通过 VPN 连接时无法解析。如果是这种情况,我不明白为什么 webapp (http://localhost:7001) 在浏览器中加载时没有任何问题。请帮忙。谢谢。
【问题讨论】:
标签: java oracle spring-boot oracle-coherence