Updated on 2025-01-03 GMT+08:00

Scaling Disk Space

As more data is added, you may start to run out of space. This section describes how to scale up disk space of your instance. As data volumes decrease, you can scale down disk space to avoid low database node utilization and resource waste.Table 1 lists the scaling methods supported by GeminiDB Redis instances.

Table 1 Scaling methods

Method

Supported Instance Type

Description

Manually Scaling Up Disk Space

  • Proxy cluster
  • Redis Cluster
  • Primary/Standby

You can specify how much disk space needs to be added.

The added value must be a multiple of 1 (GB). The total storage space cannot exceed the upper limit defined by your instance specifications.

Automatically Scaling Up Disk Space

Cluster

If storage usage exceeds the configured threshold, autoscaling will be triggered.

The storage is scaled up by a percentage you specify. The added storage space is the current storage space multiplied by the scaling increment.

Manually Scaling Down Disk Space

  • Proxy cluster
  • Redis Cluster
  • Primary/Standby

You can specify how much disk space needs to be reduced.

The storage space to be reduced must be a multiple of 1 GB and greater than or equal to 125% of the used storage space. The value is rounded up.

Manually Scaling Up Disk Space

For example, if the storage space of a GeminiDB Redis cluster instance is 24 GB and is increased by 8 GB, the storage space will become 32 GB.

Figure 1 Manually scaling up disk space

Automatically Scaling Up Disk Space

For example, the storage space of a GeminiDB Redis cluster instance is 24 GB before scale-up, the storage usage threshold for triggering autoscaling is set to 80%, and the total storage needs to be automatically scaled up by 10%. If the storage usage is greater than or equal to 80%, the storage space is automatically scaled up by 2.4 GB (24 x 10%), which is rounded up to 3 GB. In this case, the total storage space becomes 27 GB (24 + 3).

Figure 2 Automatically scaling up instance storage

Manually Scaling Down Instance Disk Space

For example, if the storage space of a GeminiDB Redis cluster instance is 32 GB and is decreased by 8 GB, the storage space will become 24 GB.

Figure 3 Manually scaling down disk space