Skip to main content

Change database resource configurations

Cluster resources are the flavor (vCPU and RAM), the data disk size, and the storage policy that sets IOPS. All three can be changed while the cluster is running, within your available quota.

View current resources​

From the main menu, select Database Platform → All Databases or Non-Relational Database, click the Cluster ID, then open the Resource tab.

Resource tab showing Resource information, Resource per node, Storage policy, and Resize logs

Resource information at the top gives you two figures:

FigureWhat it counts
Total database resourceWhat this cluster uses today, summed across every node — vCPU, RAM, and data storage
Available quotaThe headroom left in your VPC

Check Available quota before planning a change. Exceeding it is the most common reason an update is rejected.

Below those, the tab gives each thing you can change its own block and its own Edit settings button, and ends with Resize logs — a record of every past operation with its status, its timestamp, and the configuration it applied.

Adjust compute and disk​

  1. In the Resource per node section, click Edit settings.
  2. Change what you need — Flavor to adjust vCPU and RAM, Data storage (GB) to grow the disk.
  3. Click Update.

Update database resource drawer, with Flavor, Data storage and the three warnings

The drawer states three conditions before you commit, and each one matters:

What it saysWhat it means for you
The database engine restarts automatically when scaling down the flavorDropping vCPU or RAM drops live connections. Scaling up does not restart the engine.
The data disk size cannot be decreased below its current capacityThe field accepts only a larger number. There is no way back short of restoring into a new cluster, and you keep paying for the larger disk.
Review parameter values after changing the compute configurationEngine parameters tuned against the old memory size may no longer suit the new one.

The cluster status changes to Resizing and returns to Running once the operation finishes. Allow 5–10 minutes, and avoid other operations while it runs — you can follow progress in Resize logs at the bottom of the tab.

warning

Quota is a hard limit. A configuration that exceeds Available quota is rejected with an error, no matter what the flavor list offers.

On a Sharded Cluster​

A Sharded Cluster has three node groups with different jobs, so the tab splits the resize controls three ways instead of offering one. Each group carries its own Edit settings:

GroupWhat you can change
Resource per Mongos nodeFlavor only — mongos routers hold no data, so there is no disk setting
Resource per Shard nodeFlavor and Data storage (GB)
Resource per ConfigServer nodeFlavor and Data storage (GB)

Storage policy stays a single setting for the whole cluster, as it is on the other architectures.

A change applies to every node in that group — resizing the shard flavor resizes all shard nodes together, not one shard. Resize logs names the group each operation targeted (mongos_node, data_node, or config_node).

note

The Resource tab only resizes the nodes you already have. To change how many nodes or shards there are, see Scale out a database cluster — that is driven from the Overview tab instead.

Adjust the storage policy​

The storage policy determines I/O performance and cost.

  1. In the Storage policy section, click Edit settings.
  2. Select a policy that matches your workload.
  3. Click Update.

This also takes 5–10 minutes. Do not perform other operations while it runs.

tip

For production, use a storage policy of at least 4,000 IOPS. Below that, storage becomes the bottleneck well before compute does, and adding vCPU will not help.

Next steps​