Managing Instance Classes

The instance class determines the computation and memory capacity of an Amazon DocumentDB (with MongoDB compatibility) instance. The instance class you need depends on your processing power and memory requirements.

Amazon DocumentDB supports the R4, R5, and T3 families of instance classes. These classes are current-generation instance classes that are optimized for memory-intensive applications. For the specifications on these classes, see Instance Class Specifications .

Determining an Instance Class

To determine the class of an instance, you can use the AWS Management Console or the describe-db-instances AWS CLI operation.

To determine the instance class for your cluster’s instances, complete the following steps in the console.

  1. Sign in to the AWS Management Console, and open the Amazon DocumentDB console at https://console.aws.amazon.com/docdb.
  2. In the navigation pane, choose Clusters to find the instance that you’re interested in.

Tip

If you don’t see the navigation pane on the left side of your screen, choose the menu icon (Managing Instance Classes - 图1) in the upper-left corner of the page. 3. In the Clusters navigation box, you’ll see the column Cluster Identifier. Your instances are listed under clusters, similar to the screenshot below.

Managing Instance Classes - 图2 4. In the list of instances, expand the cluster to find the instances you are interested in. Find the instance that you want. Then, look at the Size column of the instance’s row to see its instance class.

In the following image, the instance class for instance robo3t is db.r5.4xlarge.

![

```

  1. Screen shot showing a list of instances with
  2. their instance types.
  3. ](/projects/DocumentDB-20201111-en/27d1c1bde23388a59c578947cc039aec.png) ```

To determine the class of an instance using the AWS CLI, use the describe-db-instances operation with the following parameters.

  • --db-instance-identifier — Optional. Specifies the instance that you want to find the instance class for. If this parameter is omitted, describe-db-instances returns a description for up to 100 of your instances.
  • --query — Optional. Specifies the members of the instance to include in the results. If this parameter is omitted, all instance members are returned.

The following example finds the instance name and class for the instance sample-instance-1.

For Linux, macOS, or Unix:


1. aws docdb describe-db-instances \
2. --query 'DBInstances[*].[DBInstanceIdentifier,DBInstanceClass]' \
3. --db-instance-identifier sample-instance-1

For Windows:


1. aws docdb describe-db-instances ^
2. --query 'DBInstances[*].[DBInstanceIdentifier,DBInstanceClass]' ^
3. --db-instance-identifier sample-instance-1

Output from this operation looks something like the following.


1. [
2. [
3. "sample-instance-1",
4. "db.r5.large"
5. ]

The following example finds the instance name and class for up to 100 Amazon DocumentDB instances.

For Linux, macOS, or Unix:


1. aws docdb describe-db-instances \
2. --query 'DBInstances[*].[DBInstanceIdentifier,DBInstanceClass]' \
3. --filter Name=engine,Values=docdb

For Windows:


1. aws docdb describe-db-instances ^
2. --query 'DBInstances[*].[DBInstanceIdentifier,DBInstanceClass]' ^
3. --filter Name=engine,Values=docdb

Output from this operation looks something like the following.


1. [
2. [
3. "sample-instance-1",
4. "db.r5.large"
5. ],
6. [
7. "sample-instance-2",
8. "db.r5.large"
9. ],
10. [
11. "sample-instance-3",
12. "db.r5.4xlarge"
13. ],
14. [
15. "sample-instance-4",
16. "db.r5.4xlarge"
17. ]
18. ]

For more information, see Describing Amazon DocumentDB Instances.

Changing an Instance’s Class

You can change the instance class of your instance using the AWS Management Console or the AWS CLI. For more information, see Modifying an Amazon DocumentDB Instance.

Supported Instance Classes by Region

Amazon DocumentDB supports the following instance classes:

  • R5—Latest generation of memory-optimized instances that provide up to 100% better performance over R4 instances for the same instance cost.
  • R4—Previous generation of memory-optimized instances.
  • T3—Latest-generation low cost burstable general-purpose instance type that provides a baseline level of CPU performance with the ability to burst CPU usage at any time for as long as required.

For detailed specifications on the instance classes, see Instance Class Specifications .

A particular instance class may or may not be supported in a given Region. The following table specifies which instance classes are supported by Amazon DocumentDB in each Region.

Supported instance classes by Region
Region
US East (Ohio)
US East (N. Virginia)
US West (Oregon)
South America (São Paulo)
Asia Pacific (Mumbai)
Asia Pacific (Seoul)
Asia Pacific (Sydney)
Asia Pacific (Singapore)
Asia Pacific (Tokyo)
Canada (Central)
Europe (Frankfurt)
Europe (Ireland)
Europe (London)
Europe (Paris)
AWS GovCloud (US)

Instance Class Specifications

The following table provides details of the Amazon DocumentDB instance classes. You can find explanations for each table column below the table.

Supported Amazon DocumentDB instance classes
Instance class
R5 – Current Generation Memory-Optimized Instance Class
db.r5.large
db.r5.xlarge
db.r5.2xlarge
db.r5.4xlarge
db.r5.12xlarge
db.r5.24xlarge
R4 – Current Generation Memory-Optimized Instance Class
db.r4.large
db.r4.xlarge
db.r4.2xlarge
db.r4.4xlarge
db.r4.8xlarge
db.r4.16xlarge
T3 – Latest Generation Burstable Performance Instance Classes
db.t3.medium
1. vCPU — The number of virtual central processing units (CPUs). A virtual CPU is a unit of capacity that you can use to compare instance classes. Instead of purchasing or leasing a particular processor to use for several months or years, you are renting capacity by the hour. Our goal is to provide a consistent amount of CPU capacity no matter what the actual underlying hardware. 2. ECU — The relative measure of the integer processing power of an Amazon Elastic Compute Cloud (Amazon EC2) instance. To make it easier for developers to compare the CPU capacity between different instance classes, we defined an Amazon EC2 compute unit. The amount of CPU that is allocated to a particular instance is expressed in terms of these EC2 compute units (ECUs). One ECU currently provides CPU capacity equivalent to a 1.0–1.2 GHz 2007 Opteron or 2007 Xeon processor. 3. Memory (GiB) — The RAM, in gigabytes, that is allocated to the instance. There is often a consistent ratio between memory and vCPU. 4. Max. bandwidth (Mbps) — The maximum bandwidth in megabits per second. Divide by 8 to get the expected throughput in megabytes per second. 5. Network performance — The network speed relative to other instance classes.