gpt4 book ai didi

Azure 角色内共置缓存 : There is a temporary failure

转载 作者:行者123 更新时间:2023-12-03 01:55:08 28 4
gpt4 key购买 nike

我一直在努力争取在 Azure 中实现角色内的同地缓存(非专用)。

在我的 MVC WebApi 2 项目的 web.config 中:

<configSections>
<section name="dataCacheClients" type="Microsoft.ApplicationServer.Caching.DataCacheClientsSection, Microsoft.ApplicationServer.Caching.Core" allowLocation="true" allowDefinition="Everywhere" />
</configSections>
...
<dataCacheClients>
<dataCacheClient name="default" isCompressionEnabled="true">
<autoDiscover isEnabled="true" identifier="MyWebApiProject" />
<clientNotification pollInterval="300" />
<transportProperties maxBufferSize="1073741824" maxBufferPoolSize="1073741824"/>
</dataCacheClient>
</dataCacheClients>

角色的缓存属性设置:

Role Properties

我在 Azure 中抛出以下异常:

Microsoft.ApplicationServer.Caching.DataCacheException: ErrorCode:SubStatus: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://MyWebApiProject:24233.

当我关闭autoDiscover时,如下所示:

<autoDiscover isEnabled="false" identifier="MyWebApiProject" />

然后我得到一个不同的异常:

Microsoft.ApplicationServer.Caching.DataCacheException: ErrorCode:SubStatus:Server collection cannot be empty.

使用计算模拟器在本地运行时没有任何问题。

最佳答案

当我将 Azure SDK 从 2.2 升级到 2.3 后,此问题就不再发生。

关于Azure 角色内共置缓存 : There is a temporary failure,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24137018/

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