Movatterモバイル変換


[0]ホーム

URL:


Quotas and constraints for Amazon RDS - Amazon Relational Database Service
DocumentationAmazon RDSUser Guide
Quotas in Amazon RDSNaming constraints in Amazon RDSMaximum number of database connectionsFile size limits in Amazon RDS

Quotas and constraints forAmazon RDS

Following, you can find a description of the resource quotas and naming constraints forAmazon RDS.

Quotas inAmazon RDS

Each AWS account has quotas, for each AWS Region, on the number ofAmazon RDS resources that can be created. After a quota for a resource has been reached, additional calls to create that resource fail with an exception.

The following table lists the resources and their quotas per AWS Region.

NameDefaultAdjustableDescription
Authorizations per DB security groupEach supported Region: 20NoNumber of security group authorizations per DB security group
Custom endpoints per DB clusterEach supported Region: 5YesThe maximum number of custom endpoints that you can create per Aurora DB cluster in this account in the current Region. This value reflects the highest number of custom endpoints in a DB cluster in the account. Other DB clusters in the account might have a lower number of custom endpoints.
Custom engine versionsEach supported Region: 40YesThe maximum number of custom engine versions allowed in this account in the current Region
DB cluster parameter groupsEach supported Region: 50YesThe maximum number of DB cluster parameter groups
DB clustersEach supported Region: 40YesThe maximum number of Aurora clusters allowed in this account in the current Region
DB instances

ap-south-1: 20

Each of the other supported Regions: 40

YesThe maximum number of DB instances allowed in this account in the current Region
DB shard groupsEach supported Region: 5YesThe maximum number of DB shard groups for Aurora Limitless Database in this account in the current Region
DB subnet groups

ap-south-1: 20

Each of the other supported Regions: 50

YesThe maximum number of DB subnet groups
Data API HTTP request body sizeEach supported Region: 4 MegabytesNoThe maximum size allowed for the HTTP request body.
Data API maximum concurrent cluster-secret pairsEach supported Region: 30NoThe maximum number of unique pairs of Aurora Serverless v1 DB clusters and secrets in concurrent Data API requests for this account in the current AWS Region.
Data API maximum concurrent requestsEach supported Region: 500NoThe maximum number of Data API requests to an Aurora Serverless v1 DB cluster that use the same secret and can be processed at the same time. Additional requests are queued and processed as in-process requests complete.
Data API maximum result set sizeEach supported Region: 1 MegabytesNoThe maximum size of the database result set that can be returned by the Data API.
Data API maximum size of JSON response stringEach supported Region: 10 MegabytesNoThe maximum size of the simplified JSON response string returned by the RDS Data API.
Data API requests per secondEach supported Region: 1,000 per secondNoThe maximum number of requests to the Data API per second allowed for this account in the current AWS Region. This quota only applies to Amazon Aurora Serverless v1 clusters.
Event subscriptionsEach supported Region: 20YesThe maximum number of event subscriptions
IAM roles per DB clusterEach supported Region: 5YesThe maximum number of IAM roles associated with a DB cluster
IAM roles per DB instanceEach supported Region: 5YesThe maximum number of IAM roles associated with a DB instance
IntegrationsEach supported Region: 100NoThe maximum number of integrations allowed in this account in the current AWS Region
Manual DB cluster snapshotsEach supported Region: 100YesThe maximum number of manual DB cluster snapshots
Manual DB instance snapshotsEach supported Region: 100YesThe maximum number of manual DB instance snapshots
Option groupsEach supported Region: 20YesThe maximum number of option groups
Parameter groups

ap-south-1: 20

Each of the other supported Regions: 50

YesThe maximum number of parameter groups
ProxiesEach supported Region: 20YesThe maximum number of proxies allowed in this account in the current AWS Region
Read replicas per primaryEach supported Region: 15YesThe maximum number of read replicas per primary DB instance. This quota cant be adjusted for Amazon Aurora.
Reserved DB instances

ap-south-1: 20

Each of the other supported Regions: 40

YesThe maximum number of reserved DB instances allowed in this account in the current AWS Region
Security groups

ap-south-1: 20

Each of the other supported Regions: 25

YesThe maximum number of DB security groups
Subnets per DB subnet groupEach supported Region: 20NoThe maximum number of subnets per DB subnet group
Total storage for all DB instancesEach supported Region: 100,000YesThe maximum total storage (in GB) on EBS volumes for all Amazon RDS DB instances added together. This quota does not apply to Amazon Aurora, which has a maximum cluster volume of 128 TiB for each DB cluster.

By default, you can have up to a total of 40 DB instances. RDS DB instances, Aurora DB instances, Amazon Neptune instances, and Amazon DocumentDB instances apply to this quota.

The following limitations apply to the Amazon RDS DB instances:

If your application requires more DB instances, you can request additional DB instances by opening theService Quotas console. In the navigation pane, chooseAWS services. ChooseAmazon Relational Database Service (Amazon RDS), choose a quota, and follow the directions to request a quota increase. For more information, seeRequesting a quota increase in theService Quotas User Guide.

For RDS for Oracle, you can create up to 15 read replicas per source DB instance in each Region, but we recommend limiting replicas to 5 to minimize replication lag.

Backups managed by AWS Backup are considered manual DB snapshots, but don't count toward the manual snapshot quota. For information about AWS Backup, see theAWS Backup Developer Guide.

