我正在尝试使用Azure角色内缓存(http://www.windowsazure.com/en-us/manage/services/cache/net/how-to-in-role-cache/) . 我'm using dedicated role scenario (host cache in dedicated role). I have 2 roles in solution - worker role and caching role (called CacheWorkerRole). In my worker role' s 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.
我只是不知道下一步该怎么做,如何解决这个问题 . 我正在尝试不同的配置,共同定位和专用角色,没有任何作用 . 任何帮助将非常感谢!
1 回答
最后,问题通过以下方式解决:我使用缓存服务(http://www.windowsazure.com/en-us/documentation/services/cache/?fb=ru-ru)而不是使用角色缓存(http://www.windowsazure.com/en-us/documentation/services/cache/?fb=ru-ru),这有点不同(并单独支付),但至少是有效的 . 我发现无法进行角色内缓存工作 .