RayDB LogoRayDB

Vertical scaling

Vertical scaling allows you to adjust the compute and memory resources of your RayDB PostgreSQL cluster to handle increased workloads efficiently.

When to Scale Up

Consider increasing resources if:

  • Queries are running slowly due to CPU or memory constraints.
  • High read/write operations are causing performance bottlenecks.
  • Your application is experiencing unexpected traffic spikes.

How to Scale Your Cluster

  1. Log in to the RayDB Dashboard.
  2. Navigate to the Clusters section and select the cluster you want to scale.
  3. Go to the Scaling Options tab.
  4. Select a higher-tier instance size with more CPU and RAM.
  5. Click Apply Changes to begin the scaling process.

Downgrading Resources

If your workload decreases, you can scale down by following the same steps but selecting a lower-tier instance. Keep in mind:

  • Some operations may require a brief restart.
  • Ensure your workload fits within the new limits to avoid performance issues.

Impact on Availability

  • Vertical scaling is performed with minimal downtime.
  • Applications should implement retry mechanisms to handle brief interruptions.
  • Monitoring tools in the dashboard help track resource utilization before and after scaling.

Best Practices

  • Monitor Performance Metrics – Use built-in monitoring to determine when scaling is necessary.
  • Plan for Traffic Spikes – Preemptively scale before peak usage times.
  • Test Scaling in a Staging Environment – Ensure application compatibility before scaling production instances.

For additional scaling strategies, see Horizontal Scaling.

On this page