[英]configuring ehcache for distuibuted caching
I want to use ehcacheas distributed ehcache.By distributed i mean i have number of appserver each having its own ehcache and if i put/update a object in one appserver cache all other caches(in other app servers) must automtically synchronize /update. 我想使用ehcacheas分布式ehcache.By分布式我的意思是我有多个应用服务器,每个服务器都有自己的ehcache,如果我将一个对象放置/更新到一个应用服务器缓存中,则所有其他缓存(在其他应用服务器中)必须自动同步/更新。
Now i dont want the address(hostname) of all other caches to be hardcoded in some config. 现在我不希望所有其他缓存的地址(主机名)在某些配置中被硬编码。 Because i can deploy my code in multiple boxes and new boxes can be added at any time and i dont want to modify the config file in all machines.
因为我可以将代码部署在多个框中,并且可以随时添加新框,所以我不想在所有计算机上修改配置文件。
Can i pull the config file remotely? 我可以远程拉配置文件吗? Can i add list of servers in form of ip range?
我可以以IP范围的形式添加服务器列表吗? or network host class?
还是网络主机类?
Consider using Terracotta if you don't want to implement it by your own. 如果您不想自己实现,请考虑使用Terracotta 。 You can find a sample here .
您可以在此处找到示例。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.