ehcache_cluster.xml 1.1 KB

1234567891011121314151617181920212223242526
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:noNamespaceSchemaLocation="ehcache.xsd" updateCheck="false"
  4. monitoring="autodetect" dynamicConfig="true">
  5. <defaultCache maxEntriesLocalHeap="10000" eternal="false"
  6. timeToIdleSeconds="0" timeToLiveSeconds="0" diskSpoolBufferSizeMB="30"
  7. maxEntriesLocalDisk="10000000" diskExpiryThreadIntervalSeconds="120">
  8. <persistence strategy="localTempSwap" />
  9. <terracotta clustered="true" consistency="strong">
  10. <nonstop enabled="true"/>
  11. </terracotta>
  12. </defaultCache>
  13. <diskStore path="java.io.tmpdir" />
  14. <cache name="userCache" maxElementsInMemory="50000"
  15. eternal="false" timeToIdleSeconds="300" overflowToDisk="false" timeToLiveSeconds="300">
  16. <terracotta clustered="true" consistency="strong">
  17. <nonstop enabled="true"/>
  18. </terracotta>
  19. </cache>
  20. <terracottaConfig url="192.168.219.183:9510,192.168.219.184:9510" rejoin="true"/>
  21. </ehcache>