Skip to content

Common Workflows ​

You usually arrive with a goal, not a tool in mind. Start with the story closest to what you're trying to do β€” each is a complete, end-to-end walkthrough β€” then branch into the deeper guides. New to spore.host? Do Your first instance first; it's the 15-minute backbone the stories below build on.

Running more than one thing?

spore.host has several ways to run work at scale β€” instance plugins, sweeps, arrays, instance queues, pipelines, MPI, and workflow-engine adapters. If you're not sure which fits, start with Which execution tool?.

Story A β€” Interactive research workstation ​

"I need a big machine for a few hours to explore some data, then it should go away."

sh
# 1. find a fit
truffle find "amd genoa 64gb" --region us-east-1
# 2. launch with guards
spawn launch analysis \
  --instance-type m8a.4xlarge \
  --ttl 8h \
  --idle-timeout 30m
# 3. work on it
spawn connect analysis
# 4. done β€” tear it down
spawn terminate analysis
  • --ttl 8h is the hard deadline β€” the instance terminates then no matter what, so a forgotten session can't run all weekend.
  • --idle-timeout 30m stops it early if you wander off; any activity resets the timer. Idle stops, TTL terminates β€” see Costs & safety guarantees.
  • Cost: capped at 8 Γ— the hourly rate; usually far less because idle stops it. Check the rate with truffle spot m8a.4xlarge before you launch.

β†’ Deeper: Finding the right instance Β· Jupyter/RStudio Β· Managing instances & data

Story B β€” Unattended batch computation ​

"Run this script on a big box; when it finishes, terminate β€” I'm not watching."

sh
spawn launch simulation \
  --instance-type c8a.12xlarge \
  --ttl 12h \
  --command "./run-model.sh" \
  --on-complete terminate

What happens in each case:

  • Succeeds β†’ the command exits 0, spawn writes the completion sentinel, and --on-complete terminate tears the instance down.
  • Fails β†’ the command exits non-zero, and the same thing happens: the exit code goes to /tmp/SPAWN_EXITCODE, the sentinel records the failure, and the instance terminates. The end of the command log is copied to the serial console first, so spawn logs simulation can still show you why (Logs and debugging). To keep a failed instance for debugging, use --on-complete stop instead.
  • Hangs β†’ nothing signals completion. This launch has no idle timeout (one only applies by default when neither --ttl nor --idle-timeout is given), so the TTL terminates it at 12h. TTL is the backstop that always wins.

A --command signals completion when it exits, pass or fail (since v0.113.0). Work you start some other way, such as over spawn connect, has to signal it with spored complete. See Troubleshooting.

β†’ Deeper: GPU training jobs Β· Parameter sweeps Β· Batch queues

Story C β€” Scarce GPU capacity ​

"I need a p5.48xlarge, but there's never one available when I try."

  1. Truffle confirms the type exists and you have quota.
  2. Spawn tries to launch β€” and gets InsufficientInstanceCapacity.
  3. Lagotto watches three regions every five minutes.
  4. A notification arrives the moment capacity appears.
  5. Lagotto launches it automatically with a 6-hour TTL β€” no one awake required.

This is the one workflow the "find β†’ launch" path can't do alone, because quota and capacity are different things. Full walkthrough: Waiting for scarce capacity.


Choose what to learn next ​

I want to…Go to
Find the right instance type & compare pricesFinding the right instance
Launch from a browser without learning the CLIPortal detail levels
Run Jupyter or RStudio in the browserInteractive workstation
Train a model on a GPUGPU training jobs
Save up to 90% with SpotSpot instances
Move data on and off instancesManaging instances & data
Run one job across many parametersParameter sweeps
Manage a group of related instancesJob arrays
Queue more work than fits at onceBatch queues
Run tightly-coupled multi-node jobsMPI clusters
Chain jobs so each stage launches the nextPipelines
Wait for a hard-to-find GPUWaiting for scarce capacity
Drive compute from an AI assistantAI Assistant (MCP)
Automate from PythonPython SDK
Run Nextflow / WDL / CWL / Snakemake / AirflowWorkflow engines