我使用两个jvm中的两个点燃缓存节点运行一个示例。每个jvm运行一个点燃节点。节点映射到同一个缓存。
ignite-config.xml
<bean class="org.apache.ignite.configuration.IgniteConfiguration">
...
<property name="cacheConfiguration">
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<!-- Set a cache name. -->
<property name="name" value="cacheName"/>
<!-- Set cache mode. -->
<property name="cacheMode" value="PARTITIONED"/>
<!-- Number of backup nodes. -->
<property name="backups" value="1"/>
...
</bean>
</property>
</bean>
测试步骤:
结果:备份节点没有像我expect.why一样拥有10块?
发布于 2016-08-19 15:11:01
我不知道为什么ignitevisorcmd.sh要报告钥匙丢失了。我建议直接查看缓存,在您结束节点之后查询它。或者,正如Valentin所建议的,您可以尝试IgniteCache.size()
https://stackoverflow.com/questions/39010589
复制相似问题