c# - AppFabric 缓存错误

标签 c# .net appfabric appfabric-cache

我们生产中的 AppFabric Cache 几乎每天都会崩溃,而且非常不稳定。记录了以下错误:

Microsoft.ApplicationServer.Caching.DataCacheException: ErrorCode:SubStatus:There is a temporary failure. Please retry later. (Sufficient secondaries not present or they are in throttled state.)

Microsoft.ApplicationServer.Caching.DataCacheException: ErrorCode:SubStatus:There is a temporary failure. Please retry later. (The request did not find the primary.)

AppFabric Caching service crashed.{Lease with external store expired: Microsoft.Fabric.Federation.ExternalRingStateStoreException: Lease already expired at Microsoft.Fabric.Data.ExternalStoreAuthority.UpdateNode(NodeInfo nodeInfo, TimeSpan timeout) at Microsoft.Fabric.Federation.SiteNode.PerformExternalRingStateStoreOperations(Boolean& canFormRing, Boolean isInsert, Boolean isJoining)}

有人可以给我一些意见吗? 这是一个具有 3 个缓存主机的启用 HA 的缓存环境。均运行在Windows Server 2008 Enterprise Edition上,并使用SQL Server进行配置。

最佳答案

服务器不可用有多种症状。首先,应用程序可能会收到错误代码为 RetryLater 且错误子状态为 CacheServerUnavailable 的 DataCacheException 异常:

  • 缓存集群无法访问缓存配置存储(SQL Server、Xml 或自定义)
  • 应用程序指向一个或多个不正确、不可用或已关闭的缓存主机。
  • 缓存集群已关闭。
  • 应用程序以未被授予缓存集群访问权限的用户身份运行。

看看http://msdn.microsoft.com/en-us/library/ff921010.aspx为了查看可用于监控 AppFabric 缓存集群健康状况的各种工具和命令

关于c# - AppFabric 缓存错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12890475/

相关文章:

c# - 在 VisualStudio 中创建 IronPython 项目时出错; "Exception has been thrown by the target of an invocation."

asp.net - AppFabric 与具有 sqldependency 性能的 asp.net 缓存

c# - 使用 C#.Net 编程大小大于 2 GB 的文件

.net - Visual Studio 2012 RC 因 .NET Framework 中的异常而中断。如何让它只在我的代码中出现异常?

c# - AssemblyInfo 版本信息星号

c# - 有没有办法以编程方式检查 AppFabric 缓存主机是否处于事件状态?

c# - 如何使我的 appDomain 生命周期更长?

c# - C#协方差混淆

c# - 如何使用 fiddler 或任何其他工具跟踪 HttpClient 请求?

C# Windows 窗体从嵌入式 Windows Media Player 捕获图像