本文介绍了保存缓存状态(序列化)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我想知道是否有办法在运行appfabric缓存服务的服务器本地将缓存内容保存到磁盘上一种从中重新填充缓存的方法。

I would like to know if there is a way to save the content of the cache to disk locally in the server where appfabric caching service is running and also a way to repopulate the cache from that.

这是我们正在评估的一个选项,因为每次重新启动缓存服务器大约需要4h时从数据库重新加载缓存。这不仅仅是因为需要存储在缓存中的数据量,还因为我们需要进行一些
的复杂处理来构建需要插入缓存的项目。

This is one option we are evaluating since reloading the cache from the database every time the cache server is reboot takes around 4hs. This is not just because the amount of data that needs to be stored in the cache, but also because we need to do some complex processing to construct the items that need to be inserted in the cache.

任何想法或建议?

提前致谢,

Lucas L .-

Lucas L.-

推荐答案

这样,您的缓存数据将在您的服务器之间复制集群;如果群集主机发生故障,您的客户端可以从其他服务器提取数据。


唯一的"缺点"就是"二级"选项仅适用于Windows Server的Enterprise或Datacenter版本。

With this, your cache data is replicated among your servers in the cluster; if a cluster host fails, your clients can pull data from the other servers.
The only "drawback" is that the "Secondaries" option works only with Enterprise or Datacenter editions of Windows Server.

如果您需要有关AppFabric的高可用性的更多信息,请查看此处:

If you need more informations about High Availability with AppFabric you can take a look here:

HTH


这篇关于保存缓存状态(序列化)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 02:46