[Logo] Terracotta Discussion Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Ehcache configuration to mimic toolkit ClusteredMap  XML
Forum Index -> Ehcache
Author Message
nestrada

journeyman

Joined: 08/20/2010 06:13:31
Messages: 37
Location: Paris, France
Offline

Hello,

I want the equivalent of the toolkit's ClusteredMap but using Ehcache (since Ehcache is more friendly when supporting serializable keys (and the latter also has local key caching). I came up with:
Code:
CacheConfiguration cfg = new CacheConfiguration(name, 100).eternal(true).terracotta(new TerracottaConfiguration()).pinning(new PinningConfiguration().store(Store.INCACHE));

Have I overlooked something?

Thanks

Nicolas
[Email] [WWW]
hervbarr

journeyman

Joined: 03/30/2012 04:08:38
Messages: 29
Offline

Hi,
we are also using ClusteredMap but if ehcache can provide a configuration similar to this one it would be a nice news to avoid using both ehcache and terracotta toolkit.

By the way, it seems terracotta advises to use EhcachE instead of Terracotta Toolkit so they could provide a way to "migrate".

can somebody confirm nicolas assumption ?
rgupta

journeyman

Joined: 02/18/2011 09:48:08
Messages: 13
Offline

Ehcache is a map based implementation on its own and Terracotta + Ehcache = clustered Ehcache. So I am not sure what is the real concern here. Do you see any exceptions or errors while configuring Ehcache?

I suggest to look at our web docs: http://ehcache.org/documentation
hervbarr

journeyman

Joined: 03/30/2012 04:08:38
Messages: 29
Offline

Hi,
we have seen different performances between a ClusteredMap and the default distributed Ehcache configuration

In my use case, i have seen that terracotta map has better performance than ehcache [mainly write], so I guess that some configuration is slightly different.

I guess some configuration of ehcache allows to mimic the default terracotta map for example :
Is there a L1 when using a terracotta map ? (i have seen a parameter for this in ehcache)
The consistency, pinning, synchonous write, ... ?

I would know which configuration should I use to use Ehcache instead of ClusteredMap (and keep the behavior/performances).
 
Forum Index -> Ehcache
Go to:   
Powered by JForum 2.1.7 © JForum Team