Note that the default quota for cross-Region automated backups is 20 for an AWS account, and the default quota for the number of concurrent snapshot copy requests is 20 for each Region for an AWS account.

If you use any RDS API operations and exceed the default quota for the number of calls per second, the Amazon RDS API issues an error like the following one.

ClientError: An error occurred (ThrottlingException) when calling theAPI_name operation: Rate exceeded.

Here, reduce the number of calls per second. The quota is meant to cover most use cases. If higher quotas are needed, you can request a quota increase by using one of the following options:

For more information, see theService Quotas User Guide.

Naming constraints inAmazon RDS

The naming constraints inAmazon RDS are as follows:

  • DBinstance identifier:

    • Must contain 1–63 alphanumeric characters or hyphens.

    • First character must be a letter.

    • Can't end with a hyphen or contain two consecutive hyphens.

    • Must be unique for all DB instances per AWS account, per AWS Region.

  • Initial database name:

    • Database name constraints differ for each database engine. For more information, see the available settings when creating each DB instance.

    • SQL Server – Create your databases after creating your DB instance.

  • Master username – Master username constraints differ for each database engine. For more information, see the available settings when creating the DBinstance.

  • Master password:

    • The password for the database master user can include any printable ASCII character except/,',",@, or a space.

      For Oracle,& is an additional character limitation.

    • The password can contain the following number of printable ASCII characters depending on the DB engine:

      • Db2: 8–255

      • MariaDB and MySQL: 8–41

      • Oracle: 8–30

      • SQL Server and PostgreSQL: 8–128

  • DB parameter group:

    • Must contain 1–255 alphanumeric characters.

    • First character must be a letter.

    • Hyphens are allowed, but the name cannot end with a hyphen or contain two consecutive hyphens.

  • DB subnet group:

    • Must contain 1–255 characters.

    • Alphanumeric characters, spaces, hyphens, underscores, and periods are allowed.

Maximum number of database connections

The maximum number of simultaneous database connections varies by the DB engine type and the memory allocation for the DB instance class. The maximum number of connections is generally set in the parameter group associated with the DB instance. The exception is Microsoft SQL Server, where it is set in the server properties for the DB instance in SQL Server Management Studio (SSMS).

Database connections consume memory. Setting one of these parameters too high can cause a low memory condition that might cause a DB instance to be placed in theincompatible-parameters status. For more information, seeDiagnosing andresolving incompatible parameters status for a memory limit.

If your applications frequently open and close connections, or keep a large number of long-lived connections open, we recommend that you use Amazon RDS Proxy. RDS Proxy is a fully managed, highly available database proxy that uses connection pooling to share database connections securely and efficiently. To learn more about RDS Proxy, seeAmazon RDS Proxy.

The following table shows information about the maximum database connections for different DB engines.

DB engineParameterAllowed valuesDefault valueDescription
MariaDBmax_connections1–100000
  • For MariaDB 10.5 and higher versions, the default is:

    LEAST({DBInstanceClassMemory/25165760},12000)

    The formula is effectively equivalent to MB/25.

    If the default value calculation results in a value greater than 12,000, Amazon RDS sets the limit to 12,000.

  • For MariaDB version 10.4:

    {DBInstanceClassMemory/12582880}

    The formula is effectively equivalent to MB/12.

Number of simultaneous client connections allowed
MySQLmax_connections1–100000

{DBInstanceClassMemory/12582880}

The formula is effectively equivalent to MB/12.

Number of simultaneous client connections allowed
Oracleprocesses80–20000LEAST({DBInstanceClassMemory/9868951}, 20000)User processes
Oraclesessions100–65535Not applicableUser and system sessions
PostgreSQLmax_connections6–262143LEAST({DBInstanceClassMemory/9531392}, 5000)Maximum number of concurrent connections
SQL Serveruser connections0–327670 (unlimited)Maximum number of concurrent connections. For more information, seeConfigure the user connections (server configuration option).

DBInstanceClassMemory is in bytes. For details about how this value is calculated, seeSpecifying DB parameters. Because of memory reserved for the operating system and RDS management processes, this memory size is smaller than the value in gibibytes (GiB) shown inHardware specifications for DB instance classes.

For example, some DB instance classes have 8 GiB of memory, which is 8,589,934,592 bytes. For a MySQL DB instance running on a DB instance class with 8 GiB of memory, such as db.m7g.large, the equation that uses the total memory would be8589934592/12582880=683. However, the variableDBInstanceClassMemory automatically subtracts the amounts reserved to the operating system and the RDS processes that manage the DB instance. The remainder of the subtraction is then divided by 12,582,880. This calculation results in approximately 630 for the value ofmax_connections instead of 683. This value depends on the DB instance class and DB engine.

When a MariaDB or MySQL DB instance is running on a small DB instance class, such as db.t3.micro or db.t3.small, the total memory available is low. For these DB instance classes, RDS reserves a significant portion of the available memory, which affects the valuemax_connections. For example, the default maximum number of connections for a MySQL DB instance running on a db.t3.micro DB instance class is approximately 60. You can determine themax_connections value for your DB MariaDB or MySQL DB instance by connecting to it and running the following SQL command:

SHOW GLOBAL VARIABLES LIKE 'max_connections';

File size limits in Amazon RDS

File size limits apply to certain Amazon RDS DB instances. For more information, see the following engine-specific limits:

Moving a DB instance into a VPC
Troubleshooting

[8]
ページ先頭

©2009-2026 Movatter.jp