Curriculum / Part 6 · Scale-out NAS and object storage
Lesson 28

Object storage basics

Object storage basics: buckets, keys, whole-object writes, multipart upload limits, consistency, and the tools to measure it.

⏱ 35 min5-question quizLab 6.2

The simple version

A coat check: you hand over a coat, get a ticket (the key), and later swap the ticket back for the whole coat. You can't ask them to sew a new button on while it's on the rail; you take the coat back and hand in a new one.

The object model

Objects live in buckets under keys. You PUT a whole object, GET all or a byte range of it, LIST keys by prefix, and DELETE. There's no in-place partial overwrite: changing an object means writing a new version. "Directories" are just key prefixes (the CLI shows them as PRE).

Amazon S3 provides strong read-after-write consistency for PUTs and DELETEs. S3-compatible systems vary, so check yours before relying on it.

Multipart upload

Limit (Amazon S3)Value
Single PUT, max object size5 GiB
Part size5 MiB to 5 GiB (last part can be smaller)
Parts per upload10,000
Max object size5 TiB
upload rate ≈ min(parallel parts × per-stream rate, NIC, endpoint)

The AWS CLI defaults are an 8 MB multipart threshold, 8 MB parts and 10 concurrent requests. At ~180 MB/s per stream (the simulator's modelled value), that's ~1.8 GB/s; 64 concurrent requests → ~11.5 GB/s, if the NIC and endpoint allow.

Tools

$ aws s3 ls s3://bucket/prefix/ --endpoint-url https://objects.example
$ aws configure set default.s3.max_concurrent_requests 64
$ s5cmd cp 's3://bucket/shards/*' /lustre/datasets/   # fast parallel S3 client
$ warp get --host objects.example:9000 ...          # S3 benchmark (MinIO warp)

Tools

aws s3 ls / cp / sync
AWS CLI; add --endpoint-url for S3-compatible storage.
aws configure set default.s3.<key>
multipart_threshold, multipart_chunksize, max_concurrent_requests.
s5cmd
High-throughput parallel S3 client.
warp
S3 benchmark tool from MinIO.

Quiz

Lab

Lab 6.2 · Single-part checkpoint uploads

An adapter checkpoint, /scratch/adapter-ckpt.pt (4 GiB), is pushed to S3 after every run. The upload takes about 24 seconds. A colleague changed the AWS CLI config a while ago and nobody remembers what.

Start lab 6.2 →