Scaling up temporary VM for deploy release command

We’re experiencing some very slow database migrations when creating staging applications using the deploy release_command option in our fly.toml config. It takes about 15 minutes to run all the migrations on the temporary VM, compared to about 20 seconds on my development machine. Is there a way to scale up the temporary VM to make this run faster?

1 Like

The release_command runs on a temporary vm with the same configuration (cpu, memory) as the application. Scaling up the app when a release_command is needed is one way to ensure the release_command will run in a timely fashion.

Scaling the application virtual machine size can be done with fly scale vm <size> and/or fly scale memory <memoryMB>.