Sleep & Wake up
Control cost by putting unused environments to sleep
Using an isolated, production-like Velocity Environment is a great way to improve your development pace. However, cloud resources are expensive. With Velocity, you can verify that environments will be used only when needed.
You can put a Velocity Environment to sleep and store its data while it is not in use. Afterward, you can wake up the environment when you wish to continue working on it.
In addition, Velocity provides automated processes that put environments to sleep based on a predefined TTL (Time to Live). TTL ensures that the resources will not be used if the user forgets to put the environment to sleep.
Moreover, Velocity also provides a termination policy that destroys the environment with its data, based on a TTD (Time to Destroy).
NOTE: Velocity monitors the usage of your environment and avoids putting the environment to sleep or destroying it if it in use.
To put an environment to sleep, run the following command from the command line:
veloctl env sleep
This command shuts down the environment, but preserves its data for later use.
Velocity Environments may automatically get to sleep depending on the default definitions of the account.
To put a Velocity Environment named 'johns-feature' to sleep, run:
veloctl env sleep johns-feature
To wake up your currently set environment, run the following command from the command line:
veloctl env wakeup
This command wakes up the environment and allows you access to the preserved data, so you can resume development from the same state it was in when it was put to sleep.
To resume work on
johns-featureafter putting it to sleep, run:
veloctl env wakeup -johns-feature