> ## Documentation Index
> Fetch the complete documentation index at: https://www.aptible.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# How to scale databases

> Learn how to scale databases on Aptible

## Overview

Aptible [Databases](/core-concepts/managed-databases/managing-databases/overview) can be manually scaled with minimal downtime (typically less than 1 minute). There are several elements of databases that can be scaled, such as CPU, RAM, IOPS, and throughput. See [Database Scaling](/core-concepts/scaling/database-scaling) for more information.

## Using the Aptible Dashboard

Databases can be scaled within the Aptible Dashboard by:

* Navigating to the Environment in which your Database lives in

* Selecting the **Databases** tab

* Selecting the respective Database

* Selecting **Scale**

<img src="https://mintcdn.com/aptible/RWSo_H5DBAoWcXSD/images/scale-databases1.png?fit=max&auto=format&n=RWSo_H5DBAoWcXSD&q=85&s=0bfef33c650941ff9e030c749b671464" alt="" width="2800" height="2228" data-path="images/scale-databases1.png" />

## Using the CLI

Databases can be scaled via the Aptible CLI using the [`aptible db:restart`](/reference/aptible-cli/cli-commands/cli-db-restart) command.

## Using Terraform

Databases can be programmatically scaled using the Aptible [Terraform Provider](https://registry.terraform.io/providers/aptible/aptible/latest/docs) using the `terraform_aptible_database` resource:

```js theme={null}
 resource "aptible_database" "DATABASE" {
    env_id = ENVIRONMENT_ID
    handle = "DATABASE_HANDLE"
    database_type = "redis"
    container_size = 512
    disk_size = 10
}
```
