caching - Azure 缓存不起作用(错误代码<ERRCA0017> :SubStatus<ES0006>). SDK 2.2

标签 caching azure azure-caching

我正在尝试使用 Azure In-Role 缓存 ( http://www.windowsazure.com/en-us/manage/services/cache/net/how-to-in-role-cache/ )。我正在使用专用角色场景(专用角色中的主机缓存)。我在解决方案中有 2 个角色 - 辅助角色和缓存角色(称为 CacheWorkerRole)。 在我的辅助角色的 app.config(缓存客户端)中,我有以下内容:

<dataCacheClient name="default">
  <autoDiscover isEnabled="true" identifier="CacheWorkerRole" />
  <localCache isEnabled="true" sync="TimeoutBased" objectCount="100000" ttlValue="300" />
</dataCacheClient>

当我进行本地部署时,总是出现错误:

> 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. For
> on-premises cache clusters, also verify the following conditions.
> Ensure that security permission has been granted for this client
> account, and check that the AppFabric Caching Service is allowed
> through the firewall on all cache hosts. Also the MaxBufferSize on the
> server must be greater than or equal to the serialized object size
> sent from the client.). Additional Information : The client was trying
> to communicate with the server: net.tcp://CacheWorkerRole:24233.

我只是不知道下一步该做什么,如何解决这个问题。我尝试了不同的配置、同地办公和专用角色,但没有任何效果。任何帮助将不胜感激!

最佳答案

最后问题通过以下方式解决:我没有使用角色内缓存( http://www.windowsazure.com/en-us/manage/services/cache/net/how-to-in-role-cache/ ),而是使用缓存服务( http://www.windowsazure.com/en-us/documentation/services/cache/?fb=ru-ru ),它有点不同(并且单独付费),但至少是有效的。我发现没有办法使角色内缓存发挥作用。

关于caching - Azure 缓存不起作用(错误代码<ERRCA0017> :SubStatus<ES0006>). SDK 2.2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20359674/

相关文章:

mysql - 如何查看哪些缓存功能已打开? [PHP/MYSQL]

azure - 如何将值数组展平为 CosmosDB 查询中的行?

azure - 间歇性 Azure 模拟器错误 : Could not load file or assembly 'XX' The filename or extension is too long.

c# - Azure 缓存 System.Runtime.InteropServices.SEHException

asp.net-mvc-4 - Azure 角色缓存无法在 "Not running in a hosted service or the Development Fabric."的服务器上启动

caching - Codeigniter 缓存 Opcache 和 APCu

java - Java/Java EE 应用程序的服务器端缓存

c++ - 了解 CPU 如何决定将什么加载到高速缓存中

java - 使用 Java 代码将 Azure HDInsight Spark 应用程序链接到 Azure EventHub

azure - KQL 字符串列表包含字符串列表的任意值