

# DynamoDB 节流解决方法指导
<a name="troubleshooting-throttling-diagnostics"></a>

本节针对 DynamoDB 可能返回的每种特定节流原因，提供了针对性的解决方案指导。每个条目都包含基于最佳实践的建议解决方法，以及要监控的对应 CloudWatch 指标。

DynamoDB 实施了 16 种不同的节流理由，分为 4 个主要类别。使用应用程序异常中指示的节流原因，直接导航到相关的指导方法。

## 超过键范围吞吐量（热分区）
<a name="partition-limits-throttling-reasons"></a>

当单个分区超过其吞吐量限额时，就会出现这些节流原因，此时预置模式和按需模式都会受影响：
+ [TableReadKeyRangeThroughputExceeded](throttling-key-range-limit-exceeded-mitigation.md#throttling-table-read-keyrange)
+ [TableWriteKeyRangeThroughputExceeded](throttling-key-range-limit-exceeded-mitigation.md#throttling-table-write-keyrange)
+ [IndexReadKeyRangeThroughputExceeded](throttling-key-range-limit-exceeded-mitigation.md#throttling-index-read-keyrange)
+ [IndexWriteKeyRangeThroughputExceeded](throttling-key-range-limit-exceeded-mitigation.md#throttling-index-write-keyrange)

## 超出预置吞吐量
<a name="provisioned-capacity-throttling-reasons"></a>

在预置模式下，当消耗速率超过预置容量限额时，就会出现这些节流原因：
+ [TableReadProvisionedThroughputExceeded](throttling-provisioned-capacity-exceeded-mitigation.md#throttling-table-read-provisioned)
+ [TableWriteProvisionedThroughputExceeded](throttling-provisioned-capacity-exceeded-mitigation.md#throttling-table-write-provisioned)
+ [IndexReadProvisionedThroughputExceeded](throttling-provisioned-capacity-exceeded-mitigation.md#throttling-index-read-provisioned)
+ [IndexWriteProvisionedThroughputExceeded](throttling-provisioned-capacity-exceeded-mitigation.md#throttling-index-write-provisioned)

## 超过账户限额
<a name="account-limits-throttling-reasons"></a>

在 Amazon 区域中，当消耗速率超过了账户级别的吞吐量配额时，就会出现这些节流原因：
+ [TableReadAccountLimitExceeded](throttling-account-limit-exceeded-mitigation.md#throttling-table-read-account-limit) 
+ [TableWriteAccountLimitExceeded](throttling-account-limit-exceeded-mitigation.md#throttling-table-write-account-limit)
+ [IndexReadAccountLimitExceeded](throttling-account-limit-exceeded-mitigation.md#throttling-index-read-account-limit)
+ [IndexWriteAccountLimitExceeded](throttling-account-limit-exceeded-mitigation.md#throttling-index-write-account-limit)

## 超出按需最大吞吐量
<a name="ondemand-maximum-throttling-reasons"></a>

在按需模式下，当消耗速率超过配置的最大吞吐量限额时，就会出现这些节流原因：
+ [TableReadMaxOnDemandThroughputExceeded](throttling-ondemand-capacity-exceeded-mitigation.md#throttling-diagnostic-table-read-max-ondemand)
+ [TableWriteMaxOnDemandThroughputExceeded](throttling-ondemand-capacity-exceeded-mitigation.md#throttling-diagnostic-table-write-max-ondemand)
+ [IndexReadMaxOnDemandThroughputExceeded](throttling-ondemand-capacity-exceeded-mitigation.md#throttling-diagnostic-index-read-max-ondemand)
+ [IndexWriteMaxOnDemandThroughputExceeded](throttling-ondemand-capacity-exceeded-mitigation.md#throttling-diagnostic-index-write-max-ondemand)