Stopping a database cluster pauses the cluster to save resources. You can stop
and start database clusters with the Google Distributed Cloud (GDC) air-gapped console or with
the gdcloud CLI tool.

### Console

1. From the main menu of the GDC console, choose **Database Service**.
2. Select the database cluster to start or stop.
3. Click **STOP** or **START**.

### gdcloud

Use the following command to stop a database cluster:

```bash
gdcloud database clusters stop CLUSTER_NAME
```

Use the following command to start a database cluster:

```bash
gdcloud database clusters start CLUSTER_NAME
```

Replace the following:

- <var translate="no">CLUSTER_NAME</var> with the name of the database cluster to start or stop.

### API

```bash
kubectl patch dbcluster.postgresql.dbadmin.gdc.goog DBCLUSTER_NAME -p '{"spec":{"primarySpec": {"isStopped": IS_STOPPED}}}' --type=merge -n USER_PROJECT
```

Replace the following variables:

- `DBCLUSTER_NAME`, the name of the database cluster.
- `USER_PROJECT`, the name of the user project where the database cluster was created.
- `IS_STOPPED` to indicate whether the database cluster should be stopped (`true`) or not (`false`).