All Products
Search
Document Center

Database Autonomy Service:Automatic shard addition

Last Updated:Mar 28, 2026

Database Autonomy Service (DAS) monitors your Redis cluster instances and automatically adds a shard when average memory utilization crosses a threshold you define. This prevents out-of-memory (OOM) errors during traffic or data-size spikes without requiring manual intervention.

Prerequisites

Before you begin, ensure that you have:

How it works

DAS periodically checks your instance during the configured Observation Window. When the instance's Average Memory Utilization reaches the configured threshold, DAS automatically adds one shard. Adding a shard follows the same billing rules and configuration change process as manually adjusting the shard count for a Redis instance that uses cloud disks. Shard additions stop once the total shard count reaches the configured Maximum Number Of Shards.

Enable automatic shard addition

  1. Log on to the DAS console.

  2. In the left-side navigation pane, choose Intelligent O&M Center > Instance Monitoring.

  3. Find the instance you want to manage and click its instance ID to open the instance details page.

  4. In the left-side navigation pane, click Autonomy Center. In the upper-right corner, click Autonomy Service Settings.

  5. On the Autonomous Function Management > Autonomous Function Settings tab, turn on the autonomy feature switch.

  6. On the Optimization And Throttling tab, select Automatically Add Shards and configure the parameters.

    Note

    Billing and the configuration change process are the same as for manually adjusting the shard count on a Redis instance that uses cloud disks. For details, see Change instance configurations.

    ParameterDescription
    Average Memory Usage ≥The memory utilization threshold that triggers a shard addition.
    Maximum Number Of ShardsThe upper limit on shards for this instance. Must be a positive integer between 4 and 256. DAS stops adding shards automatically when this limit is reached.
    Observation WindowThe time range during which DAS observes instance performance. DAS adds a shard when average memory utilization reaches the threshold during this window.
  7. Click OK.

  8. Optional: Click Event Subscription Settings and configure event notifications to receive timely notifications of system-triggered operations. For more information, see Enable event subscription.

  9. (Optional) On the Event Subscription Settings tab, set up event notifications for automatic shard additions. When DAS generates a shard addition recommendation, it creates a Notice-level event. Turn on Enable Event Subscription and configure the notification parameters. For details, see Enable the event subscription feature.

  10. You can configure an Alert Template to track the status of shard additions. DAS recommends an alert template and adds alert rules for the corresponding autonomy events. Follow the prompts to complete the configuration.

    Note
    • If you already have an alert template configured for the instance, follow the prompts to add the autonomy event alert rules to the existing template.

    • To configure the alert template and rules manually, see Configure alert templates and Configure alert rules.

  11. Select an Alert Contact Group for notifications. For details, see Manage alert contacts.

    • Click Add Contact to add an alert contact.

    • Click Create Contact Group to create a new alert contact group.

    • Click Edit or Remove next to a contact to update or delete it.

  12. Click Submit Configuration and confirm the alert configuration in the dialog box.

References

To reduce the number of shards in a Redis database instance, you must perform the operation manually. For details, see Adjust the number of shards in a cluster.