相干聚类配置 [英] Coherence clustering configuration
问题描述
我是oracle一致性的新手,并尝试使用POC将一致性用作我们应用程序的分布式缓存.这是在我的开发环境中,我正在尝试使用两个具有一致性客户端实例的集群设置.
我所做的更改是创建tangosol_coherence_override.xml
和coherence-cache-config.xml
下面是详细信息.
I am new to oracle coherence and trying out a POC to use coherence as a distributed cache for our application. This is in my dev environment, I am trying to have a clustered setup with two coherence client instances.
The changes I did was to create tangosol_coherence_override.xml
and coherence-cache-config.xml
Below are the details present.
根据用户指南中的建议,当我启动一个默认高速缓存服务器实例和两个一致性实例时,它们没有聚集在一起,因此在控制台上对一个一致性所做的更改不会反映在另一个实例上.
As suggested in the user guide when i start one instance of default cache server and two instances of coherence, they are not clustered, changes made on console on one coherence does not reflect on the other.
我所做的更改是设置单播地址和端口,配置集群名称和端口. 任何指针或样本配置文件都会有所帮助. 我的机器ip-10.209.14.17
The changes I did was to set a unicast address and port, configure the cluster name and port. Any pointers or sample configuration files would help. My machine ip - 10.209.14.17
tangosol_coherence_override.xml
<?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 system-property="tangosol.coherence.cluster">GR</cluster-name>
</member-identity>
<unicast-listener>
<address system-property="tangosol.coherence.localhost">10.209.14.17
</address>
<port system-property="tangosol.coherence.localport">8090</port>
<port-auto-adjust system-property="tangosol.coherence.localport.adjust">
true
</port-auto-adjust>
</unicast-listener>
<multicast-listener>
<address>224.3.7.0</address>
<port>4280</port>
<time-to-live>0</time-to-live>
</multicast-listener>
</cluster-config>
<configurable-cache-factory-config>
<init-params>
<init-param>
<param-type>java.lang.String</param-type>
<param-value system-property="tangosol.coherence.cacheconfig">
coherence-cache-config.xml</param-value>
</init-param>
</init-params>
</configurable-cache-factory-config>
</coherence>
coherence-cache-config.xml
<?xml version="1.0"?>
<cache-config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://xmlns.oracle.com/coherence/coherence-cache-config"
xsi:schemaLocation="http://xmlns.oracle.com/coherence/coherence-cache-config
coherence-cache-config.xsd">
<caching-scheme-mapping>
<cache-mapping>
<cache-name>voCache</cache-name>
<scheme-name>distributed</scheme-name>
</cache-mapping>
</caching-scheme-mapping>
<caching-schemes>
<distributed-scheme>
<scheme-name>distributed</scheme-name>
<service-name>DistributedCache</service-name>
<backing-map-scheme>
<local-scheme/>
</backing-map-scheme>
<autostart>true</autostart>
</distributed-scheme>
</caching-schemes>
</cache-config>
推荐答案
按照文档进行Coherence多播测试: http://docs.oracle.com/cd/E18686_01/coh .37/e18679/tune_multigramtest.htm
Perform a Coherence multicast test as per the documentation: http://docs.oracle.com/cd/E18686_01/coh.37/e18679/tune_multigramtest.htm
如果禁用了多播,请使用WKA: http://docs.oracle.com/cd/E18686_01/coh.37/e18677/cluster_setup.htm#CEGEADBE
If multicast is disabled, use WKA: http://docs.oracle.com/cd/E18686_01/coh.37/e18677/cluster_setup.htm#CEGEADBE
这篇关于相干聚类配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!