Skip to main content

Auto Scaling

Auto Scaling adjusts a cluster's on-demand compute capacity as its workload changes. Use it for workloads with unpredictable demand when you want VeloDB Cloud to manage capacity within limits that you set.

The cluster's cache capacity changes with its compute capacity.

Warning:

  • Scaling can temporarily interrupt connections and delay requests.
  • Scaling in compute can reduce cache capacity, but not below the minimum for the target compute size. If cache capacity decreases, cached data beyond the new capacity is removed, which can affect request response times.
  • The cluster can scale out to Maximum vCPU, increasing on-demand charges.

Before you begin​

  • You need permission to manage compute resources in the warehouse.
  • The cluster must be Running, and the warehouse must not be in the Creating state.
  • If Scaling is unavailable, point to it to view the reason.
  • Disable the time-based scaling policy before you enable AutoScaling.

Enabling AutoScaling makes manual and time-based scaling configurations unavailable.

Configure Auto Scaling​

Choose Minimum vCPU to support the cluster's baseline workload. Choose Maximum vCPU based on expected peak demand and your budget.

  1. Log in to the VeloDB Cloud console.
  2. In the upper-left corner, select the warehouse that contains the cluster.
  3. In the left navigation pane, under Compute, click Clusters.
  4. Click Physical Clusters.
  5. Click Card, then select the running cluster to display its details panel.
  6. Click Scaling.
  7. If a resource menu opens, select On-Demand (Hourly).
  8. In Elastic Scaling, turn on AutoScaling.
  9. Under vCPU Range, set Minimum vCPU and Maximum vCPU.
  10. Review the displayed Cache range.
  11. Click Confirm.

To verify the configuration, reopen the cluster details panel and confirm that Scaling Mode is Auto Scaling. Open Scaling again to check the configured vCPU range.

Change the vCPU range​

  1. Open Elastic Scaling for the cluster.
  2. Change Minimum vCPU or Maximum vCPU.
  3. Review the displayed Cache range.
  4. Click Confirm.

Disable Auto Scaling​

  1. Open Elastic Scaling for the cluster.
  2. Turn off AutoScaling.

VeloDB Cloud stops automatic scaling and retains the cluster's current resource configuration. To verify the change, confirm that Scaling Mode in the details panel is Manual Scaling. You can then configure manual scaling or time-based scaling.

Monitor the cluster​

Use Resource Overview in the cluster details panel to review CPU utilization, memory utilization, disk cache utilization, and disk cache hit rate. Click a metric to view a longer time range.

You can also open the cluster on the Metrics page:

  1. In the upper-right corner, click ....
  2. Click View metrics.

If the cluster frequently reaches Maximum vCPU, consider increasing the maximum if the additional cost is acceptable. If the cluster's normal workload needs more capacity, increase Minimum vCPU.

See also​