-
1. Distributed in-memory only cache with eviction
brenuart Feb 22, 2011 3:59 AM (in response to evereststeakhouse)AFAIK, yes, you would need a CacheLoader in order to regain access to the cache entries you have previously evicted.
It seems that the ClusterCacheLoader would fit your needs.
-
2. Distributed in-memory only cache with eviction
evereststeakhouse Feb 22, 2011 6:36 AM (in response to brenuart)Thanks Bertrand, sounds like a fair deal. I will give it a try and posts the results. If this works, the only thing I will have to worry about is the additional traffic on the cluster.
-
3. Distributed in-memory only cache with eviction
evereststeakhouse Feb 22, 2011 8:09 PM (in response to evereststeakhouse)Works like a charm.
-
4. Re: Distributed in-memory only cache with eviction
gaprashanth Mar 1, 2011 3:09 AM (in response to evereststeakhouse)I have a similar question. If we configure eviction with a shared class loader and if there are 'n' nodes in the cluster, consider a situation where the same object 'A' was evicted and passivated from node 1 but it is still in-memory in node 2. It is not evicted from node 2 but it is already there in in the disc as it was evicted from node 1. What happens while node 2 also tries to evict the same object later?
Also what happens if the same object A was requested at the same time from node 1 while it was being evicted from node 2 ? Here while it was being removed from the disc it was requested in node 1, it will be attempted to update from node 2 as it is evicted. How does Infiinispan handles the lock situation due to eviction with passivation turned on.
-
5. Re: Distributed in-memory only cache with eviction
galder.zamarreno Mar 8, 2011 1:04 PM (in response to gaprashanth)1st q: Node 2 will override whatever node 1 evicted.
2nd q: It depends on whether the request is transactional or not, whether the underlying cache store is transactional and whether the nodes are clustered or not (cluster wide locks required or not)