

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# DynamoDB 限流解決指南
<a name="troubleshooting-throttling-diagnostics"></a>

本節針對 DynamoDB 可能傳回的各項特定限流原因，提供具體的解決指引。每個項目皆提供根據最佳實務的建議解決方法，並附上需監控的對應 CloudWatch 指標。

DynamoDB 於四大類別中定義了 16 種不同的限流原因。根據應用程式例外狀況中的限流原因，直接導向對應的指引內容。

## 金鑰範圍輸送量超出上限 (熱分割區)
<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>

當使用率超過您 AWS 區域中的帳戶層級輸送量配額時，會發生這些調節原因：
+ [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)