Search
⌃K

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.

Putting the environment to sleep

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.
Example:
To put a Velocity Environment named 'johns-feature' to sleep, run:
veloctl env sleep johns-feature

Waking up an environment

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.
Example:
To resume work on johns-feature after putting it to sleep, run:
veloctl env wakeup -johns-feature