Database Autonomy Service (DAS) provides a prediction-based auto scaling policy for Tair (Redis OSS-compatible). This policy uses instance data from the past 10 days to predict performance metrics for the next 24 hours. When a predicted value meets or exceeds the target, a scale-out is recommended.
This feature only provides scale-out recommendations. You must scale out manually. For automatic scale-out, see:
Automatic scale-out: Automatically scales out instances in increments based on preset thresholds. Manual scale-in required. Suitable for traffic bursts and dynamic workloads.
Scheduled auto scaling: Scales out instances at scheduled times based on preset policies. Automatic scale-in supported. Suitable for known periodic high workloads.
Procedure
Log on to the console and go to the Instances page. In the top navigation bar, select the region in which the instance that you want to manage resides. Then, find the instance and click the instance ID.
In the navigation pane on the left, click CloudDBA > Performance Trends.
On the Performance Trends page, click Autonomy Service Settings.
ImportantFor proxy mode instances, switch to a Proxy Node first, then click Autonomy Service Settings.
On the Auto Scaling tab of the Autonomous Function Settings panel, click Add Policy. On the Add Policy page, set the following parameters:
Parameter
Description
Policy Name
The name of the policy.
Mode
Select Prediction-based Auto Scaling.
NoteCurrently, this mode only provides scale-out recommendations. It does not perform automatic scale-out.
Engine Type
Database engine. Default: Redis.
Metric Type
Prediction metric. SelectMemory Usage (%).
Destination Value
Target metric threshold (%). A scale-out is recommended when the predicted value meets or exceeds this threshold.
Example: If set to 70, a scale-out is recommended when predicted memory usage reaches 70% or higher.
Click OK.
In the Recommended Policies section, find your policy and click Apply in the Actions column.
NoteTo modify a policy, click Modify in the Actions column and update settings on the Update Policy tab.
To remove a policy, find it in the Applied Policies section and click Cancel in the Actions column.
View prediction-based auto scaling results
Log on to the DAS console.
In the navigation pane on the left, click Instance Monitoring.
Find the instance and click its ID to open the details page.
In the navigation pane on the left, click Autonomy Center.
On the Autonomy Center page, view Auto Scaling events within the selected time range.
Click Details for a Database Workload Prediction event to view prediction-based auto scaling details.
