简体   繁体   中英

Ehcache cache the data with support cluster disk storage (replication)

I am using Ehcache technologies in our application and it is working in single server data persist in disk, if we moving to production, we have two different server which is clustered in our application.

if first request comes to server A , it will cache respect server A OS disk level cached data and working fine, similarly, if request goes to server B , the application can not find the cached data because the the cached disk object in server A disk . how to we replicate both disk in our ehcache-config.xml ?

I recommend looking into clustering support with Terracotta. See the documentation for this:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM