Artifacts
All pages
Docs · SetupMarkdown

Locations and placement

A location is a bucket: one the app created in a connected cloud, or an S3 endpoint. Each has a cloud and a region. A version lives in exactly one location, chosen when it is written. There are no replicas.

Fallback, defaults, retiring

  • Fallback: exactly one per organization. Writes are refused until one exists; the first location added becomes it.
  • Default: one per cloud, the first location in it unless you change it. Used for regions of that cloud that have no bucket.
  • Retired: takes no new writes; its versions stay readable. Locations are retired, never deleted. Move the fallback elsewhere before retiring it.
  • Unfinished: setup failed before any write. Only these can be removed.

Where a write goes

The writer reports its cloud and region. A new version goes to the first match:

OrderMatchCost
1Active location, same cloud and regionFree
2Default location of the same cloudCross-region egress
3The organization's fallbackEgress; the client logs a warning, usage page counts it

If uploads to the chosen location fail, the write restarts with that location excluded: a broken bucket costs egress, not the run.

A read goes to the one location holding the version. The response marks it local, cross-region or cross-cloud.

Finding the place on a box

The client detects its place once at start-up, trying sources in order. It sends the winning source as place.source on every request.

SourceReadsCovers
envO41_ARTIFACTS_CLOUD and O41_ARTIFACTS_REGION, both or neitherAnything; overrides the rest
rrunRRUN_CLOUD and RRUN_REGION, both or neitherJobs launched with rrun on AWS, GCP, Vast, RunPod, Verda and Nebius
skypilotcloud and region from SKYPILOT_CLUSTER_INFO, which SkyPilot sets on every job. Skipped for kubernetes, ssh, slurmJobs launched with SkyPilot, neoclouds included
metadataDMI strings in /sys/class/dmi/id to name the cloud, then that cloud's metadata service for the region, 1 s timeoutAWS, GCP and Azure VMs, and pods on their managed Kubernetes
noneNothing foundLaptops, on-premises boxes: writes go to the fallback

rrun: there is nothing to set up for a cloud job. Each attempt reports the machine it runs on, including after a spot restart. Reserved machines registered by a user leave these variables unset. RunPod reports its data-center ID when available, rather than its SECURE or COMMUNITY capacity tier.

SkyPilot: if you launch with SkyPilot, there is nothing to set up. Artifacts reads SKYPILOT_CLUSTER_INFO and writes in the cloud and region the job landed in, including after a spot job recovers onto a new cluster.

Other clouds: set O41_ARTIFACTS_CLOUD and O41_ARTIFACTS_REGION in the job. Regions use the cloud's own names, and location tags use the same strings: a box reporting nebius / eu-north1 matches an S3 endpoint tagged nebius / eu-north1.

Use these strings for rrun jobs and the cloud and region tags on their locations. Placement compares tags without case sensitivity. The S3 signing region is separate from the placement tag.

Cloud IDRegion conventionExample
awsAWS regionus-east-1
gcpGCP region, without the zone suffixeurope-west4
vastCountry or continent code from the offer's geolocation, using the last comma-separated componentUS from Oregon, US, or EU
runpodData-center ID from the pod's RUNPOD_DC_IDUS-TX-3
verdaVerda location code, kept as publishedFIN-01
nebiusNebius project regioneu-north1

Vast's codes cover a broad area, so a matching tag does not guarantee that a bucket is in the same data center or that transfers are free. Tag only buckets that serve that area. Verda uses its own location codes rather than another cloud's region names. For RunPod, the provider's environment variables supply the data-center ID. If it is unavailable, rrun leaves the place unset.

CloudRegion from the metadata service
AWSPUT http://169.254.169.254/latest/api/token, then GET /latest/meta-data/placement/region with the token
GCPGET http://metadata.google.internal/computeMetadata/v1/instance/zone with Metadata-Flavor: Google, cut from the zone
AzureGET http://169.254.169.254/metadata/instance/compute/location?api-version=2021-02-01&format=text with Metadata: true

Usage page

Shows which places write to the fallback or another region (where a new location would pay off) and how many bytes cross clouds on reads.