Skip to main content

Scaling database resources

Databases can be scaled to match your application's needs. A database is free within 1 vCPU, 1 GB memory, and 1 GB storage. Scaling above a ceiling requires a card or positive project credit and bills only the overage.

Only a change that raises an axis further above the ceiling needs payment capability. Scaling down, moving sideways, and edits that do not touch CPU, memory, or storage are always allowed — including on a database that is already above the ceiling, and including while a spending limit is reached.

Prerequisites

  • A database with RUNNING status
  • A payment method (card or credit) only if you are scaling above the free ceiling

How to Scale

  1. Navigate to Databases in the sidebar
  2. Click on your database name
  3. In the Scale Settings section, adjust the sliders for:
    • CPU - Processing power
    • Memory - RAM allocation
    • Storage - Disk space
  4. Click Apply Changes
  5. Confirm the changes in the dialog

Resource Limits

ResourceMinimumMaximum
CPU0.1 cores16 cores
Memory256 MB16 GB
Storage256 MB50 GB

See Database Billing for the free allowance, rates, and examples.

Important Considerations

Database Restart

Changing CPU or memory will briefly restart your database. Plan scaling operations during low-traffic periods when possible.

Storage changes do not require a restart.

Status During Updates

While scaling, your database status will show:

  • UPDATING - Changes are being applied
  • RUNNING - Changes complete, database is operational
  • UPDATE_FAILED - Something went wrong (see error details)

The scale settings are disabled while the database is updating.

Storage Can Only Increase

Storage allocation can only be increased, not decreased. Choose your initial storage size carefully.

Scaling Recommendations

When to Scale CPU

Increase CPU if you notice:

  • Slow query execution
  • High CPU utilization in monitoring
  • Request timeouts under load

When to Scale Memory

Increase memory if you experience:

  • Out-of-memory errors
  • Slow queries due to disk spillover
  • Poor cache hit rates

When to Scale Storage

Increase storage before you reach capacity:

  • Monitor storage usage regularly
  • Plan for data growth
  • Leave headroom for logs and temporary files

Troubleshooting

Cannot Modify Resources

  • Add a payment method if you are scaling above the free ceiling. If a spending limit has been reached, raise or remove it
  • Check that the database status is RUNNING
  • Ensure you're not already at the maximum resource limits

Neither a missing payment method nor a reached spending limit blocks a scale-down, so a database that is already above the ceiling can always be made smaller.

Update Failed

If scaling fails:

  1. Check the error message on the database detail page
  2. The database should remain operational with previous settings
  3. Try the scaling operation again
  4. Contact support if the issue persists