-
1. Re: Cluster startup with Partition
ryanemerson Oct 23, 2017 8:25 AM (in response to justcono)Hi! Partition handling does not affect the availability of a cache on startup if num owners don't exist. Instead, you should use the transport property "initial-cluster-size" to ensure that your cache does not become available until at least "initial-cluster-size" nodes exist within your cluster. e.g:
<distributed-cache name="default" mode="ASYNC" segments="20" owners="2" remote-timeout="30000" start="EAGER">
<transport initial-cluster-size="2"/>
<locking acquire-timeout="30000" concurrency-level="1000" striping="false"/>
<transaction mode="NONE"/>
<backups>
<backup site="PROD1" strategy="ASYNC" failure-policy="WARN" enabled="true" />
</backups>
<partition-handling enabled="true"/>
</distributed-cache>
I also spun up 6 nodes (3 per site with cross replication). I would put a cache entry then gracefully shutdown a single node, then perform a get of the entry (using hotrod client) until I was left one node where I was continually able to put and get entries. Is that the correct behaviour?
Yes this is the correct behaviour as a rebalance will be triggered when each node gracefully shutdown. So the final single node should always contain the previously put values, assuming this node has the capacity to hold the entire contents of the cache and that sufficient time elapsed between nodes leaving for a rebalance to complete.
-
2. Re: Cluster startup with Partition
justcono Oct 28, 2017 4:15 PM (in response to ryanemerson)Thanks Ryan, this is just what I needed.
cd.