> ## 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.

# aptible db:restart

This command restarts a [Database](https://www.aptible.com/docs/core-concepts/managed-databases/overview.md) and can be used to resize a Database.

> [!TIP]
>
> If you want to restart your Database in place without resizing it, consider using [`aptible db:reload`](https://www.aptible.com/docs/reference/aptible-cli/cli-commands/cli-db-reload) instead. [`aptible db:reload`](https://www.aptible.com/docs/reference/aptible-cli/cli-commands/cli-db-reload) is slightly faster than [`aptible db:restart`](https://www.aptible.com/docs/reference/aptible-cli/cli-commands/cli-db-restart).

# Synopsis

```
Usage:
  aptible db:restart HANDLE [flags]

Flags:
      --container-profile string   Container profile (e.g. m, c, r)
      --container-size int32       Container size in MB
      --disk-size int32            Disk size in GB
  -e, --env string                 Environment handle (alias)
      --environment string         Environment handle
      --iops int32                 Provisioned IOPS
      --volume-type string         Volume type (gp2 or gp3)
```

# Examples

#### Resize the Container

```shell theme={null}
aptible db:restart "$DB_HANDLE" \
        --container-size 2048
```

#### Resize the Disk

```shell theme={null}
aptible db:restart "$DB_HANDLE" \
        --disk-size 120
```

#### Resize Container and Disk

```shell theme={null}
aptible db:restart "$DB_HANDLE" \
        --container-size 2048 \
        --disk-size 120
```

#### Container Sizes (MB)

**All container profiles** support the following sizes: 512, 1024, 2048, 4096, 7168, 15360, 30720

The following profiles offer additional supported sizes:

* **General Purpose (M) - Legacy, General Purpose(M) and Memory Optimized(R)** - **Legacy**: 61440, 153600, 245760
* **CPU-Optimized (C)**: 61440, 153600, 245760, 376832
* **Memory Optimized (R)**: 61440, 153600, 245760, 376832, 507904, 770048

#### Profiles

`m`: General purpose container \
`c`: CPU-optimized container \
`r`: Memory optimized container
