Azure 缓存错误代码 <ERRCA0017> :SubStatus<ES0009> Exeeded Quota Limits for this hour

标签 azure distributed-caching

我正在开发一个托管在 Windows Azure 中的 MVC 3 站点,该站点配置为使用 DistributedCacheSessionStateStoreProvider 来获取 session 状态,而 session 状态又在内部使用 Azure 缓存。缓存配置为:

<dataCacheClients>
<dataCacheClient name="default">
  <hosts>
    <host name="test.cache.windows.net" cachePort="XXXX" />
  </hosts>
  <securityProperties mode="Message">
    <messageSecurity authorizationInfo="XXXX">
    </messageSecurity>
  </securityProperties>
  <transportProperties receiveTimeout="45000" />
</dataCacheClient>
 </dataCacheClients>

session 提供程序配置为

<sessionState mode="Custom" customProvider="AppFabricCacheSessionStoreProvider">
  <providers>
    <add name="AppFabricCacheSessionStoreProvider" type="Microsoft.Web.DistributedCache.DistributedCacheSessionStateStoreProvider, Microsoft.Web.DistributedCache" cacheName="default" useBlobMode="true" />
  </providers>
</sessionState>

我们自 4 月份起就开始使用此功能,但最近才开始使用 session 来存储更多数据。我们的测试缓存服务为 128 MB,据说允许 5 个并发连接。根据 Azure 管理控制台的数据,我们在任何给定时间使用此服务的最大容量为 0.34 MB。

在我们的日志中,我们经常看到此异常出现:

ErrorCode:SubStatus:There is a temporary failure. Please retry later. (The request failed, because you exceeded quota limits for this hour. If you experience this often, upgrade your subscription to a higher one). Additional Information : Throttling due to resource : Connections

根据我读过的文档,默认情况下数据缓存客户端的最大连接数设置为 1。我在两个实例上运行,我认为这意味着我总共使用两个连接。

请帮助我了解我做错了什么以及我可以采取哪些措施来解决此问题。

最佳答案

您不仅仅会受到存储使用量的限制。您还受到每小时事务数和每小时带宽的限制。对于 128MB 缓存:

  • 每小时 400,000 笔交易
  • 每小时 1,400 MB 带宽

您可能会遇到这两个边界条件之一吗?

有关 AppFabric 缓存 SLA 的更多详细信息,请查看此 MSDN blog post .

关于Azure 缓存错误代码 <ERRCA0017> :SubStatus<ES0009> Exeeded Quota Limits for this hour,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6852124/

相关文章:

Azure key 保管库。如何设置哪个 Web 应用程序使用哪个 Key Vault?

Azure 角色(WCF 服务)不记录跟踪信息

apache - Hadoop DistributedCache缓存文件没有绝对路径?

java - 分布式缓存框架

java - Hazelcast SlowOperationDetector 识别执行时间少于 1 秒的操作

java - "it deltas memory"在 Terracotta 的上下文中意味着什么?

azure - 列出位于 Azure Blob 存储中的所有文件名

Azure 数据工厂 |从 SFTP 到 Blob 的增量数据加载

wcf - 基于 SSL 的 Azure Web 服务返回错误的 SOAP 地址位置

java - 使用 DHT 查找内容。 SHA-1。和弦协议(protocol)