首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Oracle一致性缓存聚类

Oracle一致性缓存聚类
EN

Stack Overflow用户
提问于 2018-01-20 06:41:14
回答 1查看 827关注 0票数 1

我们有两个使用两个不同版本的嵌入式一致性缓存的web应用程序:

  • 具有一致性的应用程序1 3.7.1 (在Weblogic 12.1.2的JDK7环境中运行)
  • 具有一致性的应用程序2 12.2.1 (在Weblogic 12.2.1的JDK8环境中运行)

每个应用程序部署在不同的weblogic服务器中。我们尝试了tangosol-override.xml,为这个应用程序的集群缓存配置如下:

应用程序1配置:

代码语言:javascript
复制
<?xml version='1.0'?>
<coherence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns="http://xmlns.oracle.com/coherence/coherence-operational-config"
   xsi:schemaLocation="http://xmlns.oracle.com/coherence/coherence-operational-config coherence-operational-config.xsd">
   <cluster-config>
      <unicast-listener>
            <well-known-addresses>
                <socket-address id="1">
                    <address>10.7.17.31</address>
                    <port>8088</port>
                </socket-address>
                <socket-address id="2">
                    <address>10.7.17.31</address>
                    <port>9099</port>
                </socket-address>
            </well-known-addresses>
            <address system-property="tangosol.coherence.localhost">localhost</address>
            <port system-property="tangosol.coherence.localport">8088</port>
            <port-auto-adjust system-property="tangosol.coherence.localport.adjust">true</port-auto-adjust>
      </unicast-listener>    
   </cluster-config>
  <license-config>
    <edition-name system-property="tangosol.coherence.edition">GE</edition-name>
    <license-mode system-property="tangosol.coherence.mode">prod</license-mode>
  </license-config>
</coherence>

应用程序2配置:

代码语言:javascript
复制
<?xml version='1.0'?>
<coherence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns="http://xmlns.oracle.com/coherence/coherence-operational-config"
   xsi:schemaLocation="http://xmlns.oracle.com/coherence/coherence-operational-config coherence-operational-config.xsd">
   <cluster-config>
      <unicast-listener>
            <well-known-addresses>
                <socket-address id="1">
                    <address>10.7.17.31</address>
                    <port>8088</port>
                </socket-address>
                <socket-address id="2">
                    <address>10.7.17.31</address>
                    <port>9099</port>
                </socket-address>
            </well-known-addresses>
            <address system-property="tangosol.coherence.localhost">localhost</address>
            <port system-property="tangosol.coherence.localport">9099</port>
            <port-auto-adjust system-property="tangosol.coherence.localport.adjust">true</port-auto-adjust>
      </unicast-listener>    
   </cluster-config>
  <license-config>
    <edition-name system-property="tangosol.coherence.edition">GE</edition-name>
    <license-mode system-property="tangosol.coherence.mode">prod</license-mode>
  </license-config>
</coherence>

但是,无法从其他应用程序访问所有缓存。有什么问题吗?

EN

回答 1

Stack Overflow用户

发布于 2018-01-20 08:01:52

经过一些研究,下面的解决方案对我来说是可行的。我在两个Weblogic服务器的启动脚本中设置了tangosol-override.xml,并删除了与一致性缓存(-Dtangosol.coherence.override=C:\root\tangosol-coherence-override.xml).相关的其他参数。

tangosol-coherence-override.xml配置文件:

代码语言:javascript
复制
<?xml version='1.0'?>
<coherence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns="http://xmlns.oracle.com/coherence/coherence-operational-config"
   xsi:schemaLocation="http://xmlns.oracle.com/coherence/coherence-operational-config coherence-operational-config.xsd">
   <cluster-config>
      <member-identity>
      <cluster-name>appclustername</cluster-name>
    </member-identity>
    <multicast-listener>
      <address>224.1.1.1</address>
      <port>12345</port>
    </multicast-listener>
   </cluster-config>
  <license-config>
    <edition-name system-property="tangosol.coherence.edition">GE</edition-name>
    <license-mode system-property="tangosol.coherence.mode">prod</license-mode>
  </license-config>
</coherence>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48353405

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档