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

# Clusters

> Create, resize, and delete the GPU clusters that models run on.

A cluster is the place in your company's AWS account where models run. Rivvr creates it for you. You give it three settings:

* a name;
* which AWS GPU machine types Rivvr may use, and up to how many machines of each type;
* the most the cluster may cost per hour.

Rivvr then starts and stops GPU machines within those limits as your models need them, and spreads models across them.

## See which machines you can use

```bash theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr cluster machines --wide
```

## Create a cluster

```bash theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr cluster create development --machine g5.xlarge=1 --hourly-budget 5 --wait
rivvr cluster use development
```

`--machine g5.xlarge=1` lets Rivvr use up to one machine of the AWS type `g5.xlarge`. Use machine names or IDs from `cluster machines`. To allow more than one type, repeat `--machine`. Your AWS account also needs enough GPU quota from AWS for these machines. The numbers above only show the format; choose the size and budget your workload needs.

`--hourly-budget` is the most the cluster may spend per hour, in USD.

`--wait` makes the command wait until the cluster's status is `ACTIVE`. Developers can only create models on `ACTIVE` clusters.

## Change the budget or machines

```bash theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr cluster update development --hourly-budget 6
rivvr cluster update development --machine g5.xlarge=2 --hourly-budget 6
```

Settings you leave out stay the same, with one exception: `--machine` replaces the cluster's whole machine list. For example, if the cluster allows two machine types and you pass only one, the other type is removed. Always list every type you want to keep.

## Delete a cluster

```bash theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr cluster delete development
```

> [!WARNING]
>
> Deleting a cluster also deletes every model on it. Run `rivvr model list --cluster development` first to see what will be deleted.

Type `y` to confirm. The command ends once Rivvr accepts the request. The actual shutdown continues in the background.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.