我们生产中的 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/