我正在尝试使用Azure角色内缓存(http://www.windowsazure.com/en-us/manage/services/cache/net/how-to-in-role-cache/)。我正在使用专用角色方案(主机缓存为专用角色)。我在解决方案中有两个角色 - 工作者角色和缓存角色(称为CacheWorkerRole)。 在我的worker角色的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.
我只是不知道下一步该怎么做,如何解决这个问题。我正在尝试不同的配置,共同定位和专用角色,没有任何作用。任何帮助将受到高度赞赏!
答案 0 :(得分:1)
最后,问题通过以下方式解决:我使用缓存服务(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),这有点不同(并单独支付)但是在至少是有效的。我发现没有办法让角色缓存工作。