保存缓存状态(序列化) [英] Saving cache status (serializing)

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

问题描述

您好,

我想知道是否有办法在运行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.-

推荐答案

嗨Lucas,

AppFabric Cache没有有这个功能开箱即用。您可以避免重新加载缓存服务器,方法是将一个(或多个)缓存服务器添加到缓存群集,并使用"辅助节点"配置缓存。选项已启用。

Hi Lucas,
AppFabric Cache doesn't have this feature out-of-the box. You can avoid reloading of the cache server, by adding one (or more) cache server(s) to your cache cluster and configure the cache with the "Secondaries" option enabled.

http:/ /msdn.microsoft.com/en-us/library/ff921029(v=azure.10).aspx

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


唯一的"缺点"就是"二级"选项仅适用于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:

http://msdn.microsoft.com/en-us/library /ee790974(v=azure.10).aspx

HTH


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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