

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

# Amazon Aurora DSQL 中的叢集配額與資料庫限制
<a name="CHAP_quotas"></a>

下列章節說明 Aurora DSQL 的叢集配額與資料庫限制。

## 叢集配額
<a name="SECTION_cluster-quotas"></a>

您的 在 Aurora DSQL 中 AWS 帳戶 具有下列叢集配額。若要請求增加特定內單一區域和多區域叢集的服務配額 AWS 區域，請使用 [Service Quotas](https://console.aws.amazon.com/servicequotas) 主控台頁面。如需提高其他配額，請聯絡 AWS 支援。


| Description | 預設值限制 | 可設定？ | Aurora DSQL 錯誤代碼 | 錯誤訊息 | 
| --- | --- | --- | --- | --- | 
|  每個 的單一區域叢集上限 AWS 帳戶  |  20 個叢集  |  是  |  API 錯誤代碼 `ServiceQuotaExceededException : 402`  |  `You have reached the cluster limit.`  | 
|  每個 的多區域叢集上限 AWS 帳戶  |  5 個叢集  |  是  |  API 錯誤代碼 `ServiceQuotaExceededException : 402`  |  `You have reached the cluster limit.`  | 
|  每個叢集的最大儲存容量  | 10 TiB 預設限制，最多 256 TiB，並核准增加限制 |  是  |  `DISK_FULL(53100)`  |  `Current cluster size exceeds cluster size limit.`  | 
|  每個叢集的最大連線數量  |  10,000 個連線  |  是  |  `TOO_MANY_CONNECTIONS(53300)`  |  `Unable to accept connection, too many open connections.`  | 
|  每個叢集的最大連線率  | 每秒 100 個連線 |  否  |  `CONFIGURED_LIMIT_EXCEEDED(53400)`  |  `Unable to accept connection, rate exceeded.`  | 
| 每個叢集的最大高載容量 | 1,000 個連線 | 否 | 無錯誤代碼。 | 無錯誤訊息。 | 
|  最大同時還原作業數量  | 4 | 否 | 無錯誤代碼。 | 無錯誤訊息。 | 
| 連線補充速率  | 每秒 100 個連線 | 否 | 無錯誤代碼。 | 無錯誤訊息。 | 

## Aurora DSQL 資料庫限制
<a name="SECTION_database-limits"></a>

下表說明 Aurora DSQL 的資料庫限制。


| Description | 預設值限制 | 可設定？ | Aurora DSQL 錯誤代碼 | 錯誤訊息 | 
| --- | --- | --- | --- | --- | 
|  主索引鍵中資料欄合併後的總大小上限  |  1 KiB  |  否  |  `54000`  |  `ERROR: key size too large`  | 
|  次要索引中資料欄合併後的總大小上限  |  1 KiB  |  否  |  `54000`  |  `ERROR: key size too large`  | 
|  資料表中單筆資料列大小上限  |  2 MiB  |  否  |  `54000`  |  `ERROR: maximum row size exceeded`  | 
|  非索引資料欄的大小上限  |  1 MiB  |  否  |  `54000`  |  `ERROR: maximum column size exceeded`  | 
|  主索引鍵或次要索引中的資料欄數量上限  |  8  |  否  |  `54011`  |  `ERROR: more than 8 column keys in an index are not supported`  | 
|  每個資料表的欄位數量上限  |  255  |  否  |  `54011`  |  `ERROR: tables can have at most 255 columns`  | 
|  每個資料表的索引數量上限  |  24  |  否  |  `54000`  |  `ERROR: more than 24 indexes per table are not allowed`  | 
|  單次寫入交易可修改之資料總量上限  |  10 MiB  |  否  |  `54000`  |  `ERROR: transaction size limit 10mb exceeded DETAIL: Current transaction size {sizemb} 10mb`  | 
|  交易區塊中可變更的資料表資料列數目上限  |  每筆交易 3,000 列。請參閱 [Aurora DSQL 的 PostgreSQL 相容性考量](working-with-postgresql-compatibility-migration-guide.md#working-with-postgresql-compatibility-unsupported-limitations)。  |  否  |  `54000`  |  `ERROR: transaction row limit exceeded`  | 
|  查詢作業可使用的基礎記憶體上限  |  每筆交易 128 MiB  |  否  |  `53200`  |  `ERROR: query requires too much temp space, out of memory.`  | 
|  資料庫內可定義的結構描述數量上限  |  10  |  否  |  `54000`  |  `ERROR: more than 10 schemas not allowed`  | 
|  資料庫中可建立的資料表數量上限  |  1,000 個資料表  |  否  |  `54000`  |  `ERROR: creating more than 1000 tables not allowed`  | 
|  叢集中可建立的資料庫數量上限  |  1  |  否  | 無錯誤代碼。 |  `ERROR: unsupported statement`  | 
|  單筆交易時間上限  |  5 分鐘  |  否  |  `54000`  |  `ERROR: transaction age limit of 300s exceeded`  | 
|  連線持續時間上限  |  60 分鐘  |  否  | 無錯誤代碼。 | 無錯誤訊息。 | 
|  資料庫中可建立的檢視數量上限  |  5,000  |  否  |  `54000`  | `ERROR: creating more than 5000 views not allowed` | 
| 檢視定義的最大大小上限 | 2 MiB | 否 | `54000` | `ERROR: view definition too large` | 
|  序列數目上限  |  5,000  |  否  |  `54000`  | `ERROR: creating more than 5000 sequences is not allowed` | 

如需針對 Aurora DSQL 的資料型別限制，請參閱 [Aurora DSQL 支援的資料類型](working-with-postgresql-compatibility-supported-data-types.md)。