ApsaraDB for Redis instances with cloud disks are based on the new-generation control architecture of ApsaraDB for Redis. These instances allow you to adjust the number of shards and perform smooth scaling. In smooth scaling, transient connections do not occur and instances do not enter the read-only state. You can use these features to flexibly handle reads and writes on hot data and data skews.


The instance is a persistent memory-optimized cluster instance. For more information about persistent memory-optimized instances and cluster instances, see Persistent memory-optimized instances and Cluster master-replica instances.


  • An instance can contain 1 to 32 shards.
  • The operation cannot be scheduled to be performed in a maintenance window. After you adjust the number of shards, the instance immediately enters the Changing Configuration state and evenly distributes data on the shards.
  • The duration of a configuration change is based on multiple factors such as the network conditions, task queue size, and data volume. A configuration change may cause a latency fluctuation. We recommend that you change configurations during off-peak hours. Make sure that your applications can automatically reconnect to instances.


For more information, see Configuration change.


  1. Log on to the ApsaraDB for Redis console and go to the Instances page. In the top navigation bar, select the region in which the instance is deployed. Then, find the instance and click the instance ID.
  2. In the Shard Information section, perform the following operations based on your business requirements.
    Figure 1. Adjust the number of shards
    Adjust the number of shards
    • Add shards
      1. Click Add Shard.
      2. In the panel that appears, specify the number of shards that you want to add to the instance.
        Note The specifications of the shards to be added are the same as those of existing shards and cannot be modified.
      3. Click Pay and complete the payment.
    • Delete shards
      1. Click Delete Shard.
        Note You can also click Delete in the Actions column corresponding to the shard that you want to delete.
      2. In the dialog box that appears, select the shards that you want to delete from the drop-down list. You can also click Delete All Shards and clear the shard that you want to retain to delete all the other shards.
      3. Click OK.

Related API operations

Operation Description
AddShardingNode Adds one or more shards to an ApsaraDB for Redis cluster instance.
DeleteShardingNode Deletes one or more shards from an ApsaraDB for Redis cluster instance.