caching - AppFabric 冗余

标签 caching appfabric

我们刚刚测试了一个由 2 个服务器组成的 AppFabric 集群,我们在其中删除了“领导”服务器。第二个服务器对它的任何请求超时并出现错误:

Microsoft.ApplicationServer.Caching.DataCacheException: ErrorCode<ERRCA0017>:SubStatus<ES0006>: There is a temporary failure. Please retry later. (One or more specified Cache servers are unavailable, which could be caused by busy network or servers. Ensure that security permission has been granted for this client account on the cluster and that the AppFabric Caching Service is allowed through the firewall on all cache hosts. Retry later.)



实际上,这意味着如果集群中的一台服务器出现故障,那么它们都会出现故障。 (请注意,我们没有使用 Windows 集群,只是将多个 AppFabric 缓存服务器相互链接。)

即使单个服务器出现故障,我也需要集群继续运行。我该怎么做呢?

(我意识到这个问题是 Serverfault 的边界,但恕我直言,开发人员应该知道这一点。)

最佳答案

您必须在至少三台主要服务器上安装 AppFabric 缓存,缓存才能在单个服务器崩溃时幸存下来。文档指出,只有当主要服务器的“多数”出现故障时,集群才会出现故障,但在细则中,他们解释说,2 分之 1 构成多数。我已经验证从三个引导节点集群中删除服务器的工作方式与宣传的一样。

关于caching - AppFabric 冗余,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4747219/

相关文章:

JavaFX WebView/WebEngine 缓存外部 JavaScript

javascript - $.jsonp 不缓存

caching - 如何使 favicon.ico 小且可缓存?

c++ - 清除/删除 Chromium 嵌入式框架 (CEF3 C++) 缓存

WCF 和 Windows Server 服务总线端点

azure - 适用于 Windows Server 的 AppFabric 仍在开发中吗?

go - Race(?) with Mutex - map 中的数据损坏

AppFabric 缓存并发问题?

session-state - AppFabric 可以作为 session 状态提供程序并使用本地缓存吗?

c# - 从我的 .Net 应用程序使用 AppFabric DashBoard