Skip to main content
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

Create a cluster

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

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

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.