Skip to main content

Resources

Default Resource Allocation​

If you omit the resources section entirely from your job configuration, Solti automatically assigns a safe, general-purpose default:

resources:
cpu: 1
memory: 4Gi

This default ensures small scripts, data transformations, and container jobs can be submitted immediately without calculating exact resource envelopes.

Specifying Compute Requirements​

When greater performance is required, declare your target resources:

  • cpu — numeric count of vCPUs (e.g. 1, 4, 16, 64). Fractional requests (e.g. 0.25, 0.5) are supported and mapped to the smallest available instance type matching the requirement.
  • memory — memory quantity formatted with standard suffixes: Mi (Mebibytes) or Gi (Gibibytes) (e.g. 512Mi, 8Gi, 64Gi).
  • storage — boot/root disk size of the provisioned VM: an integer GiB (e.g. 100) or a quantity string ("100Gi", "102400Mi"). Whole GiB, 10–16384. See Boot Disk Size.
  • gpu — GPU request. The shorthand scalar gpu: 24Gi means "provision VMs with at least 24 GB of aggregate GPU VRAM on NVIDIA GPUs" and is equivalent to gpu: { vram: 24Gi }. GPU requests are always routed to NVIDIA instances — the runtime stack (Docker nvidia driver + NVIDIA Container Toolkit) serves NVIDIA GPUs only. The routing engine selects the cheapest instance type(s) meeting the request.

GPU Hard Constraints​

Optional hard constraints exist for workloads with non-negotiable requirements:

gpu:
vram: 80Gi # Minimum aggregate GPU VRAM (required unless model is given)
count: 2 # Optional: minimum GPU count (e.g., NCCL/multi-GPU training); requires model
model: A100 # Optional: GPU model constraint, matched against Scarcity's gpu_model values

Matching semantics:

  • {model, count} → that model with ≥ count GPUs (vram is ignored)
  • {model, vram} → that model with total VRAM ≥ vram
  • {vram} → any NVIDIA GPU with total VRAM ≥ vram

The workload container is connected to all GPUs of the provisioned VM (1:1 job↔VM pricing).

Note: hard constraints are never silently relaxed; if nothing satisfies them, the job fails with an explicit configuration error.

Boot Disk Size (storage)​

By default, the VM's boot disk uses the per-provider image default. Set storage when the workload writes substantial local scratch data (ML checkpoints, dataset shuffling, image processing) that would exhaust the default disk:

resources:
cpu: 4
memory: 16Gi
storage: 100Gi # Boot/root disk size — integer GiB or quantity string

Accepted forms match the memory quantity grammar: a positive integer (interpreted as GiB) or a string with Mi/Gi suffix (e.g. "100Gi", "102400Mi"). Values are normalized to a whole number of GiB — fractional sizes (e.g. "10.5Gi") are rejected. Bounds: 10–16384 GiB.

When storage is omitted, the boot disk uses the per-provider image default:

ProviderDefault boot disk
AWS8 GiB
GCP10 GB
Azure30 GB

The field is immutable after submission — resubmit the job to change it.

Azure note: Azure rejects boot disks smaller than the image's OS-disk size (30 GB today). Jobs requesting 10–29 GiB on Azure fail with the provider's provisioning error, surfaced on the job.

Runtime Limit (timeoutSeconds)​

Jobs accept an optional timeoutSeconds payload key (the CLI flag surface does not expose it; set it in a workload YAML file or via the API):

timeoutSeconds: 3600 # Max VM duration in seconds (minimum 1)

When set, the scheduler fails the job if its VM runtime exceeds the limit. If omitted, the job runs until it completes or is cancelled.