Appfabric缓存每10分钟失败一次 [英] Appfabric cache fails every 10 minutes

查看:126
本文介绍了Appfabric缓存每10分钟失败一次的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在运行appfabric,为网站提供缓存服务。


架构如下:


面向公众的网络服务器与中间层服务进行通信,后者又使用appfabric来缓存一些值。


每隔10分钟,差不多到第二次,一些请求在尝试访问appfabric时会超时。


再过几秒钟,一切都恢复正常,工作正常。


我已经读过与WCF频道相关的内容,不过我做了不知道对此采取什么行动。


另外,我读到的内容提到了一个保持通话,这对我来说没有必要,因为我每分钟至少接到10个电话。 / p>

我该怎么办?


我在Windows Server 2008 R2 64位服务器上运行appfabric,客户端在Windows Server 2003上运行32位。


appfabric的版本是Beta 1.


我计划下周升级到最后一位,不过我是担心这可能无法修复,在这种情况下我需要寻找其他解决方案。

解决方案

有哪些例外/错误你得到了吗?


任何 缓存的默认TTL配置是10分钟,暗示对象在10分钟后过期。如果出现此问题,请使用Powershell管理命令"get-cacheconfig< cachename>"查看TTL,并使用set-cacheconfig
进行设置(仅当群集关闭时)。使用'get-cache -MaxRegions 0'获取缓存列表。


由于您每分钟至少拨打10个电话而且您只有1个客户端,因此该频道不应该是问题(最低限度为每个客户每9分钟一次)。


 


I am currently running appfabric providing caching services to a website.

The architecture is as follows:

A public facing web server talks to a middle tier service which in turn uses appfabric to cache some values.

Every 10 minutes, almost to the second, a number of requests will time out when trying to access appfabric.

After a few more seconds everything is back to normal and works fine.

I have read about something related to the WCF channel, however I do not know what are the actions to take about this.

Also, what I read mentioned a keep alive call, this is not necessary for me because I get at least 10 calls every minute.

What should I do?

I am running appfabric on a Windows Server 2008 R2 64 bit server, and the client runs on Windows Server 2003 32 bits.

The version of appfabric is Beta 1.

I am plannig on upgrading to the final bits next week, however I am concerned that this may not be fixed, in which case I need to look for other solutions.

解决方案

What are the exceptions/errors that you get?

The default TTL configuration for any cache is 10 minutes, implies the objects are expired after 10 minutes. If this is the issue, use the Powershell admin command 'get-cacheconfig <cachename>' to view the TTL and set-cacheconfig to set it (only when cluster is down). Use 'get-cache -MaxRegions 0' to get the list of caches.

Since you are making at least 10 calls every minute and you have only 1 client, the channel should not be an issue (minumum is once every 9 minutes per client).

 


这篇关于Appfabric缓存每10分钟失败一次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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