gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 00:15:29 27 4
gpt4 key购买 nike

我正在尝试使用 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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com