Lifecycle
Instances move through DEPLOYING, RUNNING, STOPPED, FAILED, TERMINATED, and INSUFFICIENT_FUNDS. Billing applies while RUNNING. An instance whose machine broke shows Maintenance instead; see below.
Stop, delete, an image change and a machine failure all remove everything inside the instance except /vault: /workspace, home directories, installed packages. Keep anything you need in /vault.
Ownership
User API keys can only access instances owned by the same account. Admin APIs are not available through user API keys.
Names
Every instance has a name of up to 40 characters, so several similar machines are easy to tell apart. Unless you give one when deploying, a new instance gets the lowest free GPU N: GPU 1, GPU 2, and a gap left by a deleted one is reused. Rename it inline on the Instances page with Rename, or over the API (instances:manage); an empty name resets it to the next free default.
The full request is in the REST API Quickstart.
Auto-stop and gputw-shutdown
Set an auto-stop timer when deploying or later from the instance row (Set auto-stop) to stop it after a number of hours or at a set time, between 10 minutes and 30 days ahead. You are notified 30 and 5 minutes before. To stop the moment a job finishes instead, end the job with gputw-shutdown from inside the instance; see Docker / Container Environment. Either way it is a normal stop: only /vault is kept.
Changing configuration
Running instances can update HTTP ports and raw TCP/UDP exposures without restarting the container. Other changes go through the ⚙ Reconfigure button on the instance row.
Swap to a custom image in place. In Reconfigure, choose Custom image and enter your image (with registry credentials if it is private). The instance is redeployed on the same machine and never stopped, so the GPU stays yours while the new image is pulled.
- Data: the container is recreated: everything inside the instance except /vault is erased. Copy what you need to /vault first.
- Billing: the pull is billed like a custom-image deploy: a pull that succeeds is not charged; if the image does not start within 45 minutes, the deploying time is charged.
- If it fails: an image that cannot start leaves the instance FAILED and its GPU released, so use Check image before applying.
- Same machine only: a custom image can only be applied on the original machine; to move to another machine, pick a catalog image.
Over the API this is PUT /instances/<id> with a customImage object; see the REST API Quickstart.
Disk usage
Each running instance shows Disk used X / Y GB next to its allocation on the Instances page: how much of the rented disk it uses, including files the container itself wrote outside /workspace. The reading is refreshed about every 10 minutes and turns into a warning as the disk fills. When it is full, writes fail but nothing is deleted. You can ask for a notice at 90% in Settings; see Status & OOM.
The API has the same reading as diskUsedGb, diskLimitGb and diskUsageAt on the instance object.
Under maintenance
When the machine under an instance breaks, the instance shows Maintenance: it is not billed, it is kept, and it comes back by itself once the machine is repaired. Delete, stop, restart and reconfigure are disabled meanwhile, and the API answers them with 409 INSTANCE_IN_MAINTENANCE. Details in Status & OOM.
Delete all stopped instances
The Remove stopped (N) button on the Instances page deletes every stopped or failed instance in one go. Their containers are already gone, so nothing running is affected, and /vault is untouched. Instances under maintenance are left alone and reported as skipped.
Send {} for all of them, or {"instanceIds":[...]} for some. The answer lists deleted and skipped ids. Needs instances:manage.
Billing state
Compute usage is metered while the instance is RUNNING, except while it is under maintenance. Stop or delete the instance when work is complete to stop compute billing.