Manage and Scale VMs

AI Tools

You will learn how to scale, monitor, and manage your spot virtual machines.


Viewing VM Details

Capacity & Health Page

Navigate to Capacity & Health for detailed views:

VM Pools Tab

  • Pool name and configuration

  • Bid status and pricing

  • Won vs desired count

VMs Tab

  • Individual VM status

  • IP addresses

  • Server class details



Scaling VM Pools

Scale Up VMs

  1. Click Cloudspace ActionsEdit

  2. Increase the Desired count in Step 2.

  3. Click Go to SummaryUpdate Cloudspace

Scale Down VMs

  1. Click Cloudspace ActionsEdit

  2. Reduce the Desired count in Step 2.

  3. Click Go to SummaryUpdate Cloudspace

NOTE

Reducing count will terminate VMs. Back up any data first.

VM Cloudspace Edit Menu
Summary showing scale up from 1 to 3 VMs



Adding a New VM Pool

Add pools with different configurations (e.g., different server classes or OS images).

  1. Click Cloudspace ActionsEdit

  2. Click Add VM Pool

  3. Configure the new pool:

  • Server Type

  • Number of VMs

  • Bid Pricing Strategy

  • OS Image

  1. Click Go to SummaryUpdate Cloudspace

Summary page displays new VM Pools to be added, confirm and it will add a new VM Pool to your existing VM cloudspace

Adjusting Bid Prices

If your VMs are being preempted due to low bids:

  1. Click Cloudspace ActionsEdit

  2. Increase the Bid Price for the affected VM pool

  3. Click Go to SummaryUpdate Cloudspace



Deleting Resources

Delete a VM Pool

  1. Click Cloudspace ActionsEdit

  2. Click the Trash icon on top right of the VM pool to be removed

  3. Confirm deletion on summary page

  4. Click Save Changes

Delete a VM Cloudspace

  1. Click Cloudspace ActionsDelete Cloudspace

  2. Type the cloudspace name to confirm

  3. Click Delete

Warning

Deleting a VM cloudspace terminates all running VMs and is irreversible.


Best Practices

High Availability

Strategy

Implementation

Multiple pools

Spread across server classes

Higher bids

Reduce preemption risk

Webhooks

Monitor and react to changes

Cost Optimization

Strategy

Implementation

Right-size VMs

Choose appropriate server class

Monitor bids

Adjust based on market

Scale down

Reduce count during off-hours

Data Safety

Strategy

Implementation

External storage

Don't rely on VM local storage

Regular backups

Automate backup processes

Stateless design

Design for VM replacement


API & Terraform SOON

For programmatic VM management, use:

  • Spot Terraform Provider: Infrastructure as code

  • spotctl CLI: Command-line management

  • REST API: Direct API access


Troubleshooting

VM Not Accessible

Check:

  1. VM has an IP address assigned

  2. SSH key is correct - Manage SSH Keys

  3. VM status is "Online"

Cause: Market price exceeded your bid.

Fix:

  1. Increase bid price

  2. Enable webhooks for alerts

  3. Design for preemption


Related Documentation